shanmbic added the comment:
I modified the "format_utcoffset" function in "_datetimemodule.c", to accept
one more parameter "secondsrequired" . It is a boolean variable (PyObject) ,
which when set to true, the function will return the offset formatted as
&quo
shanmbic added the comment:
Yeah , I agree that including '%:::z' might not be necessary at all . Including
'%:z' and '%::z' format specifiers will give an upper edge to Python. Although
, if not going with '%::z' or seconds offset, for now only
New submission from shanmbic:
The test for datetime module keeps failing.
test test_datetime failed -- Traceback (most recent call last):
File "/home/shantanu/cpython/Lib/test/datetimetester.py", line 215, in
test_issue23600
self.assertEqual(t - t.utcoffset(), u)
AssertionEr
shanmbic added the comment:
@belopolsky - Yeah, I recompiled all the C modules successfully, still it fails
the test. I am running Ubuntu 14.10
--
___
Python tracker
<http://bugs.python.org/issue25
shanmbic added the comment:
make distclean worked. I guess too many reverts in hg caused some issue. :)
--
___
Python tracker
<http://bugs.python.org/issue25