Ralf Schmitt [EMAIL PROTECTED] added the comment:
Skip, thanks for handling this.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2014
__
___
Python-bugs-list mailing list
Ralf Schmitt [EMAIL PROTECTED] added the comment:
guido says it's ok to fix the issue in xmlrpclib only:
http://mail.python.org/pipermail/python-dev/2008-April/078396.html
I'm also attaching a dummy.diff in order to have a patch keyword...
If someone is willing to commit this, I'll check if it
Skip Montanaro [EMAIL PROTECTED] added the comment:
working on it
--
assignee: - skip.montanaro
nosy: +skip.montanaro
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2014
__
Skip Montanaro [EMAIL PROTECTED] added the comment:
Checked in on trunk as r62378. Will let the normal 3.0 merge process
suck it over to the py3k branch.
--
resolution: - accepted
status: open - closed
__
Tracker [EMAIL PROTECTED]
Ralf Schmitt added the comment:
Attaching an updated version of the patch against trunk revision 61011.
Added file: http://bugs.python.org/file9520/xmlrpc_date_before_1900_r61011.txt
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2014
Ralf Schmitt added the comment:
http://bugs.python.org/issue1777412 describes the cause of this issue
(i.e. strftime not being able to handle years before 1900).
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2014
__
Christian Heimes added the comment:
Does your patch also work on systems which don't allow negative values
for time_t?
--
keywords: +patch
nosy: +tiran
priority: - normal
type: behavior - rfe
versions: +Python 3.0 -Python 2.5
__
Tracker [EMAIL
Ralf Schmitt added the comment:
Well, all it basically does is changing calls to obj.strftime to a
custom string formatting function (where obj is a datetime.datetime,
datetime.date or datetime.time). These strftime calls are made during
object marshalling. So, all the objects to be marshalled
New submission from Ralf Schmitt:
xmlrpclib uses datetime.strftime which cannot handle dates before 1900.
this patch adds a custom date formatting function, which does not have
this restriction. It also contains 2 additional unit tests, which both
fail with the unpatched version.
--