Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
...Locale Starting with CPython 3.7.0, *nix platforms are expected to provide at least one of C.UTF-8 (full locale), C.utf8 (full locale) or UTF-8 (LC_CTYPE-only locale) as an alternative to the legacy C locale. Any Unicode-related integration problems that occur only in the legacy C locale and cannot be reproduced in an appropriately configured non-ASCII locale will be closed as "won't fix". No-longer-supported platforms Name: MS-DOS, MS-Windows 3.x Unsupported in: Python 2.0 Cod...
...local name, or binds objects from that module to a local name. However, it is sometimes desirable to bind those objects to a different name, for instance to avoid name clashes. This can currently be achieved using the following idiom: import os real_os = os del os And similarly for the from ... import statement: from os import fdopen, exit, stat os_fdopen = fdopen os_stat = stat del fdopen, stat The proposed syntax change would add an optional as clause to both these statements, as follows...
...local is prepended to an assignment or augmented assignment: nonlocal x = 3 The above has exactly the same meaning as nonlocal x; x = 3. (Guido supports a similar form of the global statement [24].) On the left side of the shorthand form, only identifiers are allowed, not target expressions like x[0]. Otherwise, all forms of assignment are allowed. The proposed grammar of the nonlocal statement is: nonlocal_stmt ::= "nonlocal" identifier ("," identifier)* ["=" (target_lis...
...LOCAL - list of feature to be installed on the local machine REMOVE - list of features to be removed ADDDEFAULT - list of features added in their default configuration (which is local for all Python features) REINSTALL - list of features to be reinstalled/repaired ADVERTISE - list of feature for which to perform an advertise installation There are a few additional properties available; see the MSDN documentation for details. With these options, adding ADDLOCAL=Extensions i...
...local for locally-installed packages and /usr for distro-installed packages. Fedora uses /usr/local/lib/python3.x/site-packages vs. /usr/lib/python3.x/site-packages. (Debian uses /usr/local/lib/python3/dist-packages vs. /usr/lib/python3/dist-packages as an additional layer of separation from a locally-compiled Python interpreter: if you build and install upstream CPython in /usr/local/bin, it will look at /usr/local/lib/python3/site-packages, and Debian wishes to make sure that packages installe...
Version: None
Released: Oct. 17, 2017
This is an early developer preview of Python 3.7 Major new features of the 3.7 series, compared to 3.6 Python 3.7 is still in development. This releasee, 3.7.0a2, is the second of four planned alpha releases. Alpha releases are intended to make it easier to test the current state of …
View Release Notes
...local-stats/days/2008-11-06.bz2 /local-stats/days/2008-11-07.bz2 /local-stats/days/2008-11-08.bz2 This page must be located at /local-stats. How a mirror should synchronize with PyPI A mirroring protocol called Simple Index was described and implemented by Martin v. Loewis and Jim Fulton, based on how easy_install works. This section synthesizes it and gives a few relevant links, plus a small part about User-Agent. The mirroring protocol Mirrors must reduce the amount of data transferred b...
...localtime. Therefore, it is possible to create a local time zone object with the correct time zone information even though you don't know the name of the time zone. A function in datetime should be provided to return the local time zone. The support for this will be made by integrating Lennart Regebro's tzlocal module into the new datetime module. For Windows it will look up the local Windows time zone name, and use a mapping between Windows time zone names and zoneinfo time zone names provided ...
...locales, and many of them are listed at http://wiki.python.org/moin/LocalUserGroups Many of these user groups also have mailing lists in the locally preferred language.
...local gatherings to learn and discuss Python. Please consider supporting the BAPyA community with a contribution. Boston Python Boston Python is one of the world's largest local Python user groups. We have a presentation night and a project night almost every month, and run weekend workshops to introduce beginners to Python. Your donation helps keep the Python community in Boston vibrant! ChiPy Founded in 2003, ChiPy (Chicago Python User Group) has over 1,000 active members with a focus on th...
Released: Dec. 5, 2017
This is an early developer preview of Python 3.7 Major new features of the 3.7 series, compared to 3.6 Python 3.7 is still in development. This releasee, 3.7.0a3, is the third of four planned alpha releases. Alpha releases are intended to make it easier to test the current state of …
...local/bin/python # coding: latin-1 import os, sys ... Without encoding comment, Python's parser will assume ASCII text: #!/usr/local/bin/python import os, sys ... Encoding comments which don't work: Missing "coding:" prefix: #!/usr/local/bin/python # latin-1 import os, sys ... Encoding comment not on line 1 or 2: #!/usr/local/bin/python # # -*- coding: latin-1 -*- import os, sys ... Unsupported encoding: #!/usr/local/bin/python # -*- coding: utf-42 -*- import os, sys ... Conc...
...local version identifier The ideas of having build backends append or modify the local version identifier to include the editable string has been rejected because it would not satisfy == version speicifier that include the local version identifier. In other words pkg==1.0+local is not satisfied by version 1.0+local.editable. Virtual wheel Another approach was proposed in PEP 662, where the build backend returns a mapping from source files and directories to the installed layout. It is then up ...
...local variables or class attributes. This PEP removes that restriction; annotations may refer to globals, local variables inside functions, local variables defined in enclosing functions, and class members in the current class. In addition, annotations may refer to any of these that haven't been defined yet at the time the annotation is defined, as long as the not-yet-defined name is created normally (in such a way that it is known to the symbol table for the relevant block, or is a global or c...
...local variable will cause the interpreter to always make it a local: def f(): a: int print(a) # raises UnboundLocalError # Commenting out the a: int makes it a NameError. as if the code were: def f(): if False: a = 0 print(a) # raises UnboundLocalError Duplicate type annotations will be ignored. However, static type checkers may issue a warning for annotations of the same variable by a different type: a: int a: str # Static type checker may or may not warn about this....
Released: Jan. 9, 2018
This is an early developer preview of Python 3.7 Python 3.7 is still in development. This releasee, 3.7.0a4, is the last of four planned alpha releases. Alpha releases are intended to make it easier to test the current state of new features and bug fixes and to test the release …
...local=False) -> iterator of (path, hash, size) Iterates over the RECORD entries and return a tuple (path, hash, size) for each line. If local is True, the path is transformed into a local absolute path. Otherwise the raw value from RECORD is returned. A local absolute path is an absolute path in which occurrences of '/' have been replaced by the system separator given by os.sep. uses(path) -> Boolean Returns True if path is listed in RECORD. path can be a local absolute path or a relative...
...local precedence ordering since the order in the local precedence list, i.e. the list of the parents of G, is not preserved in the Python 2.2 linearization of G: L[G,P22]= G E F object # F *follows* E One could argue that the reason why F follows E in the Python 2.2 linearization is that F is less specialized than E, since F is the superclass of E; nevertheless the breaking of local precedence ordering is quite non-intuitive and error prone. This is particularly true since it is a differe...
...local times are the same. The allowed values for the fold attribute will be 0 and 1 with 0 corresponding to the earlier and 1 to the later of the two possible readings of an ambiguous local time. Rationale In most world locations, there have been and will be times when local clocks are moved back. [1] In those times, intervals are introduced in which local clocks show the same time twice in the same day. In these situations, the information displayed on a local clock (or stored in a Python d...