id int64 0 2.72k | content stringlengths 5 4.1k | language stringclasses 4
values | embedding unknown |
|---|---|---|---|
500 | d ctx Load slice Index value BinOp left Name id i ctx Load op Add right Name id i ctx Load ctx Store value BinOp left BinOp left Call func Name id ord ctx Load args Name id i ctx Load keywords starargs None kwargs None op Sub right Call func Name id ord ctx Load args Str s a keywords starargs None kwargs None op Add ri... | en | "Wy0wLjA3MTg5OTE4MzA5NDUwMTUsMC4wNTUwMTk1ODM1NTMwNzU3OSwtMC4wMzQ2MDEzMDg0MDUzOTkzMiwwLjA4NTczMDg4MDQ5ODg4NjExLC0wLjA3NTM4ODUwNjA1NDg3ODIzLC0wLjA4MDQxNDgwMTgzNjAxMzgsMC4wNDk5OTIwMjExNzMyMzg3NTQsMC4wMjQxMjUwMDk3NzUxNjE3NDMsLTAuMDMzMTI1NjA1NDM0MTc5MzA2LDAuMDE2MjA2NzY1NTQ3Mzk0NzUzLC0wLjAxMjg0ODMwOTI0MTIzNTI1NiwtMC4wMjY3ODk... |
501 | cing syntax where various combinations of start stop step are supplied Implemented by Thomas Wouters All ctypes data types now support from_buffer and from_buffer_copy methods that create a ctypes instance based on a provided buffer object from_buffer_copy copies the contents of the object while from_buffer will share ... | en | "Wy0wLjA0NjQzOTIzMDQ0MjA0NzEyLDAuMDE2MTg4Njc1NTM3NzA1NDIsLTAuMDc3ODkzMDU1OTc1NDM3MTYsMC4wMjkzNTE5NjgzMTgyMjM5NTMsLTAuMDY0MjY4NzIzMTMwMjI2MTQsLTAuMDQ3NjU3MTY5NDAxNjQ1NjYsMC4wNDQ1NTgzNjQ4OTc5NjYzODUsMC4xMzE0MDA3MTkyODUwMTEzLC0wLjAxODEyMzk0ODk0NjU5NTE5MiwtMC4wMzQxNjkwMjk0NDQ0NTYxLC0wLjAwNzI0OTc3NzY3MDk0OTY5NzUsLTAuMDY4OTA... |
502 | taining the script named by sys argv 0 depending on the value of an updatepath parameter This function was added to close a security hole for applications that embed Python The old function PySys_SetArgv would always update sys path and sometimes it would add the current directory This meant that if you ran an applicat... | en | "Wy0wLjAxMzk5MjIzNTk5NTgyOTEwNSwtMC4wNzg2Mzk0MTA0MzYxNTM0MSwtMC4wNzM3ODgxOTU4NDg0NjQ5NywwLjAwNDYzMTIyNDA4ODM3MDgsMC4wMTU4NDY3NDIzMTcwODA0OTgsLTAuMDQ2MTUzOTU1MTYxNTcxNSwwLjAxNzMwNjIzMjgyNDkyMTYwOCwwLjA2MzkzNjc0NzYxMDU2OSwwLjAwNjg3ODk5MzkzOTYwODMzNTUsLTAuMDA0MTgxNTEwMzAzMTY5NDg5LDAuMDE4MjU3MDUzNTY4OTU5MjM2LDAuMDYzMzQzMjM... |
503 | n Contributed by Collin Winter bpo 1530959 Several basic data types such as integers and strings maintain internal free lists of objects that can be re used The data structures for these free lists now follow a naming convention the variable is always named free_list the counter is always named numfree and a macro Py t... | en | "Wy0wLjA3NTI4NTU0NjQ4MTYwOTM0LDAuMDA2NTMxMzYyODg3NDcxOTE0LC0wLjA1ODA1OTE1MjIxNTcxOTIyLDAuMDYwMjc2MDA5MTQyMzk4ODM0LDAuMDU0MDIyMDgxMTk2MzA4MTM2LC0wLjAzNjU2Njk2MTU1NjY3MzA1LDAuMDE2MDIyMzY5MjY1NTU2MzM1LDAuMTAyOTAzNjc5MDEzMjUyMjYsLTAuMTM1NDUzMTc5NDc4NjQ1MzIsLTAuMDAyNzI0NDA4NDA0OTAxNjIzNywtMC4wMjc3ODAwODM5Mzk0MzMwOTgsLTAuMDE... |
504 | the fact String exceptions have been removed Attempting to use them raises a TypeError The __init__ method of collections deque now clears any existing contents of the deque before adding elements from the iterable This change makes the behavior match list __init__ object __init__ previously accepted arbitrary argument... | en | "Wy0wLjEyMjc5MzM5ODc5NzUxMjA1LDAuMDExNjYzOTkxOTU3OTAyOTA4LC0wLjAyMTgwOTY4NDExMjY2ODAzNywwLjAyMTMyMTc3MTY2NjQwNzU4NSwtMC4wMTk1NzAwMDQxOTQ5NzQ5LC0wLjA3NTQ2MzI4MDA4MTc0ODk2LDAuMDQwNDM5Mzg5NjQ2MDUzMzE0LDAuMTI0NjY0NjY0MjY4NDkzNjUsLTAuMDc2NTMyMTcwMTc2NTA2MDQsLTAuMDAyNjc5MDg5NzgyNzU5NTQ3MiwwLjAzOTUxNjI2NjQzNTM4NDc1LDAuMDAxMDk... |
505 | 4 Execution model 4 1 Structure of a program A Python program is constructed from code blocks A block is a piece of Python program text that is executed as a unit The following are blocks a module a function body and a class definition Each command typed interactively is a block A script file a file given as standard i... | en | "Wy0wLjAzNzM3MTI2NjYzMzI3MjE3LDAuMDA0MjEyNjkyMzc5OTUxNDc3LC0wLjA4OTM5NjU4ODUwNDMxNDQyLDAuMDE3MDEzNjAxOTU4NzUxNjgsLTAuMDMyMTA2ODk0OTk5NzQyNTEsLTAuMTA0MjY3MzE0MDc2NDIzNjUsMC4wMDUyNDgxNTczMDc1MDU2MDgsMC4wNjgyMTI4NjY3ODMxNDIwOSwtMC4wMDIxNjQ2OTU0MTE5MjA1NDc1LC0wLjAxOTI1OTIyMTg1MTgyNTcxNCwtMC4wMDU2OTA1OTIzNDExMjUwMTE0LC0wLjA... |
506 | first If the names are not found there the builtins namespace is searched The global statement must precede all uses of the listed names The global statement has the same scope as a name binding operation in the same block If the nearest enclosing scope for a free variable contains a global statement the free variable ... | en | "Wy0wLjA4MjM2NjM3NzExNTI0OTYzLC0wLjAyODU1OTEwNzMzMzQyMTcwNywtMC4wNjkyOTI5Nzc0NTIyNzgxNCwwLjA2OTAxNTE3NTEwNDE0MTI0LC0wLjAyNDgxOTA1MzcwOTUwNjk5LC0wLjA4OTU5MzExMjQ2ODcxOTQ4LDAuMDM3NTc5MTUyNzMzMDg3NTQsMC4wMzEwMTkwNjM2NjY0NjI4OTgsLTAuMDE3NTk5NTczMzU4ODkzMzk0LC0wLjAzMDkwNjY4NDY5NjY3NDM0NywwLjA0MTU1MTk4NDg0NjU5MTk1LC0wLjAzNzc... |
507 | access Example type Alias 1 0 Alias __value__ Traceback most recent call last ZeroDivisionError division by zero def func T 1 0 pass T func __type_params__ 0 T __bound__ Traceback most recent call last ZeroDivisionError division by zero Here the exception is raised only when the __value__ attribute of the type alias o... | en | "Wy0wLjAzNTUxMjEyMzI1NjkyMTc3LDAuMDE1MDEzODAxODY1Mjc5Njc1LDAuMDIzNDQ2NjMyNTQ5MTY2NjgsMC4wNDQ4MTM5MTk4MTI0NDA4NywtMC4wMjkxNDYzMDYyMTY3MTY3NjYsLTAuMDY5NTg4MzMzMzY4MzAxMzksMC4wNzcxNDYwNDU4NjM2MjgzOSwwLjEwMjYyMjEyMTU3MjQ5NDUsLTAuMDQwMzk2MTAxNzcyNzg1MTksLTAuMDQyNTg4ODAzOTE3MTY5NTcsLTAuMDAxNDkyMDcwMzgzMzkyMjc0NCwtMC4wMTM4MjQ... |
508 | See also the description of the try statement in section The try statement and raise statement in section The raise statement Footnotes 1 This limitation occurs because the code that is executed by these operations is not available at the time the module is compiled | en | "Wy0wLjAzNDkyMTYyNzQ5MTcxMjU3LDAuMDAwMzExODE4NjE0MTM2NDI3NjQsLTAuMDA0OTM4Nzg4NzEyMDI0Njg5LDAuMDM1MjIzMTYzNjY0MzQwOTcsMC4wMTE3ODY1OTIxOTI5NDc4NjUsLTAuMDEzOTYwNzEyNTg5MzIzNTIsLTAuMDQ1NjEyOTQyNDI3Mzk2Nzc0LDAuMDY5NjIyMDE3NDQzMTgwMDgsLTAuMDQxMzE5MTIwNjc1MzI1Mzk0LDAuMDA0NTcwNjE1MDEyMTk4Njg3LDAuMTIwMTAxMjEzNDU1MjAwMiwtMC4wNTA... |
509 | xml sax xmlreader Interface for XML parsers Source code Lib xml sax xmlreader py SAX parsers implement the XMLReader interface They are implemented in a Python module which must provide a function create_parser This function is invoked by xml sax make_parser with no arguments to create a new parser object class xml sax... | en | "Wy0wLjEyMDU1OTMwNDk1MjYyMTQ2LC0wLjAzNTY5NTI3NzE1NDQ0NTY1LDAuMDIxNDA1NDMwNTEwNjQwMTQ0LC0wLjAwMzgxNzQxNjQ5NDcxMjIzMzUsLTAuMDgzNDExMDc1MTc0ODA4NSwtMC4wOTA5ODgxODg5ODIwMDk4OSwtMC4wNzEyMDc4MzYyNzAzMzIzNCwtMC4wMjQwOTcxMDU0ODgxODExMTQsLTAuMDMwMzU4OTAzMTEwMDI3MzEzLC0wLjA1ODExNzQ2MDQ1OTQ3MDc1LDAuMDY3MzAzNDQxNDY0OTAwOTcsMC4wNDg... |
510 | is set DTD events will be discarded XMLReader getEntityResolver Return the current EntityResolver XMLReader setEntityResolver handler Set the current EntityResolver If no EntityResolver is set attempts to resolve an external entity will result in opening the system identifier for the entity and fail if it is not avail... | en | "Wy0wLjAzMjgyMDQ2NjkwNTgzMjI5LC0wLjA2MTY0NDU5ODg0MTY2NzE3NSwwLjAzMTg5NzYxNTY0MTM1NTUxNSwwLjAyMTYwNzg4NTEzNzIwMDM1NiwtMC4wNDg1MDAwNzk2NjE2MDc3NCwwLjAzOTczMDU4NjExMTU0NTU2LDAuMDA5Mjg4NjEzNjg0NDc1NDIyLDAuMDE5NjM1MzkyMzUyOTM4NjUyLC0wLjAwNDU3MjAwNTk0MjQ2Mzg3NSwtMC4wMjg3ODczODkzOTc2MjExNTUsMC4wNDQxNDU1MDU4NzUzNDkwNDUsLTAuMDk... |
511 | te stream and will not attempt to open a URI connection to the system identifier InputSource getCharacterStream Get the character stream for this input source The Attributes Interface Attributes objects implement a portion of the mapping protocol including the methods copy get __contains__ items keys and values The fol... | en | "Wy0wLjAyNDk2MzgzODk3OTYwMTg2LDAuMDExNDk3OTE4NTE2Mzk3NDc2LC0wLjA1NjgzODY2NTE1NzU1NjUzNCwtMC4wMTA3Mjc4NDE0MDcwNjA2MjMsLTAuMTA2MDQxMjM3NzExOTA2NDMsLTAuMDExNzQyMzM1NzQ0MjAyMTM3LDAuMDMzNjgwMjQxNTU0OTc1NTEsMC4wMDc1ODI3NjE4MTI5NTUxNDEsLTAuMDczNjQ1MDQ3ODQzNDU2MjcsLTAuMDI4MDU1ODIyNDc2NzQ0NjUyLDAuMDE2MTU2NDcyMjY1NzIwMzY3LC0wLjE... |
512 | base64 Base16 Base32 Base64 Base85 Data Encodings Source code Lib base64 py This module provides functions for encoding binary data to printable ASCII characters and decoding such encodings back to binary data It provides encoding and decoding functions for the encodings specified in RFC 4648 which defines the Base16 B... | en | "Wy0wLjAyOTkwNTcxNTk1NzI4Mzk3NCwwLjAyMzEzMzc5MTk4MzEyNzU5NCwtMC4wNTg4MzQ3NTAyMDUyNzg0LC0wLjAzMjQyMjUyNzY3MDg2MDI5LC0wLjAzNjY4Nzk1ODk4NTU2NzA5LC0wLjA1MjAxMjIyMzc1MDM1Mjg2LC0wLjA4ODI1NTI0MTUxMzI1MjI2LDAuMDEyMjA0ODEwOTc2OTgyMTE3LC0wLjAyMTI4NTI2MTk1ODgzNzUxLC0wLjAxMjQ0OTM5MDI1NDkxNDc2LC0wLjAzNTg3OTg1MDM4NzU3MzI0LDAuMDUwMTc... |
513 | es which letter the digit 1 should be mapped to when map01 is not None the digit 0 is always mapped to the letter O For security purposes the default is None so that 0 and 1 are not allowed in the input A binascii Error is raised if s is incorrectly padded or if there are non alphabet characters present in the input ba... | en | "WzAuMDM5MjM3NTQ3NjY1ODM0NDMsLTAuMDM0NjI3MTM5NTY4MzI4ODYsLTAuMDQ5NTAwOTY4MzA3MjU2NywtMC4wODg2NzA1OTY0ODAzNjk1NywtMC4wNDI5NzA4NDczMzg0MzgwMzQsMC4wMjgzMzU5MDA5NzcyNTM5MTQsLTAuMDExMDE5MjY1Mjc5MTczODUxLDAuMDI1MDA2MzU1NzE3Nzc4MjA2LC0wLjAxNTY0NjQyNjAwNzE1MTYwNCwtMC4wNDg5NzY1ODE1NDM2ODQwMDYsMC4wNDM0MjkyODUyODc4NTcwNTYsMC4wMTk... |
514 | s b n inserted after every 76 bytes of output and ensuring that there is a trailing newline as per RFC 2045 MIME New in version 3 1 An example usage of the module import base64 encoded base64 b64encode b data to be encoded encoded b ZGF0YSB0byBiZSBlbmNvZGVk data base64 b64decode encoded data b data to be encoded Securi... | en | "Wy0wLjAxMTEzODcyNzg4ODQ2NDkyOCwwLjAxMDA5NjI2ODcyODM3NTQzNSwtMC4wNjIyNTk4NjQwNjIwNzA4NSwtMC4wNDMwNjU2MzczNTAwODI0LC0wLjAwMDg0NDQxMDAzODU1MzE3ODMsLTAuMDM3MjExMjEzMjYwODg5MDUsLTAuMDE1Nzg3NzI2MjY4MTcyMjY0LDAuMDIzNzUzMDk1NDE4MjE0Nzk4LC0wLjAxMzQ2NjA3MjI2ODc4NDA0NiwtMC4wMjQ2NjY4OTk4MTUyMDE3NiwtMC4wMTQxODIxNTU5NTE4NTc1NjcsMC4... |
515 | C API Stability Unless documented otherwise Python s C API is covered by the Backwards Compatibility Policy PEP 387 Most changes to it are source compatible typically by only adding new API Changing existing API or removing API is only done after a deprecation period or to fix serious issues CPython s Application Binar... | en | "Wy0wLjExNzQ4MDc2MjMwMjg3NTUyLC0wLjA0MTEzOTU1NDIzMjM1ODkzLC0wLjA0NTk3NzQ5MTg4NTQyMzY2LC0wLjAxOTgzNTY0NTMzMjkzMjQ3MiwwLjAwNzE2ODYxMzgzOTg5NDUzMywtMC4wNDM1NDU1MzY2OTY5MTA4NiwtMC4xMzYyNTI2NzE0ODAxNzg4MywwLjA1OTcyMjA1MTAyNDQzNjk1LC0wLjA3Nzk0NjM3MjMzMDE4ODc1LC0wLjA2NDg3MjU0Nzk4NDEyMzIzLDAuMDI4MTg4NDU1ODQ5ODg1OTQsLTAuMDA0ODU... |
516 | efined some C API functions are inlined or replaced by macros Defining Py_LIMITED_API disables this inlining allowing stability as Python s data structures are improved but possibly reducing performance By leaving out the Py_LIMITED_API definition it is possible to compile a Limited API extension with a version specifi... | en | "Wy0wLjA3MTkwMTEyMDI0NTQ1NjcsMC4wNDcyNTcxMzI4MjgyMzU2MjYsMC4wMjIwNzE0NDUzNjA3Nzk3NjIsLTAuMDA5OTEyMTg4MTY0ODg5ODEyLDAuMDQ5ODgzMTE5NzYxOTQzODIsLTAuMDYzNjEwMDI0NzUwMjMyNywtMC4wODExMjgwOTA2MjAwNDA5LDAuMDE3NzM5OTU1MzM1ODU1NDg0LC0wLjA3MzM4Mjk5NjAyMjcwMTI2LC0wLjA1MjQxMDY5OTQyNzEyNzg0LDAuMDEyNjQzNDA5ODkyOTE2NjgsMC4wNDkxOTgyNjY... |
517 | _Decode PyCodec_Decoder PyCodec_Encode PyCodec_Encoder PyCodec_IgnoreErrors PyCodec_IncrementalDecoder PyCodec_IncrementalEncoder PyCodec_KnownEncoding PyCodec_LookupError PyCodec_NameReplaceErrors PyCodec_Register PyCodec_RegisterError PyCodec_ReplaceErrors PyCodec_StreamReader PyCodec_StreamWriter PyCodec_StrictError... | en | "Wy0wLjA3MjkxNzA5NjMxNjgxNDQyLC0wLjEwMzUzMzU2NTk5ODA3NzM5LC0wLjAzNzI2NjA4MzA2MTY5NTEsMC4wMDMzNzUwMzM4NDc5ODc2NTIsLTAuMDAwNjQzNjM2MTU4MjAxODQzNSwtMC4wNTM3NjUwODgzMTk3Nzg0NCwtMC4wMzg0ODM1Njc1MzU4NzcyMywtMC4wNDYwOTEwODcxNjI0OTQ2NiwtMC4wOTExNDg1NzAxNzk5MzkyNywtMC4wMTg0Njg3MzAxNTE2NTMyOSwwLjA2MDMzMDQ1Nzk4NTQwMTE1NCwtMC4wMDY... |
518 | gs PyException_GetCause PyException_GetContext PyException_GetTraceback PyException_SetArgs PyException_SetCause PyException_SetContext PyException_SetTraceback PyFile_FromFd PyFile_GetLine PyFile_WriteObject PyFile_WriteString PyFilter_Type PyFloat_AsDouble PyFloat_FromDouble PyFloat_FromString PyFloat_GetInfo PyFloat... | en | "Wy0wLjAxNjc0MTgwODUwMzg2NjE5NiwwLjAwNTUzMTg3NTg4MjI5Nzc1NCwtMC4wMjc3MDExNDY5MDA2NTM4NCwtMC4wMTQ4NTg0ODk4NTYxMjM5MjQsLTAuMDIxNzIwMDYyOTQxMzEyNzksLTAuMDM1MjQ3MDY4ODUyMTg2MiwwLjA1MTU3NjUyODY5ODIwNTk1LDAuMDU4MjIxNTc4NTk4MDIyNDYsLTAuMTM1MDYxMDcwMzIyOTkwNDIsLTAuMDA4OTQzODMxNTQ4MDk0NzUsMC4wNDA0NjE0MDYxMTE3MTcyMjQsLTAuMDQyNTU... |
519 | yObject_AsWriteBuffer PyObject_Bytes PyObject_Call PyObject_CallFunction PyObject_CallFunctionObjArgs PyObject_CallMethod PyObject_CallMethodObjArgs PyObject_CallNoArgs PyObject_CallObject PyObject_Calloc PyObject_CheckBuffer PyObject_CheckReadBuffer PyObject_ClearWeakRefs PyObject_CopyData PyObject_DelItem PyObject_De... | en | "Wy0wLjAwNjY2ODg3NzMyMjIyNjc2MywtMC4wMzA5MDk5MDcwNzI3ODI1MTYsLTAuMDI4MTI4NTg0ODQ2ODU0MjEsLTAuMDYwMTc1MjM2MzE0NTM1MTQsLTAuMDY2MzE5MTk3NDE2MzA1NTQsLTAuMTIzMjQ5Njg3MjU0NDI4ODYsMC4wOTM0MDk4OTU4OTY5MTE2MiwwLjAwMjI5MjEzMDE0MjQ1MDMzMjYsLTAuMDgyMjkyNDgyMjU2ODg5MzQsMC4wMDg5NDgyNTUzMzAzMjQxNzMsMC4wNjc0ODk1NzE4NjkzNzMzMiwtMC4wNDI... |
520 | art PyUnicodeEncodeError_SetEnd PyUnicodeEncodeError_SetReason PyUnicodeEncodeError_SetStart PyUnicodeIter_Type PyUnicodeTranslateError_GetEnd PyUnicodeTranslateError_GetObject PyUnicodeTranslateError_GetReason PyUnicodeTranslateError_GetStart PyUnicodeTranslateError_SetEnd PyUnicodeTranslateError_SetReason PyUnicodeTr... | en | "Wy0wLjA0NTg4NjE3MDExOTA0NzE2NSwtMC4wNjI0OTcxMDkxNzQ3MjgzOTQsLTAuMDMxNTA3NDQ3MzYxOTQ2MTA2LDAuMDAwNjc5OTg4NjQ2ODc5NzkyMiwtMC4wMTE0MjU3MTU4NzExNTUyNjIsLTAuMDE5MzM4ODkyNzcyNzkzNzcsLTAuMDYwMjY3MjUwOTg0OTA3MTUsMC4wMjMwNDQwMjM2NjI4MDU1NTcsLTAuMTAyODAwMzg0MTYzODU2NSwtMC4wNTEwNzUxMDQ2MjQwMzI5NzQsMC4wNjgyMzg3NjUwMDEyOTcsLTAuMDQ... |
521 | tabnanny Detection of ambiguous indentation Source code Lib tabnanny py For the time being this module is intended to be called as a script However it is possible to import it into an IDE and use the function check described below Note The API provided by this module is likely to change in future releases such changes ... | en | "Wy0wLjA0NDkxNDQ5ODkyNTIwOTA0NSwtMC4wMTYyMzYyOTIxOTgzMDAzNiwtMC4wMjExMTQ3ODUyMjQxOTkyOTUsMC4wMDMxMzkxNzgyNjg2MTE0MzEsMC4wNjk1ODc1NzM0MDkwODA1LC0wLjA3MTcwNzY1ODQ2OTY3Njk3LDAuMTA0MjEwNzI2OTE2NzkwMDEsMC4wMjkxOTAyNDIyOTA0OTY4MjYsLTAuMDAzMzE4NzkxNzQzMzY3OTEwNCwwLjAzNDQ3NDk1NzczNDM0NjM5LDAuMDkwMDI3NzA0ODM0OTM4MDUsMC4wNDIwMzg... |
522 | unicodedata Unicode Database This module provides access to the Unicode Character Database UCD which defines character properties for all Unicode characters The data contained in this database is compiled from the UCD version 15 0 0 The module uses the same names and symbols as defined by Unicode Standard Annex 44 Unic... | en | "Wy0wLjA5MTY5NzE5MzY4MjE5Mzc2LC0wLjA3MTI5NDk1NTkwOTI1MjE3LC0wLjA1MjE2MTAwMDY2OTAwMjUzLC0wLjAzMzM1MDE0NzMwNjkxOTEsLTAuMTQ3MDQzOTU4MzA2MzEyNTYsMC4wMDAzNTEyNjg2ODE2OTc1NDc0NCwwLjAwOTcxNjk1NDA4MjI1MDU5NSwtMC4wMDAxMTcxNTExMzk0MjA0NTcxOCwwLjA0ODcxMTc1NDM4MTY1NjY1LC0wLjAyNzY5MjQyMjI3MDc3NDg0LDAuMTA0MzMwMTIyNDcwODU1NzEsLTAuMDc... |
523 | Unicode database used in this module unicodedata ucd_3_2_0 This is an object that has the same methods as the entire module but uses the Unicode database version 3 2 instead for applications that require this specific version of the Unicode database such as IDNA Examples import unicodedata unicodedata lookup LEFT CURLY... | en | "Wy0wLjA3OTc2MjA3MTM3MTA3ODQ5LC0wLjA2Mzk1MzE4MzU5MTM2NTgxLC0wLjA2Mjg4NTc5MTA2MzMwODcyLC0wLjA0MjUyODIwNDYxOTg4NDQ5LC0wLjE0Mzg1MjQyNzYwMTgxNDI3LC0wLjA3OTkwNDkyMTM1Mjg2MzMxLC0wLjAyNzUyMDYzNjA5NjU5NjcxOCwtMC4wMDYxNDA1OTIwNDIzNTY3Mjk1LDAuMDAyNDcwNjg3NDk3NDA3MTk4LC0wLjAyODQ4OTIwMDM5ODMyNTkyLDAuMDkwMTA3MDY4NDE5NDU2NDgsLTAuMDI... |
524 | statistics Mathematical statistics functions New in version 3 4 Source code Lib statistics py This module provides functions for calculating mathematical statistics of numeric Real valued data The module is not intended to be a competitor to third party libraries such as NumPy SciPy or proprietary full featured statist... | en | "Wy0wLjA0ODEzNzUzODEzNTA1MTczLC0wLjA0Mjg2MjIwMjk3MjE3MzY5LDAuMDAzMTAwMTA4NTg4MTE0MzgxLC0wLjA0ODY3Njc1MTU1NDAxMjMsLTAuMDIzNjg2NzQ0MjcyNzA4ODkzLC0wLjA4NTcyMzY4MzIzODAyOTQ4LC0wLjAzODMxNTU5MDQ3MTAyOTI4LDAuMDMyNTg0NzAwNzMzNDIzMjMsLTAuMDYzNzc0NDE0MzYwNTIzMjIsMC4wMDU0NTQ2NjQ1ODQyNDkyNTgsMC4wNDM0NjkxMTYwOTE3MjgyMSwtMC4wNTY0NzQ... |
525 | e entire population If data represents the entire population rather than a sample then mean data is equivalent to calculating the true population mean μ statistics fmean data weights None Convert data to floats and compute the arithmetic mean This runs faster than the mean function and it always returns a float The dat... | en | "Wy0wLjAzMjc0MjI4NDIzODMzODQ3LDAuMDM5NzI3NTUzNzI1MjQyNjE1LC0wLjAyNDczMzgyMjc5Mjc2ODQ4LC0wLjAzMDIyMTgxOTg3NzYyNDUxLC0wLjAzMDc0Mjc5ODAwMDU3NDExMiwtMC4wNzgzODg4MzI1MDk1MTc2NywtMC4wNDI5NDQ0ODcxODQyODYxMiwwLjA1MDkzOTQ4OTE1NjAwNzc3LDAuMDIyNDQ5MTU0NDA2Nzg1OTY1LDAuMDM5MTAxNzEyNDA1NjgxNjEsMC4wNjgwODIyMjgzMDI5NTU2MywtMC4wODI1OTA... |
526 | data points is odd the middle value is returned When it is even the larger of the two middle values is returned median_high 1 3 5 3 median_high 1 3 5 7 5 Use the high median when your data are discrete and you prefer the median to be an actual data point rather than interpolated statistics median_grouped data interval... | en | "Wy0wLjEyNzc5NDE2MTQzODk0MTk2LDAuMDAxMTYzNDE3ODIyNjgxMzY3NCwwLjAyNzA3MTg1NDA5OTYzMTMxLC0wLjA1OTI3OTY2NTM1MDkxNCwwLjAxMzk1NjY4NzQxMzE1NjAzMywtMC4wMzQ1NzgwMzY1MTY5MDQ4MywtMC4wNzk0NTg1ODY4NzE2MjM5OSwwLjA2NjI0ODUwNjMwNzYwMTkzLC0wLjAyMDY2NTYyODgzNTU1ODg5LC0wLjAxNTg1Mjc1MzA3Mjk3NzA2NiwtMC4wMDcxNTc4NzUyMjQ5NDc5MjksLTAuMDMzMzI... |
527 | 34 5 D 41 75 Decimal 24 815 from fractions import Fraction as F pvariance F 1 4 F 5 4 F 1 2 Fraction 13 72 Note When called with the entire population this gives the population variance σ² When called on a sample instead this is the biased sample variance s² also known as variance with N degrees of freedom If you some... | en | "WzAuMDQ3NjU0NTkxNTAwNzU5MTI1LC0wLjAwNzQwOTI1Njg4Mjk2NTU2NSwwLjAxMjM5NjE4NjU5MDE5NDcwMiwtMC4wMTc0ODIxNTk2NTkyNjY0NzIsLTAuMDAwOTc2OTMzMjgyODAwMDE4OCwwLjAxNTE2NjYyMjU4NjU0ODMyOCwtMC4wMjQzMDUxOTI3NTM2NzI2LDAuMDc5NDI0NDg1NTY0MjMxODcsMC4wMjEzNDUxMzQ4MjQ1MTQzOSwwLjA2MzQ1NzE0NjI4Njk2NDQyLDAuMDMxODIxNTYwMTE0NjIyMTE2LC0wLjA2ODQ... |
528 | 00th percentile The portion of the population falling below the i th of m sorted data points is computed as i 1 m 1 Given 11 sample values the method sorts them and assigns the following percentiles 0 10 20 30 40 50 60 70 80 90 100 Decile cut points for empirically sampled data data 105 129 87 86 111 111 89 81 108 92 1... | en | "Wy0wLjAyNjY1NTU3NzEyMzE2NTEzLC0wLjAwODcxMDI3MzU0MTUxMDEwNSwwLjA0MDM0ODYwMDU5NjE4OTUsLTAuMDQwNjU5MzM0NTEwNTY0ODA0LDAuMDMxMTA1NDU2ODczNzc0NTMsLTAuMDQ3ODAyNjY4MDY0ODMyNjksLTAuMDExMDA5NTAyMjI0NjI0MTU3LDAuMDE3Mjk0MTYxMDIxNzA5NDQyLC0wLjAwOTk3NTA1MjQzODY3NjM1NywwLjAxNDg0Njk1MzU2MzM5MjE2MiwwLjAyODc3Mzg1OTE0MzI1NzE0LDAuMDAyMzI... |
529 | oportional True slope model slope Dwarf planets Pluto Eris Makemake Haumea Ceres orbital_periods 90_560 204_199 111_845 103_410 1_680 days predicted_dist math cbrt slope p p for p in orbital_periods list map round predicted_dist 5912 10166 6806 6459 414 5_906 10_152 6_796 6_450 414 actual distance in million km 5906 10... | en | "Wy0wLjA0NDMwNjcyNTI2MzU5NTU4LC0wLjAwMTI0MjI1MjUzMjM5Mjc0MDIsMC4wMjU0MzcxNjg3NzY5ODg5ODMsMC4wMDY1MDM5MzQ1MDYzMjY5MTQsMC4wMDIxNTQwODYwMTc5ODExNzE2LC0wLjA3MjkzMzEwMDE2MzkzNjYxLC0wLjA4MzQwOTg0NTgyOTAxMDAxLDAuMTUxMzEzMzQ5NjA0NjA2NjMsLTAuMDA4NjIwODIwMDA4MjE4Mjg4LDAuMTA0NDkyMDA4Njg2MDY1NjcsMC4wNDExNDA1MTUzNTcyNTU5MzYsLTAuMDY... |
530 | 5 Dividing a constant by an instance of NormalDist is not supported because the result wouldn t be normally distributed Since normal distributions arise from additive effects of independent variables it is possible to add and subtract two independent normally distributed random variables represented as instances of No... | en | "WzAuMDExNjYxODIxMDQ0OTgxNDgsMC4wMTM2NzA4NjE3MjEwMzg4MTgsMC4wMjg0OTMxMDQ1MDI1NTg3MDgsLTAuMDA4NzUwMjQzMTEyNDQ0ODc4LDAuMDEzMTkzMjY1NTM0OTM3MzgyLC0wLjA0NjMyOTQ2MTAzODExMjY0LC0wLjEwMzY1NTMwODQ4NTAzMTEzLDAuMDA1MzE1MTU3MTE5MTg0NzMyNCwtMC4wMzAwMDMxOTU2Mjg1MjM4MjcsMC4wNDMzNDE0MjQzMTYxNjc4MywwLjAzOTU2Mjk1NTQ5ODY5NTM3NCwtMC4wMzM... |
531 | steriori or MAP male if posterior_male posterior_female else female female Kernel density estimation It is possible to estimate a continuous probability density function from a fixed number of discrete samples The basic idea is to smooth the data using a kernel function such as a normal distribution triangular distribu... | en | "WzAuMDEwMDU5NjE4MzkxMDk2NTkyLC0wLjA1OTE4MDE4ODkyNDA3NDE3LC0wLjAxMzcxMDI2NTk3OTE3MDgsLTAuMDU2MTkyOTE5NjExOTMwODUsLTAuMDU0NTMyNzk5ODY5Nzc1NzcsLTAuMDgxOTI4MTA0MTYyMjE2MTksLTAuMDE1MDQyMjM3MDA2MTI3ODM0LC0wLjA1NDEyMzE0ODMyMjEwNTQxLC0wLjA1MDA3MTY3OTA1NTY5MDc2NSwtMC4wMzg4MzEzOTc4OTEwNDQ2MiwwLjA0NTAxMzk2MDQ1MDg4NzY4LC0wLjEwNjk... |
532 | Introduction The Application Programmer s Interface to Python gives C and C programmers access to the Python interpreter at a variety of levels The API is equally usable from C but for brevity it is generally referred to as the Python C API There are two fundamentally different reasons for using the Python C API The fi... | en | "Wy0wLjA5MzQ5NDA4MDAwNzA3NjI2LC0wLjAxNjQ1NzY2NTcxMTY0MTMxLC0wLjA0MDcyNjcwNjM4NTYxMjQ5LDAuMDMyMDMwNDkzMDIxMDExMzUsMC4wMDYwOTM3NTIxMDQ3ODkwMTksLTAuMDU2MTY5MDEwNjk4Nzk1MzIsLTAuMDY2ODY4OTM4NTA1NjQ5NTcsMC4xNTEzOTk5MTA0NDk5ODE3LC0wLjAyNTUyMjI5MzUyMjk1Mzk4NywtMC4wNjMwMzAzMDI1MjQ1NjY2NSwtMC4wMzYyMTY2NDY0MzI4NzY1OSwtMC4wMzA5NzY... |
533 | on The function return type is PyObject The macro declares any special linkage declarations required by the platform and for C declares the function as extern C The initialization function must be named PyInit_ name where name is the name of the module and should be the only non static item defined in the module file E... | en | "Wy0wLjA0MzE2ODg1MDI0MzA5MTU4LC0wLjAxMDE4NjU3NzIxNTc5MDc0OSwtMC4wNzYwMTkyMjc1MDQ3MzAyMiwwLjA4OTk2MjY3NjE2NzQ4ODEsLTAuMDAwMjAwODE5NTE1MTU3NDkwOTcsLTAuMDcxNDI0NDY5MzUxNzY4NSwwLjAxNzU5MjA0NDU0NzIwMDIwMywwLjA2NDQxOTY0OTU0MTM3ODAyLC0wLjA3NTQ4ODQ3MDQ5NDc0NzE2LC0wLjAzODA5NzI0NzQ4MTM0NjEzLDAuMDgwNjEyNTkyMzk5MTIwMzMsMC4wMTQ1OTc... |
534 | lite_row_methods keys PyCFunction pysqlite_row_keys METH_NOARGS PyDoc_STR Returns the keys of the row NULL NULL Objects Types and Reference Counts Most Python C API functions have one or more arguments as well as a return value of type PyObject This type is a pointer to an opaque data type representing an arbitrary Pyt... | en | "Wy0wLjAzMTEyNjk5ODM2NDkyNTM4NSwtMC4wMzA1OTYyODk3ODM3MTYyMDIsLTAuMDM4MjEwOTU4MjQyNDE2MzgsMC4wMzM4OTY5ODYzOTUxMjA2MiwtMC4xMDA4MTM4NzMxMTIyMDE2OSwtMC4wNzA3NzMzNzgwMTQ1NjQ1MSwwLjA0NDUwNTg0NTc1NTMzODY3LDAuMDY3Mjc0NDczNjA3NTQwMTMsLTAuMDUwOTg5OTI5NTg2NjQ4OTQsMC4wMTU0MTk3NTc5MjQ5NzM5NjUsLTAuMDQ5Nzc4MjE5MzEyNDI5NDMsMC4wMDkwMjY... |
535 | Some other operation might conceivably remove the object from the list releasing that reference and possibly deallocating it The real danger is that innocent looking operations may invoke arbitrary Python code which could do this there is a code path which allows control to flow back to the user from a Py_DECREF so alm... | en | "Wy0wLjA5NTI4NDE3ODg1MzAzNDk3LDAuMDAyODEwNjkyMTgxODEwNzM2NywtMC4wNDAxODEwMTA5NjE1MzI1OSwwLjAyNzcxNzQ2NzM5NzQ1MTQsLTAuMDY4NzE4MDMxMDQ4Nzc0NzIsLTAuMDUyODY0OTIwMzQ3OTI5LDAuMDIzNjE3NTExNjE1MTU3MTI3LDAuMDM5NzExNDE1NzY3NjY5NjgsMC4wMzY1NjY3MjY4NjMzODQyNSwwLjAwMzE4NzEyODgwODM0OTM3MSwwLjAwNTc0MDczNDc0ODU0MjMwOSwwLjA3MjA4ODI3ODg... |
536 | f n 0 return 1 for i 0 i n i PyObject index PyLong_FromSsize_t i if index return 1 if PyObject_SetItem target index item 0 Py_DECREF index return 1 Py_DECREF index return 0 The situation is slightly different for function return values While passing a reference to most functions does not change your ownership responsib... | en | "Wy0wLjA0OTIzMjg4MTUxNjIxODE4NSwtMC4wMTAwNzI1MTYyNzc0MzI0NDIsLTAuMDI1OTMwMjgxNzI4NTA2MDg4LDAuMDM1MzI5MzA0NjM1NTI0NzUsLTAuMDI1MjMwNzExMzI2MDAzMDc1LC0wLjA1ODMwNzIyMzAyMTk4NDEsMC4xMjgyNzYyMjg5MDQ3MjQxMiwwLjAzNzM4OTYyODU4OTE1MzI5LDAuMDEyOTMzNjM3OTQ2ODQ0MTAxLC0wLjAyMTkyNjA4NDUzMzMzMzc4LDAuMDEwMzIzNTk2MTg2OTM1OTAyLC0wLjAwNDg... |
537 | two states an exception has occurred or not The function PyErr_Occurred can be used to check for this it returns a borrowed reference to the exception type object when an exception has occurred and NULL otherwise There are a number of functions to set the exception state PyErr_SetString is the most common though not th... | en | "Wy0wLjA0ODQxNjkxMjU1NTY5NDU4LDAuMDExMjM4NjM2NDQ4OTc5Mzc4LC0wLjAzNjkzNzMxMTI5MTY5NDY0LDAuMDI2OTg0NDA0NzcyNTIwMDY1LC0wLjAxNzM3MjQ1OTE3MzIwMjUxNSwtMC4wMjg4MDY2NzcwODgxNDE0NCwwLjAyODE4OTUyNjg3MDg0Njc1LDAuMTE5OTYwNTAxNzkwMDQ2NjksMC4wMTU2ODI5MTg5NTA5MTUzMzcsMC4wMjAxMjU0OTg5OTUxODQ5LDAuMDAwNTc2NTUyMzUyODY4MDIwNSwtMC4wMDEzNDY... |
538 | out is the initialization and possibly the finalization of the Python interpreter Most functionality of the interpreter can only be used after the interpreter has been initialized The basic initialization function is Py_Initialize This initializes the table of loaded modules and creates the fundamental modules builtins... | en | "Wy0wLjAwMTEwMzQ0NTUzODMxOTY0NzMsLTAuMDM5NjQzNDAzMTQyNjkwNjYsLTAuMDgxMjUxNTE2OTM4MjA5NTMsMC4wMzgzMjI4MTc1MzQyMDgzLDAuMDM2NDU4MTE5NzUwMDIyODksLTAuMDQ2MDkwMzk0MjU4NDk5MTQ2LDAuMDE1NDE4NDEzMDk1MTc2MjIsMC4wNzU1NTM4OTQwNDI5Njg3NSwtMC4wMzMwMTIyMjI0OTg2NTUzMiwtMC4wNDUyMzIxNDMyNTMwODgsLTAuMDE3NTY1ODk0ODcxOTUwMTUsMC4xMDUzMDQyNzg... |
539 | detailed information | en | "WzAuMDUyODU2MzY3MDgxNDAzNzMsMC4xMjA0MDQ0NTIwODU0OTUsMC4wMTA1NjAwNTgwNTczMDgxOTcsMC4wMzI1NTUyMDM4ODQ4NDAwMSwtMC4wMzgwODc0MzEzNDE0MDk2OCwtMC4wNTAyMjg1Mjg2Nzg0MTcyMDYsMC4wMzI4MjU4NzIzMDIwNTUzNiwwLjEwMjcwNzM4NjAxNjg0NTcsLTAuMDgxMTY1ODM1MjYxMzQ0OTEsMC4wNTgxMTYyMTYyMTI1MTEwNiwtMC4wMTA2Mjk2NTAyMDUzNzM3NjQsLTAuMDEzNDMwNTI3NDE... |
540 | http cookiejar Cookie handling for HTTP clients Source code Lib http cookiejar py The http cookiejar module defines classes for automatic handling of HTTP cookies It is useful for accessing web sites that require small pieces of data cookies to be set on the client machine by an HTTP response from a web server and then... | en | "Wy0wLjA2NjExNDY3ODk3ODkxOTk4LDAuMDQzOTEzMDE0MjMzMTEyMzM1LC0wLjA4OTEwMzE2MjI4ODY2NTc3LC0wLjAzNTEzNjE3MDY4NTI5MTI5LC0wLjAzMDQ0MDk0NzA0MDkxNTQ5LC0wLjEyNzg0MTQxMzAyMTA4NzY1LDAuMDM5MjA5MTQ2MDUyNTk4OTUsLTAuMDI1ODI0MjE1MjYzMTI4MjgsLTAuMDc0MTAxNTc0NzE4OTUyMTgsLTAuMDA4Njg3OTQyMjg4ODE1OTc1LDAuMDA1Mjk2MzEzNjY5NTMyNTM3NSwwLjAyMTk... |
541 | to 0 DefaultCookiePolicy also provides some parameters to allow some fine tuning of policy class http cookiejar Cookie This class represents Netscape RFC 2109 and RFC 2965 cookies It is not expected that users of http cookiejar construct their own Cookie instances Instead if necessary call make_cookies on a CookieJar i... | en | "Wy0wLjAyMTQ5OTA2MTk1NzAwMTY4NiwwLjAzNTI3NjY5MjM2MDYzOTU3LC0wLjA3MTY2MTI3MTE1NDg4MDUyLC0wLjA0MDk3MDI4NDQ5MTc3NzQyLC0wLjA1MTYzMzY1NjAyNDkzMjg2LC0wLjA4ODMwMjAyMzcwODgyMDM0LDAuMDQ3NDYwOTY5NTM3NDk2NTcsLTAuMDYxNzQ3OTg2ODIzMzIwMzksLTAuMDM5OTM0NDYzNzk4OTk5Nzg2LDAuMDIwNzMwOTQ0MzUwMzYxODI0LDAuMDA2NTk1MDI2MjM2MDI3NDc5LDAuMDE3MDM... |
542 | a session usually corresponds to closing the browser window Note that the save method won t save session cookies anyway unless you ask otherwise by passing a true ignore_discard argument FileCookieJar implements the following additional methods FileCookieJar save filename None ignore_discard False ignore_expires False... | en | "Wy0wLjA3ODUzOTEzMzA3MTg5OTQxLDAuMDYwNjMxNjE3OTAzNzA5NDEsLTAuMDk2NTgzOTEwMjg2NDI2NTQsMC4wMDY3MjcwNjQwMjgzODIzMDEsMC4wMjczMzQ2ODI2NDM0MTM1NDQsLTAuMDEwMjU3MDMxNzY4NTYwNDEsMC4wODQ3ODYyNTExODczMjQ1MiwwLjAzNDM3NzEwOTI1OTM2Njk5LC0wLjAyMTAyNDUyMTQ0MDI2NzU2MywwLjAzOTA1ODQ2NTUxMDYwNjc2NiwwLjAxMTIxMDYxMDE1ODc0MTQ3NCwwLjAzMjc3OTA... |
543 | _return_ok leaves all the work to return_ok If domain_return_ok returns true for the cookie domain path_return_ok is called for the cookie path Otherwise path_return_ok and return_ok are never called for that cookie domain If path_return_ok returns true return_ok is called with the Cookie object itself for a full check... | en | "Wy0wLjAyMTIzNjMzMDI3MDc2NzIxMiwwLjAyNzIwMzM5NTk2MjcxNTE1LC0wLjA2NzI2ODk2NzYyODQ3OSwtMC4wNDI4NDI3MzQ2MDUwNzM5MywtMC4wNzMzNzQ1MDk4MTE0MDEzNywtMC4xMzIyNjIyMTUwMTgyNzI0LDAuMDYxMDI0OTQxNTA0MDAxNjIsLTAuMDU2NDUxOTMxNTk1ODAyMzEsLTAuMDMyMDQwNTYyNDgwNjg4MDk1LC0wLjAyMzI3NjgzMDA5MjA3MjQ4NywtMC4wMTM0Mzk2NjM2ODU4NTgyNSwtMC4wMTk2NTg... |
544 | if domain is not on the allowlist for setting or receiving cookies DefaultCookiePolicy instances have the following attributes which are all initialised from the constructor arguments of the same name and which may all be assigned to DefaultCookiePolicy rfc2109_as_netscape If true request that the CookieJar instance do... | en | "WzAuMDExOTc2OTg2MTkyMTY2ODA1LC0wLjAyMzExMTEwODY5MDUwMDI2LC0wLjA0ODk0Njc1Njg2OTU1NDUyLC0wLjA3Mjk4NTk5OTI4NjE3NDc3LDAuMDEwMDYzMDM5MTM4OTEzMTU1LC0wLjA4MDczMTM0NzIwMzI1NDcsMC4wMTY3MzA5Mjg3OTM1NDk1MzgsLTAuMDc5MTIzMTA5NTc5MDg2MywtMC4wNTMyNjYxNDUyODg5NDQyNDQsMC4wMzYzODkwMTU2MTQ5ODY0MiwwLjAzNjM5MjQ1NDA1NzkzMTksLTAuMDIzMTQzNjg... |
545 | See also the is_expired method Cookie discard True if this is a session cookie Cookie comment String comment from the server explaining the function of this cookie or None Cookie comment_url URL linking to a comment from the server explaining the function of this cookie or None Cookie rfc2109 True if this cookie was r... | en | "Wy0wLjA0NzEwNTIxMTc2NDU3NDA1LDAuMDA5ODQ2ODY1MTk5NTA2MjgzLC0wLjA4NTY3Mzk5NTMxNjAyODYsLTAuMDA3MjEwMjczMjk1NjQwOTQ1NCwwLjAyMzMzOTY4ODc3NzkyMzU4NCwtMC4xMDMxMjYyOTQ5MTA5MDc3NSwwLjA0NDQzMTgzNTQxMjk3OTEyNiwtMC4wNDk1MDYzNDAxNzU4NjcwOCwtMC4wMzkzNzY5NzQxMDU4MzQ5NiwwLjAyOTkwMzQxMDAwMjU4OTIyNiwwLjA0MDExNzEwMzYwNjQ2MjQ4LDAuMDAxNzk... |
546 | 9 Classes Classes provide a means of bundling data and functionality together Creating a new class creates a new type of object allowing new instances of that type to be made Each class instance can have attributes attached to it for maintaining its state Class instances can also have methods defined by its class for m... | en | "Wy0wLjA3ODQxODk3NzU1ODYxMjgyLC0wLjAzNjAyOTUxNzY1MDYwNDI1LC0wLjA1NDU3Njg1ODg3ODEzNTY4LDAuMDA5MTg1MjMwMzU5NDM1MDgxLC0wLjAwMDU3MzQyNjMxMDQzODY2MjgsLTAuMDYzMjUxNzE4ODc4NzQ2MDMsMC4wMjA4NzI2NDUwODAwODk1NywwLjA0OTQ4MTk2OTMyNjczNDU0LC0wLjAzMTczMjA3NDkxNjM2Mjc2LDAuMDA0MzM5MjM2MzAwNDM4NjQyNSwwLjAwODE4OTExMzgxMDY1ODQ1NSwwLjAyNzU... |
547 | ferences to names in modules are attribute references in the expression modname funcname modname is a module object and funcname is an attribute of it In this case there happens to be a straightforward mapping between the module s attributes and the global names defined in the module they share the same namespace 1 Att... | en | "Wy0wLjA3ODcwNDkwODQ5MDE4MDk3LC0wLjA1MDcxODk1NTY5NTYyOTEyLC0wLjA2NTg1Mjg3MzAyNzMyNDY4LDAuMTAxOTkyODE1NzMyOTU1OTMsMC4wMTg4MDQ0MjUzNzM2NzM0NCwtMC4xMTcxMzQ1MTE0NzA3OTQ2OCwwLjA0NjE0NTEwMzg3MTgyMjM2LC0wLjAxMTAyMzIzMDg1MDY5NjU2NCwwLjAzNDE5Njc2NDIzMDcyODE1LC0wLjAzODc4MDA0NDc2NDI4MDMyLDAuMDU4NTY0Mzc5ODExMjg2OTI2LDAuMDE0Njg3OTU... |
548 | ound there the nonlocal statement indicates that particular variables live in an enclosing scope and should be rebound there 9 2 1 Scopes and Namespaces Example This is an example demonstrating how to reference the different scopes and namespaces and how global and nonlocal affect variable binding def scope_test def do... | en | "Wy0wLjAyNjg0MTk3NzYxMTE4NDEyLC0wLjA2OTA2MTQyMDg1NzkwNjM0LC0wLjAwNjA2MTgyOTE2MDg5ODkyNCwwLjA5OTcxMjY1NDk0ODIzNDU2LC0wLjAyNjA4MDA5MjQxNTIxMzU4NSwtMC4wNjY2NDkyNTA2ODYxNjg2NywwLjA1OTQyNTc5NzMxMzQ1MTc3LC0wLjA3MTcwODQ3MDU4Mjk2MjA0LC0wLjAzOTg4NzE3MTIzODY2MDgxLC0wLjA1NDg4NjI5MjY2NjE5NjgyLDAuMDc3NzI2MDU4NjYxOTM3NzEsLTAuMDI3OTU... |
549 | rguments for greater flexibility In that case arguments given to the class instantiation operator are passed on to __init__ For example class Complex def __init__ self realpart imagpart self r realpart self i imagpart x Complex 3 0 4 5 x r x i 3 0 4 5 9 3 3 Instance Objects Now what can we do with instance objects The ... | en | "Wy0wLjA2NDM5NzU2NjAyMDQ4ODc0LDAuMDEzMTkwMDYzNjQ3OTI1ODU0LC0wLjA0MTU4OTQ2MTI2Njk5NDQ3NiwwLjAyNTI3MTk3MjY0MTM0ODg0LC0wLjAzNzkyMzM5OTM1ODk4NzgxLC0wLjAzNTk0MDI4NTc3MjA4NTE5LDAuMDYyMjYwNzUwNjgxMTYxODgsMC4wNTQ1Nzc2MzAwMTMyMjc0NiwtMC4wMjMwMjM4MDQ2NDk3MTA2NTUsLTAuMDE2MTUwNTQ1MzI4ODU1NTE1LDAuMDMwODc3ODIzMDEwMDg3MDEzLC0wLjAxNDg... |
550 | by all Dog instances class Dog tricks mistaken use of a class variable def __init__ self name self name name def add_trick self trick self tricks append trick d Dog Fido e Dog Buddy d add_trick roll over e add_trick play dead d tricks unexpectedly shared by all dogs roll over play dead Correct design of the class shou... | en | "Wy0wLjA1NjE5NzMxOTE3OTc3MzMzLDAuMDEwMjc1Nzg3NjczODkwNTksLTAuMDE1MTk2MzA4NDkzNjE0MTk3LDAuMDI0MTA4MzUwMjc2OTQ3MDIsLTAuMDYwNTg5ODIzODcxODUwOTcsLTAuMDg0MTIwNjUzNTY5Njk4MzMsMC4wNTc0OTY0NDcxMTYxMzY1NSwtMC4wNjU3NTkwMTgwNjM1NDUyMywtMC4wMjgyMjgxOTUzODQxNDQ3ODMsMC4wMDU5MzI2MzA1MDU0MTI4MTcsMC4wOTA4ODk1OTU0NDg5NzA4LDAuMDE5MjkyMTI... |
551 | class DerivedClassName BaseClassName statement 1 statement N The name BaseClassName must be defined in a namespace accessible from the scope containing the derived class definition In place of a base class name other arbitrary expressions are also allowed This can be useful for example when the base class is defined i... | en | "Wy0wLjExNjQzNjEyMzg0Nzk2MTQzLC0wLjAxNjE0MDg3MDc0OTk1MDQxLDAuMDA5ODQ1MzM1OTY3ODM4NzY0LDAuMDIwNTMzODQ0ODI4NjA1NjUyLC0wLjAxMzg2OTM0NDI1NjgxODI5NSwtMC4xMTQ0Mzc3ODg3MjQ4OTkyOSwwLjAzMTA5NDQ2NzI2NzM5NDA2NiwwLjAyNjI0MTc5NDIyODU1Mzc3MiwwLjAxMDY1ODcxMDI2MzY2OTQ5LDAuMDA4NTE5NTIwOTgzMDk5OTM3LDAuMDE1NDg1MjM5MjE1MTk1MTc5LDAuMDIwMzA... |
552 | don t exist in Python However there is a convention that is followed by most Python code a name prefixed with an underscore e g _spam should be treated as a non public part of the API whether it is a function a method or a data member It should be considered an implementation detail and subject to change without notic... | en | "Wy0wLjE2MjU0ODU0MjAyMjcwNTA4LDAuMDEwMTg0NzI3NjA5MTU3NTYyLC0wLjAwNTM5ODY0MjczNzQxODQxMywwLjA1OTEzOTE0MzY3NTU2NTcyLC0wLjA2OTU1MDAwNzU4MTcxMDgyLC0wLjE0NTYxOTc2NDkyNDA0OTM4LDAuMDI2NDIwMDc3MzA5MDEyNDEzLC0wLjAyNTg2MTk1MjQ1Mzg1MTcsLTAuMDYwODk1NzQ4NDM2NDUwOTYsLTAuMDQ4NTEzMTkyNjgzNDU4MzMsMC4wNDIzMzkwMTU3NTIwNzcxLDAuMDA3NzkzNDA... |
553 | otocol it is easy to add iterator behavior to your classes Define an __iter__ method which returns an object with a __next__ method If the class defines __next__ then __iter__ can just return self class Reverse Iterator for looping over a sequence backwards def __init__ self data self data data self index len data def ... | en | "Wy0wLjA4MjE5Njk3MzI2NDIxNzM4LDAuMDAxODY2NDE4NjM1NDcyNjU1MywwLjAwMDA5NzU4MTI3OTk4NzkzNDk4LDAuMDMwNDI4NDM5Mzc4NzM4NDAzLC0wLjA4MDIyNTQzNzg3OTU2MjM4LC0wLjA0ODA3MjYzMjQwMjE4MTYyNSwtMC4wMjkxNjEwODI1ODA2ODU2MTYsLTAuMDIxMjExNTY0NTQwODYzMDM3LC0wLjEwMDYzODk3MDczMjY4ODksMC4wMDkzNjY0OTA4NzgxNjQ3NjgsMC4wNTMwMDU3MjE0MjAwNDk2NywwLjA... |
554 | selectors High level I O multiplexing New in version 3 4 Source code Lib selectors py Introduction This module allows high level and efficient I O multiplexing built upon the select module primitives Users are encouraged to use this module instead unless they want precise control over the OS level primitives used It de... | en | "Wy0wLjA0NjE3NTc0ODEwOTgxNzUwNSwtMC4wMTk4MjAwNjYxNjg5MDQzMDUsLTAuMDY0MDM0MjE2MTA1OTM3OTYsMC4wMTA5ODM4MDE0NDY4NTUwNjgsMC4wMDI4NTI1NTUxMzE1Mzk3MDI0LC0wLjA3MzU0MzE2ODYwNDM3MzkzLDAuMDY1NzY3MTYxNTQ4MTM3NjYsMC4wOTcxNjUyOTM5OTE1NjU3LC0wLjAzNzc5MzcyMjAwMzY5ODM1LDAuMDA4NzEyMzE1OTMxOTE2MjM3LC0wLjAwMzU2NDYxMzg3MTI3NjM3ODYsMC4wMDY... |
555 | meout 0 the call won t block and will report the currently ready file objects If timeout is None the call will block until a monitored file object becomes ready This returns a list of key events tuples one for each ready file object key is the SelectorKey instance corresponding to a ready file object events is a bitmas... | en | "Wy0wLjAyODczNjExNDUwMTk1MzEyNSwwLjAzNzI4MjkwMjc0NzM5MjY1NCwtMC4wNDEzNzk4NzI3MDk1MTI3MSwwLjA3OTQzMjk2NDMyNDk1MTE3LDAuMDI4MTI1MTUzODU0NDg5MzI2LC0wLjAzMjY3MTgyNzgyMjkyMzY2LDAuMDU3NzY0NDk2NjU0MjcyMDgsMC4wNDQ2OTI2NzY1MTQzODcxMywwLjA0NTMyNDY5ODA5MDU1MzI4NCwwLjA0NDE2NDM1MjExODk2ODk2NCwwLjAxMDcxMjQ3MTc5MDYxMTc0NCwtMC4wMDEzMjU... |
556 | email errors Exception and Defect classes Source code Lib email errors py The following exception classes are defined in the email errors module exception email errors MessageError This is the base class for all exceptions that the email package can raise It is derived from the standard Exception class and defines no a... | en | "Wy0wLjA2MTAyODAxODU5Mzc4ODE1LDAuMDQ5ODM1NTU4OTgwNzAzMzU0LDAuMDY5NjMwNjUyNjY2MDkxOTIsMC4wMDQ2Mzg2NTA0NTQ1ODA3ODQsMC4wNjM1NDQwNzk2NjEzNjkzMiwtMC4wMjg4MDkxNzY3NTc5MzE3MSwtMC4wMjY1MTczNjUxMjc4MDE4OTUsMC4wNjk0Mjk5NjM4MjcxMzMxOCwtMC4wMjQ0MzY5OTcyNDk3MjI0OCwtMC4wMjY4NzcwNTQ5NDQ2MzQ0MzgsLTAuMDMzMTkxNjgwOTA4MjAzMTI1LC0wLjAwOTU... |
557 | is InvalidDateDefect When decoding an invalid or unparsable date field The original value is kept as is | en | "WzAuMDA5OTIyMzM2Nzg2OTg1Mzk3LDAuMDU2Mjc3ODU2MjMwNzM1NzgsMC4wNDk5MjA0NzMyNDc3NjY0OTUsMC4wNjYxOTQ0ODk1OTgyNzQyMywwLjAwNTEyMTgyNDc5NzI0Mjg4LDAuMDE4MjQ1ODcwMjQ3NDgzMjUzLC0wLjAxMjQ5MzgxNTI3MzA0NjQ5NCwtMC4wMTUyMzIyMTc0OTgxMjM2NDYsMC4wMzQ5ODc1ODM3NTY0NDY4NCwwLjAwOTIzOTY4MjkyNzcyNzcsLTAuMDE5OTcxOTc3OTE5MzQwMTM0LDAuMDExODAzNzM... |
558 | textwrap Text wrapping and filling Source code Lib textwrap py The textwrap module provides some convenience functions as well as TextWrapper the class that does all the work If you re just wrapping or filling one or two text strings the convenience functions should be good enough otherwise you should use an instance o... | en | "Wy0wLjA4MDA4NTE5NTYwMDk4NjQ4LC0wLjAwNTk3MTY1MjkyMTI4OTIwNTYsMC4wMDYxODU0OTU3NjAyOTE4MTUsMC4wNjkyNjU2MTE0Njk3NDU2NCwtMC4wMzkwOTMxNjY1ODk3MzY5NCwtMC4wMzM5ODUzNDI4MzA0MTk1NCwwLjAxNzcxMzY4ODMxMzk2MTAzLDAuMDY2MTg4MTI2ODAyNDQ0NDYsLTAuMTA2ODIxMTQ5NTg3NjMxMjMsLTAuMDAwMzEzODAzNzI4MjA0MjIwNTMsMC4wMTMyMDk1MDY4NjkzMTYxMDEsLTAuMDA... |
559 | s the same as wrapper TextWrapper wrapper initial_indent You can re use the same TextWrapper object many times and you can change any of its options through direct assignment to instance attributes between uses The TextWrapper instance attributes and keyword arguments to the constructor are as follows width default 70 ... | en | "Wy0wLjAzODUyMzIxOTUyNTgxNDA1NiwtMC4wMTY5ODg4NzkwNjk2ODU5MzYsLTAuMDM0NTE2MzgyOTYyNDY1Mjg2LDAuMDIxNDc4MTE0NjQ5NjUzNDM1LC0wLjA1NzM1NTI1ODYxMzgyNDg0NCwtMC4wMTAwNjk4Mjk0MTE4MDQ2NzYsMC4wMjk3NzQ3MDY4MTA3MTI4MTQsMC4wNTg3NzY1NjExNzA4MTY0MiwtMC4xMTE4OTg1NjM4MDIyNDIyOCwwLjA0ODA1MjkwMzI2NDc2MDk3LDAuMDQ4NDE4MjIwMTMyNTg5MzQsLTAuMDQ... |
560 | text a string so every line is at most width characters long All wrapping options are taken from instance attributes of the TextWrapper instance Returns a list of output lines without final newlines If the wrapped output has no content the returned list is empty fill text Wraps the single paragraph in text and returns... | en | "Wy0wLjA0Mzk5MjYwODc4NTYyOTI3LDAuMDM0NjgyMTg4MTgzMDY5MjMsMC4wMDc4NzA5NTM1MzAwNzMxNjYsMC4wOTI3ODkxMDYwNzA5OTUzMywtMC4wMjgwMDM3NDI5MTgzNzIxNTQsMC4wMjYxNjg0MzIwODY3MDYxNiwwLjA0MDY1ODQyOTI2NTAyMjI4LDAuMDMzODA2NjQ0MzgwMDkyNjIsLTAuMDU3NjU4MDI3ODU3NTQyMDQsLTAuMDA5Nzg2MjY0MDM5NTc2MDU0LDAuMDI5MzkwMzI3NjMyNDI3MjE2LC0wLjA1MDMwODI... |
561 | dbm Interfaces to Unix databases Source code Lib dbm __init__ py dbm is a generic interface to variants of the DBM database dbm gnu or dbm ndbm If none of these modules is installed the slow but simple implementation in module dbm dumb will be used There is a third party interface to the Oracle Berkeley DB exception db... | en | "Wy0wLjAxMzgzNzkwNDY2OTM0NDQyNSwtMC4wOTA5Mjc0Mjk0OTcyNDE5NywtMC4wNzU3MDM1OTg1NTg5MDI3NCwwLjA0MzAyMDMyMjkxODg5MTkxLC0wLjAwMzgyNDUyMzE4NDQ0ODQ4MDYsLTAuMDQwMjQwNjkwMTEyMTEzOTUsMC4wNTc3OTc4MzQyNzcxNTMwMTUsMC4wNzAzOTcxNjgzOTc5MDM0NCwtMC4wOTkxODA5MzY4MTMzNTQ0OSwwLjAyMzMzOTM3NzcxNjE4MzY2MiwwLjA0MjE1OTI3Nzk0NTc1NjkxLDAuMDUzODY... |
562 | sting database for reading only w Open existing database for reading and writing c Open database for reading and writing creating it if it doesn t exist n Always create a new empty database open for reading and writing The following additional characters may be appended to control how the database is opened f Open the ... | en | "WzAuMDM2NTgxODgxMzQ0MzE4MzksLTAuMDg0ODEwNzMzNzk1MTY2MDIsLTAuMTQwODk4MjU3NDkzOTcyNzgsMC4wMjkwNjYyNDc4NjU1NTc2NywtMC4wODIwNzY1MDQ4MjY1NDU3MiwtMC4wNDY5NTc2ODI4MTgxNzQzNiwwLjA3MDU2MzgzNzg4NTg1NjYzLDAuMDI1MTIyOTg4OTY5MDg3NiwtMC4wNDUzNjQ2MDcxMjU1MjA3MDYsMC4wNDQ4MDgzMjQ0MjY0MTI1OCwwLjA3MTg4MzI2ODY1NDM0NjQ3LDAuMDc0MzI2ODcyODI... |
563 | uired The dbm dumb module defines the following exception dbm dumb error Raised on dbm dumb specific errors such as I O errors KeyError is raised for general mapping errors like specifying an incorrect key dbm dumb open filename flag c mode 0o666 Open a dbm dumb database The returned database object behaves similar to ... | en | "WzAuMDAxODYxODc5MTM2NDEzMzM1OCwtMC4wOTYyNTA2NTMyNjY5MDY3NCwtMC4wOTEwOTU2MDQwMDI0NzU3NCwwLjEwNDg1MDg4ODI1MjI1ODMsLTAuMDU5NTk0NzgzOTMxOTcwNTk2LC0wLjExNTM4MzE0MDc0Mjc3ODc4LDAuMDQwMDk3NTY0NDU4ODQ3MDQ2LDAuMDk0NDgxMjI5NzgyMTA0NDksLTAuMDgyMDQyODU4MDA0NTcwMDEsMC4wMTgwNzU2OTg5ODY2NDk1MTMsMC4wNDQyODcwODE4MDc4NTE3OSwwLjA2MjAxOTA... |
564 | multiprocessing shared_memory Shared memory for direct access across processes Source code Lib multiprocessing shared_memory py New in version 3 8 This module provides a class SharedMemory for the allocation and management of shared memory to be accessed by one or more processes on a multicore or symmetric multiprocess... | en | "Wy0wLjA0ODIzMTgzNjQwODM3NjY5NCwtMC4wNDY3OTQyNjkyMzM5NDIwMywtMC4wODg3Mzk5OTg2Mzg2Mjk5MSwwLjAwNDQ5NDI1MzU0NTk5OTUyNywtMC4wMDA4MTUyNjcyNjcxNzEyOTM1LC0wLjA1MDgzMTQ3ODA4OTA5NDE2LDAuMDA4MzkwMjYzNjU0MjkxNjMsMC4wMTY2MTI0NDc3OTgyNTIxMDYsMC4wMTQxNjcwMDcwNTg4NTg4NzEsLTAuMDE1Njk3MTE0MTY5NTk3NjI2LC0wLjAwMDM3MTM4MjI1MTYxNDcwNDczLDA... |
565 | 33 44 55 Modify multiple at once buffer 4 100 Modify single byte at a time Attach to an existing shared memory block shm_b shared_memory SharedMemory shm_a name import array array array b shm_b buf 5 Copy the data into a new array array array b 22 33 44 55 100 shm_b buf 5 b howdy Modify via shm_b using bytes bytes shm_... | en | "WzAuMDIxMTcwODE3MzE1NTc4NDYsLTAuMDE2MDcyOTM2MzU2MDY3NjU3LC0wLjA0NjkxMTQ5NjY2OTA1NDAzLC0wLjAyOTgxNDc4OTA3MTY3OTExNSwtMC4wNDgxNzM4MzM2Mzg0Mjk2NCwtMC4wNjIyMDkwOTU4MDU4ODM0MSwtMC4wMjcxOTQ0NjQ1NzkyMjQ1ODYsLTAuMDY3NjE2MjMxNzM5NTIxMDMsLTAuMDU2MzU2NjA1MTQyMzU0OTY1LDAuMDY2NTc4NTIyMzI0NTYyMDcsLTAuMDYwNzExMTYwMzAyMTYyMTcsMC4wMzU... |
566 | in sl p1 Process target do_work args sl 0 1000 p2 Process target do_work args sl 1000 2000 p1 start p2 start A multiprocessing Pool might be more efficient p1 join p2 join Wait for all work to complete in both processes total_result sum sl Consolidate the partial results now in sl When using a SharedMemoryManager in a ... | en | "Wy0wLjA1ODU3MDM2MjYyNzUwNjI1NiwtMC4wMTk4MDE2MTEwODA3NjU3MjQsLTAuMDkzMDE3NjIyODI4NDgzNTgsMC4wMjExMDcwMDQ5NTU0MTA5NTcsMC4wMDg1ODE4ODUxMzY2NjM5MTQsLTAuMDE0ODc5MTMwNzU4MzQ1MTI3LDAuMDU2Mjg4ODk0MjY1ODkwMTIsMC4wMTYyODA0NTkyNDAwNzg5MjYsLTAuMDUxNTExMjMxODA5ODU0NTEsLTAuMDE1Mzk5NDk3MDAyMzYzMjA1LDAuMDI5Njg3NTU3MzY5NDcwNTk2LDAuMDU... |
567 | sl list deserialized_sl 0 1 2 3 4 5 6 7 8 9 sl 0 1 deserialized_sl 1 2 list sl 1 2 2 3 4 5 6 7 8 9 list deserialized_sl 1 2 2 3 4 5 6 7 8 9 sl shm close sl shm unlink | en | "Wy0wLjA0NTMzMzQ2MzY5ODYyNTU2NSwtMC4wMTEwMjE1MjY1MzAzODUwMTcsLTAuMDU0Mjg5MDIwNTk3OTM0NzIsMC4wMzM4MzA1NzkzNzAyNjAyNCwtMC4wMTU1ODMwNTMyMzEyMzkzMTksMC4wMjM1MzMzMDUxNTMyNTA2OTQsMC4wNDg3NjAwOTM3NDg1Njk0OSwtMC4wMDEzOTIwMzIzNjkwMzk5NTI4LC0wLjExNTI2OTY5MDc1MjAyOTQyLDAuMDI4OTYyMTY2OTc5OTA4OTQzLDAuMTI5MTUxMjk5NTk1ODMyODIsMC4wNTQ... |
568 | Supporting Cyclic Garbage Collection Python s support for detecting and collecting garbage which involves circular references requires support from object types which are containers for other objects which may also be containers Types which do not store references to other objects or which only store references to atom... | en | "Wy0wLjAxMjY1Mzk2NTUwMjk3NzM3MSwwLjAxODg5MzY5MjY0MjQ1MDMzMywtMC4wNzEzMzU2MzYwNzkzMTEzNywtMC4wMzE3MDM3MDMxMDU0NDk2NzcsLTAuMDMwNjkwNzgxNzcyMTM2Njg4LC0wLjEwNDA5MTU5MjEzMzA0NTIsMC4wNzM4Njc5OTE1NjY2NTgwMiwtMC4wMDEwMzc4NzkxNDg0OTgxNzc1LC0wLjAwNjM4NDY2NDY4MDgwODc4MywtMC4wMzU1NjU4MDA5NjQ4MzIzMDYsLTAuMDIwMDg3OTM1MDMwNDYwMzU4LC0... |
569 | collector and 0 otherwise This is analogous to the Python function gc is_finalized New in version 3 9 void PyObject_GC_Del void op Part of the Stable ABI Releases memory allocated to an object using PyObject_GC_New or PyObject_GC_NewVar void PyObject_GC_UnTrack void op Part of the Stable ABI Remove the object op from t... | en | "Wy0wLjA3OTg0OTM5MjE3NTY3NDQ0LC0wLjAxNjM3MDg5OTk3NTI5OTgzNSwtMC4wNjMwOTk2MDc4MjUyNzkyNCwwLjA0MjU1NjI4OTU4MzQ0NDU5NSwtMC4wNjY4NTExOTg2NzMyNDgyOSwtMC4wOTI0NDExMzQxNTQ3OTY2LDAuMDQzMzMxNjAwNzI1NjUwNzksMC4wMDA3NDMxMzM4ODkwNDU1NjYzLDAuMDA1OTE0MjM1NDg3NTgwMjk5LDAuMDI5MTI1NjgzMDA5NjI0NDgsMC4wMzk3MTcwMTg2MDQyNzg1NjQsMC4wMDYzMjI... |
570 | out warning in minor releases Run supplied callback on all live GC capable objects arg is passed through to all invocations of callback Warning If new objects are de allocated by the callback it is undefined if they will be visited Garbage collection is disabled during operation Explicitly running a collection in the c... | en | "Wy0wLjA0Nzc3MzI1Njg5NzkyNjMzLC0wLjAyNDM2MTg2MDAwNzA0NzY1MywtMC4wNTg4NDA5MDA2NTk1NjExNiwwLjA5MjMwNDc1MTI3Njk2OTkxLC0wLjAwNjQ4ODY0MDMyNzAwNjU3ODQsLTAuMDUyMzQ4MDY5ODQ2NjMwMDk2LDAuMDM1MDc1OTg0ODk1MjI5MzQsLTAuMDI4OTk4NzE1ODAzMDI3MTUzLC0wLjAwMzI1MTY1OTkxNjcxMzgzNCwwLjAwNTMwMDIyNzA4Njk5MTA3MiwwLjA1NDY0MDA4ODIzMDM3MTQ3NSwwLjA... |
571 | trace Trace or track Python statement execution Source code Lib trace py The trace module allows you to trace program execution generate annotated statement coverage listings print caller callee relationships and list functions executed during a program run It can be used in another program or from the command line See... | en | "Wy0wLjAyNDQxNzczMzc3MzU4OTEzNCwtMC4wMTU5OTk0MDQ3MTM1MTE0NjcsLTAuMTI0Njg0Nzg4Mjg2Njg1OTQsMC4wNzI1NjU4NjEwNDYzMTQyNCwwLjA3MTMxNDg3MTMxMTE4Nzc0LC0wLjA0NDIwNzM0MTk2OTAxMzIxNCwwLjA0NTQzNzI1NDAxMTYzMTAxLDAuMDUyMjUyMDE2OTYxNTc0NTU0LC0wLjA2NTUwMzY0MTk2MzAwNTA3LC0wLjAyOTk1ODQzOTk5MDg3ODEwNSwwLjA2NTIwMjM0MDQ4MzY2NTQ3LDAuMDEyNTg... |
572 | l previous calls to run runctx and runfunc for the given Trace instance Does not reset the accumulated trace results class trace CoverageResults A container for coverage results created by Trace results Should not be created directly by the user update other Merge in data from another CoverageResults object write_resul... | en | "WzAuMDI2MTY4MzExMDE0NzcxNDYsLTAuMDA4NzU0Nzg5ODI5MjU0MTUsLTAuMDU5MDAyNTcwODA3OTMzODEsMC4xMTM5NDk5Njk0MTA4OTYzLC0wLjAwNTAxMzAzOTMzNTYwODQ4MiwtMC4wNjE0NTAwNDkyODExMjAzLDAuMDE1MjU4NDA2Mjg4OTIxODMzLDAuMDgyOTA2NzY3NzI1OTQ0NTIsLTAuMDcxOTA2Nzc1MjM2MTI5NzYsLTAuMDE4MTI1NTI4NDY5NjgxNzQsMC4wNzY3ODQxMTE1NTkzOTEwMiwwLjAwNzQ3OTMyNjM... |
573 | What s New in Python 2 3 Author A M Kuchling This article explains the new features in Python 2 3 Python 2 3 was released on July 29 2003 The main themes for Python 2 3 are polishing some of the features added in 2 2 adding various small but useful enhancements to the core language and expanding the standard library Th... | en | "Wy0wLjA3MzI3ODU4MzU4NjIxNTk3LC0wLjAxMTAzNzY1ODkwMDAyMjUwNywtMC4wMjYyNzMyMzE5NTMzODI0OTIsMC4wNTA0NDI4ODkzMzI3NzEzLC0wLjAwMzI0NzA4NTAyNzM5NjY3OSwtMC4wODY2ODQ3MzM2MjkyMjY2OCwtMC4wMTI4NTcyNjI5NzY0Njc2MSwwLjAxNjcyMjUzNTcxNDUwNzEwMywtMC4wNTY4MTM1MjMxNzMzMzIyMTQsLTAuMDE0NDQ2NzQwOTcwMDE1NTI2LC0wLjAwNTcyMjk5MDcyNTE4OTQ0NywwLjA... |
574 | ion What if you could later resume the function where it left off This is what generators provide they can be thought of as resumable functions Here s the simplest example of a generator function def generate_ints N for i in range N yield i A new keyword yield was introduced for generators Any function containing a yie... | en | "Wy0wLjExNjE5NjUwNTcyNTM4Mzc2LDAuMDQ1NjcxOTE3NDk4MTExNzI1LC0wLjAyOTE3MzQ1MDU0NDQ3NjUxLDAuMDczNzQ1NTA0MDIxNjQ0NTksLTAuMDI0Mjg1ODIxMjQ0MTIwNTk4LC0wLjAyMzA4NjI0NjEwMzA0ODMyNSwwLjAwNTgwMzc5MTM0MDQ0MDUxMiwwLjAwNjkwNzQwMDY3NTExNzk2OTUsLTAuMDA4NzkwMDAzMTM1ODAwMzYyLC0wLjAzMjEzNjYyNjU0MTYxNDUzLDAuMDM0OTU4MzMyNzc3MDIzMzE1LDAuMDE... |
575 | oncrete object the iterator that can be passed around to other functions or stored in a data structure See also PEP 255 Simple Generators Written by Neil Schemenauer Tim Peters Magnus Lie Hetland Implemented mostly by Neil Schemenauer and Tim Peters with other fixes from the Python Labs crew PEP 263 Source Code Encodin... | en | "Wy0wLjA2ODU2NzE2NDI0MjI2NzYxLC0wLjA0Njk0Nzg1OTIyNzY1NzMyLC0wLjA2MzE3NDUwODUxMjAyMDExLDAuMDU5NTcxMjE0MDIwMjUyMjMsLTAuMDY4OTE5OTQ5MjMzNTMxOTUsLTAuMDI0MjQ0ODIwNjk5MDk1NzI2LDAuMDA4MDIxMjU2ODg2NDIyNjM0LDAuMDM3MDU1MjAxODI4NDc5NzcsLTAuMDExNTgzMTY0MzM0Mjk3MTgsLTAuMDY3Nzc0MDI3NTg1OTgzMjgsLTAuMDAwNTk1MzA3Mzg1MDgzMjg4LC0wLjAxMzg... |
576 | al Newline Support The three major operating systems used today are Microsoft Windows Apple s Macintosh OS and the various Unix derivatives A minor irritation of cross platform work is that these three platforms all use different characters to mark the ends of lines in text files Unix uses the linefeed ASCII character ... | en | "Wy0wLjA5MjA5ODg2MTkzMjc1NDUyLC0wLjAzODM1NTIwMTQ4Mjc3MjgzLC0wLjA2OTg3MTg1Nzc2MjMzNjczLDAuMDI1ODgxNDU5OTM2NDk5NTk2LC0wLjA1ODI4NjU4ODYzOTAyMDkyLC0wLjA1NjgzMzcyMTY5NzMzMDQ3NSwtMC4wNDk4MjM3NjQ3MTE2MTg0MiwwLjA1NDYyNzcyMDI2NjU4MDU4LC0wLjAwODIzODk0MzI5MzY5MDY4MSwtMC4wMDQ0MjQ0NDA2NzQ0ODM3NzYsMC4wMjI1NTc4OTM3Njc5NTI5MiwwLjA2MTE... |
577 | unctions will also record the traceback if you specify a true value for the keyword argument exc_info def f try 1 0 except logging exception Problem recorded f This produces the following output ERROR root Problem recorded Traceback most recent call last File t py line 6 in f 1 0 ZeroDivisionError integer division or m... | en | "Wy0wLjAxMDk2MzA5OTA3NzM0Mzk0LC0wLjAzNjE2MjEwNDQ1NzYxNjgwNiwtMC4wNjQ4NTUxODgxMzEzMzI0LDAuMDE3OTU0NTcxMTcyNTk1MDI0LDAuMDY2NzQwNTM1MTk5NjQyMTgsLTAuMTA3Nzc5MjM0NjQ3NzUwODUsMC4wNTE4ODE3ODI3MTA1NTIyMTYsMC4wMDIxMTg2NDE3NDM0MzY0NTU3LDAuMDE4MDQ1OTI2NDY2NTg0MjA2LDAuMDMxMDE1ODQ1MDE1NjQ1MDI3LDAuMDYyNzgzNTE2OTQzNDU0NzQsMC4wMjg0NDU... |
578 | or HTML entity reference into the converted string Python now has a flexible framework to add different processing strategies New error handlers can be added with codecs register_error and codecs then can access the error handler with codecs lookup_error An equivalent C API has been added for codecs written in C The e... | en | "Wy0wLjA5MzUyMzk3MTczNjQzMTEyLC0wLjAxNjQ3MTkzOTE2MTQxOTg3LC0wLjA3NDY2ODk4ODU4NTQ3MjEsMC4wNTA2MjA4MDU0NzIxMzU1NDQsLTAuMDU2MDg1NTg2NTQ3ODUxNTYsLTAuMDM5MTU2NTg5NjU3MDY4MjUsLTAuMDE4NDc4NDU1MDIxOTc3NDI1LDAuMDU0MjE5OTQ2MjY1MjIwNjQsLTAuMDI4MzYwNDQ2OTE1MDMwNDgsLTAuMDIyMzQ4NzI2MTY4Mjc0ODgsLTAuMDAyNTM5ODc5NjQyNDI2OTY3NiwtMC4wMjI... |
579 | n Rossum and Paul Moore Implemented by Just van Rossum PEP 305 Comma separated Files Comma separated files are a format frequently used for exporting data from databases and spreadsheets Python 2 3 adds a parser for comma separated files Comma separated format is deceptively simple at first glance Costs 150 200 3 95 Re... | en | "Wy0wLjA4ODk4NDM3MDIzMTYyODQyLDAuMDEzNDUzNzAyNDQyMzQ4MDAzLC0wLjA1OTg3MjAwODg2MDExMTI0LC0wLjAxNDgxMTAxMTAzMTI3MDAyNywwLjAwMjc3MDE3NTQ1ODg2MzM3NzYsLTAuMDE0NjI5ODI4NzQzNjM2NjA4LC0wLjAxMTI1MzE1MjA0MjYyNzMzNSwwLjA1NTQ5ODkyMDM4MTA2OTE4LDAuMDAyNTE2OTg5NTk2MTg4MDY4NCwwLjAyNzQ1MDI1NDE4Njk4Nzg3NywtMC4wMzkyMzkxNTY5OTEyNDMzNiwwLjA... |
580 | hen assigning to an extended slice the list on the right hand side of the statement must contain the same number of items as the slice it is replacing a range 4 a 0 1 2 3 a 2 0 2 a 2 0 1 a 0 1 1 3 a 2 0 1 2 Traceback most recent call last File stdin line 1 in ValueError attempt to assign sequence of size 3 to extended ... | en | "Wy0wLjA3MjAyMTU4MTIzMjU0Nzc2LDAuMDM3MTg5MzcxODgzODY5MTcsMC4wMjE1MjAxNTQ1NTA2NzE1NzcsLTAuMDE0NTU3MzMyNzMxNzgzMzksLTAuMDQ0NTgxOTE5OTA4NTIzNTYsLTAuMDU2OTExMjg1OTY2NjM0NzUsMC4wNDg1NjIwOTA4NDM5MTU5NCwwLjAyNTI5NjUxNDg1MzgzNTEwNiwtMC4xMDg3MzQ1NjI5OTMwNDk2MiwtMC4wMDcxMjc5ODM0OTU1OTMwNzEsMC4wNDUxMzE5NTkwMjEwOTE0NiwtMC4wMTA2OTc... |
581 | n use them to create new objects such as functions classes and modules This means that the new module can be deprecated in a future Python version because you can now use the type objects available in the types module For example you can create a new module object with the following code import types m types ModuleType... | en | "Wy0wLjAyNjc5OTM5MDA5MjQ5MjEwNCwwLjAyOTc1MjM0MjAzMDQwNTk5OCwtMC4wMzA3NDk2MTkwMDcxMTA1OTYsMC4wNzgyMTMwNjU4NjI2NTU2NCwwLjAxMzM3Mjk5MDMwMjc0MTUyOCwtMC4wNjI2NjMzMDkyNzYxMDM5NywwLjAxMjM0ODI4NjgwNzUzNzA3OSwwLjA3Nzk3ODk0NjI2ODU1ODUsLTAuMDM0NDY5NzY0Njc5NjcwMzM0LC0wLjA0Nzc2Nzc3Njk5NTg5NzI5LDAuMDU0MjM1MzkxMzE4Nzk4MDY1LDAuMDUxNDA... |
582 | implemented by Walter Dörwald The startswith and endswith string methods now accept negative numbers for the start and end parameters Another new string method is zfill originally a function in the string module zfill pads a numeric string with zeros on the left until it s the specified width Note that the operator is... | en | "Wy0wLjA3MTE3NDg2NzQ1MTE5MDk1LDAuMDYzODAxOTUxNzA2NDA5NDUsLTAuMDQ4NTcwMjYwNDA1NTQwNDY2LC0wLjAxODkzMTA3OTY1NTg4NTY5NiwtMC4xMDcxNjkwNTQ0NDg2MDQ1OCwtMC4wNDc3MjM2NzMyODQwNTM4LDAuMDA2NTAyNTIxMjI0MzE5OTM1LDAuMTI2NTM1MjUxNzM2NjQwOTMsLTAuMDQ1NzgyNTIxMzY3MDczMDYsLTAuMDU5MDI1Mjk1MDc4NzU0NDI1LC0wLjAxMDkwMzMxOTM0MzkyNDUyMiwwLjA4MDE... |
583 | depends on This lets Distutils recompile the module if any of the dependency files are modified For example if sampmodule c includes the header file sample h you would create the Extension object like this ext Extension samp sources sampmodule c depends sample h Modifying sample h would then cause the module to be rec... | en | "Wy0wLjA4Njc4NjY0MjY3MDYzMTQxLDAuMDI0MTMzNzEyMDUzMjk4OTUsLTAuMDM0Mzg3MDg1NTg2Nzg2MjcsMC4wNTcwNjczNzkzNTU0MzA2LDAuMDA4NDg2NDI1NTA0MDg4NDAyLC0wLjA2MDc4NjcyMDM2NTI4NTg3LC0wLjAxNjYxMDE0NzQzMTQ5MjgwNSwwLjA2NDQwNzE4NDcyMDAzOTM3LC0wLjA1MDUwNDQwODc3Njc2MDEsLTAuMDE2ODgzMjkxMzA0MTExNDgsMC4wMzUyMDU0OTgzMzc3NDU2NjcsMC4wMjExNDYxMzk... |
584 | urned by time time During testing it was found that some applications will break if time stamps are floats For compatibility when using the tuple interface of the stat_result time stamps will be represented as integers When using named fields a feature first introduced in Python 2 2 time stamps are still represented as... | en | "Wy0wLjA3MjY0MTA1MjMwNTY5ODQsLTAuMDE4MjA3OTIwNzE1MjEyODIyLC0wLjA1NjIzNjk1OTk5MzgzOTI2NCwwLjAwNTgyNTE2MTAwMjU3NjM1MSwwLjAwMDc0NjU1OTE3NzA1OTY4MDIsLTAuMTExMTMzMjU1MDY0NDg3NDYsLTAuMDE4NDQyOTQxODI5NTYyMTg3LDAuMDY3MTM0NTY2NjA1MDkxMSwtMC4wMTAxMzI3MzM3MzI0NjE5MywtMC4wNjkwNjg1MjEyNjEyMTUyMSwwLjAzNDQ1MzkxNzI5NDc0MDY4LC0wLjA1ODE... |
585 | ket module now supports timeouts You can call the settimeout t method on a socket object to set a timeout of t seconds Subsequent socket operations that take longer than t seconds to complete will abort and raise a socket timeout exception The original timeout implementation was by Tim O Malley Michael Gilfix integrate... | en | "Wy0wLjEwMjExNTIxMzg3MTAwMjIsMC4xMDEwMjM2ODE0NjE4MTEwNywtMC4wMzAxNjg2NTQzOTcxMzAwMTMsMC4wNzg1MDMzMDMyMjk4MDg4MSwtMC4wNTEzMDUxNzQ4Mjc1NzU2ODQsLTAuMDMxMDA2MzIzMTczNjQyMTYsLTAuMDU0NjM3MDcwNzQ1MjI5NzIsMC4wMTY5MDA5Nzg5ODI0NDg1NzgsMC4wMjA1ODAzNTUwNzc5ODE5NSwtMC4wMzE3NDIxMTQ1NzM3MTcxMiwtMC4wMTUxNjEyOTI2Mjc0NTM4MDQsMC4wOTkwNjE... |
586 | nabled version of Tcl Tcl s threading model requires that widgets only be accessed from the thread in which they re created accesses from another thread can cause Tcl to panic For certain Tcl interfaces Tkinter will now automatically avoid this when a widget is accessed from a different thread by marshalling a command ... | en | "Wy0wLjA3NTg1OTE4OTAzMzUwODMsMC4wMzkwODk1ODI4NjA0Njk4MiwtMC4wMDkwNjc1MDAwMTAxMzI3OSwwLjAxMTU4MzI0OTA4NDY1MTQ3LC0wLjA2Mzg0MjQyMzI2MDIxMTk0LC0wLjAzOTgxNjMwODc2NjYwMzQ3LDAuMDExNTgwNzE5NjEyNTM4ODE1LC0wLjAxNzQ5OTg2OTY4OTM0NTM2LDAuMDkyMTQ4NTM0OTUzNTk0MjEsLTAuMDQxNzk4OTYwNDE3NTA5MDgsLTAuMDMzMzg0OTAwNTQwMTEzNDUsLTAuMDAwNTYyNTU... |
587 | names such as httplib and ftplib also support Unicode host names httplib also sends HTTP Host headers using the ACE version of the domain name urllib supports Unicode URLs with non ASCII host names as long as the path part of the URL is ASCII only To implement this change the stringprep module the mkstringprep tool and... | en | "Wy0wLjAyNTI1Mjc1MDE0MzQwODc3NSwwLjAzMDYxNDA1NTY5MzE0OTU2NywtMC4wNTk1Njg2MzYxMTkzNjU2OSwtMC4wMjY3OTUwNzI0ODEwMzYxODYsLTAuMDc5NTE5ODQ1NTQ1MjkxOSwtMC4wNTk1NjQyMTc5MjUwNzE3MTYsLTAuMDg4NDI2MjMyMzM3OTUxNjYsMC4wNTIzMDA5ODU5MDI1NDc4MzYsLTAuMDEyMjcwOTYzNzUwNzc5NjI5LC0wLjA4MjQyMTMwMjc5NTQxMDE2LC0wLjAzNzE4ODU4MjEyMjMyNTksLTAuMDY... |
588 | d then fulfills smaller memory requests from these pools In 2 1 and 2 2 pymalloc was an experimental feature and wasn t enabled by default you had to explicitly enable it when compiling Python by providing the with pymalloc option to the configure script In 2 3 pymalloc has had further enhancements and is now enabled b... | en | "Wy0wLjA1MTQ5NDcyNTA0ODU0MjAyLDAuMDA5NzMyMDg1MjgwMTIwMzczLC0wLjA0NjU3MDQyMzk5MDQ4ODA1LDAuMDQwMTIwODYyNDI0MzczNjMsMC4wMDAyMTkzNDM5NzIyNzU5NjQ5MiwtMC4wODAxMDI2MjI1MDkwMDI2OSwtMC4wMzA4MjEzMTAzNTYyNTkzNDYsMC4wNzg5MDYyMzgwNzkwNzEwNCwtMC4wMjIwMzkyNzE4OTExMTcwOTYsMC4wMjQwOTM5Mjk2NzgyMDE2NzUsMC4wMjgzMTA2NzE0NDg3MDc1OCwwLjAzNjI... |
589 | code that uses it should be changed For Python 2 2 and later the method definition table can specify the METH_NOARGS flag signalling that there are no arguments and the argument checking can then be removed If compatibility with pre 2 2 versions of Python is important the code could use PyArg_ParseTuple args instead bu... | en | "Wy0wLjAyMzk5NTg3NDQ0OTYxMDcxLDAuMDEzNTczMjI3NDUwMjUxNTgsLTAuMDg4MjQzMzcyNzM4MzYxMzYsLTAuMDI3Mjk1MjYxNjIxNDc1MjIsLTAuMDY0NjQxMjE0OTA3MTY5MzQsLTAuMTU0Mzg0MzI5OTE1MDQ2NywtMC4wMDczMDcxNjUzMDIzMzYyMTYsMC4wOTA5NDg2MzM4NDk2MjA4MiwtMC4wNjE1MTQxOTEzMjk0NzkyMiwtMC4wNTczMzExODk1MTMyMDY0OCwwLjA3Nzg3Njk0NzgyMDE4NjYxLDAuMDI3MTM4MTY... |
590 | milar scheme to determine when to call the trace function removing the need for SET_LINENO entirely It would be difficult to detect any resulting difference from Python code apart from a slight speed up when Python is run without O C extensions that access the f_lineno field of frame objects should instead call PyCode_... | en | "Wy0wLjA1NzQ4NDQ5MjY1OTU2ODc5LDAuMDAxNzA4NjA5NzUwNDk0MzYxLC0wLjA1NjQyMzgyNDI4MDUwMDQxLDAuMDM5NTQxMjI1ODgwMzg0NDQ1LDAuMDE3OTM4Mjk5MTA0NTcxMzQyLC0wLjA3MDI2NjYxMTg3NDEwMzU1LDAuMDM0MjY0NDc1MTA3MTkyOTksMC4wNDIwMzM4OTk1NzU0NzE4OCwtMC4wNjgxNTUyNjYzNDQ1NDcyNywtMC4wNTk1ODY5ODMxNzQwODU2MiwtMC4wMDE5MTQwMTk4MTI4Mjk3OTI1LDAuMDEzNDQ... |
591 | compileall Byte compile Python libraries Source code Lib compileall py This module provides some utility functions to support installing Python libraries These functions compile Python source files in a directory tree This module can be used to create the cached byte code files at library installation time which makes ... | en | "Wy0wLjA2NDgyMDYwOTk4Njc4MjA3LDAuMDAxODIzMTEzNjQ5MTUyMjE5MywtMC4wNjQwOTgxMDQ4MzQ1NTY1OCwwLjAxNjU1NTYxNjYzMjEwMzkyLDAuMDI2MjA3MzI1OTgwMDY3MjUzLC0wLjEwMTI2MTE0NjM2NjU5NjIyLDAuMDM3Njc0NzEwMTU0NTMzMzg2LDAuMDUyNjYwNjU4OTU1NTc0MDM2LC0wLjA3ODM5NzM3ODMyNTQ2MjM0LDAuMDAwNjE0NjQzOTExODMxMDgwOSwwLjAxMTE3NjIzMDM4NTg5OTU0NCwwLjAxMDE... |
592 | ion because the Python interpreter itself already provides the option python O m compileall Similarly the compile function respects the sys pycache_prefix setting The generated bytecode cache will only be useful if compile is run with the same sys pycache_prefix if any that will be used at runtime Public functions comp... | en | "Wy0wLjA1NTk1Mzk0OTY4OTg2NTExLDAuMDE1MDEzMjc0NzM2NzAyNDQyLC0wLjAyMDc0NTIxMDM0OTU1OTc4NCwwLjAxMTc4MzY3NDM1OTMyMTU5NCwwLjAyMDU2OTE3MTc1NjUwNTk2NiwtMC4xMzAxMzcyOTQ1MzA4Njg1MywwLjAzNzUxNjg1ODQyODcxNjY2LDAuMDYwNDU5ODU1OTQzOTE4MjMsMC4wMzU4ODk4MDA2Mzc5NjA0MzQsLTAuMDE1ODE0MTg4ODY3ODA3MzksMC4wMTg3OTg5Mzk4ODM3MDg5NTQsMC4wNjY3NzU... |
593 | tion time tracebacks and is also compiled in to the byte code file where it will be used in tracebacks and other messages in cases where the source file does not exist at the time the byte code file is executed If rx is given its search method is passed the full path name to the file being compiled and if it returns a ... | en | "Wy0wLjA3OTU1MTkzNTE5NTkyMjg1LDAuMDQyMjE0OTkzMzg3NDYwNzEsLTAuMDcwMTA4NDM2MDQ4MDMwODUsMC4wMDE0NTIxMTM1MDE3Mjc1ODEsMC4wNDQzMjAwNzI5Nzg3MzQ5NywtMC4wNTk1NDM5Mjk5OTQxMDYyOSwwLjAzMzM3NzU5ODk3MTEyODQ2NCwwLjA0MTYzNTY3MzQ5MzE0Njg5NiwtMC4wNDY3MDc3OTAzNDQ5NTM1NCwtMC4wNjYzNjI5MzIzMjQ0MDk0OCwwLjAxODk2MjY3NzU2ODE5NzI1LDAuMDY1MzEwMzg... |
594 | 15 Floating Point Arithmetic Issues and Limitations Floating point numbers are represented in computer hardware as base 2 binary fractions For example the decimal fraction 0 625 has value 6 10 2 100 5 1000 and in the same way the binary fraction 0 101 has value 1 2 0 4 1 8 These two fractions have identical values the ... | en | "Wy0wLjA1NTE0NDI2MTU2ODc4NDcxNCwwLjAxNDk0Njg5Mzc4ODg3NDE1LC0wLjAzOTUyOTAyMTgyOTM2NjY4NCwtMC4wNzQxOTAyMjkxNzc0NzQ5OCwwLjAxMTk5MjIyMTY5ODE2NDk0LC0wLjEwOTQzNjY1MzU1NDQzOTU0LC0wLjA3MDY2ODA3MTUwODQwNzU5LDAuMDY2MTkxNDU3MjExOTcxMjgsMC4wMTc4OTM2Nzk0NDAwMjE1MTUsLTAuMDA2MzE0NjA1OTQwMTMzMzMzLC0wLjA0ODI1NTU3NzY4MzQ0ODc5LC0wLjA5ODM... |
595 | gh the numbers cannot be made closer to their intended exact values the math isclose function can be useful for comparing inexact values math isclose 0 1 0 1 0 1 0 3 True Alternatively the round function can be used to compare rough approximations round math pi ndigits 2 round 22 7 ndigits 2 True Binary floating point ... | en | "Wy0wLjA1NDU2NDAzMjcwMzYzODA4LDAuMDQ0MTYwMjUwNTc0MzUwMzYsLTAuMDUxMTkwNTkyMzQ4NTc1NTksMC4wMDg4OTIyMjQxNzAyNjc1ODIsLTAuMDEzMjE4NjAwMzAyOTM0NjQ3LC0wLjEzMjQ1ODk1NTA0OTUxNDc3LC0wLjAyODQ0Mzg5OTAwNTY1MTQ3NCwwLjA5Njg5NDAxODM1MjAzMTcxLDAuMDIyMDYyODYwNDI5Mjg2OTU3LC0wLjAxMTc4MDM0MjA4NzE0OTYyLC0wLjAyNjkxODE2MzUyMzA3Nzk2NSwtMC4wNzk... |
596 | 75902860057365 15 1 Representation Error This section explains the 0 1 example in detail and shows how you can perform an exact analysis of cases like this yourself Basic familiarity with binary floating point representation is assumed Representation error refers to the fact that some most actually decimal fractions ca... | en | "Wy0wLjAzNjAwMTY1OTkyOTc1MjM1LDAuMDg2NjcxNjU3ODYwMjc5MDgsLTAuMDYwOTcwMjE2OTg5NTE3MjEsLTAuMDE1MTgwOTI1ODM4NjQ5MjczLC0wLjAxNDAyNTEwNTE2MzQ1NTAxLC0wLjA1Mzg0ODk5Njc1ODQ2MSwtMC4wNDU5ODQ5NTM2NDE4OTE0OCwwLjA3NjYwNjU3OTEyNDkyNzUyLC0wLjAwNTQzNzg5ODkxNTI2MTAzLC0wLjAyMDcxMzI2NTk4NTI1MDQ3MywtMC4wNjk5NjAyODg3MDM0NDE2MiwtMC4wNjExNDM... |
597 | Numeric and Mathematical Modules The modules described in this chapter provide numeric and math related functions and data types The numbers module defines an abstract hierarchy of numeric types The math and cmath modules contain various mathematical functions for floating point and complex numbers The decimal module s... | en | "Wy0wLjA4Mjc4NTMxNTgxMTYzNDA2LC0wLjAxNTI1NzgyNzAwNjI4MDQyMiwtMC4wNjI4NTY1OTk2ODg1Mjk5NywtMC4wNDU0ODM2Njc0MDM0NTk1NSwtMC4wNzk1NzY3MjMyNzc1Njg4MiwtMC4wNjQxMjU0OTMxNjg4MzA4NywtMC4wMDY3MzgyMDIxODA3MTM0MTUsMC4wNzk1MTUwOTIwNzQ4NzEwNiwwLjAyNTA1MTk5MjM4NjU3OTUxNCwtMC4wMjg2NjAwOTQzNjU0Nzc1NjIsLTAuMDA4NjE3NzUxMzAwMzM0OTMsLTAuMDg... |
598 | zoneinfo IANA time zone support New in version 3 9 Source code Lib zoneinfo The zoneinfo module provides a concrete time zone implementation to support the IANA time zone database as originally specified in PEP 615 By default zoneinfo uses the system s time zone data if available if no system time zone data is availabl... | en | "Wy0wLjAzNzUwNDA2MjA1NjU0MTQ0LC0wLjAyMDQwMzY2ODI4NDQxNjIsLTAuMDk1NTU2MjY2NjA1ODU0MDMsLTAuMDQ2ODMzNDcwNDYzNzUyNzUsMC4wMTI5OTQwNDM1MjkwMzM2NjEsLTAuMDY4Nzg0MTEwMjQ4MDg4ODQsLTAuMDA2MTE0NTE2ODcyOTEyNjQ1LDAuMDQ0NDIwNzkzNjUyNTM0NDg1LC0wLjA0ODU4ODMzNTUxNDA2ODYwNCwwLjAwNTQyMzczOTU1MjQ5Nzg2NCwtMC4wMjkxNjY2Nzc5NjY3MTM5MDUsLTAuMTA... |
599 | ZPATH if it exists to set the search path PYTHONTZPATH This is an os pathsep separated string containing the time zone search path to use It must consist of only absolute rather than relative paths Relative components specified in PYTHONTZPATH will not be used but otherwise the behavior when a relative path is specifie... | en | "Wy0wLjA0NzM1NjE2NTk0NTUyOTk0LDAuMDEzNTE3MjI2MDkyNTE3Mzc2LC0wLjA4MzEwNjYzNzAwMTAzNzYsMC4wMzc0NDM1OTY4Njk3MDcxMSwtMC4wMjk4MjQ3NTQyMjMyMjc1LC0wLjEwMDQzMzQ2ODgxODY2NDU1LC0wLjAxNTEzMDIwMjI4NTk0NTQxNSwwLjAzNzk5ODM2NzEwMDk1NDA1NiwtMC4wNTg4NzQwMTg0OTAzMTQ0ODQsLTAuMDIyNzQxNTQ0OTkxNzMxNjQ0LC0wLjAyMTcxNTQ3ODk3MTYwMDUzMywwLjAzOTA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.