On Mon, May 11, 2020 at 09:12:52PM -0000, Steve Jorgensen <[email protected]> 
wrote:
> When the platform is Windows, certainly, "<letter>:" should not be allowed, 
> and perhaps colon should not be allowed at all.

https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file

   Forbidden characters:

chr(0) < > : " / \ | ? *

characters in range from chr(1) through chr(31),

a space or a period at the end of file/directory name.

   Forbidden file names (with any extensions):

CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8,
COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9.

Oleg.
-- 
    Oleg Broytman            https://phdru.name/            [email protected]
           Programmers don't die, they just GOSUB without RETURN.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/GUVNRX5VXAN324AKAWP3BVZ3CG7YHCOS/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to