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.
...enumerated the tasks necessary to develop, distribute, and install Python modules; arrived at a rough consensus regarding the division of labour necessary to conceptualize any distribution/installation system; and came up with a proposed user interface. This document describes the tasks and division of labour; the proposed user interface is described elsewhere. Three roles were identified: the developer, the packager, and the installer (in one sense, th...
...enumerated types. The resulting classes are never instantiated -- rather, their class attributes are the enumerated values. For example: class Color(Enum): red = 1 green = 2 blue = 3 print Color.red will print the string ``Color.red'', while ``Color.red==1'' is true, and ``Color.red + 1'' raise a TypeError exception. Trace.py The resulting classes work much like standard classes, but by setting a special class or instance attribute __trace_output__ to p...
...enumerate() - an iterator taking a sequence returning tuples of (index, item). This solves the old "for i in range(len(seq))" problem more elegantly. (PEP 279) basestring - an abstract string type which is the base class for str (8-bit strings) and unicode. Primarily used to simplify tests for string-ness to isinstance(x, basestring). bool, True, False - these were introduced as ints in Python 2.2.1, but are now a separate type (a subtype of int). This means that True and False are...
...enumerate the tests, marking them as 'to be run' in a database, and then copy the build to shared directories on a manually listed set of 'slave' machines. Forcing developers to manually specify which machines to use was initially created as the 'simplest thing that could possibly work.' Contrary to our expectations, we have since had little motivation to automate this. It turns out that negotiation between developers over which machines to use during builds is a valuable excuse to touch base wi...
...enumerate(x), from PEP 279. Example: enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c"). The argument can be an arbitrary iterable object. The assert statement no longer tests __debug__ at runtime. This means that assert statements cannot be disabled by assigning a false value to __debug__. A method zfill() was added to str and unicode, that fills a numeric string to the left with zeros. For example, "+123".zfill(6) -> &q...
...enumerate() now has a start argument. Issue #2801: fix bug in the float.is_integer method where a ValueError was sometimes incorrectly raised. The --with-toolbox-glue option (and the associated pymactoolbox.h) have been removed. Issue #2196: hasattr() now lets exceptions which do not inherit Exception (KeyboardInterrupt, and SystemExit) propagate instead of ignoring them. #3021 Exception reraising sematics have been significantly improved. However, f_exc_type, f_exc_value, and f_exc_traceback c...
...enumerated above. Approved unanimously by email vote on February 4, 2004. RESOLVED, that monies from the silver sponsorships be allocated to help defray costs associated with sponsor-selected sprints, up to a maximum of $500. Each silver sponsor can choose what sprint to allocate the funds to. The sprint leader and the sprint chair must agree on how the monies are to be disbursed. Any reimbursement for travel or other expenses must be made based on submission of receipts. Approved with 4/2/0 ...
If you didn't find what you need, try your search in the Python language documentation.