[ZCM] [ZC] 951/ 2 Resolve "DateTime(None) == None, AttributeError _t"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Tue Oct 21 09:11:39 EDT 2003


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

==============================================================
= Resolve - Entry #2 by ajung on Oct 21, 2003 9:11 am

 Status: Pending => Resolved

now raising a proper DateTime.SyntaxError exception.
Fixed for 2.7/HEAD.

-aj
________________________________________
= 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.
==============================================================




More information about the Zope-Collector-Monitor mailing list