[Python-Dev] other "magic strings" issues

"Martin v. Löwis" martin at v.loewis.de
Sat Nov 8 19:28:53 EST 2003


Alex Martelli wrote:
> [[ I meant -- but didn't say out loud!-) -- "without changing the current
>    bytecode-level logic".  The change I proposed and experimented with
>    for strings' is... methods is localized to stringobject.c and requires
>    changing nothing except the details of string objects' implementation ]]

Then I probably don't understand what you are suggesting. What would
LOAD_ATTR do if the object is a string, the attribute is "isdigit", and
you were allowed to assume that the result won't depend on factors that
may change over time?

Regards,
Martin




More information about the Python-Dev mailing list