Re: [Python-Dev] setobject code

2006-06-19 Thread Raymond Hettinger
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

Re: [Python-Dev] setobject code

2006-06-18 Thread Neal Norwitz
On 6/16/06, Alexander Belopolsky [EMAIL PROTECTED] wrote: I would like to share a couple of observations that I made as I studied the latest setobject implementation. ... 2. Type of several data members in dict-object and dict-entry structs were recently changed to Py_ssize_t . Whatever

[Python-Dev] setobject code

2006-06-16 Thread Alexander Belopolsky
I would like to share a couple of observations that I made as I studied the latest setobject implementation. 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? 2. Type of