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.
...parallel in Jenkins (in order to allow more than 24 commits a day when a full test run takes the better part of an hour), and are merged as they pass (and as all the candidate merges ahead of them in the queue pass). If a patch fails the tests, Zuul takes it out of the queue, cancels any test runs after that patch in the queue, and rebuilds the queue without the failing patch. If a developer looks at a test which failed on merge and determines that it was due to an intermittent failure, they can...
...Parallel" project * incomplete; Windows-only at the time multiprocessing too much work to make it effective enough; high penalties in some situations (at large scale, Windows) other parallelism tools (e.g. dask, ray, MPI) * not a fit for the stdlib give up on multi-core (e.g. async, do nothing) * this can only end in tears Even in 2014, it was fairly clear that a solution using isolated interpreters did not have a high level of technical risk and that most of the work was worth doing anyway. ...
...parallelizing simple operations requires a lot of work i.e. explicitly launching processes/threads, constructing a work/results queue, and waiting for completion or some other termination condition (e.g. failure, timeout). It is also difficult to design an application with a global process/thread limit when each component invents its own parallel execution strategy. Specification Naming The proposed package would be called "futures" and would live in a new "concurrent" top-level package. Th...
...parallel is clear, since the else expr2 appears at the end of both the abbreviated and expanded forms. For ?then expressions, expr1 ?then expr2 is equivalent to: _lhs_result = expr1 expr2 if operator.exists(_lhs_result) else _lhs_result Here the parallel isn't as immediately obvious due to Python's traditionally anonymous "then" clauses (introduced by : in if statements and suffixed by if in conditional expressions), but it's still reasonably clear as long as you're already familiar with the "...
...parallel the syntax for class definition, and so: make <callable> <name> <tuple>: <block> is translated into the assignment: <name> = <callable>("<name>", <tuple>, <namespace>) where <namespace> is the dict created by executing <block>. This is mostly syntactic sugar for: class <name> <tuple>: __metaclass__ = <callable> <block> and is intended to help more clearly express the intent of the...
...Parallel comments apply to the "set" and "frozenset" built-in types. Copyright This document has been placed in the Public Domain. Source: https://github.com/python/peps/blob/master/pep-0218.txt
...parallel. It's fine for this to be a built-in. I don't like the name "indexed"; adjectives do not make good function names. Maybe iterindexed()? Comments from Ka-Ping Yee: I'm also quite happy with everything you proposed ... and the extra built-ins (really 'indexed' in particular) are things I have wanted for a long time. Comments from Neil Schemenauer: The new built-ins sound okay. Guido may be concerned with increasing the number of built-ins too much. You might be better off selling th...
...parallel the existing operators + - * / % **. Six augmented assignment operators ~+= ~-= ~*= ~/= ~%= ~**= are added to core Python. They parallel the operators += -= *= /= %= **= available in Python 2.0. Operator ~op retains the syntactical properties of operator op, including precedence. Operator ~op retains the semantical properties of operator op on built-in number types. Operator ~op raise syntax error on non-number builtin types. This is temporary until the proper behavior can be agreed up...
...paralleling with expr as target: (which can be useful but can also be confusing), this has no parallels, but is evocative. Special-casing conditional statements One of the most popular use-cases is if and while statements. Instead of a more general solution, this proposal enhances the syntax of these two statements to add a means of capturing the compared value: if re.search(pat, text) as match: print("Found:", match.group(0)) This works beautifully if and ONLY if the desired conditio...
...parallel sessions, and it handles more than 2,000,000 Python objects. Its ZSQLCatalog relational index holds more than 10,000,000 rows. Python and Zope were key to this success. Python provided a powerful object language and a rich set of libraries which allowed quick development of clean and compact code. Zope provided a mature application server and object database. Nexedi is sometimes asked: Why not Java and J2EE? While it would be possible to create a similar system with Java and J2EE, devel...
...parallel started work on the content." As far as future plans are concerned for his marketing materials project, he reported: "If the project goes well, we'll follow up with a Python flyer, translated versions of the brochure and also consider creating marketing material more targeted at specific user groups or application fields. In the long run, we'd also like to take the idea of producing marketing material beyond printed material and develop booth setups, giveaways, CDs, etc. to su...
...parallel to the __future__ module mechanism for forward compatibility. For reference, this document will refer to this as a "__past__" mechanism hereon, although it need not have all the characteristics of the __future__ module and future_statement mechanism. The specific form and implementation of the __past__ mechanism is the subject of a separate PEP (in progress). However, this PEP recommends that this __past__ mechanism be designed to meet similar criteria to those outlined in PEP 296 for ...
...parallel variables, exc_type, exc_value, and exc_traceback, the sys.exc_info() function returns a tuple of these three parts, and the raise statement has a three-argument form accepting these three parts. Manipulating exceptions often requires passing these three things in parallel, which can be tedious and error-prone. Additionally, the except statement can only provide access to the value, not the traceback. Adding the __traceback__ attribute to exception values makes all the exception infor...
...parallel. Another example is where one needs to access, say, every second item in a collection. There are many other examples where access to items in a collection is facilitated by a computation on an index thus necessitating access to the indices rather than direct access to the items themselves. Let's call this idiom the "indexed for-loop" idiom. Some programming languages provide builtin syntax for handling this idiom. In Python the common convention for implementing the indexed for-loop ...
...parallel to the imp.get_magic() function. This scheme has the added benefit of reducing the clutter in a Python package directory. When a Python source file is imported for the first time, a __pycache__ directory will be created in the package directory, if one does not already exist. The pyc file for the imported source will be written to the __pycache__ directory, using the magic-tag formatted name. If either the creation of the __pycache__ directory or the pyc file inside that fails, the im...
...parallel URL /simple/<package>, in DER form, using SHA-1 with DSA (i.e. as a RFC 3279 Dsa-Sig-Value, created by algorithm 1.2.840.10040.4.3) Clients using a mirror need to perform the following steps to verify a package: download the /simple page, and compute its SHA-1 hash compute the DSA signature of that hash download the corresponding /serversig, and compare it (byte-for-byte) with the value computed in step 2. compute and verify (against the /simple page) the MD-5 hashes of all files...
...Parallel pyc construction, Dubois (https://mail.python.org/pipermail/python-dev/2003-January/032060.html) [6]patch 677103, PYTHONBYTECODEBASE patch (PEP 304), Montanaro (https://bugs.python.org/issue677103) Copyright This document has been placed in the public domain. Source: https://github.com/python/peps/blob/master/pep-0304.txt
...parallel" (the GC is not able to distribute its work onto several threads at once to lower wall-clock latencies of GC runs). Rationale The mode of operation for the GC has always been to perform implicit collections synchronously. That is, whenever the aforementioned heuristic is activated, execution of application code in the current thread is suspended and the GC is launched in order to reclaim dead reference cycles. There is a catch, though. Over the course of reclaiming dead reference cy...
...parallel with an NFT transaction, and can never be part of it as such. In particular, the PSF will not assign any intellectual property rights to you, but may approve your use of the logo, subject to the same conditions as other uses. By analogy, suppose Tim Parkin (creator of the Python logo, and assigner of its copyright and trademark to the PSF) were to print out the Python logo, and sign, number, and date that print. Possibly someone would pay money for the prestige of having a distinct and...