On Tue, Mar 06, 2007 at 08:49:00AM -0800, Ilya Sandler wrote: > I think it's reasonable to expect that > > splitext( a+"." + b) == (a, .b ) > > for any a,b which have no dots in them...
Except for an empty 'a', in what case 'b' is the name, not the extension. Well, 'a' cannot be empty because it's the name, but 'b' can be empty. For ".pythonrc.py" ".pythonrc" is the name and ".py" is the extension. For ".pythonrc" ".pythonrc" is the name and there is no extension. Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. _______________________________________________ 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