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 vstinner
Recipients methane, serhiy.storchaka, vstinner
Date 2017-10-03.12:27:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507033655.4.0.213398074469.issue31671@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, Python already accepts floating point numbers:

haypo@selma$ ./python
Python 3.7.0a1+ (heads/master-dirty:efb560eee2, Oct  3 2017, 12:15:58) 
[GCC 7.2.1 20170915 (Red Hat 7.2.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> re.compile("[a-z]", flags=re.I).match("A")
<_sre.SRE_Match object; span=(0, 1), match='A'>
>>> re.I
<RegexFlag.IGNORECASE: 2>
>>> re.compile("[a-z]", flags=2).match("A")
<_sre.SRE_Match object; span=(0, 1), match='A'>

# and now a float
>>> re.compile("[a-z]", flags=2.0).match("A")
<_sre.SRE_Match object; span=(0, 1), match='A'>
History
Date User Action Args
2017-10-03 12:27:35vstinnersetrecipients: + vstinner, methane, serhiy.storchaka
2017-10-03 12:27:35vstinnersetmessageid: <1507033655.4.0.213398074469.issue31671@psf.upfronthosting.co.za>
2017-10-03 12:27:35vstinnerlinkissue31671 messages
2017-10-03 12:27:35vstinnercreate