[New-bugs-announce] [issue32775] fnmatch.translate() can produce a pattern which emits a nested set warning
Tim Graham
report at bugs.python.org
Mon Feb 5 15:07:22 EST 2018
New submission from Tim Graham <timograham at gmail.com>:
As discussed in issue30349#msg311684, fnmatch.translate() can produce a pattern which emits a nested set warning:
>>> import fnmatch, re
>>> re.compile(fnmatch.translate('[[]foo]'))
__main__:1: FutureWarning: Possible nested set at position 10
re.compile('(?s:\\(.s:[[]foo\\\\\\]\\)\\\\Z)\\Z')
----------
components: Library (Lib)
messages: 311687
nosy: Tim.Graham, serhiy.storchaka
priority: normal
severity: normal
status: open
title: fnmatch.translate() can produce a pattern which emits a nested set warning
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32775>
_______________________________________
More information about the New-bugs-announce
mailing list