[issue17572] strptime exception context

2013-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3203e083aa7b by Ezio Melotti in branch '3.3': #17572: Avoid chained exceptions while passing bad directives to time.strptime(). Initial patch by Claudiu Popa. http://hg.python.org/cpython/rev/3203e083aa7b New changeset d408c9bd4bf7 by Ezio

[issue17572] strptime exception context

2013-04-03 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: - ezio.melotti resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue17572] strptime exception context

2013-03-29 Thread Claudiu.Popa
New submission from Claudiu.Popa: When using a directive that is not recognised by time.strptime, the following occurs in Python 3: time.strptime(, %D) Traceback (most recent call last): File C:\Python33\lib\_strptime.py, line 320, in _strptime format_regex =

[issue17572] strptime exception context

2013-03-29 Thread Ezio Melotti
Ezio Melotti added the comment: The fix LGTM. The attached patch tweaks a bit your test and adds another one to check _strptime directly. -- nosy: +ezio.melotti stage: - commit review Added file: http://bugs.python.org/file29605/issue17572.diff