Hi all!
Since that the decorator syntax is upon us, I think it would be good if
atexit.register() was returning the function passed as argument. This
simple change to the library would solve a problem with the use of
atexit.register as a decorator (and I can't think of any use case where
this cha
On Nov 16, 11:38 am, Carsten Haese <[EMAIL PROTECTED]> wrote:
> On Thu, 2006-11-16 at 08:03 -0800, [EMAIL PROTECTED] wrote:
> > @atexit.register
> > def goodbye():
> > print "Goodbye, terminating..."
>
> > However, there is one fundamental problem with this: atexit.register()
> > return
Hi all,
While trying to use simplejson under Python 2.4.3 I have been
investigating the handling of special floating point values and found
that both Python 2.4 and 2.5 return False when comparing a NaN with
itself. Although surprising, I imagine it could also be correct since
NaN is not a numb
On Nov 29, 12:53 pm, [EMAIL PROTECTED] wrote:
> Hi all,
>
> While trying to use simplejson under Python 2.4.3 I have been
> investigating the handling of special floating point values and found
> that both Python 2.4 and 2.5 return False when comparing a NaN with
> itself. Although surprising,
On Nov 29, 1:11 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > While trying to use simplejson under Python 2.4.3 I have been
> > investigating the handling of special floating point valuesnote that JSON
> > doesn't support non-numeric floating point values, as can
>