Now you can write: if not my_obj: raise VeryBadError("My object is gone!") and: if my_obj: my_obj.manipulate() instead of: if my_obj.is_deleted() raise ErrorBadVery("Where did it go?") and: if not my_obj.is_deleted(): my_obj.manipulate() But really, we should add NULL checks all over the place instead of having the end developers checking for it. |
||
---|---|---|
.. | ||
efl.eo.pyx |