On 3/7/07, Josiah Carlson <jcarlson at uci.edu> wrote: > "Martin v. Löwis" <martin at v.loewis.de> wrote: > > Now it's becoming difficult: several people in favor, some opposed... > What about changing the semantics of splitext and creating a new > function (available on all platforms) that does what the Windows version > currently does? I don't understand only one thing, why do people need new functions? You can anticipate the change today, and write functions that do exactly what you need no matter which way (current or proposed) python implements: def ensurenew(path): a,b = os.path.splitext(path) if a == '': # also possibly check if a contains dots only return b,a return a,b def ensureold(path): a,b = os.path.splitext(path) if b == '' and a.startswith('.'): # also possibly check if a starts with multiple dots return b,a return a,b Best regards, Alexey.
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