A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-July/046081.html below:

[Python-Dev] More joy with test_strptime

[Python-Dev] More joy with test_strptime [Python-Dev] More joy with test_strptimeBrett C. bac at OCF.Berkeley.EDU
Mon Jul 12 20:54:19 CEST 2004
Tim Peters wrote:

> [Brett]
> 
>>Nuts.  Some code somewhere must be importing strptime through time and
>>that is holding a reference to the original copy of 'time' that was
>>imported and then when test_site deletes sys.modules["time"]
>>test_strptime imports 'time' again since it can't find a reference and
>>uses that to monkey-patch which _strptime itself never sees since it
>>holds the reference to the original imported 'time'.
> 
> 
> I can't make time to respond now, but I wanted to make sure to get
> another copy of that explanation into the archives for posterity
> <wink>.

=)  Didn't realize I managed to fit that all into a single sentence. 
How you guys can stand to allow me to continue to write the Summaries I 
sometimes question when instances like this come about.

-Brett
More information about the Python-Dev 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