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 brett.cannon
Recipients brett.cannon, mrabarnett, sil
Date 2008-11-25.19:28:50
SpamBayes Score 7.6652896e-08
Marked as misclassified No
Message-id <1227641332.73.0.290394868408.issue4430@psf.upfronthosting.co.za>
In-reply-to
Content
The reason this occurs is that in order to have a portable and sane
implementation time.strptime() uses the re module to parse dates. The
issue here is that by specifying the same format twice the re module is
complaining that there are two named groups with the same name, leading
to a conflict.

About the only solution I can think of that doesn't require some massive
rewrite is to drop named group usage from time.strptime() and move to
positional groups by keeping track of the order of the formats and
zipping the format order and results together or something.

But I don't plan on doing that personally as that would require writing
a parser for format strings as well. But if someone manages to get it to
work I would be willing to review the patch.

Setting the priority to low as this is easy to work around since you
just use one set of date information instead of two which is redundant.
History
Date User Action Args
2008-11-25 19:28:52brett.cannonsetrecipients: + brett.cannon, mrabarnett, sil
2008-11-25 19:28:52brett.cannonsetmessageid: <1227641332.73.0.290394868408.issue4430@psf.upfronthosting.co.za>
2008-11-25 19:28:52brett.cannonlinkissue4430 messages
2008-11-25 19:28:50brett.cannoncreate