[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_pure2.diff

___
Python tracker 
<http://bugs.python.org/issue1100942>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
<http://bugs.python.org/issue1100942>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 pure python docstring state 
that date.strpdate was a method and not a constructor.

--
Added file: http://bugs.python.org/file26445/issue1100942_pure.diff

___
Python tracker 
<http://bugs.python.org/issue1100942>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 are not 
allowed and raise Exceptions like suggested before:

>>> date.strptime('01', '%M')
...
"'%M' is not valid in date format specification."

--
nosy: +Juarez.Bochi
Added file: http://bugs.python.org/file26440/issue1100942_pure.diff

___
Python tracker 
<http://bugs.python.org/issue1100942>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com