/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 …]
|
D | cporting.rst | 6 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/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 …]
|
D | cporting.rst | 6 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/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/faq/ |
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 | 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 | windows.rst | 8 Python on Windows FAQ 15 .. XXX need review for Python 3. 19 How do I run a Python program under Windows? 42 D:\YourName\Projects\Python> 46 running Python programs. 48 You need to realize that your Python scripts have to be processed by another 49 program called the Python *interpreter*. The interpreter reads your script, 51 program. So, how do you arrange for the interpreter to handle your Python? 66 Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32 71 Python statements or expressions interactively and have them executed or [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/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/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/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/mock/ |
D | setup.cfg | 14 Programming Language :: Python 15 Programming Language :: Python :: 2 16 Programming Language :: Python :: 2.7 17 Programming Language :: Python :: 3 18 Programming Language :: Python :: 3.3 19 Programming Language :: Python :: 3.4 20 Programming Language :: Python :: 3.5 21 Programming Language :: Python :: 3.6 22 Programming Language :: Python :: Implementation :: CPython 23 Programming Language :: Python :: Implementation :: Jython [all …]
|
/external/python/cpython3/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 20 Mac OS X 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, 30 Python distributions; PythonLauncher, which handles double-clicking Python 32 package Python scripts as standalone applications on your system. 34 * A framework :file:`/Library/Frameworks/Python.framework`, which includes the 35 Python executable and libraries. The installer adds this location to your shell 37 symlink to the Python executable is placed in /usr/local/bin/. [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/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-globals/ |
D | ignored-globals.txt | 28 # Python/getopt.c 48 # Python/dtoa.c 53 # Python/import.c 60 # Python/pylifecycle.c 139 # Python/bltinmodule.c 144 # Python/sysmodule.c 199 # Python/dtoa.c 210 # Python/dynload_shlib.c 214 # Python/import.c 221 # Python/bootstrap_hash.c [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/python/cpython2/Misc/ |
D | README.AIX | 2 This documentation tries to help people who intend to use Python on 5 There used to be many issues with Python on AIX, but the major ones 6 have been corrected for version 3.2, so that Python should now work 12 Compiling Python 15 You can compile Python with gcc or the native AIX compiler. The native 17 versions of Python. With Python 3.2 it may not be the case anymore, 18 as this compiler does not allow compiling Python with computed gotos. 23 cd Python-3.2 28 alias for compiling Python is 'xlc_r', which provides a better level of 36 cd Python-3.2 [all …]
|