| /external/python/cpython3/Doc/howto/ |
| D | pyporting.rst | 4 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/ |
| D | pyporting.rst | 4 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/cpython3/ |
| D | Android.bp | 265 "Python/_warnings.c", 266 "Python/Python-ast.c", 267 "Python/asdl.c", 268 "Python/ast.c", 269 "Python/ast_opt.c", 270 "Python/ast_unparse.c", 271 "Python/bltinmodule.c", 272 "Python/ceval.c", 273 "Python/codecs.c", 274 "Python/compile.c", [all …]
|
| /external/python/six/documentation/ |
| D | index.rst | 1 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/markdown/tests/misc/ |
| D | japanese.txt | 1 パイソン (Python) 4 …Python**(パイソン)は、[Guido van Rossum](http://en.wikipedia.org/wiki/Guido_van_Rossum) によって作られたオープンソースの… 7 …Python は初心者から専門家まで幅広いユーザ層を獲得している。利用目的は汎用で、方向性としてはJavaに近い。ただし、最初からネットワーク利用をメインとして考えられているJavaよりセキュリテ… 9 Python は基本的にインタプリタ上で実行されることを念頭において設計されており、以下のような特徴をもっている: 15 また、Pythonではインデントによりブロックを指定する構文を採用している(⇒[オフサイドルール](#jklj))。この構文はPythonに慣れたユーザからは称賛をもって受け入れられているが、他の言…
|
| /external/python/cpython2/Doc/extending/ |
| D | embedding.rst | 7 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/cpython3/Doc/installing/ |
| D | index.rst | 6 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/faq/ |
| D | installed.rst | 2 "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 …]
|
| D | general.rst | 4 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 …]
|
| D | windows.rst | 6 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/ |
| D | installed.rst | 2 "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 …]
|
| D | general.rst | 4 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 …]
|
| /external/python/cpython3/Doc/extending/ |
| D | embedding.rst | 7 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/ |
| D | mac.rst | 5 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 …]
|
| D | windows.rst | 6 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/ |
| D | index.rst | 6 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/pybind11/docs/advanced/ |
| D | exceptions.rst | 4 Built-in C++ to Python exception translation 7 When Python calls C++ code through pybind11, pybind11 provides a C++ exception handler 8 that will trap C++ exceptions, translate them to the corresponding Python exception, 9 and raise them so that Python code can handle them. 13 Python exceptions. Note that these are not actually Python exceptions, so they 14 cannot be examined using the Python C API. Instead, they are pure C++ objects 15 that pybind11 will translate the corresponding Python exception when they arrive 21 | Exception thrown by C++ | Translated to Python exception type | 66 Python. For that, catch :class:`pybind11::error_already_set`. See :ref:`below 70 :func:`handle::call` when the input arguments cannot be converted to Python [all …]
|
| /external/python/cpython3/Doc/using/ |
| D | mac.rst | 5 Using Python on a Mac 11 Python on a Mac running macOS is in principle very similar to Python on 20 macOS since version 10.8 comes with Python 2.7 pre-installed by Apple. If you wish, you 21 are invited to install the most recent version of Python 3 from the Python 22 website (https://www.python.org). A current "universal binary" build of Python, 28 * A :file:`Python 3.9` folder in your :file:`Applications` folder. In here 30 Python distributions; and PythonLauncher, which handles double-clicking Python 33 * A framework :file:`/Library/Frameworks/Python.framework`, which includes the 34 Python executable and libraries. The installer adds this location to your shell 36 symlink to the Python executable is placed in /usr/local/bin/. [all …]
|
| /external/pigweed/docs/ |
| D | python_build.rst | 4 Pigweed's GN Python Build 15 Pigweed uses a custom GN-based build system to manage its Python code. The 16 Pigweed Python build supports packaging, installation and distribution of 17 interdependent local Python packages. It also provides for fast, incremental 21 Pigweed's Python code is exclusively managed by GN, but the GN-based build may 23 setup uses GN to set up the initial Python environment, regardless of the final 24 build system. As needed, non-GN projects can declare just their Python packages 29 In addition to compiler commands a Pigweed GN build will execute Python scripts 33 ``python``. Running Python on it's own by default will make any Python packages 36 workstation. To get around this the Python community uses `virtual environments [all …]
|
| /external/python/cpython2/Mac/BuildScript/resources/ |
| D | ReadMe.rtf | 8 \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/pybind11/ |
| D | setup.cfg | 4 description = Seamless operability between C++11 and Python 13 Topic :: Software Development :: Libraries :: Python Modules 16 Programming Language :: Python :: 2.7 17 Programming Language :: Python :: 3 18 Programming Language :: Python :: 3.5 19 Programming Language :: Python :: 3.6 20 Programming Language :: Python :: 3.7 21 Programming Language :: Python :: 3.8 22 Programming Language :: Python :: 3.9 24 Programming Language :: Python :: Implementation :: PyPy [all …]
|
| /external/python/cpython3/PC/ |
| D | readme.txt | 1 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/cpython3/Tools/c-analyzer/ |
| D | TODO | 32 Python/fileutils.c:_Py_open_cloexec_works int _Py_open_cloexec_works 67 Python/Python-ast.c:init_types():initialized static int initialized 68 Python/bootstrap_hash.c:urandom_cache static struct { int fd; dev_t st_d… 69 Python/ceval.c:lltrace static int lltrace 70 Python/ceval.c:make_pending_calls():busy static int busy 71 Python/dynload_shlib.c:handles static struct { dev_t dev; ino_t i… 72 Python/dynload_shlib.c:nhandles static int nhandles 73 Python/import.c:import_lock static PyThread_type_lock import_l… 74 Python/import.c:import_lock_level static int import_lock_level 75 Python/import.c:import_lock_thread static unsigned long import_lock_t… [all …]
|
| /external/python/cpython2/PC/ |
| D | readme.txt | 1 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/markdown/ |
| D | README.md | 1 [Python-Markdown][] 7 [![Python Versions][pyversion-button]][md-pypi] 11 [build-button]: https://github.com/Python-Markdown/markdown/workflows/CI/badge.svg?event=push 12 [build]: https://github.com/Python-Markdown/markdown/actions?query=workflow%3ACI+event%3Apush 13 [codecov-button]: https://codecov.io/gh/Python-Markdown/markdown/branch/master/graph/badge.svg 14 [codecov]: https://codecov.io/gh/Python-Markdown/markdown 21 [Code of Conduct]: https://github.com/Python-Markdown/markdown/blob/master/CODE_OF_CONDUCT.md 23 This is a Python implementation of John Gruber's [Markdown][]. 29 [Python-Markdown]: https://Python-Markdown.github.io/ 31 [Features]: https://Python-Markdown.github.io#Features [all …]
|