[Python-Dev] cpython: Use a known unique object for the dummy entry. (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Sun Aug 18 20:46:26 CEST 2013
- Previous message: [Python-Dev] cpython: Use a known unique object for the dummy entry.
- Next message: [Python-Dev] cpython: Use a known unique object for the dummy entry.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, 18 Aug 2013 17:31:24 +0100 Mark Shannon <mark at hotpy.org> wrote:
By giving the dummy object a custom type, the dummy object can be recognised by testing that its type equals PySetDummyType (or whatever it is called) See dictobject.c for an implementation of a suitable dummy object.
The most reasonable thing to do would probably be to share the same dummy object between setobject.c and dictobject.c, then.
Raymond, it would be nice if you could take a look!
Regards
Antoine.
- Previous message: [Python-Dev] cpython: Use a known unique object for the dummy entry.
- Next message: [Python-Dev] cpython: Use a known unique object for the dummy entry.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]