None is negative?
Thomas Jollans
thomas at jollans.com
Wed Aug 4 16:17:28 EDT 2010
More information about the Python-list mailing list
Wed Aug 4 16:17:28 EDT 2010
- Previous message (by thread): None is negative?
- Next message (by thread): Air force one shoes <free shipping paypal payment>( http://www.brandtrade99.com/
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 08/03/2010 10:17 PM, wheres pythonmonks wrote: > I did the google search... I must be blind as I don't see any hits... > > None is negative in Python? (v2.6) > > http://www.google.com/search?ie=UTF-8&q=%22none+is+negative%22+python > >>>> if None < -9999999.99: print "hi" > > hi >>>> > >>>> if -9999999 > None: print "hi" > > hi >>>> > > Is there a way to have the comparison raise an exception? > > W Not only was it negative, it was, in fact: >>> None < float('-Inf') True
- Previous message (by thread): None is negative?
- Next message (by thread): Air force one shoes <free shipping paypal payment>( http://www.brandtrade99.com/
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list