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:40:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Oh, right. Strange.

>>> re.compile("e", flags=2.0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/haypo/prog/python/master/Lib/", line 240, in compile
    return _compile(pattern, flags)
  File "/home/haypo/prog/python/master/Lib/", line 288, in _compile
    p = sre_compile.compile(pattern, flags)
  File "/home/haypo/prog/python/master/Lib/", line 747, in compile
    p = sre_parse.parse(p, flags)
  File "/home/haypo/prog/python/master/Lib/", line 890, in parse
    p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
TypeError: unsupported operand type(s) for &: 'float' and 'int'
Date User Action Args
2017-10-03 12:40:12vstinnersetrecipients: + vstinner, methane, serhiy.storchaka
2017-10-03 12:40:12vstinnersetmessageid: <>
2017-10-03 12:40:12vstinnerlinkissue31671 messages
2017-10-03 12:40:12vstinnercreate