
6 Sep
2002
6 Sep
'02
8:10 a.m.
fre 2002-09-06 klockan 16.41 skrev Guido van Rossum:
my only objection is that the case where fork fails isn't documented. with a C background one expects a negative number, when in fact an exception is raised...
Ah jeez. Even with only half a day of Python you should've figured out that Python nearly always raises an exception where the corresponding C code returns an error value.
It would, however, be extremely useful if the documentation spelled out *which* exceptions can be raised! Kind of hard to write a decent try/except clause if you don't know what to expect.
Regards, Martin