I don't remember where, but I remember that I also saw things like "str=str, len=len, ...". So you keep the same name, but you use fast local lookups instead of slow builtin lookups.
Victor 2013/10/2 Antoine Pitrou <[email protected]>: > On Wed, 2 Oct 2013 18:16:48 +0200 (CEST) > serhiy.storchaka <[email protected]> wrote: >> http://hg.python.org/cpython/rev/d48ac94e365f >> changeset: 85931:d48ac94e365f >> user: Serhiy Storchaka <[email protected]> >> date: Wed Oct 02 19:15:54 2013 +0300 >> summary: >> Use cached builtins. > > What's the point? I don't think it's a good idea to uglify the code if > there isn't a clear benefit. > > Regards > > Antoine. > > > _______________________________________________ > Python-Dev mailing list > [email protected] > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com _______________________________________________ Python-Dev mailing list [email protected] https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
