cascading python executions only if return code is 0
Chris Angelico
rosuav at gmail.com
Sun Dec 22 22:45:27 EST 2013
On Mon, Dec 23, 2013 at 2:43 PM, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
> Another C thing to complain about, with functions like malloc the status
> code and value returned are one and the same thing, except that NULL is
> failure in this case.
How's that a problem? Python has the same:
memory.get(1234)
will return a bit of memory, or None if it can't get any. Not
materially different. Remember, C doesn't have exceptions. In C++, the
'new' operator will throw an exception if it can't provide memory.
ChrisA
More information about the Python-list
mailing list