Home
last modified time | relevance | path

Searched refs:__main__ (Results 1 – 25 of 199) sorted by relevance

12345678

/external/python/cpython3/Doc/library/
D__main__.rst2 :mod:`__main__` --- Top-level script environment
5 .. module:: __main__
10 ``'__main__'`` is the name of the scope in which top-level code executes.
11 A module's __name__ is set equal to ``'__main__'`` when read from
19 if __name__ == "__main__":
24 ``__main__.py`` module, the contents of which will be executed when the
Drunpy.rst33 module: __main__
42 module, then that package is imported and the ``__main__`` submodule within
59 :const:`None`, to ``mod_name + '.__main__'`` if the named module is a
64 ``mod_name + '.__main__``, never *run_name*).
85 Added ability to execute packages by looking for a ``__main__`` submodule.
99 module: __main__
104 compiled bytecode file or a valid sys.path entry containing a ``__main__``
105 module (e.g. a zipfile containing a top-level ``__main__.py`` file).
110 function then looks for and executes a :mod:`__main__` module using the
112 an existing :mod:`__main__` entry located elsewhere on ``sys.path`` if
[all …]
Dzipapp.rst75 Write a ``__main__.py`` file to the archive that executes *mainfn*. The
78 The ``__main__.py`` file will execute that callable.
148 ``__main__.py`` file. The *main* argument should take the form
152 contain a ``__main__.py`` file, as otherwise the resulting archive
270 directory containing a ``__main__.py`` file, and any supporting application
374 >>> if __name__ == "__main__":
398 to your ``__main__.py`` to include the directory containing the unzipped
420 Python has been able to execute zip files which contain a ``__main__.py`` file
422 simply has to be a standard zip file containing a ``__main__.py`` file which
439 zipfile content *must* include a file called ``__main__.py`` (which must be
/external/python/cpython2/Doc/library/
D__main__.rst2 :mod:`__main__` --- Top-level script environment
5 .. module:: __main__
15 if __name__ == "__main__":
Drunpy.rst26 module: __main__
34 module, then that package is imported and the ``__main__`` submodule within
50 :const:`None`, to ``mod_name + '.__main__'`` if the named module is a
80 Added ability to execute packages by looking for a ``__main__``
87 module: __main__
92 compiled bytecode file or a valid sys.path entry containing a ``__main__``
93 module (e.g. a zipfile containing a top-level ``__main__.py`` file).
98 function then looks for and executes a :mod:`__main__` module using the
100 an existing :mod:`__main__` entry located elsewhere on ``sys.path`` if
/external/python/cpython2/Demo/metaclasses/
Dmeta-vladimir.txt43 <class __main__.A at 2023e360>
54 <__main__.A instance at 2022b9d0>
58 <__main__.A instance at 2022b9c0>
71 <class __main__.A at 2023e360> # 'a' is an instance of A
73 <class __main__.A at 2023e360> # 'b' is an instance of A
96 <class __main__.B at 2023e500>
110 (<class __main__.A at 2023e360>,) # Yes. It has one superclass.
173 <metaclass __main__.M at 2023e4e0>
186 <class __main__.A at 2022b9d0>
190 <class __main__.B at 2022b9c0>
[all …]
/external/python/cpython3/Doc/includes/
Dtest.py198 import doctest, __main__
199 doctest.testmod(__main__)
/external/python/cpython2/Doc/includes/
Dtest.py212 import doctest, __main__
213 doctest.testmod(__main__)
/external/python/cpython2/Lib/idlelib/
DAutoComplete.py24 import __main__
185 namespace = __main__.__dict__.copy()
186 namespace.update(__main__.__builtins__.__dict__)
223 namespace.update(__main__.__dict__)
DCallTips.py8 import __main__
115 namespace.update(__main__.__dict__)
/external/python/cpython3/Lib/idlelib/
Dautocomplete.py17 import __main__
185 namespace = __main__.__dict__.copy()
186 namespace.update(__main__.__builtins__.__dict__)
223 namespace.update(__main__.__dict__)
Dcalltip.py15 import __main__
107 namespace.update(__main__.__dict__)
/external/python/cpython3/Doc/reference/
Dtoplevel_components.rst25 module: __main__
33 functions, exceptions and ``None``) and :mod:`__main__`. The latter is used to
41 module: __main__
47 :mod:`__main__`.
/external/mesa3d/src/gallium/drivers/radeonsi/glsl_tests/
Dlit.cfg21 import __main__
22 llvm_obj_root = __main__.llvm_obj_root
/external/python/cpython2/Doc/reference/
Dtoplevel_components.rst25 module: __main__
33 functions, exceptions and ``None``) and :mod:`__main__`. The latter is used to
41 module: __main__
47 :mod:`__main__`.
/external/python/cpython2/Lib/hotshot/
D__init__.py56 import __main__
57 dict = __main__.__dict__
/external/python/cpython2/Lib/lib-tk/
DScrolledText.py45 import __main__
49 stext.insert(END, __main__.__doc__)
/external/python/cpython2/Lib/
Drlcompleter.py39 import __main__
79 self.namespace = __main__.__dict__
DcProfile.py133 import __main__
134 dict = __main__.__dict__
/external/python/cpython3/Lib/
Drlcompleter.py34 import __main__
74 self.namespace = __main__.__dict__
DcProfile.py93 import __main__
94 dict = __main__.__dict__
/external/yapf/
D.coveragerc4 */__main__.py
/external/fonttools/Lib/fonttools.egg-info/
Dentry_points.txt2 fonttools = fontTools.__main__:main
/external/autotest/venv/
D.coveragerc8 if __name__ == .__main__.:
/external/python/rsa/
D.coveragerc5 if __name__ == .__main__.:

12345678