[issue29805] Pathlib.replace cannot move file to a different drive on Windows if filename different

2017-03-13 Thread Laurent Mazuel
Laurent Mazuel added the comment: Just to confirm, I was able to workaround it with Py3.6: # client_generated_path.replace(destination_folder) shutil.move(client_generated_path, destination_folder) It is reasonable to think about adding a similar feature to pathlib if it doesn't

[issue29805] Pathlib.replace cannot move file to a different drive on Windows if filename different

2017-03-13 Thread Laurent Mazuel
New submission from Laurent Mazuel: Trying to use Pathlib and Path.replace on Windows if drive are different leads to an issue: File "D:\myscript.py", line 184, in update client_generated_path.replace(destination_folder) File "c:\program files (x86)\python35-32\Lib\pa

[issue26660] tempfile.TemporaryDirectory() cleanup exception on Windows if readonly files created

2016-03-28 Thread Laurent Mazuel
New submission from Laurent Mazuel: Using tempfile.TemporaryDirectory() in Windows, creating read-only files in this temp directory leads to PermissionError during the cleanup(). This is a direct cause of this one: https://bugs.python.org/issue19643 And the workaround which was proposed

[issue20329] zipfile.extractall fails in Posix shell with utf-8 filename

2014-02-27 Thread Laurent Mazuel
Laurent Mazuel added the comment: Thank for your answer. Unfortunately, I cannot test easily python 3.4 for now. But I have downloaded the source code and diff from 3.3 to 3.4 the zipfile module and see no difference relating to this problem. I can be wrong, maybe if some core improvement

[issue20797] zipfile.extractall should accept bytes path as parameter

2014-02-27 Thread Laurent Mazuel
New submission from Laurent Mazuel: Many methods which use path in Python now accept string or bytes in parameter (e.g. all methods in os.path, the open method, etc.). Actually, sometimes it is not possible to handle a file without using bytes path. For example, path coded in another encoding

[issue10614] ZipFile: add a filename_encoding argument

2014-01-21 Thread Laurent Mazuel
Changes by Laurent Mazuel laurent.maz...@gmail.com: -- nosy: +Laurent.Mazuel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10614 ___ ___ Python

[issue20329] zipfile.extractall fails in Posix shell with utf-8 filename

2014-01-21 Thread Laurent Mazuel
New submission from Laurent Mazuel: Hello, Considering a zip file which contains utf-8 filenames (as uploaded zip file), the following code fails if launched in a Posix shell. with zipfile.ZipFile(test_ut8.zip) as fd: ... fd.extractall() ... Traceback (most recent call last): File

[issue20329] zipfile.extractall fails in Posix shell with utf-8 filename

2014-01-21 Thread Laurent Mazuel
Laurent Mazuel added the comment: Thanks for your answer. I think you can't transcode internal zip filenames to FS encoding. Actually, in Unix the FS only stores bytes for filename, there is no FS encoding. Then, if you change your locale, the filename printed will change too in your console

[issue11085] expose _abcoll as collections.abc

2012-03-15 Thread Laurent Mazuel
Changes by Laurent Mazuel laurent.maz...@gmail.com: -- nosy: +Laurent.Mazuel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11085 ___ ___ Python

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2011-12-14 Thread Laurent Mazuel
Changes by Laurent Mazuel laurent.maz...@gmail.com: -- nosy: +Laurent.Mazuel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13498 ___ ___ Python

[issue1596321] KeyError at exit after 'import threading' in other thread

2010-07-13 Thread Laurent Mazuel
Laurent Mazuel laurent.maz...@gmail.com added the comment: Another solution for cx-freeze problem: http://code.google.com/p/modwsgi/issues/detail?id=197#c5 Which can be added in ConsoleKeepPath.c for instance -- nosy: +Laurent.Mazuel ___ Python