[ZCM] [ZC] 951/ 1 Request "DateTime(None) == None, AttributeError _t"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin@zope.org
Wed, 18 Jun 2003 14:18:10 -0400


Issue #951 Update (Request) "DateTime(None) == None, AttributeError _t"
 Status Pending, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/951

==============================================================
= Request - Entry #1 by Anonymous User on Jun 18, 2003 2:18 pm

There seems to be a problem in the DateTime module.  When,

DateTime(None) == None

or an equivalent is evaluated "AttributeError, _t" results which is less than helpful to say the least.  It appears that DateTime is actually trying to evaluate the above and chokes on it somewhere in _upgrade_old() and __getattr__().  Should probably be caught instead since, as was my case, one probably does not intend to evaluate such a statement.
==============================================================