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 mathieui
Recipients eric.smith, ezio.melotti, flox, lemburg, mark.dickinson, mathieui, r.david.murray, rhettinger
Date 2013-03-01.22:15:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362176136.01.0.815888153412.issue17331@psf.upfronthosting.co.za>
In-reply-to
Content
I understand the reasoning behind the feature, and the will to be unicode-compliant, but I think this might still break a lot of code (though it may never be detected).

I understand that isdecimal() is the safe way, because anything that is a decimal (Nd) can be translated to an integer by int() ; however, what is the recommended way to get something that isnumeric() into an int?

unicodedata.normalize('NFKD', num) or unicodedata.normalize('NFKC', num)?

Maybe str could have a method that does this, or methods performing exclusively on ascii values?

Sorry for the noise, I did not find issue 10557 when I searched.
History
Date User Action Args
2013-03-01 22:15:36mathieuisetrecipients: + mathieui, lemburg, rhettinger, mark.dickinson, eric.smith, ezio.melotti, r.david.murray, flox
2013-03-01 22:15:36mathieuisetmessageid: <1362176136.01.0.815888153412.issue17331@psf.upfronthosting.co.za>
2013-03-01 22:15:35mathieuilinkissue17331 messages
2013-03-01 22:15:35mathieuicreate