Docs.python.org promote

Site Title : 3.9.1rc1 Documentation

9. Classes — Python 3.9.1rc1 documentation

Link: https://docs.python.org/3/tutorial/classes.html

FREEEach time next() is called on it, the generator resumes where it left off (it remembers all the data values and which statement was last executed). An example shows that generators can be trivially easy to create: def reverse (data): for index in range (len (data)-1,-1,-1): yield data [index] ... See Details

Created: 1 days ago

What’s New In Python 3.9 — Python 3.9.1rc1 documentation

Link: https://docs.python.org/3.9/whatsnew/3.9.html

FREEAdded option to toggle cursor blink off. (Contributed by Zackery Spytz in bpo-4603.) Escape key now closes IDLE completion windows. (Contributed by Johnny Najera in bpo-38944.) Added keywords to module name completion list. (Contributed by Terry J. Reedy in bpo-37765.) The changes above have been backported to 3.8 maintenance releases. ... See Details

Created: 1 days ago

3. Data model — Python 3.9.1rc1 documentation

Link: https://docs.python.org/3/reference/datamodel.html

FREEWhen the function executes a return statement or falls off the end, a StopIteration exception is raised and the iterator will have reached the end of the set of values to be returned. Coroutine functions. A function or method which is defined using async def is called a coroutine function. Such a function, when called, returns a coroutine object. ... See Details

Created: 2 days ago

graphlib — Functionality to operate with graph-like

Link: https://docs.python.org/3/library/graphlib.html

FREEclass graphlib.TopologicalSorter (graph=None) ¶. Provides functionality to topologically sort a graph of hashable nodes. A topological order is a linear ordering of the vertices in a graph such that for every directed edge u -> v from vertex u to vertex v, vertex u comes before vertex v in the ordering. ... See Details

Created: 2 days ago

What’s New in Python 2.0 — Python 3.9.1rc1 documentation

Link: https://docs.python.org/3/whatsnew/2.0.html

FREETwo common operations on lists are to loop over them, and either pick out the elements that meet a certain criterion, or apply some function to each element. For example, given a list of strings, you might want to pull out all the strings containing a given substring, or strip off trailing whitespace from each line. ... See Details

Created: 2 days ago

Functional Programming HOWTO — Python 3.9.1rc1 documentation

Link: https://docs.python.org/3/howto/functional.html

FREETwo common operations on an iterator’s output are 1) performing some operation for every element, 2) selecting a subset of elements that meet some condition. For example, given a list of strings, you might want to strip off trailing whitespace from each line or extract all the strings containing a given substring. ... See Details

Created: 2 days ago

5. The import system — Python 3.9.1rc1 documentation

Link: https://docs.python.org/3/reference/import.html

FREEIt also off-loads most of the boilerplate responsibilities of loaders back onto the import machinery. These changes allow the deprecation of several APIs in the import system and also addition of new methods to finders and loaders. Footnotes. 1. See types.ModuleType. 2. The importlib implementation avoids using the return value directly. ... See Details

Created: 2 days ago

logging.config — Logging configuration — Python 3.9.1rc1

Link: https://docs.python.org/3/library/logging.config.html

FREElogging.config.fileConfig (fname, defaults=None, disable_existing_loggers=True) ¶ Reads the logging configuration from a configparser-format file.The format of the file should be as described in Configuration file format.This function can be called several times from an application, allowing an end user to select from various pre-canned configurations (if the developer provides a mechanism to ... See Details

Created: 2 days ago

warnings — Warning control — Python 3.9.1rc1 documentation

Link: https://docs.python.org/3/library/warnings.html

FREEThe Warnings Filter¶. The warnings filter controls whether warnings are ignored, displayed, or turned into errors (raising an exception). Conceptually, the warnings filter maintains an ordered list of filter specifications; any specific warning is matched against each filter specification in the list in turn until a match is found; the filter determines the disposition of the match. ... See Details

Created: 2 days ago