This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sil
Recipients sil
Date 2008-11-25.16:36:39
SpamBayes Score 1.626404e-09
Marked as misclassified No
Message-id <1227631002.53.0.398407086497.issue4430@psf.upfronthosting.co.za>
In-reply-to
Content
$ python -c "import time; print time.strptime('25/11/2008
25/11/2008','%d/%m/%y %d/%m/%y')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.5/_strptime.py", line 311, in strptime
    format_regex = _TimeRE_cache.compile(format)
  File "/usr/lib/python2.5/_strptime.py", line 267, in compile
    return re_compile(self.pattern(format), IGNORECASE)
  File "/usr/lib/python2.5/re.py", line 188, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.5/re.py", line 241, in _compile
    raise error, v # invalid expression
sre_constants.error: redefinition of group name 'd' as group 4; was group 1

If a format directive is repeated in time.strptime's format string, it
throws an error and should not do so. Subversion, for example, repeats
date parts in its svn log output ("2008-09-26 16:20:59 +0100 (Fri, 26
Sep 2008)"), which repeats both %d (day) and %y (year).
History
Date User Action Args
2008-11-25 16:36:42silsetrecipients: + sil
2008-11-25 16:36:42silsetmessageid: <1227631002.53.0.398407086497.issue4430@psf.upfronthosting.co.za>
2008-11-25 16:36:41sillinkissue4430 messages
2008-11-25 16:36:39silcreate