On 25Jul2020 2014, Jim J. Jewett wrote:
But it sounds as though you are saying the benefit is irrelevant; it is just
inherently too expensive to ask programs that are already dealing with
internals and trying to optimize performance to make a mechanical change from:
code.magic_attrname
to:
magicdict[code]
What have I missed?
You've missed that debugging and profiling tools that operate purely on
native memory can't execute Python code, so the "magic" has to be easily
representable in C such that it can be copied into whichever language is
being used (whether it's C, C++, C#, Rust, or something else).
Cheers,
Steve
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/python-dev@python.org/message/PE44CTX6NG6KOUPIJUFRXJHNFSFMN2TK/
Code of Conduct: http://python.org/psf/codeofconduct/