davemds pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=380e7a58ffa18501202f960d35471b5a683dd35f
commit 380e7a58ffa18501202f960d35471b5a683dd35f Author: Dave Andreoli <[email protected]> Date: Sun Aug 14 10:35:58 2016 +0200 ecore.FdHandler: implement is_deleted for consistency with other classes --- efl/ecore/efl.ecore_fd_handler.pxi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/efl/ecore/efl.ecore_fd_handler.pxi b/efl/ecore/efl.ecore_fd_handler.pxi index cf31b52..fd743e5 100644 --- a/efl/ecore/efl.ecore_fd_handler.pxi +++ b/efl/ecore/efl.ecore_fd_handler.pxi @@ -144,6 +144,17 @@ cdef class FdHandler(object): cdef object _exec(self): return self.func(self, *self.args, **self.kargs) + def is_deleted(self): + """Check if the object has been deleted thus leaving the object shallow. + + :return: True if the object has been deleted yet, False otherwise. + :rtype: bool + + .. versionadded:: 1.18 + + """ + return bool(self.obj == NULL) + def delete(self): """Stop callback emission and free internal resources.""" if self.obj != NULL: --
