id int64 0 2.72k | content stringlengths 5 4.1k | language stringclasses 4
values | embedding unknown |
|---|---|---|---|
600 | Info Pacific Kwajalein str zone Pacific Kwajalein dt datetime 2020 4 1 3 15 tzinfo zone f dt isoformat dt tzinfo 2020 04 01T03 15 00 12 00 Pacific Kwajalein For objects constructed from a file without specifying a key parameter str falls back to calling repr ZoneInfo s repr is implementation defined and not necessarily... | en | "Wy0wLjA2NzI5NjM4NTc2NTA3NTY4LC0wLjAyOTU2NjE4NzQxMTU0NjcwNywtMC4wNjkzMDA5MTk3NzExOTQ0NiwtMC4wNTM1OTcyMzc5MTQ4MDA2NDQsLTAuMDQ2OTM2MTE3MTEyNjM2NTY2LC0wLjAyMjQ1MTQ5NzYxNDM4MzY5OCwtMC4wNjk2NTQyMTE0MDE5MzkzOSwtMC4wMTk2NzQ0OTQ4NjI1NTY0NTgsMC4wNTUyMDY3MjcyMzY1MDkzMiwtMC4wMDk1MTMzMzM0Mzk4MjY5NjUsMC4wMDQ1NTY1NDEzMzExMTIzODUsLTA... |
601 | s recommended to use zoneinfo TZPATH rather than importing TZPATH from zoneinfo or assigning a long lived variable to zoneinfo TZPATH For more information on configuring the time zone search path see Configuring the data sources Exceptions and warnings exception zoneinfo ZoneInfoNotFoundError Raised when construction o... | en | "WzAuMDEwNjQ5NzM2MDM5MzQwNDk2LC0wLjAyMTA3MjA2NTQ1NzcwMTY4MywtMC4wNTAwNTIwNTQyMjYzOTg0NywwLjAxMjI1OTQ3NDAyNDE3NjU5OCwtMC4wMDgxMjk0MDg1ODMwNDUwMDYsLTAuMDYwMzYzNDE1NjI4NjcxNjQ2LC0wLjAyMTk0MzMwMDk2MjQ0ODEyLDAuMDU2NzYxMjIzODIyODMyMTEsLTAuMDczNDUyODg5OTE5MjgxLC0wLjAyMTQzNjM1Nzg3MDY5Nzk3NSwtMC4wMjI5OTYwODI5MDE5NTQ2NSwtMC4wMzU... |
602 | decimal Decimal fixed point and floating point arithmetic Source code Lib decimal py The decimal module provides support for fast correctly rounded decimal floating point arithmetic It offers several advantages over the float datatype Decimal is based on a floating point model which was designed with people in mind and... | en | "Wy0wLjA2MjgwODU4ODE0NzE2MzM5LDAuMDIwOTUwMzYzOTQ4OTQxMjMsLTAuMDY2NjcwMzg3OTgzMzIyMTQsLTAuMDYxODY4NzE5NzU2NjAzMjQsLTAuMDA2NzQzMzU4OTEzODA5MDYxLC0wLjA3NjU4MzAxMjkzODQ5OTQ1LC0wLjAxMTYwMzQ2OTAyOTA2ODk0NywwLjA4NzI5MzQ2ODQxNTczNzE1LDAuMDcyNjQ4OTg3MTc0MDM0MTIsMC4wMjAyMDg1Mzk0NDEyMjc5MTMsMC4wMDI5NjI1ODI1MTE4MjczNDk3LC0wLjA2NjU... |
603 | decimal import getcontext Context prec 28 rounding ROUND_HALF_EVEN Emin 999999 Emax 999999 capitals 1 clamp 0 flags traps Overflow DivisionByZero InvalidOperation getcontext prec 7 Set a new precision Decimal instances can be constructed from integers strings floats or tuples Construction from an integer or a float pe... | en | "Wy0wLjAzMjA3Njg4MDMzNTgwNzgsLTAuMDIwOTQ4Mzc2NTA2NTY3LC0wLjA4OTUyODIyNTM2MjMwMDg3LC0wLjAzNjkxMDc3OTc3NDE4ODk5NSwwLjAwODM1ODk5MDc3MzU1ODYxNywtMC4wODk3NTg1MDc5MDczOTA2LDAuMDcxNDE5NzA4NDMwNzY3MDYsMC4wOTY4NjAyNzQ2NzI1MDgyNCwtMC4wMDQ4NTc2NjEyMDI1NDk5MzQsMC4wNDk0NTA5OTcyNjMxOTMxMywwLjA1NDkxODAyNDY4ODk1OTEyLC0wLjEzMjUzOTY1OTc... |
604 | toring exceptional conditions encountered during computations The flags remain set until explicitly cleared so it is best to clear the flags before each set of monitored computations by using the clear_flags method setcontext ExtendedContext getcontext clear_flags Decimal 355 Decimal 113 Decimal 3 14159292 getcontext C... | en | "Wy0wLjAwODY0MDgyNTc0ODQ0MzYwNCwwLjAyOTY1NTQ5NzUyMTE2MjAzMywtMC4wNzI3MDI1MjcwNDYyMDM2MSwtMC4wMDI0NTg0Mjc1NjcwMzQ5NiwtMC4wMzg1NzQ4NTIwNDkzNTA3NCwtMC4wOTIxMDk2NTAzNzM0NTg4NiwwLjA5MjMwNTg3NjMxNDY0MDA1LDAuMDQ5MDAxODI0MTEwNzQ2Mzg0LC0wLjAyMzIwODI1NDk0ODI1ODQsMC4wMjE2OTQ2MzIyNDcwOTAzNCwwLjAxMDM5ODc3MzQ3NjQ4MTQzOCwtMC4wNjAwNzg... |
605 | y returning the integer part of the true quotient truncating towards zero rather than its floor so as to preserve the usual identity x x y y x y 7 4 2 Decimal 7 Decimal 4 Decimal 1 The and operators implement the remainder and divide integer operations respectively as described in the specification Decimal objects cann... | en | "Wy0wLjA2MDU5Mjg3ODYwOTg5NTcwNiwwLjA0MDM3NzcxMDAxNDU4MTY4LC0wLjAxMzQwNjg5MDQ0NDQ1NzUzMSwtMC4wNDI3NDE2OTM1NTYzMDg3NDYsLTAuMDEyNjUzNTMyNDM3OTgwMTc1LC0wLjA5MTkzNDc3MDM0NTY4Nzg3LC0wLjAxMzU5Njk3MjQ1MDYxMzk3NiwwLjA2MjE5MzY5MTczMDQ5OTI3LC0wLjAzODIxMTQ5NDY4NDIxOTM2LC0wLjAzMjkxNjE2OTYxMzU5OTc4LC0wLjAyNDU2OTE4OTE3NTk2MzQwMiwtMC4... |
606 | with the sign set to be the same as the sign of the second operand For example Decimal 2 3 copy_sign Decimal 1 5 Decimal 2 3 This operation is unaffected by context and is quiet no flags are changed and no rounding is performed As an exception the C version may raise InvalidOperation if the second operand cannot be con... | en | "Wy0wLjAzMjgxMDgxODQwMzk1OTI3NCwwLjAzNjI0OTI1MDE3MzU2ODcyNiwtMC4wODc5OTMxNjczNDA3NTU0NiwtMC4wMzM2MjgxNTgyNzEzMTI3MTQsLTAuMDA4OTM3NDg2NDQ3MzkzODk0LC0wLjA5MTU2ODMzNTg5MDc2OTk2LDAuMDQ0NzQ4OTAyMzIwODYxODE2LDAuMTAzNDY4Mzk1NzY5NTk2MSwtMC4wMTI5NjkyMDIzNjIwMDA5NDIsMC4wMDM3MDQ4OTU3MzEwNjE2OTcsMC4wMzIwNTk2OTkyOTY5NTEyOTQsLTAuMTg... |
607 | min self other except that the context rounding rule is applied before returning and that NaN values are either signaled or ignored depending on the context and whether they are signaling or quiet min_mag other context None Similar to the min method but the comparison is done using the absolute values of the operands ... | en | "Wy0wLjA1MTEzOTA0MTc4MTQyNTQ3NiwtMC4wMDEyNDY1OTg4OTg0MzMxNDg5LC0wLjAyOTkwNjI5NTIzOTkyNTM4NSwtMC4wNDk2NzEwMDU0NTc2Mzk2OTQsMC4wMjg1NjgwNDYxNjc0OTI4NjcsLTAuMDExNTQ4NDQwOTAzNDI1MjE3LDAuMDAyNDMwMDkyMzEwNTMyOTI3NSwwLjAzNjQ0MzM1MjY5OTI3OTc4NSwwLjAxOTg5ODkwNjM1MDEzNTgwMywwLjAwMzE4NjQ5MzY0NjM1MzQ4MywwLjA3MjQ2MDkyNzA2OTE4NzE2LC0... |
608 | imal 2 Decimal 25 remainder_near Decimal 10 Decimal 5 Decimal 35 remainder_near Decimal 10 Decimal 5 rotate other context None Return the result of rotating the digits of the first operand by an amount specified by the second operand The second operand must be an integer in the range precision through precision The abs... | en | "Wy0wLjA1NjYzNTU2OTc4MTA2NDk5LDAuMDEzMzMzNzgwNjkxMDI3NjQxLC0wLjA4NTY0MDM3ODI5NjM3NTI3LC0wLjA0MDYwNDYwNjI3MDc5MDEsLTAuMDY3OTc5OTkxNDM2MDA0NjQsLTAuMDY3ODcxOTk1MjcwMjUyMjMsMC4wMzMzMDU4MTYzNTIzNjc0LDAuMDM4MTg3OTk5Mjc4MzA2OTYsMC4wMzUxMjUzMTUxODkzNjE1NywtMC4wMTg3NDQ4NDQ5NDMyODQ5OSwwLjA5NTI4NDYxMDk4NjcwOTYsLTAuMDc3MDM2NjM0MDg... |
609 | mal import localcontext with localcontext as ctx ctx prec 42 Perform a high precision calculation s calculate_something s s Round the final result back to the default precision Using keyword arguments the code would be the following from decimal import localcontext with localcontext prec 42 as ctx s calculate_something... | en | "Wy0wLjA1MzUxODc5NDQ3Njk4NTkzLDAuMDI0MjY5MzMzMTA5MjU5NjA1LC0wLjA2Mzk4NTYzMDg2OTg2NTQyLDAuMDAwODA5ODM3MTMyNjkyMzM3LC0wLjAyMTI2NDE0MTQyNTQ5MDM4LC0wLjAxMjEwMzY4NzA0MDUwNzc5MywwLjExNzc1MTY1Nzk2Mjc5OTA3LDAuMDY5MTk4MzAyOTI0NjMzMDMsLTAuMDU4NjQyMDE0ODYxMTA2ODcsLTAuMDAwMDM0NjU1MzI0MjcwNzE1OTQsMC4wMzcwNTk4NTQ3MTYwNjI1NDYsLTAuMTM... |
610 | 23000E 999 A clamp value of 1 allows compatibility with the fixed width decimal interchange formats specified in IEEE 754 The Context class defines several general purpose methods as well as a large number of methods for doing arithmetic directly in a given context In addition for each of the Decimal methods described... | en | "Wy0wLjA0NDM0NDg2NDc4NTY3MTIzNCwwLjAyNzI5OTE1ODI3NTEyNzQxLC0wLjA2Mzg0NDkyNjY1NTI5MjUxLC0wLjA0NzA4NTI5NjM2MjYzODQ3NCwtMC4wMzUwODgwMjEzMDgxODM2NywtMC4wODAzOTUxNjIxMDU1NjAzLDAuMDQ4ODA5ODAwMjk3MDIxODY2LDAuMDk5NzYzMzc4NTAwOTM4NDIsMC4wMjEwNzUwMTQwMjQ5NzI5MTYsLTAuMDA2MDg0MzUyNzMxNzA0NzEyLDAuMDAzNjE1NDUxMDQ1MzM0MzM5LC0wLjEzNTQ... |
611 | True if x is a zero otherwise returns False ln x Returns the natural base e logarithm of x log10 x Returns the base 10 logarithm of x logb x Returns the exponent of the magnitude of the operand s MSD logical_and x y Applies the logical operation and between each operand s digits logical_invert x Invert all the digits ... | en | "Wy0wLjAyNDkzNTg5MzcxNDQyNzk0OCwtMC4wMzc2OTU2Mzg4MzU0MzAxNDUsLTAuMDMyNDYxMjgxODY1ODM1MTksLTAuMDU0MTE1MjY5MzMzMTI0MTYsMC4wNDExMzIzNTMyNDYyMTIwMDYsLTAuMTA1MTA5NTg3MzExNzQ0NjksMC4wNDI1MzY3NTc4ODY0MDk3NiwwLjAxOTc2OTA3NjI1Nzk0NDEwNywtMC4wMjg0Nzc1NjA3Mjg3ODgzNzYsLTAuMDAzMDA5ODMxNTMyODM1OTYwNCwwLjAxMjI3ODAwNjQxMjA4ODg3MSwwLjA... |
612 | n now always has threads Deprecated since version 3 9 decimal HAVE_CONTEXTVAR The default value is True If Python is configured using the without decimal contextvar option the C version uses a thread local rather than a coroutine local context and the value is False This is slightly faster in some nested context scenar... | en | "Wy0wLjA0MjQzNDQyNDE2MTkxMTAxLC0wLjAxNzcyNTQ2OTU0NDUyOTkxNSwtMC4wNTE3MjE3NTE2ODk5MTA4OSwtMC4wMDk0Mjg4NDU3MTg1MDI5OTgsLTAuMDA5MTMzMzIwMzAxNzcxMTY0LC0wLjA3MTY3MDUxNzMyNTQwMTMsMC4wMDQ4MjI4NDg4MzAzNzIwOTUsMC4wMjczODc5NTQyOTQ2ODE1NSwwLjAyOTk3NjQ3MjI1ODU2NzgxLC0wLjAzNjI4ODg2ODYzNTg5Mjg3LC0wLjAxMDA1NzQyMzI2Mzc4ODIyMywtMC4wNzA... |
613 | t set the flag Otherwise the signal is trapped only equality comparisons and explicit conversions are silent All other mixed operations raise FloatOperation The following table summarizes the hierarchy of signals exceptions ArithmeticError exceptions Exception DecimalException Clamped DivisionByZero DecimalException ex... | en | "Wy0wLjAzMTUyNzEyODA3MDU5Mjg4LDAuMDU0Nzc0MTUwMjUyMzQyMjI0LC0wLjA3MzY2NzY1MjkwNDk4NzM0LC0wLjAyMjk4NjI0NDQxMDI3NjQxMywtMC4wNTQ4Nzc0OTM1MzA1MTE4NTYsLTAuMDc4Nzg5OTU2ODY3Njk0ODUsLTAuMDEzNjM5MDU3OTg2NDM4Mjc0LDAuMDU5NDgxMDkxNzk3MzUxODQsLTAuMDMyNDUxNTQ3NjgyMjg1MzEsLTAuMDA5NzUzNjAyNTU2ODg0Mjg5LC0wLjAwOTkyNTQ4Mjc5NDY0MjQ0OCwtMC4... |
614 | n is informational In addition to the two signed zeros which are distinct yet equal there are various representations of zero with differing precisions yet equivalent in value This takes a bit of getting used to For an eye accustomed to normalized floating point representations it is not immediately obvious that the fo... | en | "Wy0wLjA2NzA0Nzk2ODUwNjgxMzA1LC0wLjAyMzcxNDIxMDgzODA3OTQ1MywtMC4wOTI1ODk1OTQ0MjM3NzA5LDAuMDAxMzc1MTM3MTI5Nzk4NTMxNSwtMC4wNTkyMzI3OTM3NDgzNzg3NTQsMC4wMDc2Njk4NDE0MDUwMDQyNjMsMC4xMDkyMjkyOTY0NDU4NDY1NiwwLjA1Nzk3NzcxNzM2OTc5NDg0NiwwLjAzOTMyMTY2NDcyMDc3MzcsLTAuMDMxNTg4MDk5ODk2OTA3ODA2LDAuMDMxOTk1MjEwNzk2NTk0NjIsLTAuMTA5Njc... |
615 | t sin Decimal 0 5 0 4794255386042030002732879352 print sin 0 5 0 479425538604 print sin 0 5 0j 0 479425538604 0j getcontext prec 2 i lasts s fact num sign 1 0 x 1 x 1 while s lasts lasts s i 2 fact i i 1 num x x sign 1 s num fact sign getcontext prec 2 return s Decimal FAQ Q It is cumbersome to type decimal Decimal 123... | en | "WzAuMDAyODc4NzA0MzQxMTI4NDY4NSwwLjAzOTE0ODI2MzYzMzI1MTE5LC0wLjAzNTU0NzkwNDY3MDIzODQ5NSwtMC4wMzExNjQwMjc3NTA0OTIwOTYsLTAuMDczMzMzODIyMTkwNzYxNTcsMC4wNTE5Njg4NTM5MjA2OTgxNjYsMC4wNjYwMDIxMzA1MDg0MjI4NSwwLjEwODc5ODY5MDE0MDI0NzM0LC0wLjAyOTAwNzM3MTUxNTAzNTYzLDAuMDA2MzI4NjAzMjUyNzY4NTE2NSwwLjAyOTAyNTEwNzYyMjE0NjYwNiwtMC4xMjM... |
616 | ld suggest Decimal math pi Decimal 3 141592653589793115997963468544185161590576171875 Q Within a complex calculation how can I make sure that I haven t gotten a spurious result because of insufficient precision or rounding anomalies A The decimal module makes it easy to test results A best practice is to re run calcula... | en | "Wy0wLjAwNDUzMDk2ODYxMDE5NzMwNiwtMC4wMDcyODc0NzgwNzQ0MzE0MTksLTAuMDY2NjUwODY3NDYyMTU4MiwtMC4wNDg0MTg3Njc3NTAyNjMyMTQsLTAuMDUwOTUwNjEyODcyODM4OTc0LC0wLjAyMjcxODA3OTM4ODE0MTYzMiwwLjA0NDkxNTQ0ODg3NDIzNTE1LDAuMDg0Mzc2MTYzNzgwNjg5MjQsMC4wMTg4Mjc4MDkwMjA4NzY4ODQsLTAuMDE5NjQ3MTY0MjcwMjgxNzksMC4wMzMzMjQwNTE2NDgzNzgzNywtMC4xMDg... |
617 | Code Objects Code objects are a low level detail of the CPython implementation Each one represents a chunk of executable code that hasn t yet been bound into a function type PyCodeObject The C structure of the objects used to describe code objects The fields of this type are subject to change at any time PyTypeObject P... | en | "Wy0wLjA1Nzc0NjYxNTI2MDgzOTQ2LC0wLjA0MDU3NzM0ODMyMTY3NjI1NCwtMC4wNjA1ODQxNTM5ODAwMTY3MSwwLjA1NzMxOTY5MzI2NzM0NTQzLC0wLjA0ODAwODYzOTM2NTQzNDY1LC0wLjA1ODgyMjE1ODcyNDA2OTU5NSwtMC4wMTQ1MjYxMzM0MjU1MzM3NzIsMC4wNDUwNjA2NDk1MTQxOTgzLC0wLjAxMTA1MDI5Nzg3ODY4MjYxMywwLjAxNDc2OTY4NzMxNzMxMTc2NCwwLjAxNTYxMzUxMDI3MzM5Njk2OSwtMC4wMDY... |
618 | ython code getattr co co_varnames Returns a new reference to a PyTupleObject containing the names of the local variables On error NULL is returned and an exception is raised New in version 3 11 PyObject PyCode_GetCellvars PyCodeObject co Equivalent to the Python code getattr co co_cellvars Returns a new reference to a ... | en | "Wy0wLjEwMzE0NjM2Njc3NTAzNTg2LC0wLjAxMzc1Nzc4MjA1NjkyNzY4MSwtMC4wODc4OTA5OTc1MjkwMjk4NSwwLjAxOTU5NDkxODkzNjQ5MTAxMywtMC4wMTg2NDU4NzUxNTU5MjU3NSwwLjAwMzgwMDk2NDQ0ODYwMTAwNzUsLTAuMDA2MTA0NDA3MzY2MzY1MTk0LDAuMDExNjM0NjA5NjYxOTk2MzY1LC0wLjAyOTgzNjQzODU5NjI0ODYyNywtMC4wMjE1NjAwMTE0MzE1NzQ4MiwwLjA5NzY1OTQ3NjEwMTM5ODQ3LC0wLjA... |
619 | rning in minor releases Set extra to the extra data stored under the given index Return 0 on success Set an exception and return 1 on failure If no data was set under the index set extra to NULL and return 0 without setting an exception New in version 3 6 as _PyCode_GetExtra Changed in version 3 12 Renamed to PyUnstabl... | en | "Wy0wLjA3OTc0NDA0ODQxNjYxNDUzLC0wLjAzMDA1NzI4Njg0MzY1NzQ5NCwtMC4wNTE1MTA5MTg4ODU0Njk0NCwwLjA5MDEyMjkzMDcwNTU0NzMzLC0wLjAyNTE4NzE5ODA3MjY3MTg5LC0wLjAwNDI5NTY4MjA2ODkxNDE3NSwtMC4wNDg3MzM4NjM5Nzk1NzgwMiwwLjAyNzQ2NzQyMjE4NzMyODM0LC0wLjA2NTg2NTkxODk5Mzk0OTg5LC0wLjAzOTE2NjI0NTYwOTUyMTg2NiwwLjEwNDMxODA2NzQzMTQ0OTg5LDAuMDY4MTE... |
620 | Tuple Objects type PyTupleObject This subtype of PyObject represents a Python tuple object PyTypeObject PyTuple_Type Part of the Stable ABI This instance of PyTypeObject represents the Python tuple type it is the same object as tuple in the Python layer int PyTuple_Check PyObject p Return true if p is a tuple object or... | en | "Wy0wLjAzNDY3NTUxMjQ2Mjg1NDM4NSwtMC4wNDIyODMxNzczNzU3OTM0NiwwLjAwODQ0NDIyOTE0MDg3NzcyNCwwLjAzNzUyOTM5Nzc1NTg2MTI4LDAuMDE4MTY5MDY5NjYyNjkwMTYzLC0wLjA2MTA0MDc1OTA4NjYwODg5LDAuMDcyMjY3OTQyMTMwNTY1NjQsLTAuMDMzNTc1MDk1MjM2MzAxNDIsLTAuMDgyNjI3NDkwMTYyODQ5NDMsLTAuMDQyMzIzMTI3Mzg4OTU0MTYsLTAuMDU5NDg2NDE1MjM3MTg4MzQsLTAuMDIwMjk... |
621 | uctSequence_Desc desc The same as PyStructSequence_InitType but returns 0 on success and 1 on failure New in version 3 4 type PyStructSequence_Desc Part of the Stable ABI including all members Contains the meta information of a struct sequence type to create const char name Name of the struct sequence type const char d... | en | "Wy0wLjA3NzMwMTEzNzE0OTMzMzk1LC0wLjAzOTE5MzM2MTk5NzYwNDM3LC0wLjAzNzA5ODYxMjYzNjMyNzc0NCwtMC4wMTA1NzYzNTgwNjUwMDkxMTcsLTAuMDUwNDcyNDY0NDEyNDUwNzksLTAuMDY1MTIwNjA3NjE0NTE3MjEsMC4wMzY1MDk5NzU3OTA5Nzc0OCwwLjA0NDU3NTI1NTM2NDE3OTYxLC0wLjAwNjM4NDg5MzMyMDUwMDg1MSwtMC4wNzAyNTM5NzU2ODk0MTExNiwwLjAxMDA0NTA4MTM3NzAyOTQxOSwwLjAxMjQ... |
622 | fcntl The fcntl and ioctl system calls This module performs file and I O control on file descriptors It is an interface to the fcntl and ioctl Unix routines See the fcntl 2 and ioctl 2 Unix manual pages for full details Availability Unix not Emscripten not WASI All functions in this module take a file descriptor fd as ... | en | "Wy0wLjA5MTQyNzAyODE3OTE2ODcsLTAuMDA1NDc5NDY0NzczMDg4Njk0LC0wLjA0OTYwNzg4MDQxMzUzMjI2LDAuMDIwMTMzNjIxOTkwNjgwNjk1LDAuMTA3Mjg3MDcxNjQ1MjU5ODYsLTAuMTEyMDQxNzU2NTEwNzM0NTYsMC4wMzA4ODk1MjQxNDY5MTQ0ODIsMC4xMzU0NDM4NTEzNTE3Mzc5OCwwLjA5ODcxMTYyNDc0MTU1NDI2LC0wLjAyNTM0NjMyNzU3MzA2MDk5LDAuMDA4MjUwNjgyNjE0NzQzNzEsMC4wMTk0ODE4Nzg... |
623 | ct the action of the ioctl This is a slight simplification because if the supplied buffer is less than 1024 bytes long it is first copied into a static buffer 1024 bytes long which is then passed to ioctl and copied back into the supplied buffer If the ioctl call fails an OSError exception is raised An example import a... | en | "Wy0wLjA4Mzk2MTA5MTkzNTYzNDYxLC0wLjAxMzUzNzcyNDUwMjM4NDY2MywtMC4wNjg1NjcxNDE4OTA1MjU4MiwtMC4wMDExODcyNjM3NTUxMjc3ODc2LDAuMDE5MDYwMDI2ODU0Mjc2NjU3LC0wLjA3NjI0NjQyNTUwOTQ1MjgyLDAuMDU5MzA5MTMyMzk3MTc0ODM1LDAuMDMzNjk2MDE4MTU5Mzg5NDk2LDAuMDU1MjQ5Njk4NDYwMTAyMDgsMC4wMDY1MjQ4MTk4ODA3MjM5NTMsMC4wMDQxNTE2Mzg1OTcyNDk5ODUsMC4wNDg... |
624 | Development Tools The modules described in this chapter help you write software For example the pydoc module takes a module and generates documentation based on the module s contents The doctest and unittest modules contains frameworks for writing unit tests that automatically exercise code and verify that the expected... | en | "Wy0wLjA4Njk1NzE2NDEwODc1MzIsLTAuMDIzNTc4MDU1MjAyOTYwOTY4LC0wLjAyNzM1NDc3NDk5NjYzODI5OCwwLjAxNDA0MjgxMDUzNjkyMTAyNCwtMC4wMTUzNDA2MjUzMDg0NTQwMzcsLTAuMDg5NDQ4NDgxNzk4MTcyLDAuMDE1OTE3MDUxNTgzNTI4NTIsMC4xMDU1Mjk3MzMwMDIxODU4MiwtMC4wNjIzMTEwMTIyOTc4Njg3MywtMC4wMTQ0NDQyMzY2NDM2MTIzODUsLTAuMDEwNTk4MTcwNTcxMDI5MTg2LC0wLjAyMDQ... |
625 | ecode generation test support threading_helper Utilities for threading tests test support os_helper Utilities for os tests test support import_helper Utilities for import tests test support warnings_helper Utilities for warnings tests | en | "Wy0wLjEwNTc0NDM0Njk3NjI4MDIxLDAuMDA2OTE1NDAzNTMwMDAxNjQsLTAuMDAzNDI0OTM4MzAyNDg3MTM1LDAuMDE1NjIxODg1NjU3MzEwNDg2LDAuMTA1MzE0MjYyMjExMzIyNzgsLTAuMDQyNzkwMTE4NjA0ODk4NDUsLTAuMDI2NjgyODU1NTYxMzc1NjE4LC0wLjAyMTUxOTkwMTIzMDkzMTI4MiwtMC4wNzMwMTI1NDU3MDQ4NDE2MSwtMC4wMjkzMTAyOTE2MzMwMDk5MSwwLjAyMjk1NTQ4NjU1MDkyNzE2MiwtMC4xNDg... |
626 | aifc Read and write AIFF and AIFC files Source code Lib aifc py Deprecated since version 3 11 will be removed in version 3 13 The aifc module is deprecated see PEP 594 for details This module provides support for reading and writing AIFF and AIFF C files AIFF is Audio Interchange File Format a format for storing digita... | en | "WzAuMDE1NTgzMDMyNzQyMTQyNjc3LC0wLjA3NzkxNzAwMjE0MTQ3NTY4LC0wLjEzMzAyNDU1ODQyNDk0OTY1LC0wLjA3NjY5MTIxMDI2OTkyNzk4LDAuMDU5NTM4MDg1MDEzNjI4MDA2LDAuMDEyMzE1MjM4ODI1OTc2ODQ5LDAuMDEwODAxODQ2MTYxNDg0NzE4LDAuMDYzNjI2NjMyMDk0MzgzMjQsMC4wMjMxNjYzMzc5ODE4MjAxMDcsMC4wMDI5MDQ2MDc2ODE1NTc1MzYsMC4wMDAwMTg3OTU2MzIwNTg3NTQ1NjMsLTAuMDY... |
627 | s that an AIFF C file is created unless the name of the file ends in aiff in which case the default is an AIFF file aifc setnchannels nchannels Specify the number of channels in the audio file aifc setsampwidth width Specify the size in bytes of audio samples aifc setframerate rate Specify the sampling frequency in fra... | en | "Wy0wLjAzODI0NzU0MDU5MzE0NzI4LC0wLjA1Nzc2ODc5NTYzOTI3NjUwNSwtMC4xMjk0NzQyOTcxNjU4NzA2NywtMC4wMzkxMTAzMDI5MjUxMDk4NiwtMC4wMjgyNDAyMjYyMDkxNjM2NjYsMC4wNTg4NjA3NTY0NTY4NTE5NiwwLjA0NTYzMTgwMzU3MjE3Nzg5LDAuMDQyNDgyNzExMzc0NzU5Njc0LC0wLjA1NjI4NjczNzMyMjgwNzMxLC0wLjAxNzI2NTU0MzM0MTYzNjY1OCwtMC4wMTU3NTQzMDExMDA5NjkzMTUsLTAuMDk... |
628 | Argument Clinic How To Note The Argument Clinic How TO has been moved to the Python Developer s Guide | en | "Wy0wLjAyMTcwMjg1MjEwMDEzMzg5NiwwLjAxNzA0NDg5NDM5NzI1ODc2LC0wLjExMTI2MDUxODQzMTY2MzUxLDAuMDAzNDY2ODQ4Mjg0MDA2MTE4OCwwLjAwNzg0MTM4NDk2OTY1MTY5OSwtMC4wNjMxOTczMjk2NDAzODg0OSwtMC4wMDkwNjM4NDM2Mzc3MDQ4NSwwLjA0OTI4NjcwNDUxMDQ1MDM2LC0wLjAxODQzODgzNjU1OTY1MzI4MiwwLjAwMDg5NjE3MDY3NzE1MTUzMSwtMC4wMTM1NTA3NzQxOTQzMDAxNzUsMC4wMjg... |
629 | winreg Windows registry access These functions expose the Windows registry API to Python Instead of using an integer as the registry handle a handle object is used to ensure that the handles are closed correctly even if the programmer neglects to explicitly close them Changed in version 3 3 Several functions in this mo... | en | "Wy0wLjA5MzgwNTkzODk1OTEyMTcsLTAuMDE2NDMzMDM0MDkyMTg3ODgsLTAuMDU2OTE3ODI3NTc2Mzk4ODUsMC4wMzUyODQ5MTAzNTEwMzc5OCwtMC4wNjk2NjU5OTgyMjA0NDM3MywwLjAwODQxMzMxODU0NDYyNjIzNiwwLjA2NTI3OTY5MjQxMTQyMjczLDAuMDQyOTYwODQxMjA4Njk2MzY1LDAuMDI3MjcwNTE4MjQzMzEyODM2LDAuMDQzMzk4MTI2OTU5ODAwNzIsMC4wMDM1NjE1MjE2NDc0OTgwMTE2LC0wLjAwOTU4NDI... |
630 | ceeds the entire key including all of its values is removed If the method fails an OSError exception is raised On unsupported Windows versions NotImplementedError is raised Raises an auditing event winreg DeleteKey with arguments key sub_key access New in version 3 2 Changed in version 3 3 See above winreg DeleteValue ... | en | "Wy0wLjA1MTg4NjE1MjQ3NjA3MjMxLDAuMDA5NDQ5NzA0NTUwMjA2NjYxLC0wLjA0NDUyMTgxOTgwMDEzODQ3NCwwLjAyOTU3NDAzODQ2MDg1MDcxNiwtMC4wMDkxMjMyODI1MDcwNjE5NTgsMC4wMjU4NTIyODkwNTA4MTc0OSwwLjA4MjE0NTM0ODE5MTI2MTI5LC0wLjAxODMzNjg3NzIyNjgyOTUzLDAuMDQwOTUyNTM3MjA4Nzk1NTUsMC4wMTY5NTI1MTgzNzM3Mjc4LDAuMDQ4ODAyNzA3MzQ0MjkzNTk0LC0wLjA0OTI2OTY... |
631 | values The result is a new handle to the specified key If the function fails OSError is raised Raises an auditing event winreg OpenKey with arguments key sub_key access Raises an auditing event winreg OpenKey result with argument key Changed in version 3 2 Allow the use of named arguments Changed in version 3 3 See ab... | en | "Wy0wLjA2NTMwMTUzMDA2MzE1MjMxLDAuMDI4ODQ3NDAwMDk5MDM5MDc4LC0wLjA0MTkwNTMwMjU1NDM2ODk3LDAuMDU1NjAwNTY4NjUyMTUzMDE1LC0wLjA0NTYyODk0NjI3NDUxODk3LC0wLjAxNDQxMzc5MDc3NzMyNTYzLDAuMTA4OTU5NzEyMDg4MTA4MDYsMC4wMTUzNTM5MTYyMTI5MTYzNzQsMC4wNDk0ODg2MjI2OTUyMDc1OTYsMC4wMjQ0OTg3NDk1MjQzNTQ5MzUsLTAuMDExODE1MDAwMzI1NDQxMzYsLTAuMDU1NDc... |
632 | able types value is a string that specifies the new value This method can also set additional value and type information for the specified key The key identified by the key parameter must have been opened with KEY_SET_VALUE access To open the key use the CreateKey or OpenKey methods Value lengths are limited by availab... | en | "Wy0wLjAyMjExMDM0MTExNjc4NjAwMywwLjAxMDMzNTIyMzc0OTI3OTk3NiwtMC4wNzU1OTYyNzI5NDU0MDQwNSwwLjA0ODE1MTg3Njc3NzQxMDUxLC0wLjA2MDY1Njg2NzkyMTM1MjM4NiwwLjA0OTEwOTU1OTUwNjE3NzksMC4wNTQ2MDcyMzQ4OTUyMjkzNCwwLjA2NTY2MDI3NTUxODg5NDIsLTAuMDU5ODM4OTk5MDYyNzc2NTY2LC0wLjAxMTkzNjMxMTYxMDA0MzA0OSwwLjAwMDc4MzY3NjM5Nzk4NjcxMDEsMC4wMzA3Njc... |
633 | ed for system use 64 bit Specific For more information see Accessing an Alternate Registry View winreg KEY_WOW64_64KEY Indicates that an application on 64 bit Windows should operate on the 64 bit registry view On 32 bit Windows this constant is ignored winreg KEY_WOW64_32KEY Indicates that an application on 64 bit Wind... | en | "WzAuMDEyODM5NTM4OTc2NTUwMTAyLDAuMDAzNjA3MTg0ODU4OTkyNjk2LC0wLjA3NzM4MDY3MjA5NzIwNjEyLC0wLjAxMDYxMDAwMjA5MzAxNzEwMSwtMC4wNjkyMDgyODY3MDI2MzI5LC0wLjAwNDY4MzU0Mjk5NjY0NDk3NCwtMC4wMzAwODU0OTY2MDQ0NDI1OTYsMC4wMDYxMzEyMzc4Mzg0MTcyOTIsLTAuMDg2NDc2NzUwNjcxODYzNTYsMC4wMjkxNzMwMjU4NjEzODI0ODQsLTAuMDE2NTkxNjA0Nzk5MDMyMjEsLTAuMDM... |
634 | curses ascii Utilities for ASCII characters Source code Lib curses ascii py The curses ascii module supplies name constants for ASCII characters and functions to test membership in various ASCII character classes The constants supplied are names for control characters as follows Name Meaning curses ascii N UL curses as... | en | "Wy0wLjA0MDI0NjQxMjE1ODAxMjM5LC0wLjA2NTk0MzY2NTgwMjQ3ODc5LC0wLjA0OTg0NTI5Njg4OTU0MzUzLDAuMDM3ODE2OTAwNzU5OTM1MzgsLTAuMTI5NTkxODIyNjI0MjA2NTQsMC4wMDMxODQ3ODc5MjkwNTgwNzUsMC4wNDQ2MDcxOTIyNzc5MDgzMjUsMC4wMzk5NjcyOTQ3ODI0MDAxMywtMC4wMTc5MzI4MzAzNzg0MTMyLC0wLjA1MTcyNjAwNTk3MTQzMTczLDAuMDMwODI5OTY2MDY4MjY3ODIyLC0wLjA3NTk5NTY... |
635 | lue it returns a string curses ascii unctrl c Return a string representation of the ASCII character c If c is printable this string is the character itself If the character is a control character 0x00 0x1f the string consists of a caret followed by the corresponding uppercase letter If the character is an ASCII delete ... | en | "WzAuMDA2NTkwMDk2NzQ1NjQwMDM5NCwtMC4wMDYxOTcxMTQ5NDA3MzI3MTc1LC0wLjAyNTc3NzU3NDYyODU5MTUzNywwLjA1OTYxMjU2MTAxNzI3NDg2LC0wLjExOTk1MjkwMjE5NzgzNzgzLDAuMDA1NTU5OTAzMTAzODU4MjMyNSwwLjA1NjIzODc0ODEzMzE4MjUyNiwwLjA3NTA1NzIyMzQzOTIxNjYxLDAuMDA1NTI3NTAwMDYzMTgwOTIzNSwtMC4wMjQ5NjYxNDg2NTk1ODY5MDYsMC4wNzQ3NzE3OTE2OTY1NDg0NiwtMC4... |
636 | py_compile Compile Python source files Source code Lib py_compile py The py_compile module provides a function to generate a byte code file from a source file and another function used when the module source file is invoked as a script Though not often needed this function can be useful when installing modules for shar... | en | "Wy0wLjA3NDc4OTg3NDI1NTY1NzIsMC4wMDQ1NDE0NDEzMzI1NDg4NTcsLTAuMDgxMjc4MzUzOTI5NTE5NjUsMC4wMTgyMjMwNzg5MjE0MzcyNjMsLTAuMDA4OTI2MTU3ODM5NTk2MjcyLC0wLjA3ODI3NjQ1NTQwMjM3NDI3LDAuMDQyNzYxNTMwNzI3MTQ4MDU2LDAuMDg2OTI5NjExODYxNzA1NzgsLTAuMDQxMDg2ODMzOTI0MDU1MSwtMC4wMTk3MTI2NDkyODU3OTMzMDQsMC4wMjAxMTg0MDc5MDUxMDE3NzYsMC4wMjM0NTc... |
637 | tadata of the source file at runtime to determine if the pyc file needs to be regenerated CHECKED_HASH The pyc file includes a hash of the source file content which Python will compare against the source at runtime to determine if the pyc file needs to be regenerated UNCHECKED_HASH Like CHECKED_HASH the pyc file includ... | en | "Wy0wLjExMjQ2MzE1Mzg5ODcxNTk3LC0wLjAwMTAzMDA3NTQ4MDIzMDE1MjYsLTAuMTE0MDQzMjk1MzgzNDUzMzcsMC4wMDUyNjgyNjU0OTMyMTQxMywwLjA4MDk3MjA2MDU2MTE4MDExLC0wLjA0OTUxOTY5MTYxNjI5Njc3LDAuMDI1NzM4NjYzOTcxNDI0MTAzLDAuMDE3NDMxMzU2MDEyODIxMTk4LDAuMDI1NjY0MDgzNjU5NjQ4ODk1LDAuMDA5MDkzMTUyMzU5MTI3OTk4LDAuMDIyNjU2MTI3ODEwNDc4MjEsMC4xMDUzMjY... |
638 | wsgiref WSGI Utilities and Reference Implementation Source code Lib wsgiref The Web Server Gateway Interface WSGI is a standard interface between web server software and web applications written in Python Having a standard interface makes it easy to use an application that supports WSGI with a number of different web s... | en | "Wy0wLjA4MzI4MzY1NTM0NTQzOTkxLC0wLjAxNjIxMzYxODIxODg5ODc3MywtMC4wNjA4NDkzNDk5NDU3ODM2MTUsMC4wMDIyMjM3NDI4OTI5NjU2NzQ0LDAuMDI5NDYxMDAzODM5OTY5NjM1LC0wLjExNDMxMzM0MTY3NzE4ODg3LDAuMDE3MDE5MTczMTMwMzkzMDI4LDAuMDE3ODY1NTg3MDI1ODgwODE0LC0wLjA1ODk1ODc0NjQ5Mjg2MjcsLTAuMDU2OTI1NDk3OTQ5MTIzMzgsLTAuMDEzODY1OTY3MjgxMTYyNzM5LDAuMDA... |
639 | RT REQUEST_METHOD SCRIPT_NAME PATH_INFO and all of the PEP 3333 defined wsgi variables It only supplies default values and does not replace any existing settings for these variables This routine is intended to make it easier for unit tests of WSGI servers and applications to set up dummy environments It should NOT be u... | en | "Wy0wLjAzNzYzNTA5NTQxNzQ5OTU0LDAuMDA1Mjc3NjM0MTMyNjUzNDc1LC0wLjA4Mjc3OTA2NDc3NDUxMzI0LDAuMDA4MDM3MTk5MjY2MjU0OTAyLC0wLjAxOTk1NjExMDA0NTMxMzgzNSwtMC4xMDE5NjU2NTgzNjY2ODAxNSwwLjAwMDAxNzcyMzQxMDU2NDk0MDQyMywwLjAyMTUzNzkwNzQyMTU4ODg5OCwtMC4wNzI0MTE0ODUwMTYzNDU5OCwwLjAxNjk2OTYxMTg2ODI2MjI5LDAuMDQzNjQyMjYzODU5NTEwNDIsLTAuMDE... |
640 | Return a list of all the values for the named header The returned list will be sorted in the order they appeared in the original header list or were added to this instance and may contain duplicates Any fields deleted and re inserted are always appended to the header list If no fields exist with the given name returns ... | en | "Wy0wLjA4ODI3NjQyMzUxMzg4OTMxLDAuMDkzNTgwNjcwNjU0NzczNzEsLTAuMDQwNjQ2MTU4MTU4Nzc5MTQ0LDAuMDQ0MzQzNDA4MTk3MTY0NTM2LC0wLjAxNjI1ODA0MjMwNTcwNzkzLC0wLjA1NTM2NDgyODU1Njc3NjA1LDAuMDc2MjA2NjAyMTU2MTYyMjYsMC4wMjM5NzAxNTEzMjAwOTk4MywtMC4wMTg1MjgwNTcyNjIzMDE0NDUsLTAuMDAxMDU4NTI1MTcyOTkzNTQwOCwwLjA1NDA3MjMwMTgzNDgyMTcsMC4wMDY4ODY... |
641 | ementation copies the contents of the WSGIServer object s base_environ dictionary attribute and then adds various headers derived from the HTTP request Each call to this method should return a new dictionary containing all of the relevant CGI environment variables as specified in PEP 3333 get_stderr Return the object t... | en | "Wy0wLjA4MTU5NTQ4Nzg5MjYyNzcyLDAuMDAxNzk5Mjc5OTQwMzE0NTkxLC0wLjA3Njk3MzYwOTYyNjI5MzE4LC0wLjA0MTY4ODg0ODI4Njg2NzE0LDAuMDE2MDU2MTkxMTc2MTc2MDcsLTAuMTMxMjQ4NDU5MjE5OTMyNTYsMC4wMTEzMDk0NzA5ODEzNTk0ODIsMC4wMjk1MDk3NDM2NzU1ODk1NiwtMC4wMTIzNDQ1OTMxODIyMDYxNTQsLTAuMDM0NDQ1NDgzMjM3NTA0OTYsLTAuMDAxNDE3NTA4MTE1OTkxOTUsLTAuMDQ5MjQ... |
642 | ault IIS gives a PATH_INFO that duplicates the SCRIPT_NAME at the front causing problems for WSGI applications that wish to implement routing This handler strips any such duplicated path IIS can be configured to pass the correct PATH_INFO but this causes another bug where PATH_TRANSLATED is wrong Luckily this variable ... | en | "Wy0wLjA4MDMyMzIzNDIwMDQ3NzYsLTAuMDU1ODQ1ODAwNzg3MjEwNDY0LC0wLjA2MDg4OTc3Njc5NjEwMjUyNCwwLjA1MjIxOTU0MzYwNjA0Mjg2LDAuMDAwMzE4NDUxNTIyNjE2NjY5NTQsLTAuMTAwMDEzNjk1NjU3MjUzMjcsMC4wNTQ2NDAxMTgwMzI2OTM4NiwwLjAyMTY0OTE3NDM5MjIyMzM1OCwtMC4wMDkwNTcxNzkwOTMzNjA5MDEsMC4wMTk4MTYyMTIzNTYwOTA1NDYsLTAuMDI4Nzg1MTcwOTg3MjQ4NDIsLTAuMDM... |
643 | ctor in the other subclasses wsgi_multiprocess The value to be used for the wsgi multiprocess environment variable It defaults to true in BaseHandler but may have a different default or be set by the constructor in the other subclasses wsgi_run_once The value to be used for the wsgi run_once environment variable It def... | en | "Wy0wLjA4NTA5Nzk0NjIyNjU5NjgzLC0wLjA3NzExODM1MjA1NTU0OTYyLC0wLjA1MDEwMjA1MTM0NzQ5NDEyNSwtMC4wMTg2OTY2OTkyOTE0Njc2NjcsMC4wMTM3MTQ2OTI1NTUzNjc5NDcsLTAuMTA1NDMzMTIxMzIzNTg1NTEsLTAuMDA2NTMyNzk3NTg5ODk4MTA5NCwwLjAyMzA4MDgzODg0NDE4MDEwNywtMC4wMDIzMTk2NTk1NzIwOTQ2NzksLTAuMDQzODU0MDI3OTg2NTI2NDksLTAuMDA3NjAzNjQwMjAyNDMyODcxLDA... |
644 | eturn value is an instance of the class specified by the wsgi_file_wrapper attribute It should return a true value if it was able to successfully transmit the file so that the default transmission code will not be executed The default implementation of this method just returns a false value Miscellaneous methods and at... | en | "Wy0wLjA3MDg4MDgzMDI4NzkzMzM1LDAuMDA4NDU2ODM4MzE3MjE1NDQzLC0wLjA1ODk0NDk1NTQ2ODE3Nzc5NSwwLjAyMzgzNTk1ODkxMjk2ODYzNiwtMC4wMTg2NDQ5MzI2NTc0ODAyNCwtMC4wNTg4MDc4NjQ3ODUxOTQ0LDAuMDM4NjMwNzMxNDAzODI3NjcsMC4wMzc0MDMxMjUzMTU5MDQ2MiwwLjAwOTQzNjMyNDIzODc3NzE2LDAuMDA3NTc2NTA0NzIyMjM3NTg3LDAuMDE5NTc0MDcwMzQ5MzM1NjcsLTAuMDMzOTIzNzQ... |
645 | and start the server until control c httpd simple_server make_server port app print f Serving path on port port control C to stop try httpd serve_forever except KeyboardInterrupt print Shutting down httpd server_close | en | "WzAuMDA2MzI4OTU0MzYxMzc5MTQ3LDAuMDE0MDE0OTAwNjYyMDA0OTQ4LC0wLjA1MzkxOTExNDE3MjQ1ODY1LC0wLjA3MDE0MzEyNTk1MTI5MDEzLC0wLjA2Mzg2MzQ1NjI0OTIzNzA2LC0wLjAyOTM5MDU0OTI4NzE5OTk3NCwtMC4xMDY1NDU3NzYxMjg3Njg5MiwwLjAwNzMwNTA5NTQzNzkxNDEzMywtMC4wNDY0NTk0OTIyOTU5ODA0NTMsMC4wNjUxNTU5MDg0NjUzODU0NCwwLjA2MzE0MTM4MzIzMDY4NjE5LC0wLjAwMTE... |
646 | nntplib NNTP protocol client Source code Lib nntplib py Deprecated since version 3 11 The nntplib module is deprecated see PEP 594 for details This module defines the class NNTP which implements the client side of the Network News Transfer Protocol It can be used to implement a news reader or poster or automated news p... | en | "Wy0wLjA0ODE4NDI5MDUyODI5NzQyNCwwLjAxNDgyMzY1OTMyMzE1NTg4LC0wLjA4MTc3NDM2MTQzMTU5ODY2LC0wLjAwOTM0ODk0OTQxNzQ3MTg4NiwwLjAxNjE5MDUxMDI0MzE3NzQxNCwwLjAyOTU4ODMwODE4NTMzODk3NCwtMC4wNjUyOTEzMTUzMTcxNTM5MywwLjAxODY5MTkxNDE1NjA3OTI5MiwtMC4wMzM3ODAxMzUyMTQzMjg3NjYsMC4wMDU0Mjg0NzY3MjQ3NzM2NDUsLTAuMDE0OTM1Nzc3NTIyNjIzNTM5LDAuMDE... |
647 | h arguments self and line where line is the bytes about to be sent to the remote host New in version 3 2 Changed in version 3 4 The class now supports hostname check with ssl SSLContext check_hostname and Server Name Indication see ssl HAS_SNI Changed in version 3 9 If the timeout parameter is set to be zero it will ra... | en | "Wy0wLjAzNTQyMzA0NDExNTMwNDk1LDAuMDY1NTI5NDk1NDc3Njc2MzksLTAuMDY5NTMyMjE1NTk1MjQ1MzYsMC4wMTE1MzY1MDc4NjcyNzY2NjksLTAuMDEzNDgwODkwNTQyMjY4NzUzLDAuMDA3NTYzNjYzMTgwOTE3NTAxNCwtMC4wMzM3Mzk1NDA3MjU5NDY0MjYsLTAuMDI1NjM0NTg2ODExMDY1Njc0LDAuMDMwOTgzMDI3MDcwNzYwNzI3LC0wLjA2MjcxMjY3NjgyMzEzOTE5LC0wLjAwNTAzNjUxODkwOTAzNzExMywtMC4... |
648 | ppressing this behavior New in version 3 2 Changed in version 3 4 The method now supports hostname check with ssl SSLContext check_hostname and Server Name Indication see ssl HAS_SNI NNTP newgroups date file None Send a NEWGROUPS command The date argument should be a datetime date or datetime datetime object Return a p... | en | "Wy0wLjA2MjMwNDMyNTQwMTc4Mjk5LDAuMDA4MTI1MDA0MzU4NTg5NjUsLTAuMDgyMTE1Nzk5MTg4NjEzODksMC4xMTA3NTU2NTk2Mzk4MzUzNiwtMC4wMDQxNTg3OTAyMjMzMDA0NTcsLTAuMDU3NzI3NDMwMDE1ODAyMzgsLTAuMDM0ODM2NzA5NDk5MzU5MTMsLTAuMTExODUzNjg4OTU1MzA3LDAuMDQwMzEzODEzODM1MzgyNDYsMC4wMTgwNDM3Mjg1NDUzMDgxMTMsMC4wNjc5Mjc0MzUwNDA0NzM5NCwtMC4wMzAyNDg2NDE... |
649 | e number of lines in the article body The value of each item is either a string or None if not present It is advisable to use the decode_header function on header values when they may contain non ASCII characters _ _ first last _ s group gmane comp python devel resp overviews s over last last art_num over overviews 0 a... | en | "Wy0wLjA3MTUxNTM0NDA4MzMwOTE3LDAuMDk0ODAwMTk2NTg4MDM5NCwtMC4wMzkyNzQ4MTE3NDQ2ODk5NCwwLjA1Njc3NjU3MjAxODg2MTc3LDAuMDQxNDYxNDU2NTY3MDQ5MDI2LDAuMDQxODYxOTg0ODc4Nzc4NDYsMC4wMjMzNjQ3MjA4NjYwODQxLDAuMDMxOTA2OTIxNDE2NTIxMDcsMC4wNjEyMDU5MDg2NTYxMjAzLDAuMDIyNjY5OTYxNjc2MDAxNTUsMC4wMjA0NjI4NTE5NzEzODc4NjMsLTAuMDAwMDQwNjQxNTAxOTg... |
650 | text of the requested header for that article If the file parameter is supplied then the output of the XHDR command is stored in a file If file is a string then the method will open a file with that name write to it then close it If file is a file object then it will start calling write on it to store the lines of the ... | en | "Wy0wLjAwNjU4NTYzNjE3NjE2ODkxOSwwLjEzODczOTI4Nzg1MzI0MDk3LC0wLjA4ODg2NTExNjIzODU5NDA2LDAuMDM1NzgxMzE2NDU5MTc4OTI1LDAuMDI2OTgxODE1Njk1NzYyNjM0LDAuMDIyMTI1MTA4MTY3NTI5MTA2LC0wLjAyNTAxNjg4MTUyNTUxNjUxLDAuMDkwODAzNTU2MTQ0MjM3NTIsLTAuMDA5ODM3Mzg1MjY3MDE5MjcyLC0wLjAwMzQ2Mjc0MzI0NjkyNzg1NzQsMC4wMDMzMjk2ODcwNTMzMzc2OTMsLTAuMDA... |
651 | Floating Point Objects type PyFloatObject This subtype of PyObject represents a Python floating point object PyTypeObject PyFloat_Type Part of the Stable ABI This instance of PyTypeObject represents the Python floating point type This is the same object as float in the Python layer int PyFloat_Check PyObject p Return t... | en | "Wy0wLjAxNjcxNTQ4NzQ2NTI2MjQxMywtMC4wMzU5Nzc1MTI1OTgwMzc3MiwtMC4wMDc5MjA3MDE5ODgwNDE0MDEsMC4wNDQyNjA0NTM0MzI3OTgzODYsLTAuMDM0NTI2NDAwMjY4MDc3ODUsLTAuMDY3NjQ0OTE2NDc0ODE5MTgsMC4wNDk1MzUzMjI5MzQzODkxMTQsMC4wMDA0MDk0NzYxOTcwOTE4NjI1NiwtMC4wNTY1ODI5Mjc3MDM4NTc0MiwtMC4wNjA4MTM5NTU5NjI2NTc5MywtMC4wMzczODM0ODE4NjAxNjA4MywtMC4... |
652 | s read 2 4 or 8 bytes starting at p le is an int argument non zero if the bytes string is in little endian format exponent last at p 1 p 3 or p 6 and p 7 zero if big endian exponent first at p The PY_BIG_ENDIAN constant can be used to use the native endian it is equal to 1 on big endian processor or 0 on little endian ... | en | "Wy0wLjAxNTQ0Njc1Njk2NjQxMjA2NywwLjAyMTQwMjIxOTMxMDQwMjg3LC0wLjAyMjExNzMwNzQwOTY0NDEyNywtMC4wNjYwMTQ2ODQ3MzY3Mjg2NywtMC4wMjc2NzEwMzUzNzkxNzEzNywtMC4wODU5MzU5ODc1MzIxMzg4MiwtMC4wNDg1MDM0NDczMjQwMzc1NSwwLjA3NTA2MDgyMjA2OTY0NDkzLC0wLjA2MTgxMDM5NjYxMTY5MDUyLDAuMDExODgyMjg5MzEyNzc5OTAzLDAuMDUxNjk4OTE1NjYwMzgxMzIsLTAuMDQyNDM... |
653 | email encoders Encoders Source code Lib email encoders py This module is part of the legacy Compat32 email API In the new API the functionality is provided by the cte parameter of the set_content method This module is deprecated in Python 3 The functions provided here should not be called explicitly since the MIMEText ... | en | "Wy0wLjAzNzMyOTYzNjUxNDE4Njg2LC0wLjA0MTg3NzE3Mjg4NzMyNTI5LDAuMDM2NjY0MTIwODUyOTQ3MjM1LC0wLjAwNzUwMzUyNTgxOTYyOTQzMSwwLjA0ODcyNzU5NDMxNjAwNTcxLC0wLjA5OTAzMjc3NDU2NzYwNDA2LDAuMDA3MTM5MDQzNDE2ODI3OTE3LDAuMDEyNzQ1ODUzNTEzNDc5MjMzLC0wLjAwMTMyMDYyMjE2Mjg5MzQxNDUsLTAuMDU3MDk2MTcyMTI0MTQ3NDE1LC0wLjAxMzYzMzA0MzUwNTI1MTQwOCwwLjA... |
654 | sunau Read and write Sun AU files Source code Lib sunau py Deprecated since version 3 11 will be removed in version 3 13 The sunau module is deprecated see PEP 594 for details The sunau module provides a convenient interface to the Sun AU sound format Note that this module is interface compatible with the modules aifc ... | en | "WzAuMDExOTcxMTAyMDk2MTQwMzg1LDAuMDE0OTI3NjExNjg2Mjg5MzEsLTAuMTE4MTMzOTE3NDUwOTA0ODUsLTAuMDMyMDYxMTA3NDU2Njg0MTEsMC4wMjgwMzc1NTkyNDEwNTY0NDIsLTAuMDM0NDMwNjA4MTUzMzQzMiwtMC4wMTIzNDM1NjUwMDIwODM3NzgsMC4wMTkyMjIyMjQxMzEyMjY1NCwtMC4wMTY0NjY0MDcxMDUzMjY2NTMsLTAuMDM1NjI5MzIwODg5NzExMzgsLTAuMDEyODM1ODc0MjIyMjE4OTksMC4wMDY1MzM... |
655 | 4 bit samples AU_write setframerate n Set the frame rate AU_write setnframes n Set the number of frames This can be later changed when and if more frames are written AU_write setcomptype type name Set the compression type and description Only NONE and ULAW are supported on output AU_write setparams tuple The tuple shou... | en | "Wy0wLjAyMTM1OTM2NzI5NjA5OTY2MywtMC4wNTcxMTU0OTE0Nzk2MzUyNCwtMC4xNDczNDQyOTEyMTAxNzQ1NiwtMC4wMzE0OTM5ODQxNjI4MDc0NjUsLTAuMDI4MzE0MzA5MTk0Njg0MDMsMC4wMDczNzQ3OTc0ODIwNDM1MDUsMC4wMjM3MTc0ODUzNjgyNTE4LC0wLjAyNjc5NDc4Mzc3MTAzODA1NSwtMC4wNDI1NTI4NzM0OTIyNDA5MDYsLTAuMDAxOTI5MTcyMTk4Mjg4MTQyNywwLjAwODQxMTkyNTI4NjA1NDYxMSwtMC4... |
656 | quopri Encode and decode MIME quoted printable data Source code Lib quopri py This module performs quoted printable transport encoding and decoding as defined in RFC 1521 MIME Multipurpose Internet Mail Extensions Part One Mechanisms for Specifying and Describing the Format of Internet Message Bodies The quoted printab... | en | "Wy0wLjA4NzI2MTA1ODM5MDE0MDUzLDAuMDQyMDg5Mzk1MjI1MDQ4MDY1LC0wLjA2MDg2NTk1NzI4OTkzNDE2LC0wLjAzMDgxMzY4ODQxMjMwODY5MywtMC4wMDU3NTQ2OTgwNjc5MDM1MTksLTAuMDMzNDQzMDE1MDY4NzY5NDU1LDAuMDExMTI0NDUyNTc2MDQxMjIyLDAuMDM4NTMyNTcwMDA0NDYzMTk2LDAuMDE0NTk2NDI1OTI4MTc1NDUsLTAuMDQzODE2NjY3MDUwMTIzMjE1LDAuMDAyNjM0MjAyMTMwMTM4ODc0LC0wLjA... |
657 | atexit Exit handlers The atexit module defines functions to register and unregister cleanup functions Functions thus registered are automatically executed upon normal interpreter termination atexit runs these functions in the reverse order in which they were registered if you register A B and C at interpreter terminati... | en | "Wy0wLjA0NjE0ODg1NTIzOTE1MjkxLC0wLjAzNjE0MzI5MTc0MTYwOTU3LDAuMDA5Njg0NzM5NjM0Mzk0NjQ2LDAuMDUxOTY2OTA5MzE5MTYyMzcsLTAuMDAxNzcyNDIzMzkxMjMwNDA0NCwtMC4wNjk1NDg1MTc0NjU1OTE0MywwLjAyMDk4MTY0NzA3NDIyMjU2NSwwLjA1NDU3NTQxNzE5MDc5MDE3NiwwLjAxOTcwNjIwNDUzMzU3Njk2NSwtMC4wMzkwNzE1NDg3MzAxMzQ5NjQsMC4wMTMyNjA4MjQ2MDU4MjI1NjMsMC4wMDc... |
658 | Socket Programming HOWTO Author Gordon McMillan Abstract Sockets are used nearly everywhere but are one of the most severely misunderstood technologies around This is a 10 000 foot overview of sockets It s not really a tutorial you ll still have work to do in getting things operational It doesn t cover the fine points ... | en | "Wy0wLjA2NTA1MTY5NzE5NDU3NjI2LC0wLjAzMDE3MDQxNjQ1OTQ0MTE4NSwtMC4wMDU5OTYyNzYxNTg4Mzk0NjQsLTAuMDM1MjA2NTQxNDE5MDI5MjM2LC0wLjA5MDAzOTk5ODI5MjkyMjk3LC0wLjAyODUwODU3Mzc3MDUyMzA3LDAuMDc5NzUxNDA5NTkwMjQ0MywtMC4wMjAwNzc1MDQyMTc2MjQ2NjQsMC4wMzQxNzMxMjcyNjM3ODQ0MSwwLjAxODQ0NzYxODkzMTUzMTkwNiwtMC4wMzc5Mjk2MDk0MTc5MTUzNDQsMC4wNDI... |
659 | this app to use non blocking sockets and multiplex between our server socket and any active clientsocket s using select More about that later The important thing to understand now is this this is all a server socket does It doesn t send any data It doesn t receive any data It just produces client sockets Each clientsoc... | en | "Wy0wLjA3Mzc2Nzg5MzAxNjMzODM1LC0wLjA1MjEwNTU5NDQyNjM5MzUxLC0wLjA1ODc5MDU5MDYxNDA4MDQzLC0wLjAxMzc2NTUwMzY1MjM5MzgxOCwtMC4wOTA3NTE2MTgxNDY4OTYzNiwtMC4wNzUwNDc4ODA0MTExNDgwNywwLjAyNjM5NDA1NDI5MzYzMjUwNywtMC4wMzE2MTIxMDU2Njc1OTEwOTUsMC4wNDYyNTg2NzY3OTcxNTE1NjYsMC4wMDQ2NzE4MzkwNjU4NDk3ODEsLTAuMDU4NTM5MDU5MDEzMTI4MjgsMC4wMjA... |
660 | t totalsent sent def myreceive self chunks bytes_recd 0 while bytes_recd MSGLEN chunk self sock recv min MSGLEN bytes_recd 2048 if chunk b raise RuntimeError socket connection broken chunks append chunk bytes_recd bytes_recd len chunk return b join chunks The sending code here is usable for almost any messaging scheme ... | en | "WzAuMDAwOTczNzE5MjMwMzg3MzU5OSwwLjAzMDQ2MTk2Njk5MTQyNDU2LDAuMDA5MTU3NDQ3MTQ0Mzg5MTUzLC0wLjAyNTY5NzIyNzU2NzQzNDMxLC0wLjA4NjY5NDY3MjcwMzc0Mjk4LC0wLjA3MjM5NzQ1NTU3MzA4MTk3LDAuMDE2NTM0Mjg3NDgyNTAwMDc2LDAuMDU1MTg2NjgxNDQ5NDEzMywwLjAwNDcxOTM3NzAyOTY4NzE2NiwtMC4wMjkyMzUwNjQ5ODMzNjc5MiwtMC4wMTMyNzI0OTg3MzQyOTUzNjgsLTAuMDExNTU... |
661 | further and says that when a socket is garbage collected it will automatically do a close if it s needed But relying on this is a very bad habit If your socket just disappears without doing a close the socket at the other end may hang indefinitely thinking you re just being slow Please close your sockets when you re d... | en | "Wy0wLjA0NzMyNDU5MDM4NDk2MDE3NSwtMC4wMTc2MjMyOTc4NzAxNTkxNSwtMC4wMDM0MDg4NTYyMjQyNjg2NzUsMC4wMDYzNDA2Mjg5NTU1MTMyMzksLTAuMDM2MTU2NjY1NTMzNzgxMDUsLTAuMDEwMTY4ODIyNDgyMjI4Mjc5LDAuMDMwNTg4ODE2ODUxMzc3NDg3LC0wLjAxMzMzODU0OTk5MzkzMjI0NywwLjA5ODMyODkzMzExOTc3Mzg2LDAuMDQ5OTk5MzE1MjkxNjQzMTQsLTAuMDA1NDA3MTM1OTMzNjM3NjE5LDAuMDU... |
662 | hether the other end is done or just busy with something else Portability alert On Unix select works both with the sockets and files Don t try this on Windows On Windows select works with sockets only Also note that in C many of the more advanced socket options are done differently on Windows In fact on Windows I usual... | en | "Wy0wLjAwMzg2MDQyODQ2MzY2NzYzMSwtMC4wMzA5ODk0NDU3NDU5NDQ5NzcsLTAuMDY2ODAzMDMwNjY5Njg5MTgsMC4wNjQyMTMzNTc4NjU4MTA0LDAuMDIzNDk5OTA5Nzg4MzcwMTMyLC0wLjA1OTU0NzMwMTM4MTgyNjQsMC4wMzM5OTU5ODk3MTAwOTI1NDUsLTAuMDAwMjk1NzAxNTgyMjE3NTg5LDAuMDg3MTQ3NzU3NDExMDAzMTEsMC4wNDE0OTE2OTEwMjMxMTEzNCwwLjAyNjkyMzM4NjM4MDA3NjQxLDAuMDIzNTI2NzY... |
663 | pty Pseudo terminal utilities Source code Lib pty py The pty module defines operations for handling the pseudo terminal concept starting another process and being able to write to and read from its controlling terminal programmatically Availability Unix Pseudo terminal handling is highly platform dependent This code is... | en | "Wy0wLjA2OTI5NjA0NzA5MTQ4NDA3LC0wLjA0NjczNDIzOTkwNjA3MjYyLC0wLjA3ODE4NDA1MzMwMTgxMTIyLC0wLjA0MjkxNjAyMjI0MTExNTU3LC0wLjAwOTU5MDQ3MDIzMjA2OTQ5MiwtMC4wNTc1NzQ2NTk1ODU5NTI3NiwwLjAwMjQwMjA1NzE3MjczMDU2NSwwLjE0MjI2OTUwNzA1MDUxNDIyLDAuMDEzMDA2OTE2MjY5NjU5OTk2LDAuMDQ3MjEwODAxMzkyNzkzNjU1LDAuMDI0MTk5NjQ1OTY2MjkxNDI4LDAuMDYzNDY... |
664 | types Dynamic type creation and names for built in types Source code Lib types py This module defines utility functions to assist in dynamic creation of new types It also defines names for some object types that are used by the standard Python interpreter but not exposed as builtins like int or str are Finally it provi... | en | "Wy0wLjA5MDc2MDY0MDc5OTk5OTI0LC0wLjAwNjE2NzMzNzc2NDA1NDUzNywtMC4wMjk4MTgxNTQ4NzE0NjM3NzYsMC4wNjI0MDQ2Njk4MjEyNjIzNiwtMC4wNzcwODAxOTAxODE3MzIxOCwtMC4wOTU0MjU4MzY3NDE5MjQyOSwwLjA0NTc1NjIyNDU0Mjg1NjIxNiwwLjAyNjk4NDEzMjgyNjMyODI3OCwtMC4wMjMyODk3NzU0NzU4NTk2NDIsLTAuMDM4OTYwMjc0MzA4OTE5OTEsLTAuMDI4NTYyNzI4MzE1NTkxODEyLC0wLjA... |
665 | ns created by lambda expressions Raises an auditing event function __new__ with argument code The audit event only occurs for direct instantiation of function objects and is not raised for normal compilation types GeneratorType The type of generator iterator objects created by generator functions types CoroutineType Th... | en | "Wy0wLjA4Nzk3MTc0NjkyMTUzOTMsLTAuMDEzMzIwNDI1NTI1MzA3NjU1LC0wLjA4NTQ4ODc5NjIzNDEzMDg2LDAuMDM2MzM5MDE0NzY4NjAwNDY0LC0wLjAxNTA2ODgzOTMwNDE0OTE1LC0wLjA0OTQ5Njc1NTAwMzkyOTE0LDAuMDgyMDQ0MTMyMDUzODUyMDgsLTAuMDM3Nzk5MDExOTE1OTIyMTY1LDAuMDQyNTk4NTAwODQ3ODE2NDcsMC4wNDQ0OTM4MTMwNjc2NzQ2NCwwLjAyNjc2MTIwOTU5MjIyMzE2NywtMC4wNjE5MzU... |
666 | str int GenericAlias dict str int True New in version 3 9 Changed in version 3 9 2 This type can now be subclassed See also Generic Alias Types In depth documentation on instances of types GenericAlias PEP 585 Type Hinting Generics In Standard Collections Introducing the types GenericAlias class class types UnionType T... | en | "Wy0wLjAxODkxODU4ODc1NzUxNDk1NCwtMC4wMzA2ODU5NDI2MjAwMzg5ODYsLTAuMDM2ODkyMzU4MjEzNjYzMSwtMC4wMTY1NTkyMTcxMjUxNzczODMsMC4wMDcwNTk3NTM0MDY3OTI4NzksLTAuMDA5NDEzNzg4MDk1MTE2NjE1LDAuMDYxNTY4MDUxNTc2NjE0MzgsMC4wODgzMDY0NTY4MDQyNzU1MSwtMC4wNDYzNTU0NDg2NjMyMzQ3MSwtMC4wNDc3NDMyMjM2MDc1NDAxMywtMC4wMzI1NTkyNjgxNzY1NTU2MzQsMC4wMzE... |
667 | ptor used to define attributes that act differently when accessed through an instance and through a class Instance access remains normal but access to an attribute through a class will be routed to the class s __getattr__ method this is done by raising AttributeError This allows one to have properties active on an inst... | en | "Wy0wLjEzMzE4ODUwMTAwMDQwNDM2LDAuMDQxODUwMTI3Mjc5NzU4NDUsLTAuMDk4OTczMTQ3NTcxMDg2ODgsMC4wMTY2MTAwMDQwMDc4MTYzMTUsLTAuMDE0MTQzMTU1ODg3NzIyOTY5LC0wLjAzODE5NTg1MjE5MDI1NjEyLC0wLjAxMzI5MjM4MzQwMjU4NTk4MywtMC4wMzM3ODA2MTU3NzY3NzcyNywtMC4wMzI2MDk4NzI1MTk5Njk5NCwtMC4wMzE3NzkyNzA2MTkxNTM5NzYsMC4wNTYzMzk1Mzk1ODc0OTc3MSwtMC4wMTE... |
668 | High level API Index This page lists all high level async await enabled asyncio APIs Tasks Utilities to run asyncio programs create Tasks and await on multiple things with timeouts run Create event loop run a coroutine close the loop Runner A context manager that simplifies multiple async function calls Task Task objec... | en | "Wy0wLjA2NDI1NzExNTEyNTY1NjEzLDAuMDA1MDQxODc2MzQyMTQ3NTg5LC0wLjEwNTQyMDEyNzUxMTAyNDQ4LDAuMTE5ODYxNzI5NDQzMDczMjcsMC4wMjEzNjYwMTUwNzY2MzcyNjgsLTAuMDg2NzY3ODAwMTUyMzAxNzksLTAuMDYzMDA1NzY3NzYyNjYwOTgsLTAuMDUxODg0MjMzOTUxNTY4NjA0LC0wLjAxODgxOTQzMDg0Mjk5NTY0NCwtMC4wNTM5NTg0NjA2ODg1OTEsLTAuMDExNzg0OTI3OTE5NTA3MDI3LC0wLjA3MDQ... |
669 | zipfile Work with ZIP archives Source code Lib zipfile The ZIP file format is a common archive and compression standard This module provides tools to create read write append and list a ZIP file Any advanced use of this module will require an understanding of the format as defined in PKZIP Application Note This module ... | en | "Wy0wLjA5MDY1NTkyMjg4OTcwOTQ3LDAuMDU5MzI3NzA2Njk0NjAyOTY2LC0wLjA2OTczNTgxNzYxMTIxNzUsMC4wNzcyMzc1Mzg5OTMzNTg2MSwwLjAxMzU1OTAyMjkxODM0MzU0NCwtMC4xMDQ2MTIyNzU5NTgwNjEyMiwtMC4wMzI5NDE4ODUyOTI1MzAwNiwwLjA0Nzk0MzIzODE2ODk1NDg1LC0wLjA1NzQ3NDU3MjIxMTUwMzk4LDAuMDQxMjM3NTQwNTQzMDc5Mzc2LC0wLjAyMzg3MzM0OTY1MTY5NDI5OCwwLjA1MzEyNjk... |
670 | hive and should be ZIP_STORED ZIP_DEFLATED ZIP_BZIP2 or ZIP_LZMA unrecognized values will cause NotImplementedError to be raised If ZIP_DEFLATED ZIP_BZIP2 or ZIP_LZMA is specified but the corresponding module zlib bz2 or lzma is not available RuntimeError is raised The default is ZIP_STORED If allowZip64 is True the de... | en | "Wy0wLjA1MjY2NDI3OTkzNzc0NDE0LDAuMDQ1NTgwNzA3NDkwNDQ0MTgsLTAuMDU2MTAyNDkxOTE1MjI1OTgsMC4wMTI5MTk2ODc2NjU5OTg5MzYsMC4wMjg1MDEzNDg1Njk5ODkyMDQsLTAuMDExNzUzMzI2MjgxOTA1MTc0LC0wLjAyMzkxOTA1NTIzODM2NjEyNywwLjA0MjM2MDczNzkxOTgwNzQzNCwtMC4xMjg0ODIzMjY4NjUxOTYyMywwLjA0NjIzMTU1NjY4Mzc3ODc2LDAuMDExNTkzMzExMDkzNzQ3NjE2LDAuMDAwNTQ... |
671 | _ These objects can operate independently of the ZipFile With mode w a writable file handle is returned which supports the write method While a writable file handle is open attempting to read or write other files in the ZIP file will raise a ValueError When writing a file if the file size is not known in advance but ma... | en | "Wy0wLjEwOTM0NTgzODQyNzU0MzY0LDAuMDMxOTkyMTIyNTMwOTM3MTk1LC0wLjA5MDA0MjMzNzc3NTIzMDQxLDAuMTI5Mjk4ODM1OTkyODEzMSwtMC4wMDcyMTAzODk3MTA5NjI3NzIsLTAuMDcyNjA1NzczODA2NTcxOTYsMC4wNTY3NzYzNzQ1Nzg0NzU5NSwwLjAzOTA5NTQwMTc2MzkxNjAxNiwtMC4wMjcwODYyNTYwNzE5MjUxNjMsMC4wNTQzNjMyMzIxMDU5NzAzOCwwLjAxNzEzMjk5OTM3NTQ2MjUzMiwwLjA5MDQ4MTg... |
672 | e as filename but without a drive letter and with leading path separators removed If given compress_type overrides the value given for the compression parameter to the constructor for the new entry Similarly compresslevel will override the constructor if given The archive must be open with mode w x or a Note The ZIP fi... | en | "Wy0wLjA3MzA2NzY5NDkwMjQyMDA0LDAuMDQwNjg2MDMzNjY2MTMzODgsLTAuMDc4MzU3NTMyNjIwNDI5OTksMC4wNDAwNzg4ODU4NTMyOTA1NiwtMC4wMzI1OTgwMTQ5MjA5NDk5MzYsMC4wMjAxMjIxNTc0MDk3ODcxNzgsMC4wMTE4MTc1NTAyODY2NTA2NTgsMC4wMzE0MjIwNTk5ODMwMTUwNiwtMC4wMDUzNDg2MTUzNDgzMzkwODEsLTAuMDAwMzYzMzM1Mjc1MzI0MDYxNSwwLjAxMDM4NjM0OTYzMzMzNjA2NywwLjAwOTk... |
673 | mode is now text Changed in version 3 11 2 The encoding parameter can be supplied as a positional argument without causing a TypeError As it could in 3 9 Code needing to be compatible with unpatched 3 10 and 3 11 versions must pass all io TextIOWrapper arguments encoding included as keywords Path iterdir Enumerate the... | en | "Wy0wLjA3NTMyNDQ0NTk2MjkwNTg4LC0wLjA0NTE2ODYxOTYwMjkxODYyNSwtMC4wMzQ1MjQ3MDg5ODYyODIzNSwwLjA2MzE2NTM1OTE5OTA0NzA5LDAuMDIxODM2OTkwNDkwNTU1NzYzLC0wLjAxMjU2NzUwNDMwOTExNzc5NCwwLjA2NTM0ODA2NjM4OTU2MDcsMC4wODI1MDIxOTM3NDg5NTA5NiwtMC4wMzI5NzA0NTA4MTg1Mzg2NjYsLTAuMDM3MzE5MzU4NDM4MjUzNCwwLjA5MDIwNTE3NzY2NDc1Njc3LDAuMDE2MjQ3Mzg... |
674 | The pathname parameter accepts a path like object Changed in version 3 7 Recursion sorts directory entries ZipInfo Objects Instances of the ZipInfo class are returned by the getinfo and infolist methods of ZipFile objects Each object stores information about a single member of the ZIP archive There is one classmethod ... | en | "Wy0wLjA5MTE2ODIxNzM2MDk3MzM2LDAuMDAzMTg0NzkwMDI0NTMzODY4LC0wLjAzODM3MTU5NjQ4NTM3NjM2LDAuMDYxNzM0MDA1ODA4ODMwMjYsLTAuMDEyMjA0Mzk5MzMyNDA0MTM3LC0wLjAzMTA2NjAzNzcxNDQ4MTM1NCwwLjAxNzIxMDEwNTQzNDA2MDA5NywwLjAxNzQ4NjQyNjk3OTMwMzM2LC0wLjAwNjA2NjcwMjc3MTkzMTg4NywwLjAxODE3NzA3NTMxMTU0MTU1NywwLjAzMTIxODQ3NDczMDg0OTI2NiwwLjA2MjM... |
675 | f files etc Resources limitations The lack of memory or disk volume would lead to decompression failed For example decompression bombs aka ZIP bomb apply to zipfile library that can cause disk volume exhaustion Interruption Interruption during the decompression such as pressing control C or killing the decompression pr... | en | "Wy0wLjAzMzA2MjExOTAzNjkxMjkyLDAuMDQ4NDI0NjE2NDU2MDMxOCwtMC4wNzAyNTA3MzQ2ODY4NTE1LDAuMDYxMzE1OTY4NjMyNjk4MDYsMC4wOTk0NDAwNDU2NTQ3NzM3MSwtMC4wNTczNzQ2NDg3NDk4MjgzNCwtMC4wNzY4OTgxODczOTg5MTA1MiwwLjAzNTIzNzQ2NTA1Mzc5Njc3LDAuMDExMTU3MDU4MTc5Mzc4NTEsMC4wNjM3MzU3MDg1OTQzMjIyLDAuMDA5NDM1ODIyMjU1OTA5NDQzLDAuMDkyMzUxMDQ5MTg0Nzk... |
676 | Logging HOWTO Author Vinay Sajip vinay_sajip at red dove dot com This page contains tutorial information For links to reference information and a logging cookbook please see Other resources Basic Logging Tutorial Logging is a means of tracking events that happen when some software runs The software s developer adds log... | en | "WzAuMDI2NzYyMzg0OTIxMzEyMzMyLC0wLjAwODM2ODc1NjYyMjA3NjAzNSwtMC4wNzk1ODI4MTA0MDE5MTY1LDAuMDE2NjY2NTExMDczNzA4NTM0LDAuMDY1MzYyMzExODk5NjYyMDIsLTAuMDM4Njk0NjA1MjMxMjg1MDk1LDAuMDgwODk3OTQ5NjM1OTgyNTEsMC4wOTEyNzIyNzk2MjAxNzA2LDAuMDEzMDE3Mjg4NDA5MTczNDg5LC0wLjAwMjYwNzY2MjIzMDczMDA1NjgsLTAuMDIxMTQ2OTAyODE0NTA3NDg0LC0wLjA0NTY... |
677 | ogging to a file A very common situation is that of recording logging events in a file so let s look at that next Be sure to try the following in a newly started Python interpreter and don t just continue from the session described above import logging logger logging getLogger __name__ logging basicConfig filename exam... | en | "Wy0wLjAwMDYyOTEwODE2NjMyMjExMjEsMC4wMzU0MTIwMDYwODAxNTA2MDQsLTAuMDU1NzYzODQ4MTI1OTM0NiwtMC4wMDg1ODc4NTU4NDU2ODk3NzQsMC4wNDM0NDc2MDYyNjU1NDQ4OSwtMC4wODAyNjEwMjkzMDMwNzM4OCwwLjAxNjUyMjQ3NjQ0OTYwODgwMywwLjA0MDM5NDAyNjc4NjA4ODk0MywwLjA0MTkxMjAzNzg3OTIyODU5LDAuMDE2NzIxNDQwNDc5MTU5MzU1LDAuMDE2MTEzMjE0MTk0Nzc0NjI4LC0wLjAwNTQ... |
678 | a and perhaps to display when the event occurred This is described in the next section Displaying the date time in messages To display the date and time of an event you would place asctime s in your format string import logging logging basicConfig format asctime s message s logging warning is when this event was logged... | en | "WzAuMDMzNTIzMTIzNzExMzQ3NTgsMC4wNTExMDM3NTk1NTcwMDg3NCwtMC4wMjQxMTgzNTI2ODEzOTgzOSwwLjA0MjQ3MDA5NzU0MTgwOTA4LDAuMDU2MDg1NzgwMjYyOTQ3MDgsMC4wMDg5MTYwNTIwNTgzMzkxMTksMC4wNTAxNDQ5MTQ1Mzc2NjgyMywwLjA5MTg4NjYwMjM0MjEyODc1LC0wLjAxMDg5ODgzMTMwMDQzNzQ1LC0wLjAyOTgyMTgyODAwNzY5ODA2LC0wLjAxODAyMzIwOTY0NjM0NDE4NSwtMC4wNDI2ODgyMzE... |
679 | d if one is not set they will set a destination of the console sys stderr and a default format for the displayed message before delegating to the root logger to do the actual message output The default format set by basicConfig for messages is severity logger name message You can change this by passing a format string ... | en | "WzAuMDY0Mzc2ODk4MTA5OTEyODcsLTAuMDM2NDAyNDQ5MDExODAyNjcsLTAuMDU4NDcwMDA3MDMyMTU1OTksLTAuMDA3NjI5NjU4MDk1NTM4NjE2LDAuMDA0MTE4Mzc3MzQyODIwMTY3NSwtMC4wMzAxNDg0MDkzMDcwMDMwMiwwLjA2MDQwNjkzMDc0NDY0Nzk4LDAuMDU1NjMyMDAyNjUxNjkxNDQsMC4wMjIzNTUyMzQyNTA0MjYyOTIsMC4wMzY2ODQ1ODM4NzI1NTY2ODYsMC4wMTMwMjI4NzcyNzU5NDM3NTYsLTAuMDE1NTQ... |
680 | as needed You can however turn off propagation by setting the propagate attribute of a logger to False Handlers Handler objects are responsible for dispatching the appropriate log messages based on the log messages severity to the handler s specified destination Logger objects can add zero or more handler objects to t... | en | "WzAuMDU0ODIyMTM5NDQxOTY3MDEsLTAuMDQ0MDgyMTAxNDM0NDY5MjIsMC4wNDYwMzgzNjY4NTQxOTA4MjYsMC4wMzM0NzAwMTU5NzI4NTI3MSwwLjAzNDE3NjIwODA3ODg2MTI0LC0wLjA1OTMzNzY2ODEyMDg2MTA1LDAuMDU5MDcxMjIwNDU3NTUzODY0LDAuMDMxNTI5MjcwMTEyNTE0NDk2LC0wLjAwOTg3MzgxNDg4MDg0NzkzMSwwLjAyMjU3Mzg2MDM2MjE3MjEyNywwLjAxNTc3NDM1MDYxMzM1NTYzNywtMC4wMzI3NzI... |
681 | guration functions The following example configures a very simple logger a console handler and a simple formatter using Python code import logging create logger logger logging getLogger simple_example logger setLevel logging DEBUG create console handler and set level to debug ch logging StreamHandler ch setLevel loggin... | en | "Wy0wLjAyNTA3MTE0NDEwNDAwMzkwNiwtMC4wMzc3ODkxNTEwNzI1MDIxMzYsLTAuMDc0MzAzNjQ5MzY1OTAxOTUsMC4wNDAzNjUyODYxNzE0MzYzMSwwLjAyNTY4NTQzNTE2MDk5NDUzLC0wLjA4ODI4NzUwMjUyNzIzNjk0LDAuMDc2NTIyMjM4NTUyNTcwMzQsMC4wODAwMTI2MzQzOTY1NTMwNCwtMC4wMDQxMzkxODMwODkxMzcwNzcsMC4wMzQ0NzczNDE5MjAxMzc0MDUsMC4wNzM3OTE3NzIxMjcxNTE0OSwtMC4wODY1MDk... |
682 | used to hold configuration information and since you can populate that dictionary using different means you have more options for configuration For example you can use a configuration file in JSON format or if you have access to YAML processing functionality a file in YAML format to populate the configuration dictiona... | en | "Wy0wLjAyNjQwMzE1MTQ1MjU0MTM1LC0wLjAxODQyMDM3NDAyMDkzNDEwNSwtMC4wODk0MjAwODAxODQ5MzY1MiwtMC4wMDMzMTY2NTY0NTM1MzQ5NjA3LC0wLjAyODM3MTI4NTY0NzE1Mzg1NCwtMC4xMDUxODQyMTk3Nzc1ODQwOCwwLjAyOTU2MjcwNDI2NTExNzY0NSwwLjAzNjM0NDY5NTgzNjMwNTYyLDAuMDMwNTcxMzc2OTA0ODQ1MjM4LDAuMDA3ODc3NjI4MzE4OTY1NDM1LDAuMDQ1NTA0MTE1NTIxOTA3ODA2LDAuMDE... |
683 | other than NullHandler to your library s loggers This is because the configuration of handlers is the prerogative of the application developer who uses your library The application developer knows their target audience and what handlers are most appropriate for their application if you add handlers under the hood you m... | en | "WzAuMDA4ODg3NDI5NzIxNjUzNDYxLC0wLjA0NTcyNzgzNDEwNTQ5MTY0LC0wLjA0OTY1ODY5MzM3MzIwMzI4LDAuMDIxMjk1NTkyMTg4ODM1MTQ0LDAuMDA5ODQ2MzQ2NDUyODMyMjIyLC0wLjAzMjE5NzE1MTMzMzA5MzY0LDAuMDczMTQzNDk3MTA5NDEzMTUsMC4wNjc2NzUxNTgzODE0NjIxLDAuMDEwMTQwNjkwMDIxMjE2ODcsMC4wMzQxNTc1NDgwOTk3NTYyNCwwLjAxMjYxMzcyMTE5MTg4MzA4NywtMC4xMTM4NjIwMDc... |
684 | nce 3 4 Unix domain sockets are also supported 8 SMTPHandler instances send messages to a designated email address 9 SysLogHandler instances send messages to a Unix syslog daemon possibly on a remote machine 10 NTEventLogHandler instances send messages to a Windows NT 2000 XP event log 11 MemoryHandler instances send m... | en | "WzAuMDA5OTMwNTEzNzk5MTkwNTIxLC0wLjAzOTk3NjQxMDU2Nzc2MDQ3LC0wLjAzMTE0MDY0NDEwMzI4ODY1LDAuMDAzNTA5MjA2Njk3MzQ0NzgsMC4wMjIzMzI1ODA3NjAxMjEzNDYsLTAuMDU0OTQ4ODUxNDY2MTc4ODk0LDAuMDc5MjgzNjE3NDM2ODg1ODMsLTAuMDIwNDQ3MzMyNDEyMDA0NDcsMC4wNjQ1NzE5NDY4NTkzNTk3NCwwLjA2MzM2OTkwNzQzODc1NTA0LC0wLjAzNTkwNDEyODEwNDQ0ODMyLC0wLjAxNjY0MzQ... |
685 | the logger will just throw away your event To decide what to do you can call the isEnabledFor method which takes a level argument and returns true if the event would be created by the Logger for that level of call You can write code like this if logger isEnabledFor logging DEBUG logger debug Message with s s expensive_... | en | "WzAuMDE5Nzc0NjEyMDM5MzI3NjIsLTAuMDIwMDc2MDU2OTQyMzQzNzEyLC0wLjA1NjQ2NjA5MTQyNDIyNjc2LDAuMDIxOTc1ODgwNDg4NzUzMzIsMC4wNjExOTM1ODE2NzA1MjI2OSwtMC4xMjA1MjgxMDkzNzE2NjIxNCwwLjA1NjkyMDkzODE5Mzc5ODA2NSwwLjA3MDU0Nzc5Njc4NTgzMTQ1LC0wLjAxNjc1NzE3NzE4ODk5MjUsMC4wOTc5NzY0MzEyNTA1NzIyLC0wLjAyNzEzNjkyOTMzMzIwOTk5LC0wLjAyMjg3NDYwMTE... |
686 | Python on Windows FAQ How do I run a Python program under Windows This is not necessarily a straightforward question If you are already familiar with running programs from the Windows command line then everything will seem obvious otherwise you might need a little more guidance Unless you use some sort of integrated de... | en | "Wy0wLjA0OTI3Njg5OTU0NjM4NDgxLC0wLjAzNzg0MjUwMDk1NDg2NjQxLC0wLjA0NzY2NTkxMjY1Nzk3NjE1LDAuMDEzNjYwNDAyMDM3MjAzMzEyLC0wLjAyNDM0ODU5MDUyMzAwNDUzMiwtMC4wNDg5ODk5NjY1MTE3MjYzOCwwLjAyMzM2NjE4MTE3OTg4MTA5NiwwLjA4ODM1OTQ2MDIzNDY0MjAzLC0wLjAyMjYzMjE0ODExNjgyNzAxLDAuMDAzMTU1OTIzNjgxMzMzNjYxLC0wLjA5MDY2OTIyOTYyNjY1NTU4LC0wLjAxNTM... |
687 | ce startup overhead of two orders of magnitude when the scanner is configured to monitor all reads from the filesystem Try checking the configuration of virus scanning software on your systems to ensure that they are indeed configured identically McAfee when configured to scan all file system read activity is a particu... | en | "WzAuMDAzNDYwMTE5MDEyNzQzMjM0NiwtMC4wNjM1MDQ4NzQ3MDYyNjgzMSwtMC4wODY4NjY2NzY4MDc0MDM1NiwtMC4wMDc1NDU3MjczMDUxMTQyNjksMC4wMTQ5NzgzODgzMjQzNzk5MjEsLTAuMDQ1ODgzMzYxMjUwMTYyMTI1LDAuMDI4OTU5OTQyOTgxNjAwNzYsMC4wNzE4NTgzODM3MTUxNTI3NCwwLjAzNDI2NTE2NDI4NTg5ODIxLC0wLjAyOTU0NzA5NTI5ODc2NzA5LC0wLjA1NzcyMzgwNTMwODM0MTk4LDAuMDExMDU... |
688 | s Py_INCREF Py_None _resultobj Py_None return _resultobj Alas Py_None is a macro that expands to a reference to a complex data structure called _Py_NoneStruct inside pythonNN dll Again this code will fail in a mult compiler environment Replace such code by return Py_BuildValue It may be possible to use SWIG s typemap c... | en | "Wy0wLjAwNjgxODAyNzIzNTU2NzU3LDAuMDE2MjYzMzU2NDMyMzE4Njg3LC0wLjA1OTI2ODg4ODA4NjA4MDU1LDAuMDU4NTEyODU1MzIxMTY4OSwtMC4wNTU0Mjc5NTczMjYxNzM3OCwtMC4wMjQzNDQwMDY1NTMyOTIyNzQsMC4wNjMwNjc0MTM4NjY1MTk5MywwLjExMTQ0NjQyNTMxODcxNzk2LC0wLjA3NDY2NjczMTA1OTU1MTI0LC0wLjAyODE2NTg2MzgyNjg3MDkyLC0wLjA2MDE3MDAyMDkwODExNzI5NCwtMC4wNDkzMTE... |
689 | __main__ Top level code environment In Python the special name __main__ is used for two important constructs 1 the name of the top level environment of the program which can be checked using the __name__ __main__ expression and 2 the __main__ py file in Python packages Both of these mechanisms are related to Python mod... | en | "Wy0wLjA3MTA5NjU5OTEwMjAyMDI2LC0wLjAyMjU0MzEzMDQ0MjUwMDExNCwtMC4wNzU0NTMxMDI1ODg2NTM1NiwtMC4wMTg2NjE5NTE2NDYyMDg3NjMsMC4wMDU3NzM5OTU1MzczMTA4MzksLTAuMTA1NTI0MTUyNTE3MzE4NzMsMC4wMTA0NDU3MDg0MDg5NTE3NiwwLjA4ODk1NDU4MjgxMDQwMTkyLC0wLjAxMjU1MDY3MDY1MzU4MTYyLC0wLjA2Mjg3MDg2NzU1MDM3MzA4LC0wLjAwMTkxNjI3NzMzODc1MDY2MDQsMC4wMzA... |
690 | ho and main functions will be defined but neither of them will be called because __name__ __main__ Packaging Considerations main functions are often used to create command line tools by specifying them as entry points for console scripts When this is done pip inserts the function call into a template script where the r... | en | "Wy0wLjAxNTYzMDk5NzcxNzM4MDUyNCwwLjAzNDEwMTA5ODc3NTg2MzY1LC0wLjA2MzgzNjA0NTU2MzIyMDk4LC0wLjAyNDE1NjUzNTA0NDMxMjQ3NywtMC4wMDIxNTEyNDAzNjE4NTQ0MzQsLTAuMDU5NjM2MDM3Nzk2NzM1NzY0LDAuMDE0MzY1NDAxMTE4OTkzNzYsMC4wODg5MTgwMjI4MTE0MTI4MSwtMC4wMTQ5NzA5MzU4ODExMzc4NDgsLTAuMDE5MTU1OTU0OTQyMTA3MiwwLjA1Nzk2MDIyNzEzMTg0MzU3LDAuMDA2Mzk... |
691 | in dir __main__ print __main__ my_name found in file __main__ __file__ else print __main__ my_name Example usage of this module could be as follows start py import sys from namely import print_user_name my_name Dinsdale def main try print_user_name except ValueError as ve return str ve if __name__ __main__ sys exit ma... | en | "Wy0wLjA1OTE4NjQxMzg4NDE2MjksLTAuMDE0NDgwMjg0NDE1MTg1NDUyLC0wLjA2MDE1NTYxNTIxMDUzMzE0LDAuMDUzMjM3MzMwMTY4NDg1NjQsMC4wMjgyNDMzNzc4MDQ3NTYxNjUsLTAuMDg0NzA5MDQ4MjcxMTc5MiwwLjA3OTk1MTc5Mjk1NTM5ODU2LDAuMDk4MjA2NTY0Nzg0MDQ5OTksLTAuMDUxMjExMzkwNjQ0MzExOTA1LC0wLjA0OTI4NDA1OTU1NDMzODQ1NSwwLjA2MTE2MjE2NjI5NzQzNTc2LDAuMDU0NDg5NTY... |
692 | Python support for the Linux perf profiler author Pablo Galindo The Linux perf profiler is a very powerful tool that allows you to profile and obtain information about the performance of your application perf also has a very vibrant ecosystem of tools that aid with the analysis of the data that it produces The main pro... | en | "WzAuMDA4NzY2OTUyOTAyMDc4NjI5LC0wLjAzNDcxMzg1MzE1MDYwNjE1NSwtMC4xMDM2NTQ3MjczMzk3NDQ1NywtMC4wNTczNjMyNzE3MTMyNTY4MzYsMC4wMjIwMDE0MDYxNzc4NzgzOCwtMC4wODU5MTgyMjUzNDc5OTU3NiwwLjAwMDA0MTQwNzI4OTI0NTM5ODcxNSwwLjA5NDcwMTMyNzM4MzUxODIyLC0wLjA2MTE0NTA2NzIxNDk2NTgyLC0wLjAzNjk3NDkxNDM3MTk2NzMxNiwwLjA0NTEwOTU0MDIyNDA3NTMyLC0wLjA... |
693 | rame pointer and not on DWARF debug information This is because as the code that is interposed to allow perf support is dynamically generated it doesn t have any DWARF debugging information available You can check if your system has been compiled with this flag by running python m sysconfig grep no omit frame pointer I... | en | "WzAuMDI1NTc5Mzc0MjgzNTUyMTcsLTAuMDAwOTYyMTgwNzI1NzY0NDgzMiwtMC4wMDgzNzQ5MDYxNDUwMzYyMiwtMC4wMzc3NzgxMzE2NjM3OTkyODYsMC4wNDE1OTI1MzQ2MzE0OTA3MSwtMC4wMzY2OTE1NTc2MTU5OTU0MSwtMC4wMjMwNDE5MzE5MTIzMDI5NywwLjA0MzcxOTIyODM1NzA3NjY0NSwtMC4wMTEyMDA1Nzg4ODMyOTAyOSwwLjAwODYxNjQ4NDcwMTYzMzQ1MywtMC4wMDI5Njk5MTkyMzgyMzk1MjY3LC0wLjA... |
694 | Introduction The Python library contains several different kinds of components It contains data types that would normally be considered part of the core of a language such as numbers and lists For these types the Python language core defines the form of literals and places some constraints on their semantics but does n... | en | "Wy0wLjAzNTc1NjI3ODc4MzA4Mjk2LC0wLjA0Mjg0ODY5NTA2OTU1MTQ3LC0wLjAwNDYwOTAxMDE4MjMyMTA3MiwtMC4wMDEzODIyMTQ0ODI4NzM2NzgyLDAuMDMwMzcwMTgxNDI2NDA1OTA3LC0wLjA3OTU3OTUyNDY5NTg3MzI2LC0wLjAwMzY4NjAxODk4NjYyNzQ1OTUsMC4wNjA2Mzc3MjczNzk3OTg4OSwtMC4wMjc5MDkzMjM1NzMxMTI0ODgsLTAuMDcyNTc1NDA1MjQwMDU4OSwtMC4wNTIxNTY1MTE2OTQxOTI4ODYsMC4... |
695 | top of CPython and Emscripten Pyodide provides access to browsers JavaScript and DOM APIs as well as limited networking capabilities with JavaScript s XMLHttpRequest and Fetch APIs Process related APIs are not available or always fail with an error That includes APIs that spawn new processes fork execve wait for proces... | en | "Wy0wLjExMDExNjcxMjc0OTAwNDM2LC0wLjA1ODAyMjU4MTA0MDg1OTIyLC0wLjA0MDMxNzc0MDI5MTM1NzA0LC0wLjAyNTk0NDQ0OTAwNzUxMTE0LC0wLjAxMjM1OTg5NjY3NDc1MjIzNSwtMC4wOTE1MzM4NTQ2MDM3Njc0LC0wLjAyMTE2MjE5NTEzMTE4MjY3LDAuMDcxNTYwMDI1MjE1MTQ4OTMsLTAuMDE1NTg0NzkzODczMTMxMjc1LC0wLjAzNTc0NDU2NjQ3MDM4NDYsMC4wMDI1MDU5MjA1OTQ1NTgxMTk4LDAuMDUwNTc... |
696 | 4 More Control Flow Tools As well as the while statement just introduced Python uses a few more that we will encounter in this chapter 4 1 if Statements Perhaps the most well known statement type is the if statement For example x int input Please enter an integer Please enter an integer 42 if x 0 x 0 print Negative cha... | en | "Wy0wLjAzMjMxNzY3NTY1MDExOTc4LDAuMDc5NzAwNDU1MDY5NTQxOTMsMC4wMDMwOTMwNDAzMTU0MzQzMzY3LC0wLjAxOTgzNjg5NzAzMDQ3Mjc1NSwtMC4wMDgzMzQ4NzUxMDY4MTE1MjMsLTAuMDY2MDI3NjExNDk0MDY0MzMsMC4wMzY2NzkzNTM1NjQ5Nzc2NDYsMC4wMzM4NDEzMDgyMDYzMTk4MSwtMC4wMjI0MjgwMDU5MzM3NjE1OTcsLTAuMDAyNzI1MjQzODAxMjUxMDU0LDAuMDQ2Mjg2NzI4MjMzMDk4OTg0LC0wLjA... |
697 | else loop fell through without finding a factor print n is a prime number 2 is a prime number 3 is a prime number 4 equals 2 2 5 is a prime number 6 equals 2 3 7 is a prime number 8 equals 2 4 9 equals 3 3 Yes this is the correct code Look closely the else clause belongs to the for loop not the if statement When used w... | en | "WzAuMDM0MDk0NTU3MTY2MDk5NTUsLTAuMDEwNzA5MDkzODgzNjMzNjE0LC0wLjAxNzc5MDUwMzc5OTkxNTMxNCwwLjAzNDQ3NzMzODE5NDg0NzExLDAuMDQ1NTY2ODI3MDU4NzkyMTE0LDAuMDE0MzM1MjY5MTA4NDE0NjUsMC4wNDIxMzc1NjMyMjg2MDcxOCwwLjA3MjE1NTQ2MDcxNTI5Mzg4LC0wLjA3NzQ4Nzc5NjU0NTAyODY5LDAuMDE5NTg0OTIyMTE5OTc1MDksLTAuMDExMzUyMTY4Mzk2MTE1MzAzLDAuMDUwODMwMjM... |
698 | t Only the standalone names like var above are assigned to by a match statement Dotted names like foo bar attribute names the x and y above or class names recognized by the next to them like Point above are never assigned to Patterns can be arbitrarily nested For example if we have a short list of Points with __match_a... | en | "Wy0wLjExMDE3NDQyNDk0NjMwODE0LDAuMDE0OTg2Mzk0OTA0NTUzODksMC4wMTIwNTY2NjczNTc2ODMxODIsLTAuMDU0MTIyMTI3NTkyNTYzNjMsMC4wMjQ3NTM3OTIyMTE0MTMzODMsLTAuMDA5NzMwNzIwODkyNTQ4NTYxLDAuMDgwODAwMzI0Njc4NDIxMDIsLTAuMDc2NzY1NjYzOTIxODMzMDQsLTAuMDQ0NzE1MjU5MjI0MTc2NDEsLTAuMDUzMTYyNzUzNTgyMDAwNzMsMC4wMjkwODc4NTgyNzQ1NzkwNDgsMC4wMjk5MjI... |
699 | are introduced in the local symbol table of the called function when it is called thus arguments are passed using call by value where the value is always an object reference not the value of the object 1 When a function calls another function or calls itself recursively a new local symbol table is created for that cal... | en | "Wy0wLjAyNTUzMjYwODg1MTc5MDQyOCwwLjAwNTExNjYyOTg3OTkyMTY3NSwtMC4wNjY4NDk0MTA1MzM5MDUwMywwLjAxODQwMDg1NzIyNTA2MDQ2MywtMC4xMDUzODQyOTc2Njg5MzM4NywtMC4wMzM2NjkyMzMzMjIxNDM1NTUsMC4wMTgxNzE2OTIyNjcwNjAyOCwwLjA2ODEwMzg3MjIzOTU4OTY5LDAuMDUzMzQ4Nzk4MzA0Nzk2MjIsLTAuMDE5MDUzNTQ4NTc0NDQ3NjMyLDAuMDI0Nzg0NTQwNzU3NTM2ODg4LC0wLjA0NzY... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.