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 >or not?
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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com