[issue42453] utf-8 codec error when pip uninstalling a package which has files containing unicode filename on Windows

2020-11-24 Thread
赵豪杰 <1292756...@qq.com> added the comment: got it. -- ___ Python tracker <https://bugs.python.org/issue42453> ___ ___ Python-bugs-list mailing list Unsubsc

[issue42453] utf-8 codec error when pip uninstalling a package which has files containing unicode filename on Windows

2020-11-24 Thread
New submission from 赵豪杰 <1292756...@qq.com>: When using `pip install package_name` installing a package, it will generate a `installed-files.txt` file, which records the file that the package contains. When updating or uninstalling the package, pip will need to read the `installed-fil

[issue42448] re.findall have different match result against re.search or re.sub

2020-11-23 Thread
赵豪杰 <1292756...@qq.com> added the comment: AhAh, got it, I misunderstood the usage, the findall returns tuple of groups the expression set. Thanks @serhiy.storchaka @rhettinger -- resolution: -> not a bug stage: -> resolved status: op

[issue42448] re.findall have different match result against re.search or re.sub

2020-11-23 Thread
New submission from 赵豪杰 <1292756...@qq.com>: ``` >>> import re >>> text = '121212 and 121212' >>> pattern = '(12)+' >>> print(re.findall(pattern, text)) ['12', '12'] >>> >>> >>> print(re.search(pattern, text)) >&