Serhiy Storchaka <[email protected]> added the comment:
It is easy to fix sets starting with '['. It is more hard to fix sets with
doubled '-', '&', '|' or '~'.
>>> fnmatch.fnmatch('#', '[#--]')
/home/serhiy/py/cpython/Lib/fnmatch.py:46: FutureWarning: Possible set
difference at position 6
return re.compile(res).match
True
----------
assignee: -> serhiy.storchaka
priority: normal -> high
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue32775>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com