[Python-Dev] setobject code
Raymond Hettinger
rhettinger at ewtllc.com
Mon Jun 19 17:52:00 CEST 2006
Alexander Belopolsky wrote:
>1. Is there a reason not to have PySet_CheckExact, given that
>PyFrozenSet_CheckExact exists? Similarly, why PyAnySet_Check, but no
>PySet_Check or PyFrozenSet_Check?
>
>
If you NEED PySet_CheckExact, then say so. Adding it is trivial.
Each of the six combinations needs to be evaluated on its own
merits. Do you have use case where it is important to know that
you have a set, that it is not frozen, and that it is not a subtype?
Raymond
More information about the Python-Dev
mailing list