[issue25734] fnmatch regular expression can be improved

2015-11-25 Thread R. David Murray
R. David Murray added the comment: That would be a backward incompatible behavior change. The patterns are designed to be used on single filenames, not on newline separated filenames. -- nosy: +r.david.murray resolution: -> rejected stage: -> resolved status: open -> closed

[issue25734] fnmatch regular expression can be improved

2015-11-25 Thread Alberto Galera
New submission from Alberto Galera: # https://hg.python.org/cpython/file/tip/Lib/fnmatch.py fnmatch reviewing the code I've noticed that the outcome of the regular expression all returns generated in the first result l97: res = res + '.*' to: res = res + '.*?' l100: