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 skrah
Recipients ethan.furman, georg.brandl, mark.dickinson, petr.viktorin, serhiy.storchaka, skrah, yselivanov
Date 2016-02-13.11:39:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455363549.56.0.0184831422904.issue26331@psf.upfronthosting.co.za>
In-reply-to
Content
If the string conversions stay, may I suggest two functions:

  1) PyUnicode_NumericAsAscii()
  2) PyUnicode_NumericAsAsciiWS()

The first one eliminates only underscores, the second one both
underscores and leading/trailing whitespace.

Decimal must support both:

  https://hg.python.org/cpython/file/default/Modules/_decimal/_decimal.c#l1890
History
Date User Action Args
2016-02-13 11:39:09skrahsetrecipients: + skrah, georg.brandl, mark.dickinson, petr.viktorin, ethan.furman, serhiy.storchaka, yselivanov
2016-02-13 11:39:09skrahsetmessageid: <1455363549.56.0.0184831422904.issue26331@psf.upfronthosting.co.za>
2016-02-13 11:39:09skrahlinkissue26331 messages
2016-02-13 11:39:09skrahcreate