Re: [Python-Dev] Mapping Darwin 8.2.0 to Mac OS X 10.4.2 in platform.py

2005-09-22 Thread Wilfredo Sánchez Vega
22, 2005, at 10:20 AM, Guido van Rossum wrote: On 9/22/05, Wilfredo Sánchez Vega <[EMAIL PROTECTED]> wrote: "rhapsody" is emitted by uname on Mac OS X Server 1.x, but not on anything we ship today. Bob's right, the version number from uname only tells you about the kernel

Re: [Python-Dev] Mapping Darwin 8.2.0 to Mac OS X 10.4.2 in platform.py

2005-09-22 Thread Wilfredo Sánchez Vega
arse that plist directly :) On further inspection, it looks like parsing the plist directly is supported API these days (see the bottom of ): import plistlib dct = plistlib.Plist.fromFile('/System/Library/CoreServices/ SystemVersion.plist') print '%(ProductName)s %(ProductVersi

Re: [Python-Dev] Mapping Darwin 8.2.0 to Mac OS X 10.4.2 in platform.py

2005-09-22 Thread Wilfredo Sánchez Vega
"rhapsody" is emitted by uname on Mac OS X Server 1.x, but not on anything we ship today. Bob's right, the version number from uname only tells you about the kernel, and not whether, for example, the Cocoa API is on the system (it wouldn't be on a standalone Darwin OS install, which wil

Re: [Python-Dev] Exception Reorg PEP checked in

2005-09-08 Thread Wilfredo Sánchez Vega
(sorry for the delayed reply; vacation) On Aug 14, 2005, at 12:27 PM, Guido van Rossum wrote: On 8/14/05, Michael Hudson <[EMAIL PROTECTED]> wrote: Wilfredo Sánchez Vega <[EMAIL PROTECTED]> writes: I'm curious about why Python lacks FileNotFoundError, PermissionErro

Re: [Python-Dev] Exception Reorg PEP checked in

2005-09-07 Thread Wilfredo Sánchez Vega
(sorry for the delayed reply; vacation) On Aug 14, 2005, at 12:27 PM, Guido van Rossum wrote: On 8/14/05, Michael Hudson <[EMAIL PROTECTED]> wrote: Wilfredo S ánchez Vega <[EMAIL PROTECTED]> writes: I'm curious about why Python lacks FileNotFoundError, PermissionError and the li

Re: [Python-Dev] Exception Reorg PEP checked in

2005-08-13 Thread Wilfredo Sánchez Vega
I'm curious about why Python lacks FileNotFoundError, PermissionError and the like as subclasses of IOError. Catching IOError and looking at errno to figure out what went wrong seems pretty unpythonic, and I've often wished for built-in subclasses of IOError. I sometimes subclass t