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
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
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 in the
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, p
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
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 cha
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 (mo
Changes by Laurent Mazuel :
--
nosy: +Laurent.Mazuel
___
Python tracker
<http://bugs.python.org/issue10614>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Laurent Mazuel :
--
nosy: +Laurent.Mazuel
___
Python tracker
<http://bugs.python.org/issue11085>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Laurent Mazuel :
--
nosy: +Laurent.Mazuel
___
Python tracker
<http://bugs.python.org/issue13498>
___
___
Python-bugs-list mailing list
Unsubscribe:
Laurent Mazuel 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 tracker
<h
11 matches
Mail list logo