56 Commits (41bade96a4d1dcd35bbba79c2eabe052d02756a4)

Author SHA1 Message Date
Alexander Belopolsky 4988d7a375 PEP 8 conformance: class_ -> cls 16 years ago
Alexander Belopolsky f568218e7e Issue #6641: Original commit for this issue, r82053, introduced a 16 years ago
Alexander Belopolsky ca94f55758 Issue #6641: The datetime.strptime method now supports the %z directive. 16 years ago
Brett Cannon 71095ea4ce The message for the exception when time.strptime was passed something other 17 years ago
Brett Cannon 7f6b4f86e3 Make sure time.strptime only accepts strings (and document the fact like 17 years ago
Antoine Pitrou fd036451bf #2834: Change re module semantics, so that str and bytes mixing is forbidden, 18 years ago
Georg Brandl 2067bfdf25 Rename thread to _thread and dummy_thread to _dummy_thread. Issue #2875. 18 years ago
Christian Heimes dd15f6c315 Merged revisions 61239-61249,61252-61257,61260-61264,61269-61275,61278-61279,61285-61286,61288-61290,61298,61303-61305,61312-61314,61317,61329,61332,61344,61350-61351,61363-61376,61378-61379,61382-61383,61387-61388,61392,61395-61396,61402-61403 via svnmerge from 18 years ago
Guido van Rossum cd16bf6404 Merged revisions 55817-55961 via svnmerge from 19 years ago
Guido van Rossum d8faa3654c Merged revisions 53952-54987 via svnmerge from 19 years ago
Guido van Rossum cc2b016125 - PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone; 19 years ago
Thomas Wouters 9fe394c1be Merged revisions 53538-53622 via svnmerge from 19 years ago
Guido van Rossum b940e113bf SF patch 1631942 by Collin Winter: 19 years ago
Thomas Wouters 89f507fe8c Four months of trunk changes (including a few releases...) 19 years ago
Brett Cannon 5d0bf9446b Change time.strptime() to raise ValueError whenever there is an error in the 21 years ago
Brett Cannon a783d06f8c Clear out the regex cache when the TimeRE cache is invalidated by a locale 21 years ago
Brett Cannon f1b2ba6aa1 Fix logic error introduced in last commit. Also add a comment to explain what 21 years ago
Brett Cannon 6e372d1422 fix bug where str.find() was being misused where __contains__ should have been 21 years ago
Brett Cannon 14adbe77b5 Fix bug of implementation of algorithm for calculating the date from year, week 22 years ago
Brett Cannon 8dc25ad6f2 Fix comments. 22 years ago
Brett Cannon 8abcc5d533 Add support for %U and %W to contribute to calculating the date when the year 22 years ago
Brett Cannon ffa5cf9eae Fix bug introduced by the previous patch by changing TimeRE.__seqToRe() to 22 years ago
Brett Cannon f7948c25a2 Convert a listcomp to a gencomp (was already editing code). 22 years ago
Brett Cannon 4f35c71543 Locale data that contains regex metacharacters are now properly escaped. 22 years ago
Raymond Hettinger bac788a3cd Replace str.find()!=1 with the more readable "in" operator. 22 years ago
Brett Cannon 8172ac3d15 Deal with possible case of having time.tzname[1] containing UTC or GMT. 22 years ago
Tim Peters 58eb11cf62 Whitespace normalization. 22 years ago
Raymond Hettinger a690a9967e * Migrate set() and frozenset() from the sandbox. 23 years ago
Raymond Hettinger 6b59f5f3fd Let library modules use the new keyword arguments for list.sort(). 23 years ago
Brett Cannon 953c6f508b Make sure parentheses are escaped when used in the format string. 23 years ago
Brett Cannon 5187a3bcdb Fix handling of bad locale setup where time.tzname[0] == time.tzname[1] and 23 years ago
Brett Cannon f5c96fb74d Fix docstring in LocaleTime. 23 years ago
Brett Cannon 474335ce17 Re-introduce caching of TimeRE and compiled regexes with added thread-safety. 23 years ago
Brett Cannon 2c24d42d32 Fixes bug of having default argument for TimeRE's __init__ that caused the 23 years ago
Brett Cannon 175ddb5b30 Remove caching of TimeRE (and thus LocaleTime) instance. Error was being 23 years ago
Raymond Hettinger 4a6302b6fe SF 748201: time.strptime() should display format and date on error 23 years ago
Brett Cannon cde2200ff2 Fixes bug of timezone value being left as -1 when ``time.tzname[0] == 23 years ago
Neal Norwitz 77290f25f3 use == like all the other conditionals 23 years ago
Brett Cannon abe8eb0a30 Call time.tzset (if available) just before calculating possible timezones from time.tzname. 23 years ago
Brett Cannon 172d9ef47e Beefed up timezone support. UTC and GMT are now always recognized timezones 23 years ago
Brett Cannon 2b6dfec1cc Raise a ValueError when there is data that was not covered in the format string. Done to match behavior of pre-existing C-based strptime implementations. 23 years ago
Tim Peters 0eadaac7dc Whitespace normalization. 23 years ago
Brett Cannon 1e91d8eb03 Make _strptime escape regex syntax in format string to prevent use in internal regex. 23 years ago
Raymond Hettinger 1fdb633530 SF patch #691928: Use datetime in _strptime 23 years ago
Tim Peters 2c60f7a136 Whitespace normalization. 23 years ago
Tim Peters 80cebc16aa SF patch 670194: Performance enhancement for _strptime.py. 23 years ago
Tim Peters 08e54270f2 SF patch 670012: Compatibility changes for _strptime.py. 23 years ago
Jack Jansen 62fe75509c Checking in Brett Cannon's patch #662053, which fixes bug #661354. 23 years ago
Neal Norwitz 5efc50d8af Fix SF #658820, regex fixes for _strptime (Brett Cannon) 23 years ago
Neal Norwitz 490602d629 Fix julian day problem with strptime. Note: XXX about using 0, suggestions? 23 years ago