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
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
"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
(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
(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
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