Author ezio.melotti
Recipients ced, docs@python, ezio.melotti, georg.brandl, mark.dickinson, skrah, terry.reedy
Date 2013-03-16.05:16:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363410978.93.0.0550918690727.issue13918@psf.upfronthosting.co.za>
In-reply-to
Content
The function was introduced by Guido in f5b55311e79d.

I think it would have been better if atof had another name (e.g. _atof) and that atof and atoi were implemented as:

def atof(str):
    return _atof(str, float)
def atoi(str):
    return _atof(str, int)

Even better would have been to have _atof return the string without applying any function, and let e.g. atoi return int(_atof(str)).  This could have been documented publicly and used to build other functions.
However it's probably too late for such refactoring.
History
Date User Action Args
2013-03-16 05:16:18ezio.melottisetrecipients: + ezio.melotti, georg.brandl, terry.reedy, mark.dickinson, ced, skrah, docs@python
2013-03-16 05:16:18ezio.melottisetmessageid: <1363410978.93.0.0550918690727.issue13918@psf.upfronthosting.co.za>
2013-03-16 05:16:18ezio.melottilinkissue13918 messages
2013-03-16 05:16:18ezio.melotticreate