On Mon, Dec 23, 2013 at 2:43 PM, Mark Lawrence <breamore...@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
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to