New submission from Tom Edwards:
Consider this script:
f = open(bugtest.txt,'w')
f.write(hello)
f.close()
On Windows the first line will throw an OSError exception because the character
'' is not valid in an NTFS filename. This is correct.
Now consider this script:
f =
Changes by Tim Golden m...@timgolden.me.uk:
--
resolution: - not a bug
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23463
___
Tim Golden added the comment:
Colons are valid in filenames to introduce Alternate Data Stream:
https://msdn.microsoft.com/en-us/library/cc422524.aspx
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23463
Tom Edwards added the comment:
Ha! What a feature. Thanks for the link.
Maybe I'm rehashing old arguments, but I still think that Python's behaviour in
this case is wrong. This is very surprising behaviour to anyone who isn't
intimately familiar with NTFS and should not be something that in
Changes by SilentGhost ghost@gmail.com:
--
components: +Windows
nosy: +steve.dower, tim.golden, zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23463
___
R. David Murray added the comment:
Python just exposes the OS filename semantics, it doesn't judge them :)
This is just as true on linux as it is on Windows.
--
nosy: +r.david.murray
resolution: - not a bug
status: open - closed
___
Python tracker