A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-September/028653.html below:

[Python-Dev] Call for clarity ( clarification ;-) )

[Python-Dev] Call for clarity ( clarification ;-) ) [Python-Dev] Call for clarity ( clarification ;-) )Fredrik Lundh fredrik@pythonware.com
Fri, 6 Sep 2002 17:03:06 +0200
guido wrote:

> > 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=20
> > exception is raised...
>=20
> 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.

otoh, it doesn't hurt to spell it out for functions like fork which
almost always succeeds...

(can you write a portable test that is guaranteed to raise an
exception, and does that without locking up the system?)

</F>




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4