[Python-Dev] ANSI strict aliasing and Python

Neil Schemenauer nas-python@python.ca
Thu, 17 Jul 2003 17:14:25 -0700


Martin v. L?wis wrote:
> The compiler could not use this optimization if we had
> 
> struct _dictobject {
> 	PyObject _o;
> 	int ma_fill;
> 	int ma_used;
> 	int ma_mask;
> 	PyDictEntry *ma_table;
> 	PyDictEntry *(*ma_lookup)(PyDictObject *mp, PyObject *key, long hash);
> 	PyDictEntry ma_smalltable[PyDict_MINSIZE];
> };

That's what I suspected.  If Python 3 was implemented using ANSI C, how
would you suggest we implement objects?

  Neil