]> granicus.if.org Git - python/commit
Re-introduce caching of TimeRE and compiled regexes with added thread-safety.
authorBrett Cannon <bcannon@gmail.com>
Tue, 5 Aug 2003 04:02:49 +0000 (04:02 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 5 Aug 2003 04:02:49 +0000 (04:02 +0000)
commit474335ce17c120eb74a17c5c4fd138694c535f77
tree81040edff140f8b190493c63c426915371548692
parent8ab27dfa135dc1f3f3f156db2ae5e13c46eeb5a4
Re-introduce caching of TimeRE and compiled regexes with added thread-safety.
Also remove now unnecessary property attributes for thread safety
(no longer have lazy attributes) and code simplicity reasons.

Timezone storage has been reworked to be simpler and more flexible.  All values
in LocaleTime instances are lower-cased.  This is all done to simplify the
module.

The module now assumes nothing beyond the strptime function will be exposed for
general use beyond providing functionality for strptime.
Lib/_strptime.py
Lib/test/test_strptime.py