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 methane
Recipients barry, ethan.furman, gvanrossum, methane, rhettinger, serhiy.storchaka, vstinner
Date 2017-10-05.09:34:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
Instead caching type(flags), how about this?

  if not isinstance(flags, int):
      raise TypeError(f"flags must be int or RegexFlag, got {flags!r}")
  flags = int(flags)
History
Date User Action Args
2017-10-05 09:34:15methanesetrecipients: + methane, gvanrossum, barry, rhettinger, vstinner, ethan.furman, serhiy.storchaka
2017-10-05 09:34:15methanesetmessageid: <[email protected]>
2017-10-05 09:34:15methanelinkissue31671 messages
2017-10-05 09:34:15methanecreate