Re: [Zope] Weird interaction between int() and DateTime.timeTime

2000-05-25 Thread andres
On Thu, May 25, 2000 at 06:48:51PM +0100, Chris Withers wrote: "Jeff K. Hoffman" wrote: Python 1.5.2 (#3, Mar 8 2000, 16:34:52) [C] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam f = 1. f 2.0 int(f) 1 the int()

Re: [Zope] Weird interaction between int() and DateTime.timeTime

2000-05-25 Thread Chris Withers
[EMAIL PROTECTED] wrote: From the python int doc string: print int.__doc__ int(x) - integer Convert a string or number to an integer, if possible. A floating point argument will be truncated towards zero. I _always_ get bitten by this :( Sorry for my igorance, Chris

Re: [Zope] Weird interaction between int() and DateTime.timeTime

2000-05-25 Thread Jeff K. Hoffman
On Thu, 25 May 2000, Chris Withers wrote: "Jeff K. Hoffman" wrote: Python 1.5.2 (#3, Mar 8 2000, 16:34:52) [C] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam f = 1. f 2.0 int(f) 1 the int() function takes a