-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiunion error on C but pass on python #24
Comments
It seems that C implement does not support tuple value type, but python implement could compatible with tuple... |
I'm not clear what issue you are reporting. Can you show a traceback? |
The issue I want to report could be shown as this example. If I use C implement, it reports an error, however if I use Python implement, it is right Use C multiunion:
Use Python multiunion:
|
Looks to me like the C implementation is "right". But I think that's undefined behavior (what is a union of a typed, ordered set, and a random tuple even supposed to mean?) so don't be surprised at either outcome, or if it formats your hard drive. |
The interface definition for The online help, however, simply says "Each [argument] must be an integer set, or convertible to one via the set iteration protocol." Now, it's talking about the internal set iteration protocol using the C I don't think it would be hard to extend the internal |
…h arbitrary iterables. The Python implementation already did this, so this only updates the C version to match. For multiunion, all arguments can be arbitrary iterables. The others derive their return type from the first argument, so it must still be a BTree object, but the second can be anything. Fixes #24
I met a problem about multiunion function that when using default C implementation it reports error but could work correctly when using python implementation... For example
The text was updated successfully, but these errors were encountered: