[Python-Dev] splitext('.cshrc')

Tim Golden mail at timgolden.me.uk
Tue Mar 6 21:18:11 CET 2007

Terry Reedy wrote:
> "Phillip J. Eby" <pje at telecommunity.com> wrote in message 
> news: at sparrow.telecommunity.com...
>> I consider it correct, or at the least, don't think it should be changed,
>> as it would make the behavior more difficult to reason about and introduce
>> yet another thing to worry about when writing cross-version code.
> Windows did not allow .xxx as a filename in my attempts, so this case seems 
> irrelevant there.

Windows is a bit funny there. You can't create a ".xxx" filename
in Explorer, but you can from Console/the API:

import os

f = open (".xxx", "w")
f.close ()
os.path.isfile (".xxx")
# True

Not that this helps anything, really, but just
to make the point :)


More information about the Python-Dev mailing list