A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-March/071753.html below:

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

[Python-Dev] splitext('.cshrc') [Python-Dev] splitext('.cshrc')"Martin v. Löwis" martin at v.loewis.de
Thu Mar 8 18:54:30 CET 2007
Scott David Daniels schrieb:
>   c) Given a filename, make an appropriately named associated file.
>         pyo_name = 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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4