<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_datetime.py, branch v2.5a2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_datetime.py?h=v2.5a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_datetime.py?h=v2.5a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-03-20T01:58:39Z</updated>
<entry>
<title>Fix problem spotted by Coverity that occurs if tzinfo.tzname().replace()</title>
<updated>2006-03-20T01:58:39Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-03-20T01:58:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d5b0c9b87edca68cd31ed61d0c143d9d4160c109'/>
<id>urn:sha1:d5b0c9b87edca68cd31ed61d0c143d9d4160c109</id>
<content type='text'>
returns a non-string when converting %Z.

Will backport.
</content>
</entry>
<entry>
<title>similar to SF bug 847019: a quick check in the time() constructor, which</title>
<updated>2005-11-07T07:15:48Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2005-11-07T07:15:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f4afb215262eabfbad00eeb7997b7e9522911eb3'/>
<id>urn:sha1:f4afb215262eabfbad00eeb7997b7e9522911eb3</id>
<content type='text'>
accepts strings only for unpickling reasons.  This check prevents the honest
mistake of passing a string like '2:59.0' to time() and getting an insane
object.
</content>
</entry>
<entry>
<title>Use descriptors.</title>
<updated>2005-01-16T00:25:31Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2005-01-16T00:25:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5a8a03784e56e5931b4cdb3946494f8d15c72bd2'/>
<id>urn:sha1:5a8a03784e56e5931b4cdb3946494f8d15c72bd2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add strptime() constructor to datetime class.  Thanks to Josh Spoerri for</title>
<updated>2005-01-13T04:12:31Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2005-01-13T04:12:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0af3ade6aa597a8871dbb62c312a8ab62e3cd309'/>
<id>urn:sha1:0af3ade6aa597a8871dbb62c312a8ab62e3cd309</id>
<content type='text'>
the changes.
</content>
</entry>
<entry>
<title>SF bug #1028306:  date-datetime comparison</title>
<updated>2004-09-16T01:30:50Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-09-16T01:30:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=528ca53b7455b3307cb0e3f097ae951191521ba8'/>
<id>urn:sha1:528ca53b7455b3307cb0e3f097ae951191521ba8</id>
<content type='text'>
Treat comparing a date to a datetime like a mixed-type comparison.
</content>
</entry>
<entry>
<title>Bug 975996:  Add _PyTime_DoubleToTimet to C API</title>
<updated>2004-06-20T02:50:16Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-06-20T02:50:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1b6f7a9057874ecd2793059f210de87837fe1911'/>
<id>urn:sha1:1b6f7a9057874ecd2793059f210de87837fe1911</id>
<content type='text'>
New include file timefuncs.h exports private API function
_PyTime_DoubleToTimet() from timemodule.c.  timemodule should export
some other functions too (look for painful bits in datetimemodule.c).

Added insane-argument checking to datetime's assorted fromtimestamp()
and utcfromtimestamp() methods.  Added insane-argument tests of these
to test_datetime, and insane-argument tests for ctime(), localtime()
and gmtime() to test_time.
</content>
</entry>
<entry>
<title>SF 952807:  Unpickling pickled instances of subclasses of datetime.date,</title>
<updated>2004-06-07T23:04:33Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-06-07T23:04:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=604c013ef2747e70fa5f3140eb36d9969606070e'/>
<id>urn:sha1:604c013ef2747e70fa5f3140eb36d9969606070e</id>
<content type='text'>
datetime.datetime and datetime.time could yield insane objects.  Thanks
to Jiwon Seo for the fix.

Bugfix candidate.  I'll backport it to 2.3.
</content>
</entry>
<entry>
<title>SF bug 847019 datetime.datetime initialization needs more strict checking</title>
<updated>2004-03-21T23:38:41Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-03-21T23:38:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3f60629242a13c9d5fb425294a33d22b7cf2b802'/>
<id>urn:sha1:3f60629242a13c9d5fb425294a33d22b7cf2b802</id>
<content type='text'>
It's possible to create insane datetime objects by using the constructor
"backdoor" inserted for fast unpickling.  Doing extensive range checking
would eliminate the backdoor's purpose (speed), but at least a little
checking can stop honest mistakes.

Bugfix candidate.
</content>
</entry>
<entry>
<title>SF bug #761337: datetime.strftime fails on trivial format string</title>
<updated>2003-06-27T08:14:17Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-06-27T08:14:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f69d9f6818225fc2613230c5dc11c181085db383'/>
<id>urn:sha1:f69d9f6818225fc2613230c5dc11c181085db383</id>
<content type='text'>
The interning of short strings violates the refcnt==1 assumption for
_PyString_Resize().

A simple fix is to boost the initial value of "totalnew" by 1.
Combined with an NULL argument to PyString_FromStringAndSize(),
this assures that resulting format string is not interned.
This will remain true even if the implementation of
PyString_FromStringAndSize() changes because only the uninitialized
strings that can be interned are those of zero length.

Added a test case.
</content>
</entry>
<entry>
<title>datetime.timedelta is now subclassable in Python.  The new test shows</title>
<updated>2003-05-17T15:57:00Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-05-17T15:57:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b0c854d6a747cd64ff7b23b8e9f9ef93ff8ac0ac'/>
<id>urn:sha1:b0c854d6a747cd64ff7b23b8e9f9ef93ff8ac0ac</id>
<content type='text'>
one good use:  a subclass adding a method to express the duration as
a number of hours (or minutes, or whatever else you want to add).  The
native breakdown into days+seconds+us is often clumsy.  Incidentally
moved a large chunk of object-initialization code closer to the top of
the file, to avoid worse forward-reference trickery.
</content>
</entry>
</feed>
