[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-07-19 Thread Juarez Bochi
Juarez Bochi added the comment: I have updated the patches since they were not applying cleanly and included a pure Python implementation that was missing. It has the same issues that were mentioned on msg107402. Do you have any suggestions? I'm planning to block the formats that ar

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-07-20 Thread Juarez Bochi
Juarez Bochi added the comment: I've updated my patch with the tests for datetime.time.strptime that were missing and also its pure Python implementation. The previous diff also had some issues that I've fixed now: duplicated datetime.strptime method definition in c and the p

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-07-20 Thread Juarez Bochi
Changes by Juarez Bochi : Removed file: http://bugs.python.org/file26440/issue1100942_pure.diff ___ Python tracker <http://bugs.python.org/issue1100942> ___ ___ Python-bug

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-07-20 Thread Juarez Bochi
Juarez Bochi added the comment: Sorry. I updated my patch again to fix the exception message for time.strptime in the pure Python version. -- Added file: http://bugs.python.org/file26446/issue1100942_pure.diff ___ Python tracker <h

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-07-20 Thread Juarez Bochi
Changes by Juarez Bochi : Removed file: http://bugs.python.org/file26445/issue1100942_pure.diff ___ Python tracker <http://bugs.python.org/issue1100942> ___ ___ Python-bug

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-07-20 Thread Juarez Bochi
Juarez Bochi added the comment: I've updated the patch based on ezio.melotti and berkerpeksag reviews (thanks). It's still missing the modifications proposed on msg107402. -- Added file: http://bugs.python.org/file26452/issue1100942_