[Python-Dev] splitext('.cshrc') (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Thu Mar 8 18:54:30 CET 2007
- Previous message: [Python-Dev] splitext('.cshrc')
- Next message: [Python-Dev] splitext('.cshrc')
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Scott David Daniels schrieb:
c) Given a filename, make an appropriately named associated file. pyoname = os.path.splitext(name)[0] + '.pyo' This argues for os.path.splitext('.pythonrc') == ('.pythonrc','')
Indeed, somebody found that people apparently do
back_name = splitext(name[0]) + '.bak'
which would severely break if somebody tried to create backups of dotfiles that way.
Regards, Martin
- Previous message: [Python-Dev] splitext('.cshrc')
- Next message: [Python-Dev] splitext('.cshrc')
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]