This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sbermeister
Recipients sbermeister
Date 2012-05-21.22:39:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337639941.66.0.830399497264.issue14875@psf.upfronthosting.co.za>
In-reply-to
Content
If you have a look at the file 'python/Lib/json/encode.py', on line 30 it says:

    # Assume this produces an infinity on all machines (probably not guaranteed)
    INFINITY = float('1e66666')
    FLOAT_REPR = repr

Isn't float('Inf') an accepted way of doing this? Should line 31 be INFINITY = float('Inf')?

Sasha
History
Date User Action Args
2012-05-21 22:39:01sbermeistersetrecipients: + sbermeister
2012-05-21 22:39:01sbermeistersetmessageid: <1337639941.66.0.830399497264.issue14875@psf.upfronthosting.co.za>
2012-05-21 22:39:01sbermeisterlinkissue14875 messages
2012-05-21 22:39:00sbermeistercreate