[issue21969] WindowsPath constructor does not check for invalid characters

2021-10-19 Thread Irit Katriel
Change by Irit Katriel : -- type: -> enhancement versions: +Python 3.11 -Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-b

[issue21969] WindowsPath constructor does not check for invalid characters

2014-07-12 Thread Antony Lee
Antony Lee added the comment: There is a list of always forbidden characters (http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#naming_conventions), and then a couple of obscure fs-dependent cases (http://en.wikipedia.org/wiki/Comparison_of_file_systems) but I beli

[issue21969] WindowsPath constructor does not check for invalid characters

2014-07-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, I am not sure. Is there a definite list of invalid Windows path characters, or can it be filesystem-specific? -- ___ Python tracker ___ __

[issue21969] WindowsPath constructor does not check for invalid characters

2014-07-12 Thread Ned Deily
Changes by Ned Deily : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue21969] WindowsPath constructor does not check for invalid characters

2014-07-12 Thread Antony Lee
New submission from Antony Lee: PureWindowsPath("foo*") returns a path object, even though it is an invalid one (e.g., open("foo*") on Windows throws an OSError for "invalid argument" rather than a FileNotFoundError). Given the amount of checking that is done in (e.g.) with_name and with_suff