> But then the question becomes: should we recommend late-binding by
> default, with early-binding as an easy optimization?


Given the decades of code that is using early binding now, I think it would
be a really bad idea not to teach that as the default— folks absolutely
need to understand early binding and it’s limitations.

But at the end of the day, other than the legacy, I think having a late
binding option will be a bit easier for newbies, but not radically
different.

-CHB


I'm disinclined
> to choose at this point, and will leave that up to educators and style
> guide authors.
>
> ChrisA
> [1] Technically, there'd still be a difference, but only if you mess
> with the function's dunders. So for safety, probably the compiler
> should never optimize it.
> _______________________________________________
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/K2UD46MJCCWDCYULAQJASXL2Y6JUOG2B/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-- 
Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/PUZCEIQ2TX2HOJWYP2DHJAFX4KWO7EWC/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to