<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_datetime.py, branch v2.4b2</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.4b2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_datetime.py?h=v2.4b2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-09-16T01:30:50Z</updated>
<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>
<entry>
<title>datetime.datetime and datetime.time can now be subclassed in Python.  Brr.</title>
<updated>2003-05-17T05:55:19Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-05-17T05:55:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a98924a063b6c8f94f7a03c78bd83e6131954381'/>
<id>urn:sha1:a98924a063b6c8f94f7a03c78bd83e6131954381</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test_subclass_date():  Beefed this up, to check that new instance</title>
<updated>2003-05-17T02:25:20Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-05-17T02:25:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=eb1a496039d39135188bbee20e348e796c4807ea'/>
<id>urn:sha1:eb1a496039d39135188bbee20e348e796c4807ea</id>
<content type='text'>
attributes and methods work, that new arguments can be passed to the
constructor, and that inherited methods and attrs still work.  Added
XXX comments about what to do when datetime becomes usably subclassable
too (it's not yet).
</content>
</entry>
<entry>
<title>The date class is now properly subclassable.  (SF bug #720908)</title>
<updated>2003-04-14T22:01:58Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2003-04-14T22:01:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8b7a9a38c66aff5633255b63be639ee8592f180b'/>
<id>urn:sha1:8b7a9a38c66aff5633255b63be639ee8592f180b</id>
<content type='text'>
(This is only the tip of the iceberg; the time and datetime classes
need the same treatment.)
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2003-02-19T02:35:07Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-02-19T02:35:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f2715e076435b74638acb81512c2ee014f75aea2'/>
<id>urn:sha1:f2715e076435b74638acb81512c2ee014f75aea2</id>
<content type='text'>
</content>
</entry>
</feed>
