id int64 0 2.72k | content stringlengths 5 4.1k | language stringclasses 4
values | embedding unknown |
|---|---|---|---|
200 | r this method falls back to looking for the name parameter on the Content Type header If neither is found or the header is missing then failobj is returned The returned string will always be unquoted as per email utils unquote get_boundary failobj None Return the value of the boundary parameter of the Content Type head... | en | "Wy0wLjAyOTgyMTQ2MjkyOTI0ODgxLDAuMDYzNTI2NDIxNzg1MzU0NjEsMC4wMjUyNTUxMzYxOTE4NDQ5NCwwLjA2NzEwMDkxMjMzMjUzNDc5LDAuMDgzMTE5ODMxOTc5Mjc0NzUsMC4wMjU2ODE0NDUzNzUwODQ4NzcsMC4wNTMxNTE0MzYxNTAwNzQwMDUsMC4wMDc3MzQzMjk5MDUzNjA5MzcsLTAuMDQ0NzQyMDM2NjEwODQxNzUsLTAuMDI0NTcxMzAzMjc4MjA3NzgsLTAuMDMwNjQ1NTQ5Mjk3MzMyNzY0LC0wLjA3MDQ4NzA... |
201 | out the plain text representation of a MIME message and it finds the message has a preamble attribute it will write this text in the area between the headers and the first boundary See email parser and email generator for details Note that if the message object has no preamble the preamble attribute will be None epilo... | en | "Wy0wLjAzMTM0NjQ4ODc0NDAyMDQ2LDAuMDgzMzIxNzk0ODY3NTE1NTYsMC4xMDkxOTI0NzU2NzY1MzY1NiwwLjA2NTMwMDc2MjY1MzM1MDgzLDAuMDU1MTE0Mjc2NzA3MTcyMzk0LC0wLjAyNzIyNDMxNTMzMDM4NjE2MiwtMC4wMDgyMTQyMTIwMjI3MjE3NjcsMC4wNTg0NzE4MTM3OTc5NTA3NDUsMC4wMTc4MjQ3MTg3Mjg2NjE1MzcsLTAuMDA2MTg1MDE1MTk3ODQzMzEzLDAuMDIwODM2ODkzNDY5MDk1MjMsLTAuMDA1ODc... |
202 | Python HOWTOs Python HOWTOs are documents that cover a single specific topic and attempt to cover it fairly completely Modelled on the Linux Documentation Project s HOWTO collection this collection is an effort to foster documentation that s more detailed than the Python Library Reference Currently the HOWTOs are Porti... | en | "Wy0wLjA1MzYzNTQwNzIzOTE5ODY4NSwwLjAxMDAyOTI1NDQ4MTE5NjQwNCwtMC4wMzg3MzA4NDQ4NTUzMDg1MywwLjAwNTEzNTA3NjU4NjE1NzA4MzUsLTAuMDA2NjQ1Mzk5NjExNDQzMjgxLC0wLjA5NTgwMTU0NzE2OTY4NTM2LDAuMDE1OTI2ODgyNjI0NjI2MTYsMC4xMTU4NzU4OTIzNDExMzY5MywtMC4wODU5NDQ2MzAyMDU2MzEyNiwtMC4wMTkxNzM5MTQ1NjY2MzYwODYsLTAuMDE5MzUwNTA0NTAyNjU0MDc2LDAuMDA... |
203 | 2 Defining Extension Types Tutorial Python allows the writer of a C extension module to define new types that can be manipulated from Python code much like the built in str and list types The code for all extension types follows a pattern but there are some details that you need to understand before you can get started... | en | "Wy0wLjA2NTc0OTM2MjExMTA5MTYxLC0wLjAxMjU2MTEwNzk4NTY3NTMzNSwtMC4wMzYzNzE5MzUxNTg5Njc5NywwLjA1MjE5NTA4MzM0OTk0MzE2LC0wLjA2NjEzMDA4Njc3OTU5NDQyLC0wLjA0OTAyMTgwNjU2NzkwNzMzLDAuMDQ1MDI0NjkzMDEyMjM3NTUsMC4xMzMwNjM1NTQ3NjM3OTM5NSwtMC4xMDAxMTI1NDk5NjA2MTMyNSwtMC4wMzk2ODI2MzA0NDk1MzM0NiwtMC4wMDA0Nzc3OTA5NDg5MzQ4NTMxLDAuMDAwNDA... |
204 | er and it s common practice to not specify them explicitly unless you need them We re going to pick it apart one field at a time ob_base PyVarObject_HEAD_INIT NULL 0 This line is mandatory boilerplate to initialize the ob_base field mentioned above tp_name custom Custom The name of our type This will appear in the defa... | en | "Wy0wLjAyNjgyOTkzNTYxMDI5NDM0MiwwLjA0ODk0MTAwNTAyMTMzMzY5NCwtMC4wMzQwNjk1NjA0NjgxOTY4NywwLjA0NzQ2MzgwNDQ4MzQxMzY5NiwtMC4wOTE1NDk2MTI1ODE3Mjk4OSwtMC4wMzA5NjgxNDgyNjEzMDg2NywwLjEwMjEzMTMyOTQ3NjgzMzM0LDAuMTE0OTYyNjIyNTIzMzA3OCwtMC4wNjYxMTEzNDExMTg4MTI1NiwtMC4wMDk0MjQzMzA2NjY2NjEyNjMsMC4wMTQzNzQxNDYyMzc5NjkzOTgsLTAuMDM2MTM... |
205 | ct type PyObject args PyObject kwds CustomObject self self CustomObject type tp_alloc type 0 if self NULL self first PyUnicode_FromString if self first NULL Py_DECREF self return NULL self last PyUnicode_FromString if self last NULL Py_DECREF self return NULL self number 0 return PyObject self static int Custom_init Cu... | en | "Wy0wLjAzMzQyNTY3MDExNzEzOTgxNiwtMC4wMzAwMjMzMDg0NzA4NDUyMjIsLTAuMDE5NDM0MjgwNjkzNTMxMDM2LDAuMDIyMjU5MTMxMDczOTUxNzIsLTAuMTEzNTk4NjQ0NzMzNDI4OTYsLTAuMDE1NTMyNDA3OTA5NjMxNzI5LDAuMDgxMDIwODU0NDEzNTA5MzcsMC4wNDY0NTI2MjY1ODU5NjAzOSwtMC4xMzg5NDI1MDk4ODk2MDI2NiwwLjAzNzM4Nzk2MzM4NDM4OTg4LDAuMDgxNDI5MDA0NjY5MTg5NDUsLTAuMDI5Nzc... |
206 | er and indeed many extension types will simply reuse PyType_GenericNew as done in the first version of the Custom type above In this case we use the tp_new handler to initialize the first and last attributes to non NULL default values tp_new is passed the type being instantiated not necessarily CustomType if a subclass... | en | "Wy0wLjA1MzMzOTY3ODc5NDE0NTU4NCwtMC4wNDA2NzgxNjU4NTMwMjM1MywwLjAwMDM4NTM4Mjg1Mjk4MjcyOTcsMC4wMjkzOTMxMDg1NjE2MzUwMTcsLTAuMDQ2NzA5ODIwNjI4MTY2MiwtMC4wMzMzNzA3NDQ0MzY5NzkyOTQsMC4wNjI2MDExNjM5ODMzNDUwMywwLjA5ODAwMjc0NjcwMTI0MDU0LC0wLjA1MTM4Mzk1NzI2NjgwNzU1NiwtMC4wMzgxODUwNDUxMjMxMDAyOCwwLjAyMTAyNzA5Mzc1MzIxODY1LDAuMDUwMDA... |
207 | he definitions in the tp_members slot tp_members Custom_members Each member definition has a member name type offset access flags and documentation string See the Generic Attribute Management section below for details A disadvantage of this approach is that it doesn t provide a way to restrict the types of objects that... | en | "Wy0wLjA1Mjg2ODQxODM5NTUxOTI2LDAuMDQwNjg2Njc4MTQxMzU1NTE1LC0wLjAxNjc0OTUzNDc1NTk0NTIwNiwwLjAxMDczMTgzMjEyNDI5Mjg1LC0wLjE0Njc5MTA4NTYwMDg1Mjk3LC0wLjAzNDE0MDkyOTU3OTczNDgsMC4wODc0MTM2OTg0MzQ4Mjk3MSwwLjAxODkwNjA3NTUwNzQwMjQyLC0wLjA3Mjc5NDYyMzY3Mjk2MjE5LC0wLjAzNTI5NDY5Mjk2MzM2MTc0LDAuMDIyNDkxMDYwMTk3MzUzMzYzLC0wLjAyMTk5Mzk... |
208 | first last self number return 1 if first Py_SETREF self first Py_NewRef first if last Py_SETREF self last Py_NewRef last return 0 static PyMemberDef Custom_members number Py_T_INT offsetof CustomObject number 0 custom number NULL Sentinel static PyObject Custom_getfirst CustomObject self void closure return Py_NewRef s... | en | "Wy0wLjAwOTI0MjczMjA3NzgzNjk5LC0wLjA0NjgxNjkwNDA5Nzc5NTQ4NiwtMC4wMjc4Nzk4NTA5Mzg5MTYyMDYsMC4wMDE3ODE5MDMyMDczMDIwOTM1LC0wLjA3MzU3MjA2OTQwNjUwOTQsMC4wMTI0MTQ5MjM4NjkwNzMzOTEsMC4xMDA4MjA4Mzk0MDUwNTk4MSwwLjAwODEzNzM5NDY3NDEyMjMzNCwtMC4wNzUzMjQ1NTc3MjE2MTQ4NCwwLjAxODgxODI4NzE3ODg3NDAxNiwwLjA3ODI3ODA3MjE3ODM2MzgsLTAuMDIyMDk... |
209 | eed to update the tp_init handler to only allow strings 3 to be passed static int Custom_init CustomObject self PyObject args PyObject kwds static char kwlist first last number NULL PyObject first NULL last NULL tmp if PyArg_ParseTupleAndKeywords args kwds UUi kwlist first last self number return 1 if first tmp self fi... | en | "Wy0wLjA4NjM3ODk1NDM1MDk0ODMzLDAuMDE0NDE3MDk4ODM1MTEwNjY0LDAuMDA1NjUzNTI2NjMzOTc3ODksLTAuMDgxOTEwNzk2NDYzNDg5NTMsLTAuMDgzMjQzNDE0NzU5NjM1OTMsLTAuMDU3Njc3NTExMTI1ODAyOTk0LDAuMDczMDc5ODA5NTQ2NDcwNjQsMC4wNzA1NjM0MjgxMDM5MjM4LC0wLjA2NTAwNzQ1NTY0Njk5MTczLDAuMDIwMzYzOTQ5MjM5MjUzOTk4LDAuMTE3NjIwMTcwMTE2NDI0NTYsLTAuMDUwMDQ5NDk... |
210 | r The last attribute value must be a string return 1 Py_XSETREF self last Py_NewRef value return 0 static PyGetSetDef Custom_getsetters first getter Custom_getfirst setter Custom_setfirst first name NULL last getter Custom_getlast setter Custom_setlast last name NULL NULL Sentinel static PyObject Custom_name CustomObje... | en | "WzAuMDI2OTg0MzQzMzA1MjMwMTQsMC4wNDE1MjIxNzg3OTg5MTM5NTYsLTAuMDQ2NDYxNjc5MDQxMzg1NjUsMC4wNDA3NzQzNjQwMjQ0MDA3MSwtMC4wNTg5MTA2ODI3OTc0MzE5NDYsLTAuMDQ2MjkyOTUzMTkzMTg3NzE0LDAuMDU4MTU5MTM5MDA3MzI5OTQsMC4wNzgzMzk3OTI3ODgwMjg3MiwtMC4xMjQxNjgxNDI2NzYzNTM0NSwwLjA0MzMxNTMzNjEwODIwNzcsMC4wNjAyNzU4ODk5MzMxMDkyOCwtMC4wODM3Mjk0NDU... |
211 | hat are derived from existing types It is easiest to inherit from the built in types since an extension can easily use the PyTypeObject it needs It can be difficult to share these PyTypeObject structures between extension modules In this example we will create a SubList type that inherits from the built in list type Th... | en | "Wy0wLjA2MDY1MTA3NTA5NDkzODI4LC0wLjAzMDQ2MTA1ODAyMDU5MTczNiwtMC4wMTk5Mjc5NTgwMjY1MjgzNiwwLjAyMzUwNjA5MDA0NDk3NTI4LDAuMDAwNjY3MjA5Njc4Nzk1MTg4NywwLjAxOTc4NTQzNTg3MDI4OTgwMywwLjAwOTExNTQwODE3NDY5MzU4NCwwLjA4MTExMzYyOTA0MzEwMjI2LC0wLjEwNDk2NTQ0ODM3OTUxNjYsLTAuMDMxMzU1MzQwMDMzNzY5NjEsLTAuMDM0Njg4NTEzNzI1OTk2MDIsLTAuMDAwMjY... |
212 | g normal strings won t call back into our objects we can t guarantee that deallocating an instance of a string subclass won t call back into our objects 4 Also even with our attributes restricted to strings instances the user could pass arbitrary str subclasses and therefore still create reference cycles | en | "WzAuMDA4ODcwOTY0ODY5ODU2ODM0LDAuMDI4NTM5NjY4NzY4NjQ0MzMzLDAuMDQ2Mzg2MDY2ODI0MTk3NzcsMC4wMTMzMjUyODUxNjY1MDE5OTksLTAuMDY3NzQzMTM3NDc4ODI4NDMsLTAuMDM3MTIyNjYzMTEwNDk0NjE0LC0wLjAyNjA4NDAxNzAwODU0MzAxNSwtMC4wNjA0MTY3MzE5ODM0MjMyMywtMC4wMTgyNDU2MjgxMDM2MTM4NTMsLTAuMDc0NTQ1NDQzMDU4MDEzOTIsLTAuMDA4OTg4ODU0NDc1MzE5Mzg2LDAuMDE... |
213 | platform Access to underlying platform s identifying data Source code Lib platform py Note Specific platforms listed alphabetically with Linux included in the Unix section Cross Platform platform architecture executable sys executable bits linkage Queries the given executable defaults to the Python interpreter binary f... | en | "WzAuMDMwNTAyNDUzNDQ2Mzg4MjQ1LDAuMDA1OTk2MzY5NzU2NzU4MjEzLC0wLjA2MjU4ODIwNzQyMzY4Njk4LC0wLjAxNjg5MzAzMjkzODI0MTk2LDAuMDQ0ODMyMzAwMzk0NzczNDgsLTAuMDg2NTAyOTMyMDEyMDgxMTUsLTAuMDE3MzA0OTQ3NTk5NzY4NjQsMC4wODg5NTA0NDc3MzgxNzA2MiwtMC4wNDY1NjU1NjYyMTE5Mzg4NiwtMC4wMzMzMDA1MDAzNjMxMTE0OTYsLTAuMDExODQzMzEyNTMxNzA5NjcxLDAuMDI2MzY... |
214 | cannot be determined platform uname Fairly portable uname interface Returns a namedtuple containing six attributes system node release version machine and processor processor is resolved late on demand Note the first two attribute names differ from the names presented by os uname where they are named sysname and noden... | en | "Wy0wLjAxOTYwMjIxMTE5MjI1MDI1MiwtMC4wMzExODUzMTQwNTkyNTc1MDcsLTAuMDE0Njc4MDY3NTI3NzExMzkxLC0wLjAxMzU5MjU0NTg3NDQxNjgyOCwwLjA1MTkyMjE2ODU4MjY3Nzg0LC0wLjA1MTc1NTgwMDg0MzIzODgzLC0wLjAyMzM4NDM4MTA4NTYzNDIzLC0wLjAwMTE5NDg1MzgwMTI4MDI2LC0wLjA4ODcwNjI4NDc2MTQyODgzLC0wLjA0NjYyMTA0Njk2MDM1Mzg1LDAuMDU5ODk3MjMyODAwNzIyMTIsLTAuMDY... |
215 | tkinter ttk Tk themed widgets Source code Lib tkinter ttk py The tkinter ttk module provides access to the Tk themed widget set introduced in Tk 8 5 It provides additional benefits including anti aliased font rendering under X11 and window transparency requiring a composition window manager on X11 The basic idea for tk... | en | "Wy0wLjA3MTgzOTQ2NjY5MTAxNzE1LDAuMDc5ODU0NzU2NTkzNzA0MjIsLTAuMDQyOTEyNzAzMDA3NDU5NjQsLTAuMDUzOTA3ODIyODE3NTY0MDEsMC4wMTUwODY0NDIyMzIxMzE5NTgsLTAuMDExMjU2NzI1NTI3MzQ2MTM0LDAuMDI5MDk4OTY1MjI3NjAzOTEyLDAuMDc2MjQ2OTM5NTk5NTE0MDEsMC4wMjE2NzY5ODc0MDk1OTE2NzUsLTAuMDM3NTc4NTc5MDM4MzgxNTgsMC4wMDE3Mjk5NDk0OTM4OTI0OTA5LC0wLjAwMzk... |
216 | textvariable Specifies a name whose value will be used in place of the text option resource underline If set specifies the index 0 based of a character to underline in the text string The underline character is used for mnemonic activation image Specifies an image to display This is a list of 1 or more elements The fi... | en | "Wy0wLjAyODY5MzYxMjY2NDkzNzk3MywwLjA2MTI1MTE0ODU4MTUwNDgyLC0wLjAyNDM1NzExMDI2MTkxNzExNCwwLjA3MjU3NTEzNzAxOTE1NzQxLC0wLjAwNjQ4MzM1NTA3MTM5NTYzNiwwLjA1OTQ4NzQ1MDg2Nzg5MTMxLDAuMTAzMDM0MzM5ODQ1MTgwNTEsMC4wNzQ1Mjk3NTk1ODU4NTczOSwtMC4wMTU2NjA0MjM3ODU0NDgwNzQsLTAuMDQ2NzUyNTY0NjA5MDUwNzUsMC4wNjUxNjMxMzU1Mjg1NjQ0NSwwLjA1NzY1NzE... |
217 | disabled In the readonly state the value may not be edited directly and the user can only selection of the values from the dropdown list In the normal state the text field is directly editable In the disabled state no interaction is possible textvariable Specifies a name whose value is linked to the widget value Whene... | en | "Wy0wLjA0MjQwMzI4NDQ2MDMwNjE3LDAuMDQ4MzQ3Mjk0MzMwNTk2OTI0LC0wLjA1NzA1ODUzOTI0MTU1MjM1LDAuMDA5MjQwNzc0NDM3Nzg1MTQ5LC0wLjA3MzIxNzI0Mjk1NjE2MTUsMC4wOTcyMTUyMTI4ODE1NjUxLDAuMDkyNzU2ODM3NjA2NDMwMDUsMC4wNDQ1ODA2NjgyMTA5ODMyNzYsMC4wMzAwMjcyOTgyNTY3NTQ4NzUsLTAuMDY1NjA4Nzg0NTU2Mzg4ODUsLTAuMDI0NTIxOTg2MDIyNTkxNTksMC4wODI0NjcxMTY... |
218 | the child window is positioned within the pane area Value is a string containing zero or more of the characters n s e or w Each letter refers to a side north south east or west that the child window will stick to as per the grid geometry manager padding Specifies the amount of extra space to add between the notebook an... | en | "Wy0wLjAzODA4OTUxNzUwMzk3NjgyLDAuMDUyNzg1MTM1ODA1NjA2ODQsLTAuMDg0MzAxOTExMjk0NDYwMywtMC4wMDgwNjkxODE4MTQ3ODk3NzIsMC4wMTUzMjQ4NjgyNjE4MTQxMTcsLTAuMDA3NzIwNDY3MTY4ODM3Nzg2LDAuMTA5MjkzNzgxMjIwOTEyOTMsMC4xMDg0Mzg5Mzg4NTYxMjQ4OCwwLjEwNTI3NTI4ODIyNDIyMDI4LC0wLjAwODcxNjEyMDM4NDYzMzU0MSwwLjAzMDkwNjI4MDUwMjY3Njk2NCwwLjAyNDc0MDA... |
219 | zontal height if vertical mode One of determinate or indeterminate maximum A number specifying the maximum value Defaults to 100 value The current value of the progress bar In determinate mode this represents the amount of work completed In indeterminate mode it is interpreted as modulo maximum that is the progress bar... | en | "Wy0wLjA5NjY2NDg0NTk0MzQ1MDkzLDAuMDc1NTc2NzQ0OTczNjU5NTIsLTAuMDUyMjQ1MzI2MzQwMTk4NTIsLTAuMDI4OTk0ODczMTY2MDg0MjksLTAuMDc4OTQ2ODg4NDQ2ODA3ODYsMC4wMzAyNzc0MjE2OTc5NzQyMDUsMC4wNDI1NDI1MTcxODUyMTExOCwwLjA3MTQ1MDYyMDg4OTY2MzcsMC4wMjg4NzcxODU2NTc2MjA0MywtMC4wNTY2Njk2NjczNjMxNjY4MSwtMC4wMDEzMTE4NzIyNzA4ODk1ODAyLDAuMDExMDczODc... |
220 | ed Note that the application code and tag bindings can set the selection however they wish regardless of the value of this option show A list containing zero or more of the following values specifying which elements of the tree to display tree display tree labels in column 0 headings display the heading row The default... | en | "Wy0wLjAxMDU3MDM1NDc1OTY5MzE0NiwwLjA5Mzc5Mjc4ODY4NDM2ODEzLC0wLjA2NzUxOTAyNDAxNDQ3Mjk2LDAuMDUzMzg4NTQ3MTUyMjgwODEsMC4wNzAwMjE1MTAxMjQyMDY1NCwwLjAwNjQ0NzM1MDYwNjMyMjI4ODUsMC4wNDAyMjQ3MzA5Njg0NzUzNCwwLjA3NDY5ODA0NTg0OTgwMDExLDAuMDQ2OTI4NTA2MzQ0NTU2ODEsMC4wMDIzNDU5MDA5ODI2MTgzMzIsMC4wMjE4MzMyNjUyMDAyNTczLC0wLjExMzM2OTEyMjE... |
221 | configure the tree column call this with column 0 delete items Delete all specified items and all their descendants The root item may not be deleted detach items Unlinks all of the specified items from the tree The items and all of their descendants are still present and may be reinserted at another point in the tree ... | en | "Wy0wLjAyMjcxMTgxNTMxMjUwNDc3LDAuMDYxMTg5MDAzMjg4NzQ1ODgsLTAuMDY5NzI0Njc4OTkzMjI1MSwwLjA3NjYxMzAyMzg3NzE0Mzg2LDAuMDczMTEwNjY5ODUxMzAzMSwtMC4wNjQ1MjAxODc2NzU5NTI5MSwwLjAzMzQ5MDUxOTk3MDY1NTQ0LDAuMDA4MDY2NzU5NDQ0NzczMTk3LDAuMDU1MjcyMjgxMTY5ODkxMzYsMC4wNDQ5ODcwMDc5NzU1NzgzMSwwLjE0OTMwMDcyNDI2Nzk1OTYsLTAuMDUwNzQ1MzY0Mjc4NTU... |
222 | selection Changed in version 3 6 items can be passed as separate arguments not just as a single tuple selection_remove items Remove items from the selection Changed in version 3 6 items can be passed as separate arguments not just as a single tuple selection_toggle items Toggle the selection state of each item in items... | en | "Wy0wLjA2MjMwODA2OTMxODUzMjk0NCwwLjAwNTU2MjkwODk0NzQ2NzgwNCwtMC4wOTI4MjUxNjY4ODEwODQ0NCwwLjAzMzk3OTk3NDY4NzA5OTQ2LDAuMDU5NzYzODU5OTU3NDU2NTksLTAuMDU0MzA5MTE4NTM5MDk0OTI1LDAuMDg5NjY2ODI4NTEzMTQ1NDUsLTAuMDYyMDEzMDg5NjU2ODI5ODM0LDAuMDExMTExMTE2MDM2NzcyNzI4LDAuMDEyMDQzODAyMDY3NjM3NDQ0LDAuMDM3Mzc3MDExMDMwOTEyNCwtMC4wMjc0NDY... |
223 | le and the first item is the layout name and the second item should have the format described in Layouts To understand the format see the following example it is not intended to do anything useful from tkinter import ttk import tkinter root tkinter Tk style ttk Style style layout TMenubutton Menubutton background None ... | en | "Wy0wLjAyNjQzMjAzNTQ5MDg3MDQ3NiwwLjExNjk2NTQyNzk5NDcyODA5LC0wLjAzNjIzMDUwNDUxMjc4Njg2NSwtMC4wMjkwMTg5NzU3OTQzMTUzMzgsMC4wNTQwMDk4NzcxNDUyOTAzNzUsMC4wMTQxNzExODMxMDkyODM0NDcsMC4wOTEzNzg0MDU2OTAxOTMxOCwwLjA4NDI5NTExNjM2NDk1NTksLTAuMDA3NTY2NzU0MjQwNTQyNjUsLTAuMDUyMjc1NDI2Njg1ODEwMDksMC4wMTY1OTMxOTkyMjMyNzk5NTMsLTAuMDM1Mjg... |
224 | Widget identify et al It s used for things like scrollbar thumbs with grips children sublayout Specifies a list of elements to place inside the element Each element is a tuple or other sequence type where the first item is the layout name and the other is a Layout | en | "Wy0wLjEyNzY5Nzc2NTgyNzE3ODk2LDAuMDM3NTgwOTYzMjI0MTcyNTksLTAuMDQ1MDA3MjI1MTI2MDI4MDYsLTAuMDUwNjg2MDE2Njc4ODEwMTIsMC4wMzY3NzU4NjgzODYwMzAyLC0wLjAwODg3NzYzNDA3MDgxMzY1NiwwLjEwNDQ1ODAwNDIzNjIyMTMxLC0wLjAxNTY5ODMyNjc1MTU4OTc3NSwwLjA0NzA2NjYwMjg1NTkyMDc5LC0wLjA3NzcxNDI1Njk0MjI3MjE5LDAuMDE2NTE2NDY3NTU2MzU3Mzg0LDAuMDg1MjY1MTg... |
225 | Function Objects There are a few functions specific to Python functions type PyFunctionObject The C structure used for functions PyTypeObject PyFunction_Type This is an instance of PyTypeObject and represents the Python function type It is exposed to Python programmers as types FunctionType int PyFunction_Check PyObjec... | en | "Wy0wLjA0OTcwODY0NTc5MDgxNTM1LC0wLjAxMzY4NzYzODU2NTg5Nzk0MiwtMC4wNjY3MjY2MDI2MTM5MjU5MywwLjAyNTgyOTUzNjg0MDMxOTYzMywtMC4wODQyMzY5MTk4Nzk5MTMzMywtMC4wNzMwNzQwMDU1NDQxODU2NCwwLjAzODY0NTUyODI1Njg5MzE2LDAuMDQwNjY5MzQ0MzY1NTk2NzcsLTAuMDQ5ODkxNjY1NTc3ODg4NDksLTAuMDM4ODYwNDE3OTAyNDY5NjM1LC0wLjAyMjY5MjEyMTU2NTM0MTk1LC0wLjAxNjE... |
226 | PyFunctionObject func PyObject new_value Type of a function watcher callback function If event is PyFunction_EVENT_CREATE or PyFunction_EVENT_DESTROY then new_value will be NULL Otherwise new_value will hold a borrowed reference to the new value that is about to be stored in func for the attribute that is being modifie... | en | "Wy0wLjA3NzUwOTM0MzYyNDExNDk5LC0wLjA0NDk2NjAyMzQxNTMyNzA3LC0wLjA0NTMwMzU5MDU5NTcyMjIsMC4wNzc2Mzg4NDk2MTYwNTA3MiwtMC4wMjE1NjYzNTkzMjYyNDM0LC0wLjAzNDA4NzE5MjI2NzE3OTQ5LDAuMDQ1MzUxMjkyOTM3OTk0LC0wLjAwNzg0NTQ5NzY5MDE0MTIwMSwwLjA4Nzk3MzY2MTcyMDc1MjcyLC0wLjAwMDc4NTU0NTM4Nzc3MDk4MDYsLTAuMDAxNTkwOTcyNTMzNDQ5NTMwNiwwLjA1NTgyNDM... |
227 | socketserver A framework for network servers Source code Lib socketserver py The socketserver module simplifies the task of writing network servers Availability not Emscripten not WASI This module does not work or is not available on WebAssembly platforms wasm32 emscripten and wasm32 wasi See WebAssembly platforms for ... | en | "Wy0wLjA3MzE4ODU4ODAyMzE4NTczLC0wLjA1NDg5MDM1MzIzMjYyMjE1LC0wLjAzNTA1NTQyMTI5Mjc4MTgzLDAuMDEzNjMzNzAxOTUwMzExNjYsLTAuMDQwNDUyNTkyMDc0ODcxMDYsLTAuMDEyNzkwNzE5OTc4NTExMzMzLDAuMDI1NjMwODQxMDMxNjcwNTcsMC4wMTcyMjkzNTAyODM3NDE5NSwtMC4wMDkzNjM1NzMwNDQ1Mzg0OTgsMC4wMjE1NDcwMjUwNjk1OTQzODMsMC4wMTQxMjc4NjU0MzM2OTI5MzIsMC4wNDAyODA... |
228 | on threads complete except if block_on_close attribute is False daemon_threads For ThreadingMixIn use daemonic threads by setting ThreadingMixIn daemon_threads to True to not wait until threads complete Changed in version 3 7 ForkingMixIn server_close and ThreadingMixIn server_close now waits until all child processes ... | en | "Wy0wLjEwNzczMjk1MTY0MTA4Mjc2LC0wLjA3NDI1NDY4NDE1MDIxODk2LDAuMDEyMzA2OTY0MDI0OTAxMzksLTAuMDYzMzk1MTM1MTA0NjU2MjIsLTAuMDE3NTEzNDk0OTM4NjExOTg0LC0wLjA0MTc5OTA2MTAwMDM0NzE0LC0wLjAwNTQzNDM1ODk1ODE1NDkxNywtMC4wMjg1NjgyNTY2NDYzOTQ3MywtMC4wMDU3NzMzOTk0OTA4NjMwODUsMC4wMTI3NzMxMzI4ODMwMTIyOTUsMC4wNTk0MDY0NzQyMzI2NzM2NDUsMC4wMjU... |
229 | e For example the ForkingMixIn class uses service_actions to clean up zombie child processes Changed in version 3 3 Added service_actions call to the serve_forever method service_actions This is called in the serve_forever loop This method can be overridden by subclasses or mixin classes to perform actions specific to ... | en | "Wy0wLjEwMDkyNzU4Mzg3MzI3MTk0LC0wLjAyMjI3NjU3NjYwODQxOTQyLC0wLjA0MzM1ODM1OTQ4NTg2NDY0LC0wLjA2NTIxNTQzMTE1Mzc3NDI2LC0wLjAzOTkxMjIzODcxNzA3OTE2LC0wLjA2OTAwMDY4MzcyNDg4MDIyLDAuMDI2ODA2OTE4OTA0MTg1Mjk1LC0wLjAxOTE3MTc0ODMxMDMyNzUzLDAuMDA0MjkzMDk5OTc3MDc2MDU0LDAuMDEyMDcxMjIxMTM1NTU2Njk4LDAuMDQwNTM3MzAxNDUwOTY3NzksMC4wOTQ0NzU... |
230 | manager protocol was added Exiting the context manager is equivalent to calling server_close Request Handler Objects class socketserver BaseRequestHandler This is the superclass of all request handler objects It defines the interface given below A concrete request handler subclass must define a new handle method and ca... | en | "Wy0wLjA3NTIxMjAzOTA1MzQ0MDEsLTAuMDQ2MzA4Njk5OTk1Mjc5MzEsMC4wMDgyNTcxNzU3OTU3MzM5MjksMC4wMDYwODEwMDY0ODk2OTQxMTg1LC0wLjA1OTcxNTI2MzU0NTUxMzE1LC0wLjA0NzE2ODA0OTk2MTMyODUwNiwwLjA2MzA1NjQwOTM1ODk3ODI3LC0wLjAxMTA5Mjk0MzEzOTM3NDI1NiwtMC4wMzU2NzM1MjUxODQzOTI5MywwLjAxODkyOTQ5MDgxOTU3MzQwMiwtMC4wMDA0Mjk5MDcyMDI0ODc4MTE0NSwwLjA... |
231 | 1 wrote b hello world with TCP 127 0 0 1 wrote b python is nice Client python TCPClient py hello world with TCP Sent hello world with TCP Received HELLO WORLD WITH TCP python TCPClient py python is nice Sent python is nice Received PYTHON IS NICE socketserver UDPServer Example This is the server side import socketserv... | en | "Wy0wLjA1MjkxODg1ODgyNjE2MDQzLC0wLjAwMjc5OTk0MTQ1OTY3MDY2MywtMC4wMDM3ODQwNzAyNTcwOTc0ODI3LDAuMDIwNDE0MDE1Mjc4MjIwMTc3LC0wLjExMDkyMTM5MDM1NDYzMzMzLC0wLjA2ODMyODYxOTAwMzI5NTksMC4wNDg0MDI4NzU2NjE4NDk5NzYsMC4wMDkyNzA0NzE1MjA3MjE5MTIsLTAuMDI5MTYwMzQxMjQ3OTE2MjIsMC4wMjgxMDkzMTc2NDU0MzA1NjUsLTAuMDE2OTAyNDM5Mjk2MjQ1NTc1LDAuMDQ... |
232 | argparse Parser for command line options arguments and sub commands New in version 3 2 Source code Lib argparse py Tutorial This page contains the API reference information For a more gentle introduction to Python command line parsing have a look at the argparse tutorial The argparse module makes it easy to write user ... | en | "Wy0wLjA2Njk3NzMwNzIwMDQzMTgyLC0wLjAzOTUzNjM0MjAyNDgwMzE2LC0wLjAyOTgxMjgzMTQzMTYyNzI3NCwwLjAxMzM3MTU1Njk5NzI5OTE5NCwtMC4wNTgzNDU5NjIzMTU3OTc4MDYsLTAuMDU1Njk1NTIyNTc2NTcwNTEsMC4wNTg4MTM0MzAzNjg5MDAzLDAuMDU3OTY3NjMzMDA4OTU2OTEsLTAuMDU4MzMxMjU4NTk0OTg5NzgsLTAuMDIwMzk5MTcxODU5MDI1OTU1LC0wLjA0MjQ2NDA5OTgyNDQyODU2LDAuMDIwNTQ... |
233 | he accumulator parser add_argument sum dest accumulate action store_const const sum default max help sum the integers default find the max Later calling parse_args will return an object with two attributes integers and accumulate The integers attribute will be a list of one or more integers and the accumulate attribute... | en | "Wy0wLjA1MzM5MDg3OTE4NDAwNzY0NSwtMC4wNDgyNDU3MzE3NDExODk5NiwtMC4wNzE2MTgzMDM2NTY1NzgwNiwwLjAxNzY5MzgxNzYxNTUwOTAzMywtMC4xMzMyMTAwMzMxNzgzMjk0NywtMC4wNTMyOTc0OTczMzIwOTYxLDAuMDYwMTc1Nzc2NDgxNjI4NDIsMC4wNTM0OTk2NTc2NjA3MjI3MywtMC4wNjg2NTY5MzYyODc4Nzk5NCwwLjAxNTE2MDI3MTg5NzkxMjAyNSwtMC4wNDAxNjUyMTU3MzA2NjcxMTQsLTAuMDUwMzg... |
234 | ge myprogram h foo FOO options h help show this help message and exit foo FOO foo of the myprogram program usage By default ArgumentParser calculates the usage message from the arguments it contains parser argparse ArgumentParser prog PROG parser add_argument foo nargs help foo help parser add_argument bar nargs help b... | en | "Wy0wLjAwOTA1NzI3NTk1MDkwODY2MSwtMC4wMTAxNDY5NDAxMjcwMTUxMTQsLTAuMDMwMzcxNTgyMTM1NTU4MTMsLTAuMDI0NDE5OTUyMTgzOTYxODcsLTAuMDI4MTI1NjU0OTA2MDM0NDcsMC4wMDA5NzYwMjI5NzMxOTA5OTMxLDAuMDk2OTExNzA2MDMwMzY4OCwwLjA3NDY5MDc4MTUzMzcxODExLC0wLjAzOTc2NTg2NDYxMDY3MiwtMC4wMjQ4MDIzNDk1MDc4MDg2ODUsLTAuMDQwMDk5MzU2MzIzNDgwNjA2LC0wLjA0Mzc... |
235 | on was indented weird but that is okay options h help show this help message and exit likewise for this epilog whose whitespace will be cleaned up and whose words will be wrapped across a couple lines Passing RawDescriptionHelpFormatter as formatter_class indicates that description and epilog are already correctly form... | en | "Wy0wLjAyOTIzMzA3MzgxNTcwMzM5MiwwLjAzMzYxODgwNDA2NzM3MzI3NiwwLjAyNzI0MDMzNzgwMzk1OTg0NiwwLjAxNzQ0ODEyMzU0NDQ1NDU3NSwtMC4wMDc1NjQ2NzM2NjU5MTA5NTksMC4wMTk3ODg2NDMzNDUyMzY3NzgsMC4wNTU2MTM0MzIwNzk1NTM2MDQsMC4wMzcwOTc5MDg1NTY0NjEzMzQsLTAuMDc1NjM0NzI1MzkxODY0NzgsMC4wMTI3ODIwODU2ODY5MjIwNzMsLTAuMDA0MjIwODU4MjE2Mjg1NzA2LC0wLjA... |
236 | or arguments This can be accomplished by passing the argument_default keyword argument to ArgumentParser For example to globally suppress attribute creation on parse_args calls we supply argument_default SUPPRESS parser argparse ArgumentParser argument_default argparse SUPPRESS parser add_argument foo parser add_argume... | en | "Wy0wLjAyODY2NTQ4MTEzNTI0OTEzOCwtMC4wNzg5NzYyODg0Mzc4NDMzMiwtMC4wMTc0NzUwMDcxMDE4OTM0MjUsMC4wMjQ0NDU4ODc2NTUwMTk3NiwtMC4wNzY4MTk1OTEyMjQxOTM1NywwLjAwMTg5NTQ1Nzk3MTg0MTA5NjksMC4wMzc5MTI2MDcxOTI5OTMxNjQsLTAuMDU5NDk1MzI5ODU2ODcyNTYsLTAuMDE3Mzg4MjU4MTI5MzU4MjksLTAuMDEzMTk4OTI5ODM4ODM2MTkzLC0wLjA1MjA3NTAyODQxOTQ5NDYzLC0wLjA... |
237 | scription below but in short they are name or flags Either a name or a list of option strings e g foo or f foo action The basic type of action to be taken when this argument is encountered at the command line nargs The number of command line arguments that should be consumed const A constant value required by some acti... | en | "Wy0wLjAxNDg3NDkxOTMxNzY2MjcxNiwtMC4wMzM2MjU0MjAxODI5NDMzNDQsLTAuMDU1OTE5ODU5NTU4MzQzODksMC4wNjA0OTk3MjAyNzU0MDIwNywtMC4wMTMyODI3MzMwMzgwNjc4MTgsLTAuMDE1MTU0MTYyNDIxODIyNTQ4LDAuMTMzMDc2MjA1ODQ5NjQ3NTIsMC4wNjQ0ODQ3NjAxNjUyMTQ1NCwtMC4wMjgxNTIwODU4NDA3MDIwNTcsMC4wMDA5NTYwNTI1NjUwMTU4NTI1LC0wLjAwNjk2NzA1MDQ4OTAzODIyOSwtMC4... |
238 | er of times a keyword argument occurs For example this is useful for increasing verbosity levels parser argparse ArgumentParser parser add_argument verbose v action count default 0 parser parse_args vvv Namespace verbose 3 Note the default will be None unless explicitly set to 0 help This prints a complete help message... | en | "WzAuMDA0NzI4NzkxNzY5NTkzOTU0LC0wLjA3NDQxMzk3NzU2MzM4MTIsLTAuMDExMjQxMzc5MTkzOTYxNjIsMC4wMjgwODc1MjI4MzQ1Mzk0MTMsMC4wMDk5NTUzODY2MzExOTA3NzcsLTAuMDIyMTQ0MzMwNjY1NDY5MTcsMC4wMDQ1NTkwMjI4NDAxMTI0NDgsMC4wMDIzOTY1MTUxMDQ5MTk2NzIsLTAuMDUzMzI1MzI1MjUwNjI1NjEsLTAuMDA0MTE4MzI4NDQ4Mzg1LC0wLjAxMzgxNjU1MTMwNTM1MzY0MiwtMC4wMDU2MzA... |
239 | ents present are gathered into a list Note that it generally doesn t make much sense to have more than one positional argument with nargs but multiple optional arguments with nargs is possible For example parser argparse ArgumentParser parser add_argument foo nargs parser add_argument bar nargs parser add_argument baz ... | en | "Wy0wLjA1NTEyNTI0NzY4NzEwMTM2NCwtMC4wODc4NTAyMzU0MDI1ODQwOCwtMC4wMTEwNzkxNDQ2NjQxMDg3NTMsLTAuMDA3MTcyNjkzOTY0MDkzOTI0LC0wLjAxOTQyODM5NDczNDg1OTQ2NywtMC4wMjUxMTAwOTM4NzY3MTk0NzUsMC4wODEwNDE5MDIzMDM2OTU2OCwwLjAxMzEzNTQxNDU3MDU2OTk5MiwwLjAwNDU2MzI0OTE4MTk1NjA1MywwLjA0MjQ2MDE1MTAxNjcxMjE5LC0wLjA0MDQ1MjcyOTkxMDYxMjEwNiwtMC4... |
240 | argument to type can be any callable that accepts a single string If the function raises ArgumentTypeError TypeError or ValueError the exception is caught and a nicely formatted error message is displayed No other exception types are handled Common built in types and functions can be used as type converters import argp... | en | "WzAuMDQxNDgyNTI2ODA4OTc3MTMsLTAuMDMwODg0ODIyODMwNTU3ODIzLDAuMDAwNjk5NDExODQ0ODM0Njg1MywwLjA1NDgxMjExMDk2MDQ4MzU1LC0wLjA5MjIwMDA3ODA3MDE2MzczLC0wLjA0ODkzOTkzMjEzNzcyNzc0LDAuMDQyMjMyOTM4MTEwODI4NCwwLjA1Mjg5NzE5NjI2MzA3NDg3NSwtMC4wNDI3ODkyMDIxODM0ODUwMywtMC4wNDk3OTU1NjQyNjQwNTkwNywtMC4wNDcwMTExMjIxMDc1MDU4LC0wLjAzODQ3ODg... |
241 | an option is marked as required parse_args will report an error if that option is not present at the command line Note Required options are generally considered bad form because users expect options to be optional and thus they should be avoided when possible help The help value is a string containing a brief descripti... | en | "Wy0wLjAzMDA3NjIxMzE4MTAxODgzLDAuMDAwNDYyNzc4Nzg1NzMxNjQzNDQsLTAuMDM4Mzk0MDAwMzgxMjMxMzEsMC4wMTUyMDM0MDUxNzE2MzI3NjcsLTAuMDQyMDIxNjE3MjkzMzU3ODUsMC4wMTMwODk2MDA5NTA0Nzk1MDcsMC4wNjU1MzA4NDQwMzI3NjQ0MywwLjA4Nzk4ODkzNTQxMDk3NjQxLC0wLjA3MTM0NTc0NjUxNzE4MTQsLTAuMDIyNzYxMDExNDk2MTg2MjU2LDAuMDA2NDQyOTAzMDc1MzY3MjEyLC0wLjA2Njg... |
242 | ing the initial character Any internal characters will be converted to _ characters to make sure the string is a valid attribute name The examples below illustrate this behavior parser argparse ArgumentParser parser add_argument f foo bar foo parser add_argument x y parser parse_args f 1 x 2 split Namespace foo_bar 1 x... | en | "Wy0wLjA3MTYyNzQyMzE2NzIyODcsLTAuMTA2MjQwMTAxMTU4NjE4OTMsLTAuMDEwMTYyNjgwNDA5ODQ4NjksMC4wMzU3MjE2MDM3ODA5ODQ4OCwtMC4xMjExODkxNjIxMzUxMjQyLC0wLjAxOTUyMjYyMDM2NTAyMzYxMywwLjA5NzU3ODk4NzQ3OTIwOTksMC4wMDQ2MTg5NDMyMDMyNDA2MzMsLTAuMDEwMDY3ODk3ODQ4Nzg0OTI0LDAuMDA5NDIyNjI4MjA4OTk0ODY1LC0wLjAzNzExMTk0MTcyNTAxNTY0LC0wLjAzNDAxNjk... |
243 | uding ambiguous options invalid types invalid options wrong number of positional arguments etc When it encounters such an error it exits and prints the error along with a usage message parser argparse ArgumentParser prog PROG parser add_argument foo type int parser add_argument bar nargs invalid type parser parse_args ... | en | "Wy0wLjAxODA0NjMxNzYyMjA2NTU0NCwtMC4wNjY2MDU2Mjc1MzY3NzM2OCwwLjAxODE5NTA4MzM2NDg0NDMyMiwtMC4wMTc3ODQ0NDgzNDA1MzUxNjQsLTAuMDc5MTExMjkyOTU4MjU5NTgsLTAuMDUyNjY3ODAwMzM3MDc2MTksMC4wNTgyOTEyNzEzMjg5MjYwODYsMC4wMzY4MTcyODI0MzgyNzgyLC0wLjAyNzMyODIxOTI2NDc0NTcxMiwtMC4wMDE3Nzc5NzQ2NTU4NTE3MjE4LDAuMDM4MTQ5MTYzMTI2OTQ1NDk2LC0wLjA... |
244 | is can be achieved by specifying the namespace keyword argument class C pass c C parser argparse ArgumentParser parser add_argument foo parser parse_args args foo BAR namespace c c foo BAR Other utilities Sub commands ArgumentParser add_subparsers title description prog parser_class action option_strings dest required ... | en | "Wy0wLjA1MTcxMTIyNzc0NDgxNzczNCwtMC4wNjc4MTE2NDU1Njc0MTcxNCwtMC4wNDU5NDM5MDQ2NjgwOTI3MywwLjAxNzA3OTE4MzgzMTgxMDk1LC0wLjEwMjQxNDEyMzcxMzk3MDE4LC0wLjA1OTA2NjgzOTUxNjE2Mjg3LDAuMDM2NDkyMDM4NTE4MTkwMzg0LDAuMDYxMDYyMzg4MTIyMDgxNzYsLTAuMDQyMTkxMTk5OTU4MzI0NDMsLTAuMDA5NDAyMzIyNTgyOTAwNTI0LC0wLjA2Mzg0MzU5MzAwMTM2NTY2LC0wLjA1Njg... |
245 | add_parser bar parser parse_args h usage h foo bar options h help show this help message and exit subcommands valid subcommands foo bar additional help Furthermore add_parser supports an additional aliases argument which allows multiple strings to refer to the same subparser This example like svn aliases co as a short... | en | "Wy0wLjA0NzE0NDA4NTE2ODgzODUsLTAuMDc5MTc4ODU0ODIzMTEyNDksMC4wMTA4NzI3NjczMDY4NjQyNjIsMC4wMjU3NDUwMzA0OTI1NDQxNzQsLTAuMTE2NzU3ODY5NzIwNDU4OTgsLTAuMTE2MDAxMTg4NzU1MDM1NCwwLjA0Mjg5MTYyNTMxNDk1MDk0LDAuMDMxMjk3NDExNzY5NjI4NTI1LC0wLjA3Nzc2MTcxNzE0MDY3NDU5LC0wLjA3MTU2ODAxOTY4ODEyOTQzLC0wLjA1NDYxNDgwMDk1OTgyNTUxNiwtMC4wNTIwMDc... |
246 | the argument in a separate group for help messages The add_argument_group method accepts title and description arguments which can be used to customize this display parser argparse ArgumentParser prog PROG add_help False group1 parser add_argument_group group1 group1 description group1 add_argument foo help foo help gr... | en | "Wy0wLjA1NzcwNzEyNzE4MzY3NTc2NiwtMC4wMjkyMTIyMDEwMTQxNjExMSwtMC4wMzgwMTM1NjI1NjAwODE0OCwwLjAwNDkyMjk5OTA2OTA5NDY1OCwtMC4wNDQwNzM3MTIwODA3MTcwOSwtMC4wMTQzMTgyNDczMjU3MTg0MDMsMC4wMDE5MjA0NzAwMzY1NjYyNTc1LC0wLjAzNDYwNDI0MzkzNDE1NDUxLC0wLjAwNzA4NjUyOTM5NjQ3NDM2MSwtMC4wNzU2ODkxNzQyMzQ4NjcxLDAuMDE2OTA3ODc2MzU3NDM2MTgsLTAuMDc... |
247 | However several formatting methods are available ArgumentParser print_usage file None Print a brief description of how the ArgumentParser should be invoked on the command line If file is None sys stdout is assumed ArgumentParser print_help file None Print a help message including the program usage and information about... | en | "Wy0wLjAxMTA1NzAyODU0NjkyOTM2LDAuMDA3MjU3OTA3NjUxMzY0ODAzLC0wLjA3MTYyNzM5MzM2NDkwNjMxLDAuMDQ2MTExNzA2NjQ0Mjk2NjQ2LC0wLjAwODk4Mjg2MDQ4MzIyOTE2LC0wLjA0ODU1MjQ0MjM0MjA0MjkyLDAuMDU5MTUyNDgwMjE0ODM0MjEsMC4wMzg1MDM5Mzc0MjMyMjkyMiwtMC4wMzczNzMyNTIyMTMwMDEyNSwtMC4wMTk3NzM5NjE5NzYxNzA1NCwtMC4wMjE4MjIzODM2MjcyOTU0OTQsLTAuMDI2MjQ... |
248 | two item tuple containing the populated namespace and the list of remaining argument strings parse_intermixed_args raises an error if there are any remaining unparsed argument strings New in version 3 7 Upgrading optparse code Originally the argparse module had attempted to maintain compatibility with optparse However ... | en | "Wy0wLjA1NjYyMTY1NTgyMTgwMDIzLC0wLjA1OTg0Njg1MTk3NDcyNTcyLDAuMDEzODQzNjU5MzExNTMyOTc0LDAuMDI4NjYwNzEyNzYzNjY3MTA3LC0wLjA0Njg1NTUwMTgzMDU3Nzg1LC0wLjA1MTI2MjE3NzUyNjk1MDgzNiwwLjA2MDQ2OTEwOTU2NTAxOTYxLDAuMDM4MTQwMjkzMjEwNzQ0ODYsLTAuMDgzMzIzNjg3MzE0OTg3MTgsLTAuMDE5MzcxMzUxMjI3MTY0MjcsLTAuMDM0NTIxMjQwNzQxMDE0NDgsLTAuMDA4ODM... |
249 | mmap Memory mapped file support Availability not Emscripten not WASI This module does not work or is not available on WebAssembly platforms wasm32 emscripten and wasm32 wasi See WebAssembly platforms for more information Memory mapped file objects behave like both bytearray and like file objects You can use mmap object... | en | "Wy0wLjAwMzAxNDAxMzYzNjg1NzI3MSwwLjAwMzc1MzQxNzYzNzE5OTE2MzQsLTAuMTAyNzg2ODc2MjYxMjM0MjgsMC4wMTczMjg3OTg3NzA5MDQ1NCwtMC4wNjE1MDE2NTk0NTI5MTUxOSwtMC4wNTQzNzY4MjU2OTAyNjk0NywwLjA1MTE1Nzc5ODYxODA3ODIzLDAuMDc1MTYyNDEwNzM2MDgzOTgsLTAuMDY3OTg0Nzg5NjA5OTA5MDYsMC4wNDEwMTI2OTMxOTY1MzUxMSwtMC4wMTQ0ODI4MTg1NDM5MTA5OCwwLjAyODE1MzA... |
250 | ull list specified in MAP_ constants prot if specified gives the desired memory protection the two most useful values are PROT_READ and PROT_WRITE to specify that the pages may be read or written prot defaults to PROT_READ PROT_WRITE access may be specified in lieu of flags and prot as an optional keyword parameter It ... | en | "Wy0wLjAyOTQ5ODc2ODk3MDM3MDI5MywwLjAxNzg2NjMyMjc3MDcxNDc2LC0wLjEyOTU3MjUyNTYyMDQ2MDUsLTAuMDA5MTMwMjg1MTIxNTAwNDkyLC0wLjAyOTE2NjkwNTIwOTQyMjExLC0wLjAwOTEzODYzMzQ5NzA1OTM0NSwwLjAzNTMzMjA5ODYwMzI0ODU5NiwwLjEwNDYyOTI2MzI4MTgyMjIsLTAuMDY5NTM5MTY2OTg2OTQyMjksMC4wMzQ4ODkzMjE3NzQyNDQzMSwwLjA2MTkxNDM4MDYzOTc5MTQ5LDAuMDY0NDQ4MTI... |
251 | version 3 3 Argument can be omitted or None read_byte Returns a byte at the current file position as an integer and advances the file position by 1 readline Returns a single line starting at the current file position and up to the next newline The file position is updated to point after the bytes that were returned res... | en | "Wy0wLjA3MzM2NTgzNzMzNTU4NjU1LDAuMDI2NzE0NzM0NzMzMTA0NzA2LC0wLjAzMzEzMjE3Njg0NjI2NTc5LDAuMDIwNDQ2MDczMjYzODgzNTksMC4wMDQwNjMyMDcxOTA0ODM4MDg1LC0wLjAyNzc2NzA0NTQyMzM4ODQ4LDAuMDE1MjY4MzE1NTYxMTE1NzQyLDAuMDM3NDYxNDA3NDgyNjI0MDU0LC0wLjA3MTUxNjAwNzE4NDk4MjMsMC4wNTUwNDg1MjUzMzM0MDQ1NCwwLjA0Mzg3NzM1OTQ3OTY2NTc1NiwwLjA4OTY2NTA... |
252 | ast Abstract Syntax Trees Source code Lib ast py The ast module helps Python applications to process trees of the Python abstract syntax grammar The abstract syntax itself might change with each Python release this module helps to find out programmatically what the current grammar looks like An abstract syntax tree can... | en | "Wy0wLjA4MDcwMzU5Mzc5MDUzMTE2LC0wLjAxMDg4MzMxNjM5NzY2NjkzMSwtMC4wMTEyODAyMTgxMzkyOTA4MSwwLjA5OTY3NjY4MzU0NTExMjYxLC0wLjAzNDc0MTc2MzAyNTUyMjIzLC0wLjEzNTUzNTQ5MzQ5MzA4MDE0LDAuMDAxODI4MDE0Mzg0OTU1MTY3OCwwLjAzODQyNTk0MTAyMDI1MDMyLC0wLjA5MzI3MDgwODQ1ODMyODI1LC0wLjA0MDUyOTk4MTI1NTUzMTMxLC0wLjAzNzcwNTkyODA4NzIzNDUsLTAuMDE3MDk... |
253 | ceptHandler expr type identifier name stmt body attributes int lineno int col_offset int end_lineno int end_col_offset arguments arg posonlyargs arg args arg vararg arg kwonlyargs expr kw_defaults arg kwarg expr defaults arg identifier arg expr annotation string type_comment attributes int lineno int col_offset int end... | en | "Wy0wLjA0NzIyMTA5ODA5NTE3ODYwNCwwLjAwNjYyNDcyMDk5MDY1NzgwNiwtMC4wNzg4MTExOTg0NzI5NzY2OCwwLjAxNDUwMjM4MjgzNzIzNTkyOCwtMC4wNTA2OTYzMzIwMDc2NDY1NiwtMC4wMjA2MjQ5Nzg0Njc4MjIwNzUsMC4wOTcwODYyNDMzMzE0MzIzNCwwLjA2NzY2NTU2OTQ4NDIzMzg2LC0wLjA1Njg0OTQ2ODQ5OTQyMjA3LDAuMDMxMTQ0ODU1NTQzOTcxMDYsMC4wNDQ1MzI0NDQzMjgwNjk2OSwtMC4wNzUzMTE... |
254 | 3 8 Class ast Constant is now used for all constants Changed in version 3 9 Simple indices are represented by their value extended slices are represented as tuples Deprecated since version 3 8 Old classes ast Num ast Str ast Bytes ast NameConstant and ast Ellipsis are still available but they will be removed in future... | en | "Wy0wLjEwNzU3MDQ5OTE4MTc0NzQ0LDAuMDMyODM0NzA0OTY1MzUzMDEsLTAuMDM1NTMyOTQwMTc5MTA5NTcsMC4wOTQzODM3Njg3MzczMTYxMywwLjAzMzE1MDAzOTYxMzI0NjkyLC0wLjA3OTA3NjQwOTMzOTkwNDc5LDAuMDI3NTc0MzkwMTcyOTU4Mzc0LDAuMDE1NTYyMTEwNTgwNTAzOTQsLTAuMDg0NjYyOTA2ODI1NTQyNDUsLTAuMDcyNTE2NTkwMzU2ODI2NzgsMC4wNTYzNjg2NjAxODE3NjA3OSwwLjAwNjk1Nzg3Nzg... |
255 | Constant value 1 Constant value 2 Constant value 3 ctx Load print ast dump ast parse 1 2 3 mode eval indent 4 Expression body Tuple elts Constant value 1 Constant value 2 Constant value 3 ctx Load class ast Set elts A set elts holds a list of nodes representing the set s elements print ast dump ast parse 1 2 3 mode ev... | en | "Wy0wLjA0OTE3MDkwMzg2MTUyMjY3NSwwLjAyOTQzNzEyNDcyOTE1NjQ5NCwwLjAxNDUxOTI3MTQ0MDgwNDAwNSwwLjA1Mzg5OTM4MTMwOTc0NzY5NiwtMC4wNzA3NjA0NDM4MDY2NDgyNSwtMC4wODQ1NDAzMjk4NzM1NjE4NiwwLjA2OTM1OTUxMTEzNzAwODY3LC0wLjAzNjE5Njk0NzA5Nzc3ODMyLC0wLjA1MDc5MTA1ODY4OTM1NTg1LC0wLjAxMjMyODQ1MjQzMDY2NTQ5MywwLjAxNTU1MjgxNTA0OTg4NjcwMywwLjAwNjg... |
256 | ass ast NotIn Comparison operator tokens class ast Call func args keywords A function call func is the function which will often be a Name or Attribute object Of the arguments args holds a list of the arguments passed by position keywords holds a list of keyword objects representing arguments passed by keyword When cre... | en | "Wy0wLjA2MzcxNTYxNDM3ODQ1MjMsMC4wMDgyMjY3NzM3MDE2MDgxODEsLTAuMDQ2MzczNDE1NzM4MzQ0MTksMC4wNTc2MDI4OTM1NjExMjQ4LC0wLjA2MDI1MTk5MjE5NTg0NDY1LC0wLjEwODc4NjQ3ODYzODY0ODk5LDAuMDkwNjE4ODA0MDk3MTc1NiwwLjAyNzA5MzkzNTc1Nzg3NTQ0MywtMC4wMzE4NDI0OTYyNDYwOTk0NywtMC4wMDIxMTg4OTQ1OTc1MTU0NjQsLTAuMDMwNDgwMzQzODQ4NDY2ODczLC0wLjAxMzkzNTU... |
257 | cates a comprehension is asynchronous using an async for instead of for The value is an integer 0 or 1 print ast dump ast parse ord c for line in file for c in line mode eval indent 4 Multiple comprehensions in one Expression body ListComp elt Call func Name id ord ctx Load args Name id c ctx Load keywords generators c... | en | "Wy0wLjA2MDAzNjM0MjU5MTA0NzI5LDAuMDI3MjExNzcwNDE1MzA2MDksLTAuMDU4NzU4NDA3ODMxMTkyMDIsMC4wNzc5NzM2NjM4MDY5MTUyOCwtMC4wNjI1NjEzNDgwODA2MzUwNywtMC4wNTE5OTQ4NTI3MjE2OTExMywwLjAzOTUzMjYxMzAwOTIxNDQsMC4wMTE3NDI1ODM0NzYwMDY5ODUsLTAuMDc0MzI3MzQyMjEyMjAwMTYsLTAuMDE4MjM2MTg2MzU1MzUyNCwtMC4wMTY3MDAyMjMwODgyNjQ0NjUsMC4wMjc2NDYzNzM... |
258 | z indent 4 Module body Delete targets Name id x ctx Del Name id y ctx Del Name id z ctx Del type_ignores class ast Pass A pass statement print ast dump ast parse pass indent 4 Module body Pass type_ignores class ast TypeAlias name type_params value A type alias created through the type statement name is the name of th... | en | "Wy0wLjA0ODk4NzQ0ODIxNTQ4NDYyLDAuMDIxMTcxNzQxMTg3NTcyNDgsLTAuMDU3Mjg0OTY2MTExMTgzMTY3LDAuMDI5MDY0NTI4NjQ0MDg0OTMsLTAuMDI3OTY2MDc0NjQ1NTE5MjU3LC0wLjA3NTk3MTE3MTI1OTg4MDA3LDAuMDk4MTcwMDQ5NDg4NTQ0NDYsMC4wNDk0NDU4MzQwMTA4Mzk0NiwtMC4xMDA5MjA1NzI4NzY5MzAyNCwtMC4wMjA4NTAwNTMwNTcwNzQ1NDcsMC4wMTU4MjA5ODAwNzIwMjE0ODQsLTAuMDAzMTE... |
259 | ipsis type_ignores class ast TryStar body handlers orelse finalbody try blocks which are followed by except clauses The attributes are the same as for Try but the ExceptHandler nodes in handlers are interpreted as except blocks rather then except print ast dump ast parse try except Exception indent 4 Module body TrySta... | en | "Wy0wLjA0OTUwNzYxNzk1MDQzOTQ1LDAuMDM4NTI5ODUwNTQyNTQ1MzIsMC4wMjY4MzI4MDQwODM4MjQxNTgsMC4wMjMxMDAzMzcwMTM2MDIyNTcsMC4wMTMwOTAwNjg0NzQ0MTE5NjQsLTAuMDU0MjgwNjk0NTc0MTE3NjYsMC4wNDU4NTc5OTIwMjMyMjk2LDAuMDA0OTYzMjIzODIyNDE0ODc1LC0wLjA3ODE5MzQ0ODQ4Mzk0Mzk0LDAuMDA1NjUyMjc2Nzk5MDgyNzU2LDAuMDM2NzI2MDM4OTAyOTk3OTcsMC4wMDE2MzkyNDM... |
260 | rn patterns contains the patterns to be matched against the subject elements if the subject is a sequence Matches a variable length sequence if one of the subpatterns is a MatchStar node otherwise matches a fixed length sequence print ast dump ast parse match x case 1 2 indent 4 Module body Match subject Name id x ctx ... | en | "Wy0wLjExODM3NTgzNzgwMjg4Njk2LDAuMDI2NzI3Mjk0NTQ5MzQ1OTcsMC4wMDQwMzA0MTcxODUyNzY3NDcsLTAuMDMwNzg3MTAxMDE1NDQ4NTcsLTAuMDE5NDE2NjYzNzk1NzA5NjEsMC4wMjA2Nzk0MjczMTA4MjQzOTQsLTAuMDE2NDkxMzU1Mzc0NDU1NDUyLC0wLjA0NDU0NTMxNTIwNjA1MDg3LC0wLjA0MzI2NTc1OTk0NDkxNTc3LC0wLjAzNzkzMDAwNDI5ODY4Njk4LC0wLjA1MzkzMjEwMDUzNDQzOTA5LC0wLjAwNTA... |
261 | be None and the node represents the wildcard pattern print ast dump ast parse match x case x as y case _ indent 4 Module body Match subject Name id x ctx Load cases match_case pattern MatchAs pattern MatchSequence patterns MatchAs name x name y body Expr value Constant value Ellipsis match_case pattern MatchAs body Exp... | en | "Wy0wLjA2MTc3MDU3MzI1ODM5OTk2LDAuMDY3NTY0MDcwMjI0NzYxOTYsMC4wMTE5MDc3Nzk2MTE2NDcxMjksLTAuMDAzNjAzNTM0NTQwMTYxNDkwNCwwLjAwODg5NjcxMTI4MjQzMjA4LC0wLjA0MTQxNzk1NjM1MjIzMzg5LDAuMDMzNjE1NDQwMTMwMjMzNzY1LC0wLjAyMjE4MDAyMjY3MTgxODczMywtMC4wNzMzOTU4MDM1NzA3NDczOCwtMC4wMzQ4NTM4MzgzODQxNTE0NiwwLjAwMDQyMDg5MTUwNTIwMDQxNTg1LC0wLjA... |
262 | g return annotation pass indent 4 Module body FunctionDef name f args arguments posonlyargs args arg arg a annotation Constant value annotation arg arg b arg arg c vararg arg arg d kwonlyargs arg arg e arg arg f kw_defaults None Constant value 3 kwarg arg arg g defaults Constant value 1 Constant value 2 body Pass decor... | en | "Wy0wLjA3MjE5ODkzNDg1MzA3NjkzLDAuMDcxNTU5NzQyMDkzMDg2MjQsLTAuMDUyNjUzMjk3NzgxOTQ0Mjc1LDAuMDYyNzMyNDgwNDY2MzY1ODEsLTAuMDQ0NzY0MzczNDUxNDcxMzMsLTAuMDMwNDgxMjY3NzIwNDYwODksMC4wMjgwNDc2NDkxODk4Mjk4MjYsLTAuMDA4NzU1NjQxMDU4MDg3MzQ5LC0wLjA3MDk4NDY5MTM4MTQ1NDQ3LC0wLjAwNDg2NDM0ODA5ODYzNTY3MzUsLTAuMDExNzg4NDIwMzc5MTYxODM1LC0wLjA... |
263 | Module otherwise it is always an empty list In addition if mode is func_type the input syntax is modified to correspond to PEP 484 signature type comments e g str int List str Setting feature_version to a tuple major minor will result in a best effort attempt to parse using that Python version s grammar For example se... | en | "Wy0wLjAyMTcyNzk0MDA2NzY0ODg4OCwtMC4wMTA4NDY1NjM2MTQ5MDQ4OCwwLjAwMTAxNTgxMjg1NzA3NjUyNTcsMC4wMTczNzk5Mzk1NTYxMjE4MjYsMC4wMjc5MzIxODk0MDQ5NjQ0NDcsLTAuMDU1NjgxOTgxMTQ2MzM1NiwtMC4wMTA3MjQ4NDkwNjc2MjgzODQsMC4wNzU3MzkxODk5ODI0MTQyNSwtMC4xMTM2NzY1MTgyMDE4MjgsLTAuMDQ2MzczMDE3MTMyMjgyMjYsMC4wMDU4MDcxNDkyMjM5ODMyODgsMC4wMDY5ODg... |
264 | mpile the compiler expects lineno and col_offset attributes for every node that supports them This is rather tedious to fill in for generated nodes so this helper adds these attributes recursively where not already set by setting them to the values of the parent node It works recursively starting at node ast increment_... | en | "Wy0wLjA0MTk3NDYwMDQwNDUwMDk2LDAuMDQ2NjgxNzM1NjY0NjA2MDk0LC0wLjAzNzAyMzM2OTIyMjg3OTQxLC0wLjAwNTEzNzIzMDczNTI3MjE2OSwwLjA0NjUxMzY1MDU2NjMzOTQ5LC0wLjAxNzgzOTExODgzODMxMDI0LDAuMDUwMDg1MzYyMDQ2OTU3MDE2LDAuMDIzNzU5NzU4MDk5OTEzNTk3LC0wLjA1OTcwNzE2MTAzOTExNCwwLjA3NDU0MzkxNTY4ODk5MTU1LDAuMDQ4NzM0NDA0MTQ2NjcxMjk1LC0wLjAwNjYxNzY... |
265 | not dumped by default If this is wanted include_attributes can be set to true If indent is a non negative integer or string then the tree will be pretty printed with that indent level An indent level of 0 negative or will only insert newlines None the default selects the single line representation Using a positive int... | en | "Wy0wLjA5Njk2MTUxMzE2MTY1OTI0LDAuMDE2OTI3NzU0NTA2NDY4NzczLC0wLjA1NjAwNDI0ODU1OTQ3NDk0NSwwLjEyMjA3ODczMTY1NjA3NDUyLC0wLjAxMjU2MDgzNTEwODE2MDk3MywtMC4wNTQxOTUzNjMwNzQ1NDEwOSwtMC4wMzE1MzQ2ODI5NTkzMTgxNiwwLjA1MzcyMzkxMjY4NjEwOTU0LC0wLjA0MDczNzcyNTc5NDMxNTM0LC0wLjAzNzczNTc4NjI4ODk3NjY3LDAuMDI4ODc0MDYyMDAxNzA1MTcsLTAuMDE0NDQ... |
266 | email contentmanager Managing MIME Content Source code Lib email contentmanager py New in version 3 6 1 class email contentmanager ContentManager Base class for content managers Provides the standard registry mechanisms to register converters between MIME content and other representations as well as the get_content and... | en | "Wy0wLjA0OTU0NzE0MzI4MDUwNjEzNCwtMC4wNDEyNTUyMjgyMjE0MTY0NywwLjAzNzcyNTA0NjI3NzA0NjIwNCwwLjA3NTAyNzgzMDg5ODc2MTc1LDAuMDQ0OTg4NzkyMzg5NjMxMjcsLTAuMDg2NzE4MzY1NTUwMDQxMiwwLjA4MDY0Mjg0OTIwNjkyNDQ0LDAuMDM1MjcwNzU3OTczMTk0MTIsLTAuMDA3ODM3MDEyNDEwMTYzODgsLTAuMDAxNzU5OTE0NTY0OTAwMTAwMiwwLjAyMzkwNDg0Njk4MTE2Nzc5MywwLjAyMjcxMDk... |
267 | ype subtype value For str set the MIME maintype to text and set the subtype to subtype if it is specified or plain if it is not For bytes use the specified maintype and subtype or raise a TypeError if they are not specified For EmailMessage objects set the maintype to message and set the subtype to subtype if it is spe... | en | "Wy0wLjAxODg0MzkwMjI3NDk2NjI0LC0wLjAzOTIwNjE3MzI3MDk0MDc4LDAuMDQ0MDUxODY2OTc4NDA2OTA2LC0wLjAwMjQ1Nzk1NjU1MDY0Mjg0OCwtMC4wNjAwMjk3MzAyMDA3Njc1MiwtMC4wNjQyMzY3MDc5ODU0MDExNSwwLjA1ODUzMzg4NDU4NDkwMzcyLDAuMTI4MTQxNzE2MTIyNjI3MjYsLTAuMDQwNDk3NDc4MDk3Njc3MjMsLTAuMDY5OTAxMjg3NTU1Njk0NTgsLTAuMDY2MjMzOTQwNDIyNTM0OTQsLTAuMDYwOTc... |
268 | pipes Interface to shell pipelines Source code Lib pipes py Deprecated since version 3 11 will be removed in version 3 13 The pipes module is deprecated see PEP 594 for details Please use the subprocess module instead The pipes module defines a class to abstract the concept of a pipeline a sequence of converters from o... | en | "Wy0wLjAzMzkxNjE0OTI4ODQxNTkxLDAuMDE3NjAzNDY4MTQ5OTAwNDM2LC0wLjAyODczODE1MDM3MzEwMTIzNCwtMC4wNDUyODkxMDY2NjcwNDE3OCwtMC4wNTk5NjQwOTQzMTA5OTg5MiwtMC4wMzk5NTc5OTI3MzI1MjQ4NywtMC4wMzM3NTQ0ODI4NjUzMzM1NiwwLjExOTAzMzk2OTkzODc1NTA0LC0wLjA2NjAyNDE5OTEyODE1MDk0LC0wLjAwMDEyMDg0MTMyMzIyMzQzMDY2LC0wLjA0NTk5NzM5MjM4NjE5ODA0NCwtMC4... |
269 | DateTime Objects Various date and time objects are supplied by the datetime module Before using any of these functions the header file datetime h must be included in your source note that this is not included by Python h and the macro PyDateTime_IMPORT must be invoked usually as part of the module initialisation functi... | en | "Wy0wLjA1OTEwMzA2Nzk2NDMxNTQxNCwwLjAzMjI1NDE5NjcwMzQzMzk5LC0wLjAzNDM1MDI4MzQ0MzkyNzc2NSwwLjAzNDYxNjU1NjAxODU5MDkzLC0wLjAyMTIwOTE5NzExODg3ODM2NSwtMC4wMjcxNzkyODIxNTg2MTMyMDUsMC4wMjc3MjkxNjQ4MDg5ODg1NywwLjA4NDU0ODAyNjMyMzMxODQ4LC0wLjA2OTMxNjkzODUxOTQ3Nzg0LC0wLjA2NzMxOTU4Njg3MzA1NDUsLTAuMDE0Mjk2NzU3MDU3MzA5MTUsLTAuMDkyODg... |
270 | rn value New reference Return a datetime time object with the specified hour minute second and microsecond PyObject PyTime_FromTimeAndFold int hour int minute int second int usecond int fold Return value New reference Return a datetime time object with the specified hour minute second microsecond and fold New in versio... | en | "Wy0wLjA2MjExNTE4NDk2Mjc0OTQ4LDAuMDE2NTAyMzcxMDU3ODY4MDA0LC0wLjA0OTUwNDgzMTQzMzI5NjIwNCwwLjAxMzU4NjYzODQ5NTMyNjA0MiwtMC4wNTYwNTQ2NzAzNjM2NjQ2MywtMC4wMTk5NTM2MDEwNjIyOTc4MiwwLjAxNDI2NDIyODc1Mzc0NTU1NiwwLjAzNTI2NDA3NDgwMjM5ODY4LC0wLjA4NzIyNDI1OTk3MjU3MjMzLC0wLjAyNjMzNzcxMTE0MDUxMzQyLC0wLjAzMjM3NjkyMjY2NzAyNjUyLC0wLjA1NTY... |
271 | gument tuple suitable for passing to datetime date fromtimestamp | fr | "Wy0wLjA1NzM0MzM1NjMxMTMyMTI2LC0wLjAzMTc4Njk5Njg3MTIzMjk4NiwtMC4wMjYwMjU2MzYxMjE2MzA2NywtMC4wMDY1NjY2Njc0NjM2MzA0MzgsLTAuMDk3MDk1NjgzMjE3MDQ4NjUsLTAuMDExMTY4NTU5MDgxODUyNDM2LDAuMDczNzE0NDEyNzQ4ODEzNjMsMC4wMjUzMjg2MDYzNjcxMTEyMDYsLTAuMDc0ODYxNzUwMDA2Njc1NzIsMC4wMDQ2MjQ0MTkzNzk5NzkzNzIsLTAuMDQwMjgxNjk0MzgyNDI5MTIsLTAuMTA... |
272 | sched Event scheduler Source code Lib sched py The sched module defines a class which implements a general purpose event scheduler class sched scheduler timefunc time monotonic delayfunc time sleep The scheduler class defines a generic interface to scheduling events It needs two functions to actually deal with the outs... | en | "Wy0wLjA4MTM4Njc1OTg3NzIwNDksLTAuMDMxNTUyOTA3MDc5NDU4MjQsLTAuMDc3MDI3NDAyODE4MjAyOTcsMC4wMTg4ODU3ODU3MTM3OTE4NDcsMC4wMTkyNjcxNDU1NDQyOTA1NDMsLTAuMDExNDk3MjMwMjY5MDE0ODM1LC0wLjA2OTExNzg1MTU1NTM0NzQ0LC0wLjAxNDU0NjYyOTk3Mjc1NTkwOSwtMC4wMzU4MjA5NzIxNzQ0MDYwNSwtMC4wNTQ2NTI4NzcxNTE5NjYwOTUsMC4wMTA0MjEwNDA0Njc5MTc5MiwtMC4wMDQ... |
273 | 3 Configure Python 3 1 Build Requirements Features required to build CPython A C11 compiler Optional C11 features are not required Support for IEEE 754 floating point numbers and floating point Not a Number NaN Support for threads OpenSSL 1 1 1 or newer for the ssl and hashlib modules On Windows Microsoft Visual Studio... | en | "Wy0wLjExNjQzMTYyMzY5NzI4MDg4LC0wLjAyNTA3OTE3Mzk2NzI0MjI0LC0wLjEwNDEwMDAyNjE5MDI4MDkxLC0wLjAwNDk2NjUzMjgxMTUyMjQ4NCwwLjAyMzg0Njg0NzkzNjUxMTA0LC0wLjA2MjY2MTYyNTQ0NDg4OTA3LC0wLjA3ODE1NDAyMDAxMTQyNTAyLDAuMDE4NTg5OTAyNjY5MTkxMzYsLTAuMDUyMDA5NTgyNTE5NTMxMjUsLTAuMDUxMjMwMTQwMDMwMzg0MDY0LDAuMDA0NjIzNTc2MDY3Mzg4MDU4LC0wLjA0NTQ... |
274 | all the ensurepip _bundled package New in version 3 10 with pkg config check yes no Whether configure should use pkg config to detect build dependencies check default pkg config is optional yes pkg config is mandatory no configure does not use pkg config even when present New in version 3 11 enable pystats Turn on inte... | en | "Wy0wLjA3NTQ4ODU4MjI1MzQ1NjEyLC0wLjAxMDc4ODI4MDUxNjg2Mjg3LC0wLjA5NzQzNzE4ODAyOTI4OTI1LDAuMDI1MTU0MDk1MTQzMDc5NzU4LDAuMDY5Mzk0MjUzMTk0MzMyMTIsLTAuMDQ5NTYzNjE2NTE0MjA1OTMsLTAuMDQ1NjEwNDI3ODU2NDQ1MzEsMC4wODM5Nzc3NjYzMzUwMTA1MywtMC4wODE2ODQ0MTA1NzIwNTIsMC4wNTAwNDkyODYzMzU3MDY3MSwwLjA4ODE3NTQ3NTU5NzM4MTU5LC0wLjA0NjQ1NDExMjk... |
275 | on loop enabled by default on supported compilers without pymalloc Disable the specialized Python memory allocator pymalloc enabled by default See also PYTHONMALLOC environment variable without doc strings Disable static documentation strings to reduce the memory footprint enabled by default Documentation strings defin... | en | "WzAuMDAxNDkwNjcxODg2MTMxMTY3NCwwLjAwNTQzODkwNjYwNjI4Njc2NCwtMC4wOTQzMDIwMzU4NjgxNjc4OCwwLjA1Mjk2OTA1MzM4NzY0MTkxLC0wLjAwMzc4ODQyNDQyMjk2NDQ1MzcsLTAuMDgxNjQwNTc4ODA2NDAwMywtMC4wNDY0MzQ1ODUwMDUwNDQ5NCwwLjEyNDExOTMxOTAyMTcwMTgxLC0wLjEwMzMwNzc2ODcwMjUwNzAyLDAuMDAyNzA3MDEwODMzNTQ2NTE5MywtMC4wMTAxNzUzMjc3NzA0MTE5NjgsLTAuMDE... |
276 | ne Use editline library for backend of the readline module Define the WITH_EDITLINE macro New in version 3 10 without readline Don t build the readline module built by default Don t define the HAVE_LIBREADLINE macro New in version 3 10 with libm STRING Override libm math library to STRING default is system dependent wi... | en | "Wy0wLjA0MTE0NzI2MTg1Nzk4NjQ1LC0wLjA1MjM5ODc1NjE0NjQzMDk3LC0wLjA5NjA0MTkzMjcwMjA2NDUxLC0wLjA0MDM5MTE2NTc2MzEzOTcyNSwtMC4wMjgyNTc4NzEwNDY2NjIzMywtMC4wMTA0NTg1ODAyMTgyNTU1MiwtMC4wODA4MjYyMDc5OTU0MTQ3MywwLjA2NzE2NTg2NjQ5NDE3ODc3LC0wLjAyMjU0MDAyMzU1MDM5MTE5NywtMC4wNDgyMTgwMTE4NTYwNzkxLC0wLjAwNTA4NDE4MjYwMTQyMjA3MTUsMC4wNjk... |
277 | default 20 minutes make install Build and install Python make regen all Regenerate almost all generated files make regen stdlib module names and autoconf must be run separately for the remaining generated files make clean Remove built files make distclean Same than make clean but remove also files created by the confi... | en | "Wy0wLjA1ODI4MzU3ODYwNDQ1OTc2LDAuMDA2OTAyMjEyMjc3MDU0Nzg3LC0wLjEwOTY5MDE4MTkxMDk5MTY3LDAuMDQwMjk3NjA4ODIyNTg0MTUsMC4wNDEzMTAxMTY2NDg2NzQwMSwtMC4xMDYyNzQ5MDI4MjA1ODcxNiwtMC4wMTEzNTIwMjY4MzUwODM5NjEsMC4wNDE4NjYzNTQ2NDQyOTg1NSwtMC4wNzE1OTA4MTEwMTQxNzU0MiwtMC4wMTcxNDMxOTkyMjAyOTk3MiwwLjA3ODU4NzcwMzQwNjgxMDc2LC0wLjAyOTc0NjE... |
278 | uilding the interpreter object files Default PY_CFLAGS PY_CFLAGS_NODIST PY_CPPFLAGS CFLAGSFORSHARED New in version 3 7 PY_CORE_CFLAGS Default PY_STDMODULE_CFLAGS DPy_BUILD_CORE New in version 3 2 PY_BUILTIN_MODULE_CFLAGS Compiler flags to build a standard library extension module as a built in module like the posix mod... | en | "Wy0wLjA0MzE0ODY5MjY5NzI4NjYwNiwtMC4wNDQxMzcxODM1NzY4MjIyOCwtMC4xMDg1MTc0MDgzNzA5NzE2OCwwLjAzMDY1ODA1ODgyMjE1NSwwLjA0MTgyNjk0ODUyMzUyMTQyLC0wLjA0NzA4MDU1Nzc5MzM3ODgzLDAuMDIzMzcyMDU3ODI1MzI2OTIsMC4wNTA5OTkwMzQxOTYxMzgzOCwtMC4wOTUyNDMwNTkwOTg3MjA1NSwtMC4wNTY2ODM0ODA3Mzk1OTM1MDYsMC4wNjIyNzAxMTIzMzU2ODE5MTUsLTAuMDIyMzk1Mjc... |
279 | Logging Cookbook Author Vinay Sajip vinay_sajip at red dove dot com This page contains a number of recipes related to logging which have been found useful in the past For links to tutorial and reference information please see Other resources Using logging in multiple modules Multiple calls to logging getLogger someLogg... | en | "Wy0wLjAyNjIyNTMyMDk5NDg1Mzk3MywtMC4wNDY5NTYyNzgzODM3MzE4NCwtMC4wNzQ1Nzk4NjQ3NDAzNzE3LDAuMDUxNTQzMzc3MzM5ODM5OTM1LDAuMDIyMjI2MzU0MTA3MjYwNzA0LC0wLjEwNjU4NzczMDM0ODExMDIsMC4wNjY5NDc4MTc4MDI0MjkyLDAuMDU0MTk5MzI2NzgzNDE4NjU1LDAuMDIyMDQ3MjMwOTczODM5NzYsLTAuMDI4ODI0NjA1MDQ3NzAyNzksMC4wNDgzNDYxNjkyOTI5MjY3OSwtMC4wNDE1ODgzNjI... |
280 | m main 2512 Thread 1 Hi from myfunc 3009 MainThread Hello from main 3013 Thread 1 Hi from myfunc 3515 Thread 1 Hi from myfunc 3761 MainThread Hello from main 4017 Thread 1 Hi from myfunc 4513 MainThread Hello from main 4518 Thread 1 Hi from myfunc This shows the logging output interspersed as one might expect This appr... | en | "WzAuMDIxNjI3NDkxMzQwMDQxMTYsLTAuMDM1MjIxMzY0MzQ5MTI2ODE2LC0wLjAxNzUwNzMyMjEzMjU4NzQzMywwLjAyMjMzMTgxMTQ4NzY3NDcxMywtMC4wMzA2MDc5MzMxNzg1NDQwNDQsLTAuMDc5ODcwMDc0OTg3NDExNSwwLjAzNjczOTEyNTg0NzgxNjQ3LDAuMDU2NDI2MDU1NzI5Mzg5MTksLTAuMDMyNTU3NTQzMzY3MTQ3NDQ2LDAuMDQwMzc4MjMxNTU1MjIzNDY1LDAuMDIxMTQxMDA3NTQyNjEwMTcsLTAuMDQzNDU... |
281 | 0 22 22 19 myapp area1 DEBUG Quick zephyrs blow vexing daft Jim 10 22 22 19 myapp area1 INFO How quickly daft jumping zebras vex 10 22 22 19 myapp area2 WARNING Jail zesty vixen who grabbed pay from quack 10 22 22 19 myapp area2 ERROR The five boxing wizards jump quickly As you can see the DEBUG message only shows up i... | en | "WzAuMDM0MjQ2MTAxOTc1NDQwOTgsMC4wMzQ4MTQzOTEyODUxODEwNDYsLTAuMDY2Nzg5ODU4MDQzMTkzODIsLTAuMDMzNzE1NjU0MTY0NTUyNjksMC4wMjQ5NzIyNjE4NjA5NjY2ODIsLTAuMDY2ODU5MTcwNzk0NDg3LDAuMDk2OTcwOTAwODkzMjExMzYsMC4xMTg2Nzk2OTQ4MzEzNzEzMSwtMC4wMTc3NzIwMjA3NzIwOTk0OTUsMC4wNTYxMDc3OTY3Mjg2MTA5OSwwLjA3NDUwOTY2NTM2OTk4NzQ5LC0wLjA3NDI3NjQxNzQ... |
282 | tderr log ERROR An ERROR message CRITICAL A CRITICAL message stdout log INFO An INFO message WARNING A WARNING message Configuration server example Here is an example of a module using the logging configuration server import logging import logging config import time import os read initial config file logging config fil... | en | "WzAuMDAxMDM5MTkzNzEwMzEyMjQ3MywtMC4wNTg0NDc0NDI5NDg4MTgyMSwtMC4wNDI5MzYzMjg3OTg1MzI0ODYsMC4wMTMxOTIyMDg0ODM4MTUxOTMsMC4wMTU0NTczNDk4MjkzNzU3NDQsLTAuMTAwMjgwNzc2NjE5OTExMiwwLjA0NDk0ODk2MTU4NTc2MDEyLDAuMDYyNjk4NTgwMzI0NjQ5ODEsLTAuMDA5NjI5OTMzMTYzNTIzNjc0LDAuMDUyMjEyODAwODMwNjAyNjQ2LDAuMDMxNjkxMjQyMDA5NDAxMzIsLTAuMDI1NjI... |
283 | m async code network and even file handlers could lead to problems blocking the event loop because some logging is done from asyncio internals It might be best if any async code is used in an application to use the above approach for logging so that any blocking code runs only in the QueueListener thread Changed in ver... | en | "Wy0wLjAzMzQ3MDMwMjgyMDIwNTY5LC0wLjA0MDEwODgzNzE4NzI5MDE5LC0wLjAyMDA5ODAyODcwNDUyNDA0LDAuMDY2NjkyMzk2OTk4NDA1NDYsMC4wMDgxNjYzMTAzNzc0MTg5OTUsLTAuMTI0ODg3MDM0Mjk2OTg5NDQsMC4wNjU2MTIyMDQzNzI4ODI4NCwtMC4wNzgwOTU3Nzg4MjI4OTg4NiwwLjAxMDMzNzkwNzgyMDk0MDAxOCwwLjAwMTc4NzY4ODY5OTU1MDkyNjcsLTAuMDE2MzEwMDA0NTE3NDM2MDI4LDAuMDAxNDg... |
284 | inted on the console on the server side you should see something like About to start TCP server 59 root INFO Jackdaws love my big sphinx of quartz 59 myapp area1 DEBUG Quick zephyrs blow vexing daft Jim 69 myapp area1 INFO How quickly daft jumping zebras vex 69 myapp area2 WARNING Jail zesty vixen who grabbed pay from ... | en | "Wy0wLjAxMDI1MTk3NzQ4MDk0Nzk3MSwwLjAxODIzMjY5Mzg5NTY5NzU5NCwtMC4wMjA2MzE1NTM2MDUxOTg4NiwtMC4wNDE5NDk3NTY0NDM1MDA1MiwtMC4wODM2MDQ3MzA2NjU2ODM3NSwtMC4wNTQ4MzAxNzg2MTg0MzEwOSwwLjA3MTQyMTY5MDI4NTIwNTg0LDAuMDY3NDUyOTUyMjY1NzM5NDQsLTAuMDg0OTAzMzI5NjEwODI0NTgsMC4wNDc4MjI0MzQ0NTUxNTYzMjYsLTAuMDMxNzIyMTk5MTcxNzgxNTQsLTAuMDYxNTE... |
285 | ned to look like a Logger so that you can call debug info warning error exception critical and log These methods have the same signatures as their counterparts in Logger so you can use the two types of instances interchangeably When you create an instance of LoggerAdapter you pass it a Logger instance and a dict like o... | en | "Wy0wLjAwMjAwNzU3MDM1MDU0MjY2NDUsLTAuMDAyMzM4NjQ5NzA1MDUyMzc2LC0wLjAyNTEwOTE5NDIxOTExMjM5NiwwLjAyMDg0OTI0ODM5NDM3MDA4LDAuMDEzODg1MDkzODUyODc3NjE3LC0wLjA4MDczMzg4Nzg1MTIzODI1LDAuMTIwODM4OTc3Mzk2NDg4MTksMC4wNjQ4MTc0MTM2ODc3MDYsLTAuMDA0NTc5Nzg1NzQ1NTkwOTI1LDAuMDU1MDU5ODk4NjQ0Njg1NzQ1LDAuMDU1Mzk3NTQwMzMwODg2ODQsLTAuMDg5NDg... |
286 | P ip 15s User user 8s message s a1 logging getLogger a b c a2 logging getLogger d e f f ContextFilter a1 addFilter f a2 addFilter f a1 debug A debug message a1 info An info message with s some parameters for x in range 10 lvl choice levels lvlname logging getLevelName lvl a2 log lvl A message at s level with d s lvlnam... | en | "WzAuMDExNDI4NTIxOTQ2MDcyNTc4LDAuMDA0NzYwNTkzMTc1ODg4MDYxNSwtMC4wMDIwNjU2Mjk5MzExNjY3NjgsLTAuMDA3MDMwMTA0NzUyNjI5OTk1LDAuMDA1OTMxNjUzMDgyMzcwNzU4LC0wLjA2MTQyODI3MTIzNDAzNTQ5LDAuMDQ2ODg4NTkzNTg0Mjk5MDksLTAuMDEwNjUwOTA0ODQ5MTcxNjM4LC0wLjAxNTk5OTM4NjA4NzA1OTk3NSwwLjA0NjQxMDA3NjMyMDE3MTM1NiwwLjAxNjQxNDI2NDIxNzAxOTA4LC0wLjA... |
287 | message s Create our context variables These will be filled at the start of request processing and used in the logging that happens during that processing ctx_request ContextVar request ctx_appname ContextVar appname class InjectingFilter logging Filter A filter which injects context specific information into logs and... | en | "Wy0wLjAyMjIzNDQxNTYzNTQ2NjU3NiwtMC4wMDI2NzIzMzg4NTgyNDY4MDMzLC0wLjAzNjU5NTUyMzM1NzM5MTM2LC0wLjAzMzI4MzIzNzM2Nzg2ODQyLC0wLjAzOTk3MTkwMjk2NjQ5OTMzLC0wLjEwNTQ5Nzk0MTM3NDc3ODc1LDAuMTY1MTIyOTU2MDM3NTIxMzYsLTAuMDA2MzI5OTY1Nzc3Njk1MTc5LC0wLjAyMTAwMTI5Nzk4MDU0Njk1LDAuMDQ0NDg1OTg2MjMyNzU3NTcsLTAuMDA3ODYxMDI2NTYyNzUwMzQsLTAuMDU... |
288 | t app2 webapplib jim 192 168 2 20 GET Hello from webapplib Thread 3 process_request app1 webapplib jim 192 168 3 21 POST Hello from webapplib Thread 4 process_request app2 __main__ fred 192 168 2 22 GET Request processing started Thread 5 process_request app1 __main__ jim 192 168 3 21 POST Request processing started Th... | en | "Wy0wLjAyNzA1MjA0MTE0MzE3ODk0LC0wLjAyODMwMDQ5OTU0MzU0NzYzLC0wLjAzMzM0NTA4MDkxMjExMzE5LC0wLjA0MDgxNjA5NDcyNjMyNDA4LC0wLjAzMjg2MDMyMzc4NjczNTUzNSwtMC4wODkwMzExNTI0MjcxOTY1LDAuMDkyMDU1MTI3MDI0NjUwNTcsLTAuMDIyNzU2NzM2NzI1NTY4NzcsLTAuMDA5MDQzOTY0NTU3MzQ5NjgyLDAuMDQxMzUzNzYyMTQ5ODEwNzksMC4wMDkyMjY3MjE3MTE0NTY3NzYsLTAuMDMzMDk... |
289 | to avoid sending events which would be filtered out between processes The size of the rotated files is made small so you can see the results easily def listener_configurer root logging getLogger h logging handlers RotatingFileHandler mptest log a 300 10 f logging Formatter asctime s processName 10s name s levelname 8s... | en | "Wy0wLjAxMDA2MjIyMzMwMDMzNzc5MSwtMC4wMzcxNDIyOTE2NjUwNzcyMSwtMC4wODY1MjUyMDE3OTc0ODUzNSwwLjAwMDQ3MjYzMzEwOTg5MzY0OTgsMC4wMTg4MjMxNDQ5NTc0MjMyMSwtMC4wOTExNTg1MzkwNTY3Nzc5NSwwLjA4MDYzNjcyNDgyOTY3Mzc3LDAuMDA3NTQ1NDY3NDY2MTE1OTUxNSwwLjAwODg1OTI0ODgzMTg2ODE3MiwwLjA3NTEwMjM1OTA1NjQ3Mjc4LDAuMDM1NzA3NTc4MDYzMDExMTcsMC4wNTU2Njk... |
290 | o some useful work of its own Once it s done that it can wait for the workers to terminate for wp in workers wp join And now tell the logging thread to finish up too q put None lp join This variant shows how you can e g apply configuration for particular loggers e g the foo logger has a special handler which stores all... | en | "Wy0wLjAxNDgyODM3ODMzNDY0MTQ1NywtMC4wMzU0MjE5NjM3ODExMTgzOSwtMC4wMDA4MTc0MTIwNDQ4NTI5NzIsLTAuMDEzOTAyMzE0OTM4NjA0ODMyLC0wLjA0MDg0NTU0MzE0NjEzMzQyLC0wLjA3MTY5ODI0ODM4NjM4MzA2LDAuMDI3ODczOTI0MDAyMDUxMzUzLC0wLjA0MTc1MDAxNzU1MzU2Nzg4NiwtMC4wMTc3OTE5NjU5NzYzNTc0NiwwLjAwOTUwMzY5MzMxOTg1NzEyLC0wLjA2ODg5NTI2NTQ2MDAxNDM0LC0wLjA... |
291 | yle parameter you get the ability to specify format strings which work with str format or string Template Here s an example console session to show the possibilities import logging root logging getLogger root setLevel logging DEBUG handler logging StreamHandler bf logging Formatter asctime name levelname 8s message sty... | en | "WzAuMDI0NDg1ODQ4ODQ0MDUxMzYsLTAuMDUyMzY4NDg4MTYyNzU1OTY2LC0wLjAyNDUxMjkyMjM5MTI5NTQzMywtMC4wMTAxNDEwOTYwNzc4NTk0MDIsMC4wNDQyMzI5MTk4MTIyMDI0NTQsLTAuMDE2Mjg5NzcyNDY1ODI1MDgsMC4wMzIyODI3ODA4NTU4OTQwOSwwLjA1NjcwMzExMzAxOTQ2NjQsLTAuMDIwODY5ODE1NzIyMTA3ODg3LDAuMDI1MzAzMDM0MTExODU3NDE0LDAuMDE0MTQ1MDE4NTMyODcyMiwtMC4wNDQ4MzA... |
292 | which might trip you up is that the parentheses go around the format string and the arguments not just the format string That s because the __ notation is just syntax sugar for a constructor call to one of the XXX Message classes If you prefer you can use a LoggerAdapter to achieve a similar effect to the above as in t... | en | "WzAuMDAzMTgxNjk3ODAwNzU1NTAxLDAuMDA5NDQ4NDI1ODQ0MzExNzE0LDAuMDEwMDMyMjU0MjcxMjA5MjQsMC4wMzY2NDAyNjAzNjg1ODU1OSwtMC4wMTI5ODk1OTczOTUwNjI0NDcsLTAuMTQxNDIwMzk0MTgyMjA1MiwwLjA5NDgyMDY2MzMzMjkzOTE1LDAuMDYzODIyMDM4NDcxNjk4NzYsLTAuMDMxNjEzNjQ3OTM3Nzc0NjYsMC4wMjY4MTM5NDY2NjQzMzMzNDQsMC4wMjU1Nzg0MzM2NDc3NTE4MDgsLTAuMDI0NjM2ODE... |
293 | mind that each link in the chain adds run time overhead to all logging operations and the technique should only be used when the use of a Filter does not provide the desired result Subclassing QueueHandler a ZeroMQ example You can use a QueueHandler subclass to send messages to other kinds of queues for example a Zero... | en | "Wy0wLjA0ODQ3Nzc2MTQ0NzQyOTY2LDAuMDI5NDMxMjA1MjQyODcyMjM4LC0wLjA0MDQ5NDUwMTU5MDcyODc2LDAuMDY0NzE2NjUyMDM1NzEzMiwtMC4xMTAzNDQzNjUyMzkxNDMzNywtMC4wOTQ1ODkzNTI2MDc3MjcwNSwwLjA1NzUwMDk4NDUxOTcyMDA4LC0wLjA1ODg1ODExMTUwMDc0MDA1LDAuMDIwMTI3NDc4OTg2OTc4NTMsMC4wMDA2MDAxOTc5MzQ1NDU1NzY2LDAuMDAxNzEzNTQ4OTAzMzUzNTEyMywwLjAxMDUxNzA... |
294 | mple but serve to illustrate how more complex ones could be implemented in a real multiprocessing scenario In the example the main process spawns a listener process and some worker processes Each of the main process the listener and the workers have three separate configurations the workers all share the same configura... | en | "Wy0wLjA2NzgxNTI3NDAwMDE2Nzg1LC0wLjA4NTE3NDI0NzYyMjQ4OTkzLC0wLjA3NjQ0OTk1MzAxOTYxODk5LC0wLjAyMjUxOTA1MjAyODY1NjAwNiwtMC4wMTkwODk0NDE3NDY0NzMzMTIsLTAuMDkxNTA2ODkwOTUyNTg3MTMsMC4xMjg4MDIwMTYzNzc0NDkwNCwtMC4wMDk1Mjg0NTA2Njc4NTgxMjQsLTAuMDEwMzY0MjQ3NDg1OTk1MjkzLDAuMDU0OTAyNDY3ODc2NjcyNzQ1LC0wLjA0NDIwNDExOTU5MjkwNTA0NSwwLjA... |
295 | because the logger will be there in the child following a fork config_worker version 1 disable_existing_loggers True handlers queue class logging handlers QueueHandler queue q root handlers queue level DEBUG The listener process configuration shows that the full flexibility of logging configuration is available to dis... | en | "WzAuMDI3MzY2NDY4NjgyODg1MTcsLTAuMDE3OTIxMjg5NDI5MDY4NTY1LDAuMDQyNzg3Mzg3OTY3MTA5NjgsLTAuMDIxNzM3NzA1OTE2MTY2MzA2LDAuMDQ0NzAxODA3MjAwOTA4NjYsLTAuMDU3NjIyMTI3MjM0OTM1NzYsMC4wODIyMTIwODMwNDE2Njc5NCwtMC4wMTAwNTc1MDcwODI4MTk5MzksMC4wMTYxMzAxOTc3OTMyNDUzMTYsMC4wOTEyODMyOTE1NzgyOTI4NSwwLjA0MjExNTc0MDQ3ODAzODc5LDAuMDA2MDk5NjQ... |
296 | d by a program without needing complex regular expressions to parse the log message This is straightforward to achieve using the logging package There are a number of ways in which this could be achieved but the following is a simple approach which uses JSON to serialise the event in a machine parseable manner import j... | en | "Wy0wLjAwMDk2MDUxNTkyODQ1NDY5NzEsMC4wMDkyOTE4NjMwNjg5MzgyNTUsMC4wNTE0MTAyMjA1NjM0MTE3MSwtMC4wMjM0NTk3OTAyNzQ1MDA4NDcsLTAuMDY5NTcwNDc0MzI2NjEwNTcsLTAuMDcwMTMzMjYxMzgyNTc5OCwwLjAzMzUyMTA4OTcwMjg0NDYyLC0wLjAxODYyNjc0NzY1Mjg4ODI5OCwwLjAxMjc5MjYxMjQyNTk4Mjk1MiwwLjAxMjQ0OTk2MjA4Njk3NTU3NCwtMC4wMTE3NzA1MjUwMTU4OTA1OTgsMC4wMzE... |
297 | 1 pulse pulse 55 2013 11 05 09 34 chowntest log Note that this example uses Python 3 3 because that s where shutil chown makes an appearance This approach should work with any Python version that supports dictConfig namely Python 2 7 3 2 or later With pre 3 3 versions you would need to implement the actual ownership c... | en | "Wy0wLjA4MDI3ODQxMTUwNzYwNjUsMC4wMDczOTk5OTUzNDU2MjIzMDEsLTAuMDAyNDc3NDg3MzE2MzU1MTA5LC0wLjAyODE2NTY3MzgzNzA2NTY5NywtMC4wMTI0ODc3Nzg0NDAxMTc4MzYsLTAuMTIyODQyOTg5ODYxOTY1MTgsMC4wODcxODk5MTI3OTYwMjA1MSwwLjA0NTQ4NjkzMDc1Nzc2MSwtMC4wNTg1ODA0MDYwMTAxNTA5MSwwLjAwMDgyNDI2NTg4MDUxMDIxMSwwLjA0OTIxNTc4OTg4NDMyODg0LC0wLjA1NjY3OTA... |
298 | t self args args self kwargs kwargs def __str__ self return self fmt format self args self kwargs class DollarMessage def __init__ self fmt kwargs self fmt fmt self kwargs kwargs def __str__ self from string import Template return Template self fmt substitute self kwargs Either of these can be used in place of a format... | en | "WzAuMDM4MTY0Mzk5NTY0MjY2MjA1LDAuMDg3NTIzNDQ1NDg3MDIyNCwtMC4wMjY2NDUxODE3MDA1ODcyNzMsMC4wMTAxMjU3NjA5MjAzNDU3ODMsLTAuMDM3MDEwOTkwMDgzMjE3NjIsLTAuMDM0MzEyNzM2MjQzMDA5NTcsMC4wODY2MDMwMDA3NjAwNzg0MywwLjA1MDkxNzY0MDMyODQwNzI5LC0wLjAwMTg1NzQzNDM5OTQyNTk4MzQsLTAuMDE4NTEzMjc1MzEwMzk3MTQ4LDAuMDAxMzU2NjM4ODUxNTc1NTUzNCwtMC4wMTc... |
299 | ionFormatter logging Formatter def formatException self exc_info Format an exception so that it prints on a single line result super formatException exc_info return repr result or format into one line however you want to def format self record s super format record if record exc_text s s replace n return s def configur... | en | "WzAuMDAyODc1NDc5NjM2NzEzODYyNCwwLjA1MDk2NTM4MzY0ODg3MjM3NSwtMC4wNDI2MzQ4Mjk4Nzg4MDcwNywwLjAyMDA1MTI4MDAzNjU2ODY0LC0wLjAwNzk1MDczNTI3ODQyNzYsLTAuMDY2OTIxMTA3NDcwOTg5MjMsMC4wMzc2ODQ2NTY2Nzk2MzAyOCwwLjEwMzY0NTA5MzczOTAzMjc1LC0wLjA0MzQ2MzI4OTczNzcwMTQxNiwwLjA3NzgwNDA0Mzg4OTA0NTcyLDAuMDUzOTY5NDkxMjczMTY0NzUsLTAuMDM4MDA3MDg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.