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.
PEP 538 -- Coercing the legacy C locale to a UTF-8 based locale PEP:538 Title:Coercing the legacy C locale to a UTF-8 based locale Author:Nick Coghlan <ncoghlan at gmail.com> BDFL-Delegate:INADA Naoki Status:Final Type:Standards Track Created:28-Dec-2016 Python-Version:3.7 Post-History:03-Jan-2017, 07-Jan-2017, 05-Mar-2017, 09-May-2017 Resolution:https://mail.python.org/pipermail/python-dev/2017-May/148035.html Contents Abstract Implementation Notes Background Relation...
PEP 540 -- Add a new UTF-8 Mode PEP:540 Title:Add a new UTF-8 Mode Author:Victor Stinner <vstinner at python.org> BDFL-Delegate:INADA Naoki Status:Final Type:Standards Track Created:05-Jan-2016 Python-Version:3.7 Resolution:https://mail.python.org/pipermail/python-dev/2017-December/151173.html Contents Abstract Rationale Locale encoding and UTF-8 Passthough for undecodable bytes: surrogateescape No change by default for best backward compatibility Proposal Relationshi...
...Locals_GetCopy(); PyLocals_GetCopy() returns a new dict instance populated from the current locals namespace. Roughly equivalent to dict(locals()) in Python code, but avoids the double-copy in the case where locals() already returns a shallow copy. Akin to the following code, but doesn't assume there will only ever be two kinds of locals result: locals = PyLocals_Get(); if (PyLocals_GetKind() == PyLocals_DIRECT_REFERENCE) { locals = PyDict_Copy(locals); } The existing PyEval_GetLocals() A...
...Locals(void) PyObject *PyFrame_GetLocals(PyFrameObject *f) PyEval_Locals() is equivalent to: locals(). PyFrame_GetLocals(f) is equivalent to: f.f_locals. Both functions will return a new reference. Changes to existing APIs The C-API function PyEval_GetLocals() will be deprecated. PyEval_Locals() should be used instead. The following three functions will become no-ops, and will be deprecated: PyFrame_FastToLocalsWithError() PyFrame_FastToLocals() PyFrame_LocalsToFast() The above four depreca...
PEP 597 -- Add optional EncodingWarning PEP:597 Title:Add optional EncodingWarning Last-Modified:07-Aug-2021 Author:Inada Naoki <songofacandy at gmail.com> Status:Final Type:Standards Track Created:05-Jun-2019 Python-Version:3.10 Contents Abstract Motivation Using the default encoding is a common mistake Explicit way to use locale-specific encoding Prepare to change the default encoding to UTF-8 Specification EncodingWarning Options to enable the warning encoding="loca...
PEP 331 -- Locale-Independent Float/String Conversions PEP:331 Title:Locale-Independent Float/String Conversions Author:Christian R. Reis <kiko at async.com.br> Status:Final Type:Standards Track Created:19-Jul-2003 Python-Version:2.4 Post-History:21-Jul-2003, 13-Aug-2003, 18-Jun-2004 Contents Abstract Introduction Rationale Example Problem Proposal Potential Code Contributions Risks Implementation References Copyright Abstract Support for the LC_NUMERIC locale categor...
...locals() / vars() These functions return a dictionary containing the current scope's local variables. Modifications to the dictionary do not affect the values of variables. Under the current rules, the use of locals() and globals() allows the program to gain access to all the namespaces in which names are resolved. An analogous function will not be provided for nested scopes. Under this proposal, it will not be possible to gain dictionary-style access to all visible scopes. Warnings and Erro...
PEP 378 -- Format Specifier for Thousands Separator PEP:378 Title:Format Specifier for Thousands Separator Author:Raymond Hettinger <python at rcn.com> Status:Final Type:Standards Track Created:12-Mar-2009 Python-Version:2.7, 3.1 Post-History:12-Mar-2009 Contents Motivation Main Proposal (from Nick Coghlan, originally called Proposal I) Current Version of the Mini-Language Research into what Other Languages Do Alternative Proposal (from Eric Smith, originally called Prop...
mostly meant for conferences and larger local events
meant for user group events and other smaller local events
...locals could also be called thread-wide globals---in single-threaded code, they are indeed truly global. And task-locals could be called task-wide globals, because tasks can be very big. The issue here is that neither global variables, thread-locals nor task-locals are really meant to be used for this purpose of passing information of the execution context down the call chain. Instead of the widest possible variable scope, the scope of the variables should be controlled by the programmer, typica...
PEP 440 -- Version Identification and Dependency Specification PEP:440 Title:Version Identification and Dependency Specification Author:Nick Coghlan <ncoghlan at gmail.com>, Donald Stufft <donald at stufft.io> BDFL-Delegate:Nick Coghlan <ncoghlan at gmail.com> Discussions-To:distutils-sig at python.org Status:Active Type:Informational Created:18-Mar-2013 Post-History:30-Mar-2013, 27-May-2013, 20-Jun-2013, 21-Dec-2013, 28-Jan-2014, 08-Aug-2014, 22-Aug-2014 Replace...
PEP 521 -- Managing global context via 'with' blocks in generators and coroutines PEP:521 Title:Managing global context via 'with' blocks in generators and coroutines Author:Nathaniel J. Smith <njs at pobox.com> Status:Withdrawn Type:Standards Track Created:27-Apr-2015 Python-Version:3.6 Post-History:29-Apr-2015 Contents PEP Withdrawal Abstract Specification Nested blocks Other changes Rationale Alternative approaches Backwards compatibility Interaction with ...
...locals) call is enough to resolve the annotation. In both cases it's important to consider how globals and locals affect the postponed evaluation. An annotation is no longer evaluated at the time of definition and, more importantly, in the same scope where it was defined. Consequently, using local state in annotations is no longer possible in general. As for globals, the module where the annotation was defined is the correct context for postponed evaluation. The get_type_hints() function auto...
...locals[n]) The eggs object strips the leading eggs., stores the (ham, &fastlocals[n]) info, locates the object in its namespace called ham and calls _PyObject_TrackName once again: _PyObject_TrackName(ham, "ham", &fastlocals[n]) The ham object strips the leading string (no "." this time, but that's a minor point), sees that the result is empty, then uses its own value (self, probably) to update the location it was handed: Py_XDECREF(&fastlocals[n]); &fastlocals[n] = self; P...
PEP 277 -- Unicode file name support for Windows NT PEP:277 Title:Unicode file name support for Windows NT Author:neilh at scintilla.org (Neil Hodgson) Status:Final Type:Standards Track Created:11-Jan-2002 Python-Version:2.3 Post-History: Contents Abstract Rationale Specification Restrictions Reference Implementation References Copyright Abstract This PEP discusses supporting access to all files possible on Windows NT by passing Unicode file names directly to the system's w...
07 June from 12am UTC , 2014
Location: Av. Assis Brasil, 7765, in the FTEC-Faculdades building, localized at Porto Alegre, RS, Brasil
PyPOA Python Conference
PEP 370 -- Per user site-packages directory PEP:370 Title:Per user site-packages directory Author:Christian Heimes <christian at python.org> Status:Final Type:Standards Track Created:11-Jan-2008 Python-Version:2.6, 3.0 Post-History: Contents Abstract Rationale Specification Windows Notes Unix Notes Mac OS X Notes Implementation Backwards Compatibility Reference Implementation Copyright References Abstract This PEP proposes a new a per user site-packages directory to...
...locals() are currently formally unspecified. However, if the current behaviour of locals() at class scope is taken as normative (as PEP 558 proposes), then this is essentially the same scenario as manipulating the module globals, just using locals() instead. For function scopes, however, the current answers to these two questions are respectively "Yes" and "No". Expression level rebinding of function locals is already possible thanks to lexically nested scopes and explicit nonlocal NAME expressi...
PEP 250 -- Using site-packages on Windows PEP:250 Title:Using site-packages on Windows Author:p.f.moore at gmail.com (Paul Moore) Status:Final Type:Standards Track Created:30-Mar-2001 Python-Version:2.2 Post-History:30-Mar-2001 Contents Abstract Motivation Implementation Notes Open Issues Copyright Abstract The standard Python distribution includes a directory Lib/site-packages, which is used on Unix platforms to hold locally installed modules and packages. The site.py mod...