A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/327255.html below:

Find day of week from month and year

Find day of week from month and year Find day of week from month and yearPeter Hansen peter at engcorp.com
Sat Sep 3 11:40:29 EDT 2005
Paul Rubin wrote:
> Peter Hansen <peter at engcorp.com> writes:
> 
>>(And, if I were "optimizing", I would of course dispense with the
>>dynamic creation of the static table upon every execution of
>>expiration(), and move it outside the function.)
> 
> Replacing it with a tuple might be enough for that.

You're right, and in fact that would actually be even faster since then 
it's a LOAD_CONST instead of a LOAD_GLOBAL.

-Peter

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4