Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
various python enhancements #2207
Some small nice to have for Python:
k==None comparison after lookup does not work.
expected outcome: k is not None, so "pass" should not be executed but the program should continue afterwards (it works if k != None)
actual outcome: exception ValueError: invalid null reference in method 'Key___eq__', argument 2 of type 'kdb::Key const &'
KeySet not printed
expected outcome: print key by key, similar to built-in data structures in Python
workaround: write loop
Add key objects to hashmap
before c88d0b0 it was not possible. Now it is possible but it might be buggy because users might change the name after adding the key to a hashmap. To avoid this, the readonly flag should be set. Maybe we even need a FrozenKey?
workaround: use the KeySet, which soon is a hashmap on lookups anyway
Expected behavior: return 3