[Python-ideas] Changing the name of __pycache__

Nick Coghlan ncoghlan at gmail.com
Thu Feb 10 12:42:24 CET 2011


On Thu, Feb 10, 2011 at 5:31 PM, Terry Reedy <tjreedy at udel.edu> wrote:
> On Windows, trying to rename a folder from 'New Folder' to '.pycache' (or
> anything beginning with '.') FAILS with "You must type a file name." Ditto
> for ordinary files. Whether the illegal name can be forced with Windows API
> calls that bypass the user-level check, I do not know.

You can create dot-files from the Windows command prompt. Windows
Explorer just has additional prejudices as to what constitutes a valid
filename.

Dot-files are definitely a point of pain when dealing with Unix-ish
programs on Windows, though.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list