zero argument member functions versus properties

Ian Kelly ian.g.kelly at gmail.com
Sun Nov 3 21:27:34 EST 2013


On Sun, Nov 3, 2013 at 2:23 PM, Peter Cacioppi <peter.cacioppi at gmail.com> wrote:
> Ian said :
>
> " Whereas in Python, an attribute access is just
> compiled as an attribute access no matter what the underlying
> implementation of that access may end up being at run-time. "
>
> Really? Very nice. Have a good link handy for that? I'm compiling a codex of "why py is better?".

Sorry, no, but this fact should be apparent as a consequence of
Python's dynamicism.  Since the compiler generally can't predict what
the types of objects will be, the bytecode that it generates can't
depend on those types.



More information about the Python-list mailing list