ClusterHQ / pyzfs

Python bindings to the stable ZFS ABI
Apache License 2.0
34 stars 11 forks source link

nvlist: mixing Python boolean values and boolean_t in the same array is not supported #4

Open avg-I opened 9 years ago

avg-I commented 9 years ago

The following code would raise an exception:

props = {"key": [boolean_t(False), True]}
nv_in = nvlist_in(props)
avg-I commented 9 years ago

Actually the same problem applies to integer C types and Python types that should be compatible. E.g., the following fails:

props = {"key": [1, uint64_t(1)]}
nv_in = nvlist_in(props)