[issue19081] zipimport behaves badly when the zip file changes while the process is running

2020-04-17 Thread Philip Lee
Philip Lee added the comment: and I got ZipImportError: bad local file header -- ___ Python tracker <https://bugs.python.org/issue19081> ___ ___ Python-bug

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2020-04-17 Thread Philip Lee
Philip Lee added the comment: The issue still remains in Python 3.8. -- nosy: +iMath versions: +Python 3.8 -Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue19

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2020-03-01 Thread Philip Lee
Philip Lee added the comment: To reproduce the reported issue, one could also test with ffmpeg.exe -- ___ Python tracker <https://bugs.python.org/issue30

[issue34221] Any plans to combine collections.OrderedDict with dict

2018-07-27 Thread Philip Lee
Philip Lee added the comment: What about my last suggestion : it would be better to move "Dictionaries preserve insertion order" part at the end of the doc of https://docs.python.org/3/library/stdtypes.html#dict up below the doc for class dict(**kwarg) class dict(mapping, **kwarg)

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2017-04-16 Thread Philip Lee
New submission from Philip Lee: First, It is nearly useless for the command prompt to pop up during the running time of subprocess.Popen with shell=False. Second, the popping up command prompt would interrupt users and do bad to user experience of GUI applications. Third, I found QProcess

[issue30079] Explain why it is recommended to pass args as a string rather than as a sequence If shell is True

2017-04-15 Thread Philip Lee
New submission from Philip Lee: The doc here https://docs.python.org/3/library/subprocess.html#subprocess.Popen says : "If shell is True, it is recommended to pass args as a string rather than as a sequence." but without explain why ? Please add the explanation ! whil

[issue30023] Example code becomes invalid for "Why do lambdas defined in a loop with different values all return the same result?"

2017-04-08 Thread Philip Lee
New submission from Philip Lee: There example code here becomes invalid https://docs.python.org/3/faq/programming.html#why-do-lambdas-defined-in-a-loop-with-different-values-all-return-the-same-result >>> squares = [] >>> for x in range(5): squares.a

[issue29074] repr doesn't give full result for this re math result

2016-12-26 Thread Philip Lee
Philip Lee added the comment: I think so, the current behavior is misleading 在2016年12月27 00时08分, "R. David Murray"写道: R. David Murray added the comment: If it is truncated, should it end with '...' or [...]? -- nosy: +r.david.murray __

[issue27682] Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

2016-08-08 Thread Philip Lee
Philip Lee added the comment: I use the following django view function also produce the same exception def sendFiles(request): fileName = request.GET['fileName'] pathToFile = os.path.join(filesDir, fileName) response = FileResponse(open(pathToFile, 'rb'))

[issue23039] File name restriction on Windows

2014-12-12 Thread Philip Lee
New submission from Philip Lee: when using open(filename, 'w') on Windows , File names are not allowed to contain any characters in \/:*?"<>| , however open(filename, 'w') doesn't throw any exceptions when the file name contains these characters . I thi