Phillip J. Eby
pje at telecommunity.com
Tue Mar 6 16:51:10 CET 2007
At 04:07 PM 3/6/2007 +0100, Martin v. Löwis wrote:
>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
I consider it correct, or at the least, don't think it should be changed,
as it would make the behavior more difficult to reason about and introduce
yet another thing to worry about when writing cross-version code.
More information about the Python-Dev