On 2017-02-10 19:50, Vincent Vande Vyvre wrote:
Le 10/02/17 à 19:11, epro...@gmail.com a écrit :
Hello NG
Python 3.5.2
Windows 10
os.path.isfile() no recognise file with double dot?
eg. match.cpython-35.pyc
Please somebody know something about that?
Thank You in advance
Interesting, you're right.
Python 3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>>
os.path.isfile('/home/vincent/oqapy-3/trunk/__pycache__/grid.cpython-34.pyc
')
False
Why ?
It looks like the path has a space on the end. Is that true?
(I haven't been able to reproduce the problem, incidentally.)
--
https://mail.python.org/mailman/listinfo/python-list