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. |
||
---|---|---|
.. | ||
dbus_mainloop | ||
ecore | ||
edbus | ||
edje | ||
elementary | ||
emotion | ||
eo | ||
evas | ||
__init__.py |