[Python-Dev] Identifier API (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Fri Oct 14 20:05:16 CEST 2011


Instead of an explicit prefix, how about a macro, such as PyID(string)?

That wouldn't be instead, but in addition - you need the variable name, anyway. Not sure whether there is actually a gain in readability - people not familiar with this would assume that it's a function call of some kind, which it would not be.

Regards, Martin



More information about the Python-Dev mailing list