Home
last modified time | relevance | path

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

12345678910>>...148

/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 …]
/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 …]
Dcporting.rst6 Porting Extension Modules to Python 3
14 Although changing the C-API was not one of Python 3's objectives,
15 the many Python-level changes made leaving Python 2's API intact
25 The easiest way to compile only some code for Python 3 is to check
39 Python 3 merged together some types with similar functions while cleanly
46 Python 3's :func:`str` type is equivalent to Python 2's :func:`unicode`; the C
48 :func:`bytes`, with C functions called ``PyBytes_*``. Python 2.6 and later provide a compatibility…
50 compatibility with Python 3, :c:type:`PyUnicode` should be used for textual data and
52 :c:type:`PyBytes` and :c:type:`PyUnicode` in Python 3 are not interchangeable like
53 :c:type:`PyString` and :c:type:`PyUnicode` are in Python 2. The following example
[all …]
/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 …]
/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 and new-style
54 classes. In Python 3, this is just new-styles.
[all …]
/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 …]
/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 …]
/external/python/cpython2/Doc/faq/
Dinstalled.rst2 "Why is Python Installed on my Computer?" FAQ
5 What is Python?
8 Python is a programming language. It's used for many different applications.
10 language because Python is easy to learn, but it's also used by professional
13 If you wish to learn more about Python, start with the `Beginner's Guide to
14 Python <https://wiki.python.org/moin/BeginnersGuide>`_.
17 Why is Python installed on my machine?
20 If you find Python installed on your system but don't remember installing it,
27 Python and included a Python installation. For a home computer, the most
30 * Some Windows machines also have Python installed. At this writing we're aware
[all …]
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 …]
/external/python/cpython3/Doc/faq/
Dinstalled.rst2 "Why is Python Installed on my Computer?" FAQ
5 What is Python?
8 Python is a programming language. It's used for many different applications.
10 language because Python is easy to learn, but it's also used by professional
13 If you wish to learn more about Python, start with the `Beginner's Guide to
14 Python <https://wiki.python.org/moin/BeginnersGuide>`_.
17 Why is Python installed on my machine?
20 If you find Python installed on your system but don't remember installing it,
27 Python and included a Python installation. There are many such applications,
29 * Some Windows machines also have Python installed. At this writing we're aware
[all …]
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 …]
/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 …]
/external/python/cpython2/Doc/using/
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 …]
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 …]
/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 …]
/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 …]
/external/python/cpython3/PC/
Dreadme.txt1 Welcome to the "PC" subdirectory of the Python distribution
5 several older PC ports of Python, as well as all the PC-specific
6 Python source files. It should be located in the root of the
7 Python distribution, and there should be directories "Modules",
8 "Objects", "Python", etc. in the parent directory of this "PC"
9 subdirectory. Be sure to read the documentation in the Python
12 Python requires library files such as string.py to be available in
14 set up when Python starts. To see the current Python library search
15 path, start Python and enter "import sys" and "print sys.path".
29 The best installation strategy is to put the Python executable and
[all …]
/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 …]
/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 …]
/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 …]
/external/python/cpython2/PC/
Dreadme.txt1 Welcome to the "PC" subdirectory of the Python distribution
5 several older PC ports of Python, as well as all the PC-specific
6 Python source files. It should be located in the root of the
7 Python distribution, and there should be directories "Modules",
8 "Objects", "Python", etc. in the parent directory of this "PC"
9 subdirectory. Be sure to read the documentation in the Python
12 Python requires library files such as string.py to be available in
14 set up when Python starts. To see the current Python library search
15 path, start Python and enter "import sys" and "print sys.path".
29 The best installation strategy is to put the Python executable (and
[all …]
/external/grpc-grpc/src/python/grpcio_observability/
DREADME.rst1 gRPC Python Observability
4 Package for gRPC Python Observability.
8 How gRPC Python Observability Works
11 gRPC Python is a wrapper layer built upon the gRPC Core (written in C/C++). Most of telemetry data
12 is collected at core layer and then exported to Python layer. To optimize performance and reduce
14 and then exported to the Python layer in batches.
17 time the data is collected and the time it becomes available through Python exporters.
20 Supported Python Versions
22 Python >= 3.7
27 Currently gRPC Python Observability is **only available for Linux**.
[all …]
/external/pigweed/docs/
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 …]

12345678910>>...148