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

"Martin v. Löwis" martin at v.loewis.de
Tue Mar 6 16:07:16 CET 2007


Oleg Broytmann schrieb:
> On Tue, Mar 06, 2007 at 04:00:01PM +0100, "Martin v. L?wis" wrote:
>>>    Yes. In .pythonrc.py .pythonrc is the root, and .py is the extension.
>> Ah, it would do that already: with multiple dots, the last one always
>> provides the extension.
> 
>    Ah, sorry. I messed it with .split().

Ok - now I'm confused: do you consider this behavior 
(splitext('.pythonrc') == ('', '.pythonrc')) correct
or not?

Regards,
Martin


More information about the Python-Dev mailing list