[Python-Dev] Tagged integers (original) (raw)
Greg Ewing greg at cosc.canterbury.ac.nz
Fri Jul 16 03:41:04 CEST 2004
- Previous message: [Python-Dev] Tagged integers
- Next message: [Python-Dev] Tagged integers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
James Y Knight <foom at fuhm.net>:
The only thing you can do with an arbitrary PyObject * is access its obtype or obrefcnt. Anything else will break with objects today.
One other thing that would break is testing whether an object is an integer and then accessing fields of the integer object directly. Not that this seems a likely thing for people to do, though.
Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg at cosc.canterbury.ac.nz +--------------------------------------+
- Previous message: [Python-Dev] Tagged integers
- Next message: [Python-Dev] Tagged integers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]