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.
Python Distutils-SIG: Design Proposal Python Distutils-SIG (Prerequisites: please read the proposed interface before trying to plough through this design document; it is very much a sequel to the interface document.) Design Proposal The Distutils' point of view setup.py only has to import one module, distutils.core. This module is responsible for parsing all command-line arguments to setup.py (even though the interpretation of options is di...
2018 PSF Annual Report #wrapper { overflow: hidden; position: relative; } .resize-active * { -webkit-transition: none; transition: none; } h1, .h1 { line-height: 34px; margin-bottom: 27px; } h2, .h2 { color: #3776ab; line-height: 26px; display: block; } p, blockquote, time, em { line-height: 28px; } time { font-style: italic; } p { margin-bottom: 24px; text-align: justify; } a { -webkit-transition: color .3s ease-in-out; transiti...
2019 PSF Annual Report #wrapper { overflow: hidden; position: relative; } .resize-active * { transition: none; } h1, .h1 { line-height: 34px; margin-bottom: 27px; } h2, .h2 { color: #3776ab; line-height: 26px; display: block; } p, blockquote, time, em { line-height: 28px; } time { font-style: italic; } p { margin-bottom: 24px; text-align: justify; } a { transition: color 0.3s ease-in-out; text-decoration: none; } .section-head...
Recurring Giving Campaign Help us raise $30,000 USD by November 27th! #countdown-wrap { width: 70%; padding: 10px; font-family: arial; max-width: 650px; margin: 10px auto 50px; } #goal { font-size: 36px; text-align: center; color: #888; @media only screen and (max-width : 640px) { text-align: center; } } #glass { width: 100%; height: 20px; background: #c7c7c7; border-radius: 10px; float: left; overflow: hidden; } #progress { float: left; width: 0...
Rebuilding the PSF - Q4 2020 Fundraiser #countdown-wrap { width: 70%; padding: 10px; font-family: arial; max-width: 650px; margin: 10px auto 50px; display: block; } #goal { font-size: 32px; text-align: center; color: #888; @media only screen and (max-width : 640px) { text-align: center; } } #glass { width: 100%; height: 20px; background: #c7c7c7; border-radius: 10px; float: left; overflow: hidden; } #progress { float:...
Building the PSF: the Q2 2019 Fundraiser Help us raise $60,000 USD by June 30th! #countdown-wrap { width: 70%; padding: 10px; font-family: arial; max-width: 650px; margin: 10px auto 50px; } #goal { font-size: 36px; text-align: center; color: #888; @media only screen and (max-width : 640px) { text-align: center; } } #glass { width: 100%; height: 20px; background: #c7c7c7; border-radius: 10px; float: left; overflow: hidden; } #progress { float: left;...
...vars.ContextVar contextvars.Token contextvars.Context asyncio Implementation Summary of the New APIs Python API C API Rejected Ideas Replicating threading.local() interface Replacing Token with ContextVar.unset() Having Token.reset() instead of ContextVar.reset() Making Context objects picklable Making Context a MutableMapping Having initial values for ContextVars Backwards Compatibility Examples Converting code that uses threading.local() Offloading execution to other threads Reference ...
...VARS]: translates to: $kind = type($value).__match_container__ if $kind != MATCH_SEQUENCE: FAIL if len($value) != len($VARS): FAIL $VARS = $value Example: [2] A pattern including a star pattern: case [$VARS] translates to: $kind = type($value).__match_container__ if $kind != MATCH_SEQUENCE: FAIL if len($value) < len($VARS): FAIL $VARS = $value # Note that $VARS includes a star expression. Example: [3] Mapping Patterns A pattern not including a double-star pattern: ca...
From 13 May through 17 May, 2014
Location: L'Île des Embiez, Var, France
Djangocon Europe 2014
...vars.ExecutionContext() class, which represents an execution context. The new contextvars.LogicalContext() class, which represents a logical context. The new contextvars.get_execution_context() function, which returns an ExecutionContext instance representing a copy of the current execution context. The contextvars.run_with_execution_context(ec: ExecutionContext, func, *args, **kwargs) function, which runs func with the provided execution context. The contextvars.run_with_logical_context(lc: Log...
Donation Drive ThePSF, Python Software Foundation, Python, PSF Support the PSF to further the development and adoption of Python .crm-contribute-widget { font-size:12px; font-family:Helvetica, Arial, sans; padding:6px; -moz-border-radius: 4px; -webkit-border-radius: 4px; -khtml-border-radius: 4px; border-radius: 4px; border:1px solid #96C0E7; width:200px; } .crm-contribute-...
PEP 377 -- Allow __enter__() methods to skip the statement body PEP:377 Title:Allow __enter__() methods to skip the statement body Author:Nick Coghlan <ncoghlan at gmail.com> Status:Rejected Type:Standards Track Created:08-Mar-2009 Python-Version:2.7, 3.1 Post-History:08-Mar-2009 Contents Abstract PEP Rejection Proposed Change Rationale for Change Performance Impact Reference Implementation Acknowledgements References Copyright Abstract This PEP proposes a backwards c...
...vars = [] try: try: for context in contexts: exit = context.__exit__ enter = context.__enter__ vars.append(enter()) exits.append(exit) yield vars except: exc = sys.exc_info() else: exc = (None, None, None) finally: while exits: exit = exits.pop() try: exit(*exc) except: exc = sys...
PEP 379 -- Adding an Assignment Expression PEP:379 Title:Adding an Assignment Expression Author:Jervis Whitley <jervisau at gmail.com> Status:Withdrawn Type:Standards Track Created:14-Mar-2009 Python-Version:2.7, 3.2 Post-History: Contents Abstract Motivation and Summary Use Cases Specification Examples from the Standard Library Examples References Copyright Abstract This PEP adds a new assignment expression to the Python language to make it possible to assign the res...
Donation Drive ThePSF, Python Software Foundation, Python, PSF Invest in our Foundation and better the Python community! Thanks to everyone who helped us exceed our goal of $20,000.00 USD by May 12th! .crm-contribute-widget { font-size:12px; font-family:Helvetica, Arial, sans; padding:6px; -moz-border-radius: 4px; -webkit-border-radius: 4px; -khtml-border-radius: 4px; border-radius: 4px; bor...
PEP 284 -- Integer for-loops PEP:284 Title:Integer for-loops Author:David Eppstein <eppstein at ics.uci.edu>, Greg Ewing <greg.ewing at canterbury.ac.nz> Status:Rejected Type:Standards Track Created:01-Mar-2002 Python-Version:2.3 Post-History: Contents Abstract Pronouncement Rationale Specification Issues Implementation References Copyright Abstract This PEP proposes to simplify iteration over intervals of integers, by extending the range of expressions allowed ...
PEP 310 -- Reliable Acquisition/Release Pairs PEP:310 Title:Reliable Acquisition/Release Pairs Author:Michael Hudson <mwh at python.net>, Paul Moore <p.f.moore at gmail.com> Status:Rejected Type:Standards Track Created:18-Dec-2002 Python-Version:2.4 Post-History: Contents Abstract Pronouncement Rationale Basic Syntax and Semantics Possible Extensions Multiple expressions Exception handling Implementation Notes Open Issues Alternative Ideas Backwards Compatibility...
...vars[n] = v else: m = undef_rx.match(line) if m: vars[m.group(1)] = 0 Improved: while line := fp.readline(): if m := define_rx.match(line): n, v = m.group(1, 2) try: v = int(v) except ValueError: pass vars[n] = v elif m := undef_rx.match(line): vars[m.group(1)] = 0 Simplifying list comprehensions A list comprehension can map and filter efficiently by capturing the condition: results ...
PSF Sponsorship Prospectus sponsorship sponsor prospectus PSF Sponsorship Program Your contributions matter and they make an IMPACT. Below are some of the ways the PSF uses its funding to support the Python community: Python Community Infrastructure The PSF supports the Python Package Index (PyPI), mail.python.org, wiki.python.org, and us.pycon.org. In addition to the costs of the community web services we provide, we need staff to expand our services programs and keep them running 24/...