[issue28905] re.sub appears not to check count optional argument for integerness
Danny Yoo
report at bugs.python.org
Thu Dec 8 12:11:37 EST 2016
Danny Yoo added the comment:
Ugh. I suddenly realize that this is complicated by the fact that flag values are themselves represented as integers, and Python's type system isn't rich enough to label flag values as a distinct type for the purposes.
It may be worthwhile to add a warning in the documentation about this, as it is an easy mistake to make.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28905>
_______________________________________
More information about the Python-bugs-list
mailing list