Re: Relative versus absolute paths on Windows

2009-11-23 Thread Jason R. Coombs
On Nov 20, 3:52 pm, Ethan Furman wrote: > It is often said on this list that 'Python is not Java'.  It is also > true that 'Windows is not Unix'. > > Unlike the *nix world where there is a *single* root, and everything > else is relative to that, in the Windows world there are several roots > -- e

Relative versus absolute paths on Windows

2009-11-20 Thread Jason R. Coombs
The current implementation of Python (2.6.4, 3.1.1) treats \bar as a relative path but reports it as an absolute path. >>> ntpath.isabs('\\bar') True >>> ntpath.abspath('\\bar') 'C:\\bar' >>> os.chdir('d:\\') >>> ntpath.abspath('\\bar') 'd:\\bar' >>> os.chdir('server\\share') >>> ntpath.abspat

RE: namedtuple suggestions

2008-06-13 Thread Jason R. Coombs
(see lib/urlparse for a prime example of extending the namedtuple class). Regards, Jason -Original Message- From: Calvin Spealman [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June, 2008 12:17 To: Jason R. Coombs Cc: python-list@python.org Subject: Re: namedtuple suggestions On Jun 13, 2008

namedtuple suggestions

2008-06-13 Thread Jason R. Coombs
'm willing to take up the latter effort if there's agreement this could be included in the release. Regards, Jason R. Coombs -- http://mail.python.org/mailman/listinfo/python-list

Wording suggestion for documentation (Data Model)

2008-06-12 Thread Jason R. Coombs
thing like: deleting <__main__.X object at 0x01BB1A50> caught exception, np made it past the exception x has been deleted, now what? """ # - Jason R. Coombs -- http://mail.python.org/mailman/listinfo/python-list