Searched defs:__del__ (Results 1 - 25 of 39) sorted by last modified time

12

/device/linaro/hikey/installer/hikey/
H A Dhisi-idt.py86 def __del__(self): member in class:bootdownload
/device/linaro/hikey/l-loader/
H A Dgen_loader.py56 def __del__(self): member in class:generator
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
H A Dfileinput.py232 def __del__(self): member in class:FileInput
H A Dplatform.py417 __del__ = close variable in class:_popen
H A Dsocket.py289 def __del__(self): member in class:_fileobject
H A Dzipfile.py724 fp = None # Set here since __del__ checks it
1257 def __del__(self): member in class:ZipFile
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/
H A DRCSProxy.py36 def __del__(self): member in class:DirSupport
79 def __del__(self): member in class:RCSProxyLocal
80 DirSupport.__del__(self)
81 rcslib.RCS.__del__(self)
H A Dclient.py40 def __del__(self): member in class:Client
H A Dcvslock.py122 def __del__(self): member in class:Lock
123 print "__del__"
H A Drcslib.py42 def __del__(self): member in class:RCS
H A Dserver.py32 def __del__(self): member in class:Server
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
H A D_pyio.py345 def __del__(self): member in class:IOBase
H A Daifc.py582 def __del__(self): member in class:Aifc_write
H A Ddumbdbm.py39 # gets called. One place _commit() gets called is from __del__(),
95 # be called from __del__(). Therefore we must never reference a
218 __del__ = close variable in class:_Database
H A Dfileinput.py233 def __del__(self): member in class:FileInput
H A Dplatform.py417 __del__ = close variable in class:_popen
H A Dpopen2.py74 def __del__(self): member in class:Popen3
H A Dshelve.py148 # Catch errors that may happen when close is called from __del__
155 def __del__(self): member in class:Shelf
H A Dsocket.py285 def __del__(self): member in class:_fileobject
H A Dtarfile.py444 def __del__(self): member in class:_Stream
H A Dtelnetlib.py227 def __del__(self): member in class:Telnet
H A Dtempfile.py395 # __del__ is called.
405 def __del__(self): function in function:_TemporaryFileWrapper.__enter__
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/pydoc_data/
H A Dtopics.py27 'customization': u'\nBasic customization\n*******************\n\nobject.__new__(cls[, ...])\n\n Called to create a new instance of class *cls*. ``__new__()`` is a\n static method (special-cased so you need not declare it as such)\n that takes the class of which an instance was requested as its\n first argument. The remaining arguments are those passed to the\n object constructor expression (the call to the class). The return\n value of ``__new__()`` should be the new object instance (usually\n an instance of *cls*).\n\n Typical implementations create a new instance of the class by\n invoking the superclass\'s ``__new__()`` method using\n ``super(currentclass, cls).__new__(cls[, ...])`` with appropriate\n arguments and then modifying the newly-created instance as\n necessary before returning it.\n\n If ``__new__()`` returns an instance of *cls*, then the new\n instance\'s ``__init__()`` method will be invoked like\n ``__init__(self[, ...])``, where *self* is the new instance and the\n remaining arguments are the same as were passed to ``__new__()``.\n\n If ``__new__()`` does not return an instance of *cls*, then the new\n instance\'s ``__init__()`` method will not be invoked.\n\n ``__new__()`` is intended mainly to allow subclasses of immutable\n types (like int, str, or tuple) to customize instance creation. It\n is also commonly overridden in custom metaclasses in order to\n customize class creation.\n\nobject.__init__(self[, ...])\n\n Called when the instance is created. The arguments are those\n passed to the class constructor expression. If a base class has an\n ``__init__()`` method, the derived class\'s ``__init__()`` method,\n if any, must explicitly call it to ensure proper initialization of\n the base class part of the instance; for example:\n ``BaseClass.__init__(self, [args...])``. As a special constraint\n on constructors, no value may be returned; doing so will cause a\n ``TypeError`` to be raised at runtime.\n\nobject.__del__(self)\n\n Called when the instance is about to be destroyed. This is also\n called a destructor. If a base class has a ``__del__()`` method,\n the derived class\'s ``__del__()`` method, if any, must explicitly\n call it to ensure proper deletion of the base class part of the\n instance. Note that it is possible (though not recommended!) for\n the ``__del__()`` method to postpone destruction of the instance by\n creating a new reference to it. It may then be called at a later\n time when this new reference is deleted. It is not guaranteed that\n ``__del__()`` methods are called for objects that still exist when\n the interpreter exits.\n\n Note: ``del x`` doesn\'t directly call ``x.__del__()`` --- the former\n decrements the reference count for ``x`` by one, and the latter\n is only called when ``x``\'s reference count reaches zero. Some\n common situations that may prevent the reference count of an\n object from going to zero include: circular references between\n objects (e.g., a doubly-linked list or a tree data structure with\n parent and child pointers); a reference to the object on the\n stack frame of a function that caught an exception (the traceback\n stored in ``sys.exc_traceback`` keeps the stack frame alive); or\n a reference to the object on the stack frame that raised an\n unhandled exception in interactive mode (the traceback stored in\n ``sys.last_traceback`` keeps the stack frame alive). The first\n situation can only be remedied by explicitly breaking the cycles;\n the latter two situations can be resolved by storing ``None`` in\n ``sys.exc_traceback`` or ``sys.last_traceback``. Circular\n references which are garbage are detected when the option cycle\n detector is enabled (it\'s on by default), but can only be cleaned\n up if there are no Python-level ``__del__()`` methods involved.\n Refer to the documentation for the ``gc`` module for more\n information about how ``__del__()`` methods are handled by the\n cycle detector, particularly the description of the ``garbage``\n value.\n\n Warning: Due to the precarious circumstances under which ``__del__()``\n methods are invoked, exceptions that occur during their execution\n are ignored, and a warning is printed to ``sys.stderr`` instead.\n Also, when ``__del__()`` i namespace
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/crashers/
H A Dborrowed_ref_1.py10 def __del__(self): member in class:B
H A Dborrowed_ref_2.py12 def __del__(self): member in class:B

Completed in 1281 milliseconds

12