Home
last modified time | relevance | path

Searched refs:Python (Results 1 – 25 of 4311) sorted by relevance

12345678910>>...173

/aosp_15_r20/external/python/cpython3/Doc/howto/
Dpyporting.rst4 Porting Python 2 Code to Python 3
11 With Python 3 being the future of Python while Python 2 is still in active
13 Python. This guide is meant to help you figure out how best to support both
14 Python 2 & 3 simultaneously.
16 If you are looking to port an extension module instead of pure Python code,
19 If you would like to read one core Python developer's take on why Python 3
20 came into existence, you can read Nick Coghlan's `Python 3 Q & A`_ or
21 Brett Cannon's `Why Python 3 exists`_.
29 To make your project be single-source Python 2/3 compatible, the basic steps
32 #. Only worry about supporting Python 2.7
[all …]
/aosp_15_r20/external/python/cpython2/Doc/howto/
Dpyporting.rst4 Porting Python 2 Code to Python 3
11 With Python 3 being the future of Python while Python 2 is still in active
13 Python. This guide is meant to help you figure out how best to support both
14 Python 2 & 3 simultaneously.
16 If you are looking to port an extension module instead of pure Python code,
19 If you would like to read one core Python developer's take on why Python 3
20 came into existence, you can read Nick Coghlan's `Python 3 Q & A`_ or
21 Brett Cannon's `Why Python 3 exists`_.
29 To make your project be single-source Python 2/3 compatible, the basic steps
32 #. Only worry about supporting Python 2.7
[all …]
/aosp_15_r20/external/python/six/documentation/
Dindex.rst1 Six: Python 2 and 3 Compatibility Library
5 :synopsis: Python 2 and 3 compatibility
11 Six provides simple utilities for wrapping over differences between Python 2 and
12 Python 3. It is intended to support codebases that work on both Python 2 and 3
13 without modification. six consists of only one Python file, so it is painless
36 A boolean indicating if the code is running on Python 2.
40 A boolean indicating if the code is running on Python 3.
46 Six provides constants that may differ between Python versions. Ones ending
53 Possible class types. In Python 2, this encompasses old-style
54 :data:`py2:types.ClassType` and new-style ``type`` classes. In Python 3,
[all …]
/aosp_15_r20/external/python/cpython3/
DAndroid.bp274 "Python/_warnings.c",
275 "Python/Python-ast.c",
276 "Python/Python-tokenize.c",
277 "Python/asdl.c",
278 "Python/ast.c",
279 "Python/ast_opt.c",
280 "Python/ast_unparse.c",
281 "Python/bltinmodule.c",
282 "Python/ceval.c",
283 "Python/codecs.c",
[all …]
DMakefile.pre.in1 # Top-level Makefile for Python
14 # If you have a previous version of Python installed that you don't
87 # once Python is installed (Issue #21121).
91 # once Python is installed (bpo-35257)
178 # Short name and location for Mac OS X Python framework
282 LIBOBJDIR= Python/
294 # external "build Python" and have an empty PYTHON_FOR_BUILD_DEPS.
299 # Cross builds use an external "build Python" for all modules.
375 # Python
378 Python/_warnings.o \
[all …]
/aosp_15_r20/external/python/cpython2/Doc/extending/
Dembedding.rst7 Embedding Python in Another Application
10 The previous chapters discussed how to extend Python, that is, how to extend the
11 functionality of Python by attaching a library of C functions to it. It is also
13 embedding Python in it. Embedding provides your application with the ability to
14 implement some of the functionality of your application in Python rather than C
16 to tailor the application to their needs by writing some scripts in Python. You
17 can also use it yourself if some of the functionality can be written in Python
20 Embedding Python is similar to extending it, but not quite. The difference is
21 that when you extend Python, the main program of the application is still the
22 Python interpreter, while if you embed Python, the main program may have nothing
[all …]
/aosp_15_r20/external/python/cpython2/Doc/faq/
Dgeneral.rst4 General Python FAQ
15 What is Python?
18 Python is an interpreted, interactive, object-oriented programming language. It
20 types, and classes. Python combines remarkable power with very clear syntax.
24 Finally, Python is portable: it runs on many Unix variants, on the Mac, and on
28 Python <https://wiki.python.org/moin/BeginnersGuide>`_ links to other
29 introductory tutorials and resources for learning Python.
32 What is the Python Software Foundation?
35 The Python Software Foundation is an independent non-profit organization that
36 holds the copyright on Python versions 2.1 and newer. The PSF's mission is to
[all …]
Dwindows.rst6 Python on Windows FAQ
13 How do I run a Python program under Windows?
20 .. sidebar:: |Python Development on XP|_
21 :subtitle: `Python Development on XP`_
23 This series of screencasts aims to get you up and running with Python on
25 and running with the right Python distribution, coding in your choice of IDE,
28 .. |Python Development on XP| image:: python-video-icon.png
29 .. _`Python Development on XP`:
45 D:\YourName\Projects\Python>
49 running Python programs.
[all …]
/aosp_15_r20/external/python/cpython3/Doc/faq/
Dgeneral.rst4 General Python FAQ
15 What is Python?
18 Python is an interpreted, interactive, object-oriented programming language. It
22 Python combines remarkable power with very clear syntax. It has interfaces to
25 applications that need a programmable interface. Finally, Python is portable:
29 Python <https://wiki.python.org/moin/BeginnersGuide>`_ links to other
30 introductory tutorials and resources for learning Python.
33 What is the Python Software Foundation?
36 The Python Software Foundation is an independent non-profit organization that
37 holds the copyright on Python versions 2.1 and newer. The PSF's mission is to
[all …]
Dwindows.rst8 Python on Windows FAQ
15 .. XXX need review for Python 3.
21 How do I run a Python program under Windows?
44 D:\YourName\Projects\Python>
48 running Python programs.
50 You need to realize that your Python scripts have to be processed by another
51 program called the Python *interpreter*. The interpreter reads your script,
53 program. So, how do you arrange for the interpreter to handle your Python?
68 Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
73 Python statements or expressions interactively and have them executed or
[all …]
/aosp_15_r20/external/python/cpython3/Doc/installing/
Dindex.rst6 Installing Python Modules
11 As a popular open source development project, Python has an active
13 available for other Python developers to use under open source license terms.
15 This allows Python users to share and collaborate effectively, benefiting
21 creating and sharing your own Python projects, refer to the
29 use of the distribution and installation tools provided with Python.
35 * ``pip`` is the preferred installer program. Starting with Python 3.4, it
36 is included by default with the Python binary installers.
37 * A *virtual environment* is a semi-isolated Python environment that allows
41 been part of Python since Python 3.3. Starting with Python 3.4, it
[all …]
/aosp_15_r20/external/python/cpython3/Doc/extending/
Dembedding.rst7 Embedding Python in Another Application
10 The previous chapters discussed how to extend Python, that is, how to extend the
11 functionality of Python by attaching a library of C functions to it. It is also
13 embedding Python in it. Embedding provides your application with the ability to
14 implement some of the functionality of your application in Python rather than C
16 to tailor the application to their needs by writing some scripts in Python. You
17 can also use it yourself if some of the functionality can be written in Python
20 Embedding Python is similar to extending it, but not quite. The difference is
21 that when you extend Python, the main program of the application is still the
22 Python interpreter, while if you embed Python, the main program may have nothing
[all …]
/aosp_15_r20/external/python/cpython3/Tools/c-analyzer/
DTODO40 Python/fileutils.c:_Py_open_cloexec_works int _Py_open_cloexec_works
70 Python/Python-ast.c:init_types():initialized static int initialized
71 Python/bootstrap_hash.c:urandom_cache static struct { int fd; dev_t st_d…
72 Python/ceval.c:lltrace static int lltrace
73 Python/ceval.c:make_pending_calls():busy static int busy
74 Python/dynload_shlib.c:handles static struct { dev_t dev; ino_t i…
75 Python/dynload_shlib.c:nhandles static int nhandles
76 Python/import.c:import_lock static PyThread_type_lock import_l…
77 Python/import.c:import_lock_level static int import_lock_level
78 Python/import.c:import_lock_thread static unsigned long import_lock_t…
[all …]
/aosp_15_r20/external/python/cpython2/Doc/using/
Dwindows.rst6 Using Python on Windows
12 know about when using Python on Microsoft Windows.
15 Installing Python
18 Unlike most Unix systems and services, Windows does not require Python natively
19 and thus does not pre-install a version of Python. However, the CPython team
23 With ongoing development of Python, some platforms that used to be supported
27 * DOS and Windows 3.x are deprecated since Python 2.0 and code specific to these
28 systems was removed in Python 2.1.
29 * Up to 2.5, Python was still compatible with Windows 95, 98 and ME (but already
30 raised a deprecation warning on installation). For Python 2.6 (and all
[all …]
Dmac.rst5 Using Python on a Macintosh
11 Python on a Macintosh running Mac OS X is in principle very similar to Python on
17 Python on Mac OS 9 or earlier can be quite different from Python on Unix or
19 supported, starting with Python 2.4. See http://www.cwi.nl/~jack/macpython for
28 Mac OS X 10.8 comes with Python 2.7 pre-installed by Apple. If you wish, you
29 are invited to install the most recent version of Python from the Python website
30 (https://www.python.org). A current "universal binary" build of Python, which
37 Python distributions; PythonLauncher, which handles double-clicking Python
39 package Python scripts as standalone applications on your system.
41 * A framework :file:`/Library/Frameworks/Python.framework`, which includes the
[all …]
/aosp_15_r20/external/python/cpython2/Doc/installing/
Dindex.rst6 Installing Python Modules
11 As a popular open source development project, Python has an active
13 available for other Python developers to use under open source license terms.
15 This allows Python users to share and collaborate effectively, benefiting
21 creating and sharing your own Python projects, refer to the
29 use of the distribution and installation tools provided with Python.
35 * ``pip`` is the preferred installer program. Starting with Python 2.7.9, it
36 is included by default with the Python binary installers.
37 * a virtual environment is a semi-isolated Python environment that allows
42 * the `Python Packaging Index <https://pypi.org>`__ is a public repository of
[all …]
/aosp_15_r20/external/pigweed/docs/
H A Dpython_build.rst4 Pigweed's GN Python Build
14 Pigweed uses a custom GN-based build system to manage its Python code. The
15 Pigweed Python build supports packaging, installation and distribution of
16 interdependent local Python packages. It also provides for fast, incremental
20 Pigweed's Python code is exclusively managed by GN, but the GN-based build may
22 setup uses GN to set up the initial Python environment, regardless of the final
23 build system. As needed, non-GN projects can declare just their Python packages
28 In addition to compiler commands a Pigweed GN build will execute Python scripts
32 ``python``. Running Python on it's own by default will make any Python packages
35 workstation. To get around this the Python community uses `virtual environments
[all …]
/aosp_15_r20/external/python/cpython3/Doc/using/
Dmac.rst5 Using Python on a Mac
11 Python on a Mac running macOS is in principle very similar to Python on
20 macOS used to come with Python 2.7 pre-installed between versions
21 … <https://developer.apple.com/documentation/macos-release-notes/macos-12_3-release-notes#Python>`_.
22 You are invited to install the most recent version of Python 3 from the Python
23 website (https://www.python.org). A current "universal binary" build of Python,
29 * A :file:`Python 3.12` folder in your :file:`Applications` folder. In here
31 Python distributions; and PythonLauncher, which handles double-clicking Python
34 * A framework :file:`/Library/Frameworks/Python.framework`, which includes the
35 Python executable and libraries. The installer adds this location to your shell
[all …]
Dwindows.rst6 Using Python on Windows
13 know about when using Python on Microsoft Windows.
16 supported installation of Python. To make Python available, the CPython team
19 are primarily intended to add a per-user installation of Python, with the
24 As specified in :pep:`11`, a Python release only supports a Windows platform
26 Python |version| supports Windows 8.1 and newer. If you require Windows 7
27 support, please install Python 3.8.
33 developers using Python for any kind of project.
35 :ref:`windows-store` is a simple installation of Python that is suitable for
38 programs. It also provides many convenient commands for launching Python and
[all …]
/aosp_15_r20/external/python/cpython2/Mac/BuildScript/resources/
DReadMe.rtf8 \f0\fs24 \cf0 This package will install Python $FULL_VERSION for macOS $MACOSX_DEPLOYMENT_TARGET fo…
17 \b0 With Python 2.7.15, the python.org website now provides two installer variants for download: o…
19 \i0 Python capable of running on
23 \i0 Python capable of running on
27 \i0 variant.) Previous Python 2.7.x releases provided the 10.6 or later installer and a 10.5 or l…
35 This variant of Python 2.7 now includes its own private copy of OpenSSL 1.0.2. Unlike previous rel…
39 \i0 command line utility are no longer used as defaults by the Python
42 \f1 /Applications/Python 2.7
53 \f0 included with the Python 2.7 installer has its own default certificate store for verifying dow…
65 \i0 for this version of Python and of macOS.\
[all …]
/aosp_15_r20/external/python/cpython3/Doc/c-api/
Dinit_config.rst6 Python Initialization Configuration
11 Python can be initialized with :c:func:`Py_InitializeFromConfig` and the
17 * The :ref:`Python Configuration <init-python-config>` can be used to build a
18 customized Python which behaves as the regular Python. For example,
20 Python.
23 Python into an application. It isolates Python from the system. For example,
27 The :c:func:`Py_RunMain` function can be used to write a customized Python
33 :pep:`587` "Python Initialization Configuration".
39 Example of customized Python always running in isolated mode::
50 Implicitly preinitialize Python (in isolated mode). */
[all …]
/aosp_15_r20/external/python/bumble/rust/src/wrapper/device/
Dmod.rs47 IntoPy, PyErr, PyObject, PyResult, Python, ToPyObject,
61 Python::with_gil(|py| { in new()
71 Python::with_gil(|py| { in load_from_file()
80 fn to_object(&self, _py: Python<'_>) -> PyObject { in to_object()
112 Python::with_gil(|py| { in new()
136 Python::with_gil(|py| { in from_config_file_with_hci()
152 Python::with_gil(|py| { in with_hci()
169 Python::with_gil(|py| { in send_command()
180 Python::with_gil(|py| { in send_command()
192 Python::with_gil(|py| { in power_on()
[all …]
/aosp_15_r20/prebuilts/cmake/linux-x86/share/cmake-3.22/Modules/
DFindPythonLibs.cmake14 This module finds if Python is installed and determines where the
20 PYTHONLIBS_FOUND - have the Python libs been found
22 PYTHON_INCLUDE_PATH - path to where Python.h is found (deprecated)
23 PYTHON_INCLUDE_DIRS - path to where Python.h is found
25 PYTHONLIBS_VERSION_STRING - version of the Python libs found (since CMake 2.8.8)
31 for Python. You need to set this variable before calling
34 If you'd like to specify the installation of Python to use, you should
40 PYTHON_INCLUDE_DIR - path to where Python.h is found
44 get the currently active Python version by default with a consistent version
69 CMAKE_FIND_FRAMEWORKS(Python)
[all …]
DFindPython.cmake10 Find Python interpreter, compiler and development environment (include
20 * ``Interpreter``: search for Python interpreter.
21 * ``Compiler``: search for Python compiler. Only offered by IronPython.
29 * ``Development.Module``: search for artifacts for Python module
31 * ``Development.Embed``: search for artifacts for Python embedding
48 find_package (Python COMPONENTS Interpreter Development)
50 This module looks preferably for version 3 of Python. If not found, version 2
52 To manage concurrent versions 3 and 2 of Python, use :module:`FindPython3` and
72 ``Python::Interpreter``
73 Python interpreter. Target defined if component ``Interpreter`` is found.
[all …]
/aosp_15_r20/external/bazelbuild-rules_python/docs/
H A Dtoolchains.md4 # Configuring Python toolchains and runtimes
6 This documents how to configure the Python toolchain and runtimes for different
12 you're using Python. There are 4 basic use cases:
14 1. A root module that always uses Python. For example, you're building a
15 Python application.
16 2. A library module with dev-only uses of Python. For example, a Java project
17 that only uses Python as part of testing itself.
19 Python build tools, but defers to the user as to what Python version is used
22 Python build tools, and the module requires a specific version of Python
34 explicitly specify the Python version you want to use. This ensures that
[all …]

12345678910>>...173