[issue37457] python3.7 re.split() module bug

2019-06-30 Thread SilentGhost
Change by SilentGhost : -- resolution: -> not a bug stage: -> resolved status: open -> closed type: performance -> behavior ___ Python tracker ___ ___

[issue37457] python3.7 re.split() module bug

2019-06-30 Thread Ma Lin
Ma Lin added the comment: Try this pattern: >>> re.split(r"\s+", text) ['Some', 'File', 'Num10', 'example.txt'] IMO 3.7 behaivor is more reasonable, it fixes a bug (issue25054). -- nosy: +Ma Lin ___ Python tracker

[issue37457] python3.7 re.split() module bug

2019-06-30 Thread Dami Jeong
New submission from Dami Jeong : text = "Some File Num10 example.txt" re.split("\s*", text) The result of the regular expression in version 3.7 changed from the version 3.6 result python3.6 version result : ['Some', 'File', 'Num10', 'example.txt'] python3.7 version result : ['', 'S', 'o', 'm