[Zope] The Honest Scoop on Zope

John Goerzen jgoerzen@complete.org
09 Sep 1999 09:41:48 -0500


Terrel Shumway <tshumway@epicor.com> writes:

> The Python tutorial may help with things like embedding quotes and "casting"
> 
> (Python is dynamically typed: casting is a foreign concept).
>  http://www.python.org/doc

OK, but not quite so in Zope.  For instance, when I want to compare a
date to, say, January 1, 1980, I can't just use <=.  I must first use
the (undocumented) _.DateTime to convert '1980/01/01' to a Date
object.  THEN I can use <=.

Incidentally, how can I overload <= to work with my own objects?

-- John

-- 
John Goerzen   Linux, Unix consulting & programming   jgoerzen@complete.org |
Developer, Debian GNU/Linux (Free powerful OS upgrade)       www.debian.org |
----------------------------------------------------------------------------+
The 139,134,919th prime number is 2,884,111,709.