Stefan Behnel wrote: >Lisandro Dalcin, 10.04.2010 00:11: >>BTW, I would really like to remove that "modifiers_and_name_to_type" >>dictionary > > How would you do that?
FYI, this dictionary is used by the parser when it gets a type name such as 'int' and a set of modifiers such as 'long', 'unsigned' etc. and wants to get a PyrexType corresponding to it. The mapping is haphazard enough that a lookup table seemed like the best way to do it when I was writing Pyrex. I've been reworking the int type stuff in Pyrex recently -- you might want to have a look at how it's done in the 0.9.9 release I just made. I replaced all the magic numbers in that table with named constants, and that's made it considerably more readable. -- Greg _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
