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/2003-July/037225.html below:

[Python-Dev] Re: [Python-checkins] python/dist/src/Misc NEWS,1.826,1.827

[Python-Dev] Re: [Python-checkins] python/dist/src/Misc NEWS,1.826,1.827Raymond Hettinger python@rcn.com
Fri, 25 Jul 2003 08:11:06 -0400
> >>+ - Removed caching of TimeRE (and thus LocaleTime) in _strptime.py to
> >>+   fix a locale related bug in the test suite.  Although another patch
> >>+   was needed to actually fix the problem, the cache code was not
> >>+   restored.
> > 
> > 
> > FWIW, I would feel safer if the cache code were restored.
> > That code has been around for while and the one defect
> > is known.  In contrast, the "ripping it out" touched a lot
> > of code and has not been thoroughly reviewed.
> > 
> 
> One argument for not putting it back: I realized that it is not totally 
> thread-safe because of the laziness of the figuring out the locale info 
> (although switching the locale while running threads you are asking for 
> trouble).  While there is no specific thread-safety claims, I would 
> rather work the code to make it thread-safe before re-introducing caching.

Besides being too late now, thread safety is another 
good reason to keep it out.


Raymond

#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################



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