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

"Martin v. Löwis" martin at v.loewis.de
Thu Mar 8 01:36:57 CET 2007


Josiah Carlson schrieb:
>> 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?
> 
> For people who want the one semantic on all platforms, they can pick
> their semantic explicitly.

Most people object because of the potential breakage; this change 
wouldn't remove the breakage (people asking for the old, compatible,
behavior still need to change their code).

> Alternatively, offer a flag argument in splitext to differentiate
> between the two cases.

This isn't compatible, either, as older versions will raise an exception
because of the extra argument.

Regards,
Martin


More information about the Python-Dev mailing list