id int64 0 2.72k | content stringlengths 5 4.1k | language stringclasses 4
values | embedding unknown |
|---|---|---|---|
100 | optparse Parser for command line options Source code Lib optparse py Deprecated since version 3 2 The optparse module is deprecated and will not be developed further development will continue with the argparse module optparse is a more convenient flexible and powerful library for parsing command line options than the o... | en | "Wy0wLjAyMzU1ODgxNDA3ODU2OTQxMiwwLjAwODAzNTU5MzY2NjEzNjI2NSwtMC4wNzExMzg3ODQyODkzNjAwNSwwLjA2MDIwNDY2NjEwNzg5Mjk5LC0wLjA2MjE0MzAzMTUwNzczMDQ4NCwtMC4wMzYwOTgzMTYzMTE4MzYyNCwwLjEwMTQwMTA5ODA3MjUyODg0LDAuMTIwOTM5NjY0NTQyNjc1MDIsLTAuMDcyMzQ4ODcwMzM3MDA5NDMsMC4wMDMwMDM4NTA4MTIwOTI0MjM0LDAuMDUwNTgzNTQxMzkzMjgwMDMsMC4wMDU5MjY... |
101 | n argument that follows an option is closely associated with that option and is consumed from the argument list when that option is With optparse option arguments may either be in a separate argument from their option f foo file foo or included in the same argument ffoo file foo Typically a given option either takes an... | en | "Wy0wLjAxNTYxOTU4NTI5MDU1MTE4NiwwLjAxNTIyNjE0ODA2ODkwNDg3NywtMC4wNTI1OTQ4ODUyMzAwNjQzOSwwLjA0MjE2MzY5NjE0MDA1MDg5LC0wLjAxMDU4MDA4MzM1NTMwNzU3OSwwLjAyMzU0NDE2MDY0OTE4MDQxMiwwLjA5MjEyNTg3MDI4NzQxODM3LDAuMDU1MTkyMjMyMTMxOTU4MDEsMC4wNDI3NTcxNjA5NjE2Mjc5NiwtMC4wMzEyNjQxMTg4NTAyMzExNywwLjAyNDMzNzM1MTMyMjE3NDA3MiwtMC4wMTY0ODI... |
102 | tain Tutorial While optparse is quite flexible and powerful it s also straightforward to use in most cases This section covers the code patterns that are common to any optparse based program First you need to import the OptionParser class then early in the main program create an OptionParser instance from optparse impo... | en | "Wy0wLjAyMTc0MzgxMzUyOTYxMDYzNCwwLjAwMDIwOTQ4OTYzMzU2MjA0MzMsLTAuMDUyMzEwNjU2NzU2MTYyNjQsMC4wMjM3OTYwOTA4NTYxOTQ0OTYsLTAuMDc1NTc4Mjk0Njk0NDIzNjgsLTAuMDE1Mjc1MTQ5NjA2MTY4MjcsMC4wODE5MjkwODc2Mzg4NTQ5OCwwLjEyMjQzMTM4OTk4NzQ2ODcyLC0wLjA4MDAwMjI0ODI4NzIwMDkzLC0wLjAyMjQ3NzM1MTEyOTA1NTAyMywwLjA3MzQ4NzUyMDIxNzg5NTUxLC0wLjAzMjk... |
103 | ptions Flag options set a variable to true or false when a particular option is seen are quite common optparse supports them with two separate actions store_true and store_false For example you might have a verbose flag that is turned on with v and off with q parser add_option v action store_true dest verbose parser ad... | en | "Wy0wLjAxOTQ5MTg0MDE1MzkzMjU3LC0wLjA0MzIyMjAxMzg2MDk0MDkzLC0wLjA4Mzk2OTk4NzkyODg2NzM0LDAuMDg0MTQ5OTExOTk5NzAyNDUsLTAuMDk0NTE4NTQyMjg5NzMzODksMC4wNjgyODc2MjU5MDg4NTE2MiwwLjA3MjUyMzgxNzQyMDAwNTgsMC4wMDA5MDAzMTI2MTc4ODY4MTE1LDAuMDI4MzU1NTcyMzcyNjc0OTQyLDAuMDQzODgxMTc3OTAyMjIxNjgsMC4xMjI1NTQ4ODMzNjA4NjI3MywtMC4wMjM0ODA4NjQ... |
104 | rrent program i e os path basename sys argv 0 The expanded string is then printed before the detailed option help If you don t supply a usage string optparse uses a bland but sensible default Usage prog options which is fine if your script doesn t take any positional arguments every option defines a help string and doe... | en | "WzAuMDA0NTkzMzgzOTg2NTAyODg2LDAuMDkwMjQxNzk3MjY4MzkwNjYsLTAuMDQ1MTcwNDgyMjQ4MDY3ODU2LDAuMDU0MzYzMDI3MjE1MDAzOTcsMC4wMDcyNTE1MDAxNTIwNTE0NDksMC4wMDQwMjIxMjM3NTc3NDk3OTYsMC4xMTI1NDQwNTk3NTM0MTc5NywwLjE4NTI5NDk0MTA2NzY5NTYyLC0wLjA3MzcxMjUyNzc1MTkyMjYxLDAuMDEzMTc0MTMwNTgxMzE5MzMyLDAuMDIzMjE0NzY2NzU1NzAwMTEsLTAuMDEwNjI4NTg... |
105 | ug Print debug information s sql Print all SQL statements executed e Print every action done Another interesting method in particular when working programmatically with option groups is OptionParser get_option_group opt_str Return the OptionGroup to which the short or long option string opt_str e g o or option belongs ... | en | "WzAuMDMyNDcwMTI1NzA1MDAzNzQsMC4wMjE2NzYwNzI4NTA4MjM0MDIsLTAuMDQ5ODU0NDQyNDc3MjI2MjYsMC4wNDkyMTM1OTU2ODgzNDMwNSwtMC4wMTQ0NDQzOTg2OTM3NDAzNjgsLTAuMDQ5MTA1ODQ5MTE3MDQwNjM0LDAuMDYzMjAwMTYwODYxMDE1MzIsMC4wNTgzOTI5MDQ2OTg4NDg3MjQsLTAuMDY5OTk3ODM5NjI5NjUwMTIsMC4wMDI1NjQzNjgwNzEwMzQ1NTA3LDAuMDU1NjA4OTkxNTMzNTE3ODQsLTAuMDM1Njc... |
106 | r program is run incorrectly or with a help option When optparse prints the usage string it expands prog to os path basename sys argv 0 or to prog if you passed that keyword argument To suppress a usage message pass the special value optparse SUPPRESS_USAGE option_list default A list of Option objects to populate the p... | en | "WzAuMDE5ODQyMjAxODQzODU3NzY1LC0wLjAxNjE1ODU2Nzc0MTUxMzI1MiwtMC4wMjk3NjY3OTA1Njg4Mjg1ODMsMC4wMjk3NzI4NjQ2NTQ2NjAyMjUsMC4wNTU3NjU1NTA1ODM2MDEsLTAuMDEwNDEwOTI5MDk4NzI1MzE5LDAuMDU0MzY0MTY3MTUzODM1MywwLjA4Nzk1NjQ0MzQyODk5MzIzLC0wLjA5Mzc0Njg3MDc1NjE0OTI5LDAuMDAyNzI2MjIxOTIyNzg1MDQzNywwLjA1MDk0NDI3MjQyODc1MDk5LC0wLjAwNDQ3OTA... |
107 | nd a constant value to a list pre set via Option const count increment a counter by one callback call a specified function help print a usage message including all options and the documentation for them If you don t supply an action the default is store For this action you may also supply type and dest option attribute... | en | "Wy0wLjA2NTgwMjMyMDgzNzk3NDU1LC0wLjAwNDM4MDgwNjgxNDg3OTE3OSwtMC4wNTg4MjA5ODUyNTc2MjU1OCwwLjA3MTM3MTMzMTgxMDk1MTIzLC0wLjA4ODY2Njk5Nzg0OTk0MTI1LDAuMDAzMjMxMjMzMjE4Njg0NzkyNSwwLjEzMTE4ODU1NjU1MTkzMzMsMC4wNzc1Mjk1ODY4NTE1OTY4MywtMC4wMDk2NjAwNzcyODEyOTYyNTMsLTAuMDEzMTk4MjAxNTQ0NTgyODQ0LDAuMDM2OTkzMzM1OTMyNDkzMjEsLTAuMDMyMTQ... |
108 | pe dest nargs choices The option must be followed by an argument which is converted to a value according to type and stored in dest If nargs 1 multiple arguments will be consumed from the command line all will be converted according to type and stored to dest as a tuple See the Standard option types section If choices ... | en | "Wy0wLjAwMjg1NDk3NDcwNzU4ODU1MzQsLTAuMDI5Mzg5NjE5ODI3MjcwNTA4LDAuMDA0MzU0MzIwNDY2NTE4NDAyLDAuMDE3MjUyNjU3NTYyNDk0Mjc4LC0wLjA2NzQ1OTk0MDkxMDMzOTM2LC0wLjAwNDc2MTY4NzAxNDI1MTk0NywwLjA5NjUwOTYzNTQ0ODQ1NTgxLDAuMDY3MTUxMDkxOTkyODU1MDcsLTAuMDA4MTAwNzkzNjk2OTM5OTQ1LDAuMDE2NjMxNzkzMjMwNzcyMDIsMC4wMTI5MjI1MzY1ODE3NTQ2ODQsLTAuMDc... |
109 | g the add_help_option argument parser OptionParser add_help_option False parser add_option h help action help parser add_option v action store_true dest verbose help Be moderately verbose parser add_option file dest filename help Input file to read data from parser add_option secret help SUPPRESS_HELP If optparse sees ... | en | "Wy0wLjAwNjIwMTM2Njg5Mzk0NzEyNDUsLTAuMDAxMjQ1ODQzNzEyMjQwNDU3NSwtMC4wMzc0MzgyOTIwNTYzMjIxLDAuMDM1OTEwMDMyNjg5NTcxMzgsMC4wMjAyMTQ4NDI2MzI0MTI5MSwwLjAwNTE5NjU5NTA5ODgyMzMwOSwwLjAyNTMyMzk3NTgzMTI3MDIxOCwwLjEwMDg0NjQ2OTQwMjMxMzIzLC0wLjA4MDQ1NzU4MzA2OTgwMTMzLC0wLjAyMjI1NDY3OTM1MjA0NTA2LDAuMDYyNzYxMjk5MzEyMTE0NzIsLTAuMDEyMDY... |
110 | nd which has options of its own and you want to make sure these options don t get confused For example each command might have a different set of options OptionParser enable_interspersed_args Set parsing to not stop on the first non option allowing interspersing switches with command arguments This is the default behav... | en | "Wy0wLjAzMzM5ODkwMDE4MTA1NTA3LC0wLjAyMTc3MzczODc4NjU3ODE4LDAuMDIyNTI0NDY4NjAwNzQ5OTcsMC4wMjc5MTUyOTcwNzYxMDYwNywtMC4wNjM2NjIyMDExNjYxNTI5NSwtMC4wMzczMjM4NjIzMTQyMjQyNCwwLjA2MDQ4MTAxOTMxODEwMzc5LC0wLjAyOTQ2MzA3NTEwMTM3NTU4LC0wLjAzNDU1MjUwMzM3NzE5OTE3LC0wLjA1Mzc1NjMzNzYxMjg2NzM1NSwwLjA3MTcwNzA1NDk3MjY0ODYyLC0wLjA1NjI0MjQ... |
111 | l mode options all set the same destination any one of them can set the default and the last one wins parser add_option advanced action store_const dest mode const advanced default novice overridden below parser add_option novice action store_const dest mode const novice default advanced overrides above setting To avoi... | en | "Wy0wLjAxNjIxODU4MDMwNTU3NjMyNCwtMC4wODAxNzU5OTU4MjY3MjExOSwtMC4wMTQ1NTAwODk4MzYxMjA2MDUsMC4wNTk4MDQyODMwODI0ODUyLC0wLjEwMjUyNDU0MTMxODQxNjYsMC4wMzUwMTI5MjY5MDYzNDcyNzUsMC4wMzQwMDExOTM5NDA2Mzk0OTYsMC4wNzkwNjY5MDIzOTkwNjMxMSwtMC4wODAzOTY1MDMyMTAwNjc3NSwwLjAwOTk5MDI2ODM4NjkwMDQyNSwwLjA3MzE5NzAyOTUzMTAwMjA0LDAuMDEyOTg1MDE... |
112 | only the arguments following them still there Feel free to modify parser rargs e g by consuming more arguments parser values the object where option values are by default stored an instance of optparse OptionValues This lets callbacks use the same mechanism as the rest of optparse for storing option values you don t ne... | en | "Wy0wLjA0NzA5NzkyMTM3MTQ1OTk2LDAuMDAyNDE0NDI4NjI4OTgxMTEzNCwtMC4wMzM5MjE0NTAzNzY1MTA2MiwwLjA3NjA3NjgyMDQ5Mjc0NDQ1LC0wLjAzOTY1NTAzMzQ5OTAwMjQ2LC0wLjA1NzEzOTg5OTU4MTY3MDc2LDAuMDUxMDY4NTQwNjYyNTI3MDg0LDAuMDU2NDc5NjQwMzA1MDQyMjcsLTAuMDAwMDM5NjI1NTIzNjQxMDA3MDIsLTAuMDM4MjcwMjMxMzM2MzU1MjEsMC4wMzQ2MTgyODgyNzg1Nzk3MSwtMC4wMTg... |
113 | implement the conventional rules for bare and arguments either or can be option arguments bare if not the argument to some option halt command line processing and discard the bare if not the argument to some option halt command line processing but keep the append it to parser largs If you want an option that takes a v... | en | "Wy0wLjAyNTQ5NTIxOTk3NTcwOTkxNSwtMC4wMDIxNzY4NjY0MDA5ODY5MSwtMC4wNjQwMzY2MDc3NDIzMDk1NywwLjAxODU5NzI5NzM3MDQzMzgwNywtMC4wNzk1MzMzNjgzNDkwNzUzMiwtMC4wNDMxMTk5MDM2NTM4NjAwOSwwLjAxOTQ4Njc4MzA3MjM1MjQxLDAuMDQ3NDE1NzgxNzY2MTc2MjI0LC0wLjA1MDExNDIxODE0NTYwODksLTAuMDA5Njc2OTA5MDc0MTg3Mjc5LDAuMDE1MzE2MjU1MzkwNjQ0MDczLC0wLjAyMzM... |
114 | w actions Adding new actions is a bit trickier because you have to understand that optparse has a couple of classifications for actions store actions actions that result in optparse storing a value to an attribute of the current OptionValues instance these options require a dest attribute to be supplied to the Option c... | en | "Wy0wLjA0MTc0ODE4ODQzNjAzMTM0LC0wLjA5NDExMzY4NTE5MDY3NzY0LC0wLjAyMzAyOTIyMzA4NDQ0OTc2OCwwLjA2MjkyODg3MDMyMDMyMDEzLC0wLjA0MTcyODY2MDQ2NDI4NjgwNCwwLjA2MTY2MTQ1OTUwNTU1ODAxNCwwLjExNDY5NTgzMjEzMzI5MzE1LDAuMDMyMTY4NTAzODUwNjk4NDcsMC4wMDE5Nzg1MzE3MTI2NjYxNTQsMC4wODE4MzAwOTE3NzQ0NjM2NSwwLjA2NzYyODU5MjI1MjczMTMyLC0wLjAzMDUwNTQ... |
115 | What s New In Python 3 10 Editor Pablo Galindo Salgado This article explains the new features in Python 3 10 compared to 3 9 Python 3 10 was released on October 4 2021 For full details see the changelog Summary Release highlights New syntax features PEP 634 Structural Pattern Matching Specification PEP 635 Structural P... | en | "Wy0wLjEyMDI5NDM0NzQwNTQzMzY1LC0wLjA0NDA1NDEzOTQwNTQ4ODk3LC0wLjAyMDY0NjYyOTg1NTAzNjczNiwwLjAwMzIwNjQxMTYwOTQyNjE0MSwwLjAyNzEwMzU4NDI1OTc0ODQ2LC0wLjA1MDYzMzczNTk1NDc2MTUwNSwtMC4wNTg4NTY2MjUxMDk5MTA5NjUsMC4wNTc3MTg3OTQ3OTI4OTA1NSwtMC4wNjcwOTM5MDg3ODY3NzM2OCwtMC4wMTkwNTk1ODkxMzI2NjY1ODgsMC4wMDQyODcxNjk3ODA1ODIxODk2LDAuMDE... |
116 | 4 SyntaxError did you forget parentheses around the comprehension target Contributed by Pablo Galindo in bpo 43017 Missing commas in collection literals and between expressions items x 1 y 2 z 3 File stdin line 3 y 2 SyntaxError invalid syntax Perhaps you forgot a comma Contributed by Pablo Galindo in bpo 43822 Multipl... | en | "WzAuMDAyMDY5MDMwODg4Mzc4NjIsLTAuMDI5NDY0MDE3NTk5ODIxMDksMC4wMjA0Nzc1MzcwNjU3NDQ0LC0wLjAzNTAyMTgyMjg5OTU4LDAuMDEzNzY0MzUyNTM3NjkxNTkzLC0wLjA0NjM3MjIwNTAxODk5NzE5LDAuMDA0ODU2MDY1MzgxMzE4MzMxLDAuMDE1NDk0OTA4MjA2MTY0ODM3LC0wLjAzNTM5NDk3NDA1MjkwNjAzNiwwLjA2NzM2NTk1MTgzNjEwOTE2LDAuMDI4MTAwMzY1NzcyODQzMzYsLTAuMDM5NTU1MTkxOTk... |
117 | se pattern_3 action_3 case _ action_wildcard A match statement takes an expression and compares its value to successive patterns given as one or more case blocks Specifically pattern matching operates by 1 using data with type and shape the subject 2 evaluating the subject in the match statement 3 comparing the subject... | en | "Wy0wLjA4MDY4MTA2MzIzNDgwNjA2LDAuMDQ1ODYxNzY1NzQyMzAxOTQsMC4wNzExNjc2MzI5Mzc0MzEzNCwtMC4wMzc4NDA1MDQxOTkyNjY0MzQsMC4wMjI5NjkwNzY0MDk5MzU5NSwtMC4wNTU2MTQ1Mzg0OTA3NzIyNSwwLjAyMDQwMjU5NzI2MzQ1NTM5LDAuMDAyNTgwODYwMzk2ODQ3MTI5LDAuMDI4MzQ0NjYwOTk3MzkwNzQ3LDAuMDA5NjQ5MzgwMTEwMjA0MjIsLTAuMDM5MDExOTIxNzMzNjE3NzgsLTAuMDM1ODI2MjU... |
118 | ariables class Point x int y int def location point match point case Point x 0 y 0 print Origin is the point s location case Point x 0 y y print f Y y and the point is on the y axis case Point x x y 0 print f X x and the point is on the x axis case Point print The point is located somewhere else on the plane case _ pri... | en | "Wy0wLjAwNzQwOTE4NTE3MTEyNzMxOSwtMC4wMjM2NjU0OTUyMTY4NDY0NjYsLTAuMDMxNjEwOTEzNTc0Njk1NTksLTAuMDg2MjY3NjU3NTc3OTkxNDksLTAuMDAxMTgxNDg0MzE2NDc1Njg5NCwwLjAwMzQzODg3NTc3NzY0Njg5OTIsMC4wNTc1MTk0NzMxMzU0NzEzNDQsLTAuMTE0OTk2MTEyODgzMDkwOTcsLTAuMDMyMDkwOTA2MDUzNzgxNTEsLTAuMDQ3MTI1NjUyNDMyNDQxNzEsMC4wMjk2ODI3MDE0NTM1NjY1NSwwLjA... |
119 | AULTENCODING are added to enable the warning See Text Encoding for more information New Features Related to Type Hints This section covers major changes affecting PEP 484 type hints and the typing module PEP 604 New Type Union Operator A new type union operator was introduced which enables the syntax X Y This provides ... | en | "Wy0wLjA1MjgzOTAzNzAzMDkzNTI5LDAuMDExMjUxNDk0Mjg4NDQ0NTE5LC0wLjAwNTAwMjA5Mzk2NzA1MDMxNCwwLjAzMTgwMTc4MjU0ODQyNzU4LC0wLjAyODY5NTk4MDA4NjkyMjY0NiwwLjAyMjg1OTI0OTI2NDAwMTg0NiwwLjA5OTI4MDI0NTYwMjEzMDg5LDAuMDc4MzU4MjI1NTI0NDI1NSwtMC4wNjAxOTAyMzQzMzMyNzY3NSwtMC4wNTYxNDI4ODg5NjMyMjI1MDQsLTAuMDMzMTI2MzY1MzkzNDAwMTksLTAuMDM3MzM... |
120 | ithin set literals and set comprehensions as well as in sequence indexes but not slices Functions have a new __builtins__ attribute which is used to look for builtin symbols when a function is executed instead of looking into __globals__ __builtins__ The attribute is initialized from __globals__ __builtins__ if it exis... | en | "Wy0wLjExMTkzNjc4NTI4MDcwNDUsLTAuMDAyNzgwNDYxNjgzODY5MzYyLC0wLjAzNzM4ODU4OTIzMzE2MDAyLDAuMDM1Mzg0ODMzODEyNzEzNjIsLTAuMDU3MjI2NjkxMzk1MDQ0MzMsLTAuMDEzNzI3Mzc1MzA2MTg5MDYsMC4wMDYwNjcwMTMzNjgwMTA1MjEsMC4wNjAzNDIwNjU5ODk5NzExNiwtMC4wNjM4NjI4MDgwNDg3MjUxMywtMC4wMTExMDAyMDY1MjQxMzM2ODIsMC4wMTMxODA4NTU2NjE2MzA2MywtMC4wMzExODQ... |
121 | collections abc Callable type Note that a TypeError may be raised for invalid forms of parameterizing collections abc Callable which may have passed silently in Python 3 9 Contributed by Ken Jin in bpo 42195 contextlib Add a contextlib aclosing context manager to safely close async generators and objects representing a... | en | "Wy0wLjA5MDY1NTEzMzEyODE2NjIsLTAuMDAxODMxOTA5MjkyMzc3NTMxNSwtMC4wOTgyNDAxODkyNTQyODM5LDAuMDcwMjA3NTUxMTIxNzExNzMsLTAuMDQyNjA4MzkxNDkzNTU4ODg0LDAuMDE2NTE3MTY3OTEwOTMzNDk1LDAuMDQ4ODU5NTEwNTcwNzY0NTQsLTAuMDE3MDkyMTkyNTQ1NTMzMTgsLTAuMDM3MTEzODQ1MzQ4MzU4MTU0LC0wLjA3NDQ2NDY3ODc2NDM0MzI2LC0wLjA0NjMyMTc2ODMxMzY0NjMxNywtMC4wMzg... |
122 | ted by Victor Stinner in bpo 44466 gc Add audit hooks for gc get_objects gc get_referrers and gc get_referents Contributed by Pablo Galindo in bpo 43439 glob Add the root_dir and dir_fd parameters in glob and iglob which allow to specify the root directory for searching Contributed by Serhiy Storchaka in bpo 38144 hash... | en | "Wy0wLjA4NDY0MDQ2NTY3Njc4NDUyLDAuMDEyMjUzMDM4NTg1MTg2MDA1LC0wLjA4ODcyMTQ5MTM5NjQyNzE1LC0wLjAzOTQ1MDIxNzAzODM5MzAyLDAuMDI1NDM5NzI5OTE0MDY5MTc2LC0wLjA0MTQ2NjQzMzU1NDg4Nzc3LC0wLjAyMzIwNDExODAxMzM4MTk1OCwwLjAxNjc4MjAwOTk3NDEyMjA0NywtMC4wMDA0NjExNDI3NzIxMTAxNzkwNywtMC4wNTc4Mjg1NzUzNzI2OTU5MiwtMC4wMTg2MTEyNjcyMDkwNTMwNCwwLjA... |
123 | wise Contributed by Raymond Hettinger in bpo 38200 linecache When a module does not define __loader__ fall back to __spec__ loader Contributed by Brett Cannon in bpo 42133 os Add os cpu_count support for VxWorks RTOS Contributed by Peixing Xin in bpo 41440 Add a new function os eventfd and related helpers to wrap the e... | en | "Wy0wLjA1ODYzNDgyNTA1MDgzMDg0LC0wLjA0Mzg1MDcwMTMwMjI4OTk2LC0wLjAzNjk3ODI1NTk1NzM2NTAzNiwwLjAxNTM2MDEwMjk4ODc3OTU0NSwwLjAzNzA1MzQzMjMxNTU4OCwtMC4wODQ2MTExMTAzODkyMzI2NCwwLjAzMjk4NDAyNTc3NjM4NjI2LDAuMDk2MzQwMDc1MTM1MjMxMDIsLTAuMDI3NjMyODk5NTgyMzg2MDE3LC0wLjAxMzAwNjM4ODIwOTc2MDE4OSwwLjA3MjUwNTg5ODc3MzY3MDIsLTAuMDA3MDY0OTc... |
124 | her suites may prevent a successful handshake Add a timeout parameter to the ssl get_server_certificate function Contributed by Zackery Spytz in bpo 31870 The ssl module uses heap types and multi phase initialization Contributed by Christian Heimes in bpo 42333 A new verify flag VERIFY_X509_PARTIAL_CHAIN has been added... | en | "Wy0wLjEwNTk4MzMzMTc5OTUwNzE0LC0wLjAxNjIwMDYzMzcxOTU2MzQ4NCwtMC4wODg0Nzk5ODgyNzY5NTg0NywwLjAxOTk1NjUwNDkyNjA4NTQ3MiwtMC4wNjkyMjgwMzA3NDEyMTQ3NSwtMC4wNzg1MTQ2NDMwMTM0NzczMywwLjAwMjI4OTg4OTM4MDMzNTgwOCwtMC4wMDMxOTcxMDY1MzI3NTI1MTQsLTAuMDA0MzM0ODU2MjkwMzcwMjI2LC0wLjA2NDU5Nzg5NzIzMTU3ODgzLC0wLjA1MzQwMDM5NzMwMDcyMDIxNSwtMC4... |
125 | nd Ken Jin in bpo 42967 The presence of newline or tab characters in parts of a URL allows for some forms of attacks Following the WHATWG specification that updates RFC 3986 ASCII newline n r and tab t characters are stripped from the URL by the parser in urllib parse preventing such attacks The removal characters are ... | en | "Wy0wLjEwNDc2NjY1OTQzODYxMDA4LC0wLjAxMTU5ODE1NzY5NjQyNTkxNSwtMC4wNTAwMTQ2NTYwMzcwOTIyMSwwLjAxNDM1NDA1MDE1OTQ1NDM0NiwtMC4wOTA5MTc5ODIxNjEwNDUwNywtMC4wNjcwNzcxNDQ5ODA0MzA2LC0wLjAwMjUyMDEwNDE3MTcwODIyNiwwLjAzNjIxOTYxMTc2Mzk1NDE2LC0wLjA1MTU0MzI4NzkzMjg3Mjc3LC0wLjAwOTUxMDc3ODgyMjAwNDc5NSwwLjAwOTk3MTgxNDIzMDA4NDQyLDAuMDQ4MjU... |
126 | Python 2 7 compatibility Specifically find_loader find_module superseded by find_spec load_module superseded by exec_module module_repr which the import system takes care of for you the __package__ attribute superseded by __spec__ parent the __loader__ attribute superseded by __spec__ loader and the __cached__ attribu... | en | "Wy0wLjE0ODUzMzU2Nzc4NjIxNjc0LC0wLjAyMTM5MjQzMjk3Mjc4ODgxLC0wLjAyOTAwMTc4NTQ0MjIzMzA4NiwwLjAzOTU1NjE2NDI5NDQ4MTI4LDAuMDM2MTU1OTUwMjc4MDQzNzUsLTAuMDg5MDkzMzk0NTc3NTAzMiwtMC4wNDE1NjM0NzM2NDE4NzI0MDYsMC4wMDg1NDU1NDQ5Mjk4MDI0MTgsLTAuMDcxOTkyMDI0Nzc5MzE5NzYsLTAuMDQ1Mjc1OTk3MzcwNDgxNDksMC4wMjI3MTEwODcwMTgyNTE0MiwwLjA4MTg0MTA... |
127 | couraged by the SQLite3 documentation See the SQLite3 docs for more details If a shared cache must be used open the database in URI mode using the cache shared query parameter Contributed by Erlend E Aasland in bpo 24464 The following threading methods are now deprecated threading currentThread threading current_thread... | en | "Wy0wLjEwNjg2MTMzMDU2ODc5MDQ0LC0wLjA1NjU5OTE0Mzg5MjUyNjYzLC0wLjEwMTA1NDI2NjA5NTE2MTQ0LDAuMDE1ODIxMjkxMTMzNzYxNDA2LC0wLjAyNDY5NjE4NjE4NDg4MzExOCwtMC4wODM1MjA2MTM2MTA3NDQ0OCwwLjA0OTU3NDMxOTI3MzIzMzQxNCwtMC4wNDY5MDEwNjU4NTYyMTgzNCwtMC4wMDc4Nzc5MDIxMjc4MDIzNzIsMC4wMDg2NTgwNzU3MDUxNzA2MzEsMC4wMDE0NTgyNzIzMzc5MTM1MTMyLDAuMDQ... |
128 | 1 This simplifies the high level API 2 The functions in the high level API have been implicitly getting the current thread s running event loop since Python 3 7 There isn t a need to pass the event loop to the API in most normal use cases 3 Event loop passing is error prone especially when dealing with loops running in... | en | "Wy0wLjA0MDE4NDkxODc5MTA1NTY4LC0wLjAwMTc5ODY1NDQ0MDc5MDQxNDgsMC4wMDM2MDkxNDg1NTI2NDEyNzI1LDAuMDA1Njg5MDcwMDk0Mzc2ODAyNCwwLjAxNjMwNjAzMzM1Nzk3Nzg2NywtMC4wNzM3NjU3NzcwNTE0NDg4MiwtMC4wMjk0Mzg0NTQ2NTc3OTMwNDUsMC4wODI5MDgwMDQ1MjIzMjM2MSwtMC4wMTk2MzYzNDk3NTI1NDUzNTcsLTAuMDQ1NTg1MzM0MzAwOTk0ODcsMC4wMTc0NTg0NTc0OTk3NDI1MDgsLTA... |
129 | ne way to do this is using the io module with PyImport_ImportModule PyObject_CallMethod PyBytes_AsString and Py_CompileString as sketched below Declarations and error handling are omitted io_module Import_ImportModule io fileobject PyObject_CallMethod io_module open ss filename rb source_bytes_object PyObject_CallMetho... | en | "Wy0wLjA3MzQ1NTcyODU5MDQ4ODQzLC0wLjAzMjIxNDc1MzMyOTc1Mzg3NiwtMC4xMDU0Mjg0NTcyNjAxMzE4NCwwLjAxNzEyOTg0OTY0MjUxNTE4MiwtMC4wODMwMjk2NDI3MDExNDg5OSwtMC4wMjc4ODgyODEyNzA4NjE2MjYsMC4wNTE4NTg2OTMzNjEyODIzNSwwLjEzMDg1MjcxNDE4MDk0NjM1LC0wLjA5MTMzMjgwMDY4NjM1OTQsLTAuMDQ3OTUwNDgzODU4NTg1MzYsLTAuMDExOTY5NDAwNTY5Nzk2NTYyLDAuMDE3OTg... |
130 | ributed by Vladimir Matveev in bpo 41756 Add PyUnicode_AsUTF8AndSize to the limited C API Contributed by Alex Gaynor in bpo 41784 Add PyModule_AddObjectRef function similar to PyModule_AddObject but don t steal a reference to the value on success Contributed by Victor Stinner in bpo 1635741 Add Py_NewRef and Py_XNewRef... | en | "Wy0wLjA4NjEwMTE4OTI1NTcxNDQyLC0wLjA0NDIwNTg2MzAyODc2NDcyNSwtMC4xMTA3OTc4MzczNzY1OTQ1NCwwLjAxMjIwMzE5MzI2OTY3MDAxLC0wLjAzOTk0MDg4NjE5OTQ3NDMzNSwwLjAzMTA3ODU3ODkwNDI3MTEyNiwwLjAyNzM4ODIwMjAyNjQ4NjM5NywwLjEwNzEyMzYzNTcwOTI4NTc0LC0wLjAzNDc3NTk3OTgxNjkxMzYwNSwtMC4wMTc4Njc2ODQzNjQzMTg4NDgsMC4wMDQ0NzAwMDE5MDYxNTY1NCwtMC4wMjE... |
131 | ET_ITEM and PyCell_SET macros can no longer be used as l value or r value For example x PyList_SET_ITEM a b c and PyList_SET_ITEM a b c x now fail with a compiler error It prevents bugs like if PyList_SET_ITEM a b c 0 test Contributed by Zackery Spytz and Victor Stinner in bpo 30459 The non limited API files odictobjec... | en | "Wy0wLjA0NDM4NzM1OTE3MjEwNTc5LC0wLjAwNjg5MDE2NzAxNjUzNTk5NywtMC4wNzMzNzYzNTAxMDQ4MDg4MSwtMC4wMDU2MjQzNzgxMDAwMzc1NzUsLTAuMDM0MzI2MTMyMzg2OTIyODM2LDAuMDExODI3MTEwMzEyODc5MDg2LDAuMDUyMzgwNDIzOTkyODcyMjQsMC4wNTcwMDk5OTEyNTgzODI4LC0wLjA4MDg4MzM4Mzc1MDkxNTUzLC0wLjAyMzY3ODI1ODA2MTQwODk5NywwLjAyNjIzMjU3OTcyMzAwMDUyNiwtMC4wMDk... |
132 | I was removed PyAST_Compile PyAST_CompileEx PyAST_CompileObject PyFuture_FromAST PyFuture_FromASTObject PyParser_ASTFromFile PyParser_ASTFromFileObject PyParser_ASTFromFilename PyParser_ASTFromString PyParser_ASTFromStringObject These functions were undocumented and excluded from the limited C API Contributed by Victor... | en | "Wy0wLjA0NTAzNDE4ODc3NzIwODMzLDAuMDUyMzI3NzkzMDkxNTM1NTcsLTAuMDk2NDYzNTM4NzA2MzAyNjQsMC4wMDQ1NjUxMjExNDAzMzEwMywwLjAwMjQwODk5NzYyMTM4NzI0MzMsLTAuMDAwMjQ3OTgzMjYxOTQyODYzNDYsLTAuMDYyMDMwMjc0NDIwOTc2NjQsMC4wODk2NjcyNzU1NDc5ODEyNiwtMC4wMzk0MzIzMTcwMTg1MDg5MSwtMC4wNDQ1NTE0MDk3ODA5NzkxNTYsMC4wMDQ1MDMwNzQxMDIxMDM3MSwwLjAwOTY... |
133 | errno Standard errno system symbols This module makes available standard errno system symbols The value of each symbol is the corresponding integer value The names and descriptions are borrowed from linux include errno h which should be all inclusive errno errorcode Dictionary providing a mapping from the errno value t... | en | "WzAuMDM2MTI2NTgzODE0NjIwOTcsLTAuMDIxNzQ3OTM1NTYzMzI1ODgyLC0wLjA5MzY4ODMxNjY0MzIzODA3LC0wLjAxOTczODYzNTA0ODI3MDIyNiwwLjA3MzA5MTkzOTA5MTY4MjQzLC0wLjAzODk2OTQxOTg5NjYwMjYzLDAuMDE5NTE0MjQ3Nzc1MDc3ODIsMC4xMTk4NzQyMzE1MTczMTQ5MSwtMC4wMDE1NzA2NDcxMTY3NTA0Nzg3LC0wLjAwODE0NTg0NDU2Mzg0MTgyLDAuMTA2MTk0MTE2MTc1MTc0NzEsLTAuMDM3MjM... |
134 | CN lib section in a out corrupted errno ELIBMAX Attempting to link in too many shared libraries errno ELIBEXEC Cannot exec a shared library directly errno EILSEQ Illegal byte sequence errno ERESTART Interrupted system call should be restarted errno ESTRPIPE Streams pipe error errno EUSERS Too many users errno ENOTSOCK ... | en | "Wy0wLjAzNjM4MTk1OTkxNTE2MTEzLDAuMDA1OTE3NjUwMTgxODAwMTI3LC0wLjAzMzQ4MjU1MTU3NDcwNzAzLC0wLjA4NDA2MDMxMTMxNzQ0Mzg1LDAuMDA0NTkxODE0NzA3OTY0NjU5LDAuMDEyNjcyODkxODQwMzM4NzA3LC0wLjAxOTIwMDcxODAzMDMzMzUyLDAuMDY0MTY2ODg4NTk0NjI3MzgsLTAuMDE1MDg2MDA4MjM1ODEyMTg3LDAuMDIyNzIxOTE0NTc0NTAzOSwwLjA1NDQzMDgyNzQ5ODQzNTk3NCwtMC4wMDAzMDY... |
135 | pickle Python object serialization Source code Lib pickle py The pickle module implements binary protocols for serializing and de serializing a Python object structure Pickling is the process whereby a Python object hierarchy is converted into a byte stream and unpickling is the inverse operation whereby a byte stream ... | en | "Wy0wLjE0MTUzNTExODIyMjIzNjYzLDAuMDA3NTIwMTczMjEwNjUwNjgyNCwtMC4wMzY1MzIwNDA2ODU0MTUyNywwLjAxMDI3MjE2MTEwMzc4NTAzOCwtMC4wMzYxMzI5Njg5NjIxOTI1MzUsLTAuMDg5MTg5NTI5NDE4OTQ1MzEsMC4wMjE3NDM2MTA1MDEyODkzNjgsLTAuMDE0ODM1ODI5ODQ2NTYwOTU1LC0wLjAyNTAwNTAzMzIzOTcyMjI1MiwtMC4wNTk2MzUwMTcwNjcxOTM5ODUsLTAuMDExNzgxMDY4NTE4NzU3ODIsMC4... |
136 | wever it means that non Python programs may not be able to reconstruct pickled Python objects By default the pickle data format uses a relatively compact binary representation If you need optimal size characteristics you can efficiently compress pickled data The module pickletools contains tools for analyzing data stre... | en | "Wy0wLjEwODMyMTQxMzM5Nzc4OSwtMC4wMDM2NTY4NDA4ODMxOTU0MDAyLC0wLjA0MDg2MTE5MzA5MDY3NzI2LDAuMDM4NjI2MDk3MTQyNjk2MzgsLTAuMDM1NjA0MDE4NzE4MDA0MjMsLTAuMTAxNzc2NDgwNjc0NzQzNjUsMC4wMTE2OTI2MTE1MDA2MjA4NDIsLTAuMDEzNTc5ODkwMTMxOTUwMzc4LDAuMDAwNzQ1NDc0MzAyNjc1NTc1LC0wLjA0NTQ2NTI3MTkxOTk2NTc0NCwtMC4wMzQ2NzA1ODM5MDM3ODk1MiwwLjAwNDU... |
137 | pen file object file and return the reconstituted object hierarchy specified therein This is equivalent to Unpickler file load The protocol version of the pickle is detected automatically so no protocol argument is needed Bytes past the pickled representation of the object are ignored Arguments file fix_imports encodin... | en | "Wy0wLjA1NDczMTUyMTc1NTQ1NjkyNCwtMC4wMDkwNDU0Mjc2NjUxMTQ0MDMsLTAuMDE4MDc3MzMyNTI2NDQ1MzksMC4wMDkwNTU3MTEzMjg5ODMzMDcsLTAuMDMyNTI4NDkzNTUzNDAwMDQsLTAuMDM4ODIxNjU5OTgyMjA0NDQsMC4wMDgzOTE0MjU5NDQ4NjQ3NSwtMC4wMDU2MDExNDU3OTI3NTI1MDQsLTAuMDE0MjAyNDAxOTczMzA3MTMzLC0wLjA0NTMwOTExODkyNjUyNTExNiwtMC4wMDE1MzkyMTU3OTQ3NjQ0NTkxLC0... |
138 | to customize the pickling for a specific pickler object one can set the dispatch_table attribute to a dict like object Alternatively if a subclass of Pickler has a dispatch_table attribute then this will be used as the default dispatch table for instances of that class See Dispatch Tables for usage examples New in vers... | en | "Wy0wLjEwODEyNzY3NTk1MDUyNzE5LDAuMDA3NzEzMTI2NDg0MzA0NjY2NSwtMC4wMDM4MTEwMjQxMjkzOTA3MTY2LDAuMDQ3OTE5ODI4NDQ0NzE5MzE1LC0wLjA4MTkzMTk5MzM2NTI4Nzc4LC0wLjA0NTYxNzIxMTYxMDA3ODgxLDAuMDA5MDYzMTU2MzIxNjQ0NzgzLDAuMDE2MTcxNDM2NzU2ODQ5MjksLTAuMDk0MTM3NjA5MDA0OTc0MzcsMC4wMTUxNTg1OTQ1ODU5NTUxNDMsLTAuMDQ0NDMwMjkzMTQyNzk1NTYsLTAuMDM... |
139 | PickleBuffer objects can only be serialized using pickle protocol 5 or higher They are eligible for out of band serialization New in version 3 8 raw Return a memoryview of the memory area underlying this buffer The returned object is a one dimensional C contiguous memoryview with format B unsigned bytes BufferError is ... | en | "Wy0wLjA1MTY1NDYzMzEzNDYwMzUsLTAuMDM2NzMzNzc2MzMwOTQ3ODc2LC0wLjA3MjEzNTg1ODIzNzc0MzM4LDAuMDA2NTUwMjAyMTQ2MTcyNTIzNSwtMC4wOTIzNDI0NjYxMTU5NTE1NCwtMC4wNTU1MjA2ODM1MjY5OTI4LDAuMDU3ODQwMzk1NzE4ODEyOTQsLTAuMDA0MTA5NTA3NDI2NjE5NTMsLTAuMDQxNTI0NTI1NzMxODAxOTksLTAuMDQyNzM5OTQyNjY5ODY4NDcsLTAuMDU0MzI4NzMyMTkyNTE2MzMsLTAuMDcwOTE... |
140 | to implement __getnewargs__ Changed in version 3 6 __getnewargs_ex__ is now used in protocols 2 and 3 object __getnewargs__ This method serves a similar purpose as __getnewargs_ex__ but supports only positional arguments It must return a tuple of arguments args which will be passed to the __new__ method upon unpicklin... | en | "Wy0wLjA4MDY5NDA2NDQ5Nzk0NzY5LDAuMDMzNzE5OTMwNzk3ODE1MzIsLTAuMDEwMTAzNjE2ODYzNDg5MTUxLDAuMDEwOTEwMDE0NjIxOTEzNDMzLC0wLjAwODU4NTE1NzgwNDE5MTExMywtMC4wMzYzMzgyNTg1MzQ2Njk4NzYsMC4wMTUwNTYyNjE3OTI3Nzg5NjksLTAuMDE2NjM1MjI0MjIzMTM2OTAyLC0wLjAyNzk3NDMyMDU3NTU5NDkwMiwtMC4wMDc3NDAzMzYwMDQ2NDQ2MzIsMC4wMDkyODgxOTczODMyODQ1NjksMC4... |
141 | an iterator and not a sequence yielding successive items These items will be appended to the object either using obj append item or in batch using obj extend list_of_items This is primarily used for list subclasses but may be used by other classes as long as they have append and extend methods with the appropriate sign... | en | "Wy0wLjEyODMxMzMzMjc5NjA5NjgsMC4wMjI1NzQyMjM1Nzc5NzYyMjcsLTAuMDQ0NTM4MDQzNDM5Mzg4Mjc1LC0wLjAwNjIwMjk5OTk2ODA4MTcxMywtMC4wMzM0NDUzMjQ3NDg3NTQ1LC0wLjAwNDExNDczODE5OTg1OTg1NzYsMC4wMTE3NjgxNjMxODE4NDEzNzMsMC4wNDc0MDY2Mjg3Mjc5MTI5LC0wLjA0NjUyMjc2MjYyNjQwOTUzLC0wLjAyNjY5MTc2MjczMDQ3OTI0LDAuMDI0OTkxODQwMTI0MTMwMjUsMC4wNDY1NTM... |
142 | supported persistent object def main import io import pprint Initialize and populate our database conn sqlite3 connect memory cursor conn cursor cursor execute CREATE TABLE memos key INTEGER PRIMARY KEY task TEXT tasks give food to fish prepare group meeting fight with a zebra for task in tasks cursor execute INSERT IN... | en | "Wy0wLjE1MDQ2Mzk1MzYxNDIzNDkyLC0wLjA3MDU2MDQ0Nzg3MTY4NTAzLC0wLjA4OTkyNjY5NzMxMzc4NTU1LDAuMDY3MjAwMTgzODY4NDA4MiwtMC4xMTI5MTg4NzYxMTE1MDc0MiwtMC4wNDEzMjUwMTAzNTkyODcyNiwwLjA1NDg5NzQ5ODMzOTQxNDYsLTAuMDEzNDgxMTc2NDU4Mjk5MTYsLTAuMDgyODkwNzM0MDc2NDk5OTQsLTAuMDAwMjc2MDUyNTY3NjQyMTgyMSwwLjAzNDEwMTEyODU3ODE4NjAzNSwwLjAwNzI1NTA... |
143 | re defined then reducer_override method takes priority Note For performance reasons reducer_override may not be called for the following objects None True False and exact instances of int float bytes str dict set frozenset list and tuple Here is a simple example where we allow pickling and reconstructing a given class ... | en | "Wy0wLjA2NDQ5NjIxMTcwNzU5MjAxLDAuMDM0NjA1ODY0NDM1NDM0MzQsMC4wNTgxOTMzMzM0NDY5Nzk1MiwwLjA0MTg1NzA0ODg2OTEzMjk5NiwtMC4wMDQzNDI5NjI1MjIwNTk2NzksLTAuMDgwOTcyNDcwMzQzMTEyOTUsMC4wNDA0MjUzMzQxMjU3NTcyMiwtMC4wMDUxNjc0NDc0OTYyMDU1NjgsLTAuMDM5MTEyMzg1MzYyMzg2NzAzLC0wLjAwMDUxODgxMDc2MDY5NTQ4NzMsLTAuMDM0OTc1MDA3MTc2Mzk5MjMsMC4wMTU... |
144 | 5 new_b pickle loads data print b new_b True print b is new_b False a copy was made But if we pass a buffer_callback and then give back the accumulated buffers when unserializing we are able to get back the original object b ZeroCopyByteArray b abc buffers data pickle dumps b protocol 5 buffer_callback buffers append n... | en | "Wy0wLjA5ODMxNTE4Njc5ODU3MjU0LC0wLjA0MTEzMTMzOTk2NzI1MDgyNCwtMC4wNzQ4Mjk1MTEzNDQ0MzI4MywtMC4wMjUxMDU5NzU1NjgyOTQ1MjUsLTAuMDQ3NjgxNzg5ODQ1MjI4MTk1LC0wLjA2Nzc4MDU0Njg0NDAwNTU4LDAuMDY1NDE4MDA0OTg5NjI0MDIsLTAuMDk3MjYyMDg0NDg0MTAwMzQsLTAuMDI2NDA1MzQxOTIzMjM2ODQ3LDAuMDAyNTgxNzM3NDY5ODgxNzczLC0wLjAyNzA2OTYwNDAyNDI5MTA0LDAuMDM... |
145 | module 2 This is why lambda functions cannot be pickled all lambda functions share the same name lambda 3 The exception raised will likely be an ImportError or an AttributeError but it could be something else 4 The copy module uses this protocol for shallow and deep copying operations 5 The limitation on alphanumeric c... | en | "Wy0wLjEzMzcxMzIwMDY4ODM2MjEyLC0wLjA2ODgzNTM1NTM0MTQzNDQ4LC0wLjA0OTA0OTY4NjY0MDUwMTAyLDAuMDAxNTc0NDE3MjI2OTQ3ODQ0LC0wLjA2NTIxNTcyMTcyNjQxNzU0LC0wLjAwOTA4MDExMTA0OTExNTY1OCwwLjA0OTgyMzM5OTYzMzE2OTE3NCwtMC4wNDM0NjA0MjEyNjQxNzE2LDAuMDIwNjUzNjU1NzUyNTM5NjM1LC0wLjA1MjY3NzQ2Mzc0MDExMDQsMC4wOTg5MDczMjkxNDIwOTM2NiwwLjAwMjExMTk... |
146 | Tkinter Dialogs tkinter simpledialog Standard Tkinter input dialogs Source code Lib tkinter simpledialog py The tkinter simpledialog module contains convenience classes and functions for creating simple modal dialogs to get a value from the user tkinter simpledialog askfloat title prompt kw tkinter simpledialog askinte... | en | "Wy0wLjAyNjAzMjA2NDExMDA0MDY2NSwwLjA2MTA2ODY5MTMxMzI2Njc1NCwtMC4wMDQ3MzQ4MDYyNTA3ODA4MjEsLTAuMDM1Mjg5NzUzMjI4NDI1OTgsLTAuMDUwOTg0NTU3NzE4MDM4NTYsLTAuMDAyNTU1NzQ4OTEzNDM3MTI4LDAuMDY5NzM1MTI0NzA3MjIxOTgsMC4wNzM2MzgxMTg4MDM1MDExMywwLjAwMjU1MzY4MTE0NDQ5MDgzOCwtMC4wMjE0OTUzOTYyNzEzNDgsLTAuMDM2OTUyNTQ3NzI5MDE1MzUsLTAuMDY5OTU... |
147 | t creates a dialog window for selecting an existing file ok_command Test that a file is provided and that the selection indicates an already existing file class tkinter filedialog SaveFileDialog master title None A subclass of FileDialog that creates a dialog window for selecting a destination file ok_command Test whet... | en | "Wy0wLjAxMjQ4NzQ2NTUxNTczMjc2NSwwLjAzODQzNjEzMzQxNDUwNjkxLC0wLjAxNDQ2MDYyOTc4MzU3MDc2NiwwLjAyNTMyMTQzNzA0NTkzMTgxNiwwLjA1NzgzOTE1ODkyMjQzMzg1LC0wLjA2MjIyMzQyMzI3MjM3MTI5LDAuMDcxMDA1MzUxODQxNDQ5NzQsMC4wNTk2NDQ2NTgxMTg0ODY0MDQsMC4wNzgwOTkxNjEzODY0ODk4NywtMC4wMDc3NDA4NjEyNzA1NzY3MTU1LC0wLjAxNDM3NTYyNTE3ODIxNzg4OCwtMC4wMjE... |
148 | 5 The import system Python code in one module gains access to the code in another module by the process of importing it The import statement is the most common way of invoking the import machinery but it is not the only way Functions such as importlib import_module and built in __import__ can also be used to invoke the... | en | "Wy0wLjA4ODc3ODcxMTg1NTQxMTUzLC0wLjA1MjI1MjM2MzQxMzU3MjMxLC0wLjA3MjQxNzk1OTU3MDg4NDcsMC4wMjc0NzY2NDQxNDM0NjIxOCwwLjAzMzg2ODI5NDIwOTI0MTg3LC0wLjA3MTcwOTE5MzI4OTI3OTk0LDAuMDU2MDU2OTg3NDk0MjMwMjcsMC4wMzQxMzI4OTA0MDMyNzA3MiwtMC4wMTc0MTAzODI2Mjg0NDA4NTcsLTAuMDUyOTU2MjA4NTg2NjkyODEsMC4wNjk3MDE5MzIzNzA2NjI2OSwwLjA0ODgzNjAwMDI... |
149 | me additional attributes to the module when it is imported For example the following file system layout defines a top level parent package with three subpackages parent __init__ py one __init__ py two __init__ py three __init__ py Importing parent one will implicitly execute parent __init__ py and parent one __init__ p... | en | "Wy0wLjA5NDk5NDgzNTU1NTU1MzQ0LC0wLjAzODM4Mjc5ODQzMzMwMzgzLC0wLjAxMTI0MDM5MDEyOTM4NzM3OSwwLjAyNDE1OTI5NTQ4NDQyMzYzNywwLjA4OTUzNjQ3MzE1NTAyMTY3LC0wLjA3Nzc2MTg3MzYwMjg2NzEzLDAuMDIyNjg0NjIyNTU1OTcxMTQ2LDAuMDAxMTk3ODc3Njg5MjY0NzE0NywtMC4wMjA4OTMzNTM5Njg4NTg3MiwtMC4wMjE0MTE4NDM1OTc4ODg5NDcsMC4wNTc4NzQ3MjQyNjg5MTMyNywtMC4wMTY... |
150 | hon includes a number of default finders and importers The first one knows how to locate built in modules and the second knows how to locate frozen modules A third default finder searches an import path for modules The import path is a list of locations that may name file system paths or zip files It can also be extend... | en | "Wy0wLjA4MTAwNTM3MjEwNzAyODk2LC0wLjA1NjA3NTE2NjkxMDg4Njc2NSwtMC4wNDc3MTQ0MDg0ODcwODE1MywwLjA0Mjg4ODYzNzYzMjEzMTU4LDAuMDM3OTkxNjU0MTI3ODM2MjMsLTAuMDMzNzEzOTY2NjA4MDQ3NDg1LC0wLjAyMTc1MTM4MTQ1Njg1MTk2LDAuMDM0MTkzNDcxMDc0MTA0MzEsLTAuMDI2MDgwMzE0MDY5OTg2MzQzLC0wLjA3Mzc1ODgzMzExMDMzMjQ5LDAuMDkwNDQ0NzUxMDgzODUwODYsMC4wMzE1ODk... |
151 | t built in modules one that knows how to import frozen modules and one that knows how to import modules from an import path i e the path based finder Changed in version 3 4 The find_spec method of meta path finders replaced find_module which is now deprecated While it will continue to work without change the import mac... | en | "Wy0wLjA5ODk5NzcxMjEzNTMxNDk0LC0wLjA0NzE4NzQ5NTk3NjY4NjQ4LC0wLjA2OTAwNTA0OTc2NTExMDAyLDAuMDczMTAwMDUyNzczOTUyNDgsMC4wODc1NDMwNDc5NjQ1NzI5LC0wLjA0MDUxOTU5NTE0NjE3OTIsLTAuMDI4Nzg2MTUwNzM4NTk2OTE2LDAuMDE5ODYwNTE5MDk2MjU1MzAyLC0wLjA2NDI1NTgxODcyNDYzMjI2LC0wLjA0NzkyNzMzODYyOTk2MTAxNCwwLjA3Mzc2OTQ2NTA4ODg0NDMsMC4wNjE3NzUzMzc... |
152 | d in version 3 4 The load_module method was replaced by exec_module and the import machinery assumed all the boilerplate responsibilities of loading For compatibility with existing loaders the import machinery will use the load_module method of loaders if it exists and the loader does not also implement exec_module How... | en | "Wy0wLjEwNzYwOTIyNzI5OTY5MDI1LC0wLjA2NjUxOTQ2OTAyMjc1MDg1LC0wLjAxODEyNzgxNzY2MDU3MDE0NSwwLjAwODA1MTEwODU2ODkwNjc4NCwwLjAxMDY0MTU1OTk1ODQ1Nzk0NywtMC4wNjU4MDk1NzAyNTI4OTUzNiwtMC4wMTU5NjUwOTg1MTUxNTI5MywwLjAyNzc5ODU3NjI4MDQ3NDY2MywtMC4wMjIzMzM0NDEzMDIxODAyOSwtMC4wMDU0OTUyMzcxODY1NTEwOTQsMC4wMzA0MDEwMDA3NTMwNDUwODIsMC4wMzY... |
153 | 3 12 The value of __loader__ is expected to be the same as __spec__ loader The use of __loader__ is deprecated and slated for removal in Python 3 14 __package__ The module s __package__ attribute may be set Its value must be a string but it can be the same value as its __name__ When the module is a package its __packa... | en | "Wy0wLjA4OTA3NTY3NzA5Njg0MzcyLC0wLjAwODUxMzk1MTY3NDEwMzczNywtMC4wMjgwNzU0Mjg2Nzk1ODU0NTcsLTAuMDExMzE2MDQyMzkzNDQ1OTY5LDAuMDMyODU0NjM1MjY4NDQ5NzgsLTAuMDQ0MTM1NzM4MTY0MTg2NDgsMC4wMDM5MzE0ODk3NzMwOTQ2NTQsMC4xMDAzMDU4MDMxMjAxMzYyNiwtMC4wODEyMDM4MTgzMjEyMjgwMywtMC4wNjE5ODU3MzQ4NTAxNjgyMywwLjA0NjI3MjM0NDg4NzI1NjYyLC0wLjAxMzA... |
154 | able repr however depending on the attributes set above and in the module s spec you can more explicitly control the repr of module objects If the module has a spec __spec__ the import machinery will try to generate a repr from it If that fails or there is no spec the import system will craft a default repr using whate... | en | "Wy0wLjE0MTg4MDM2MzIyNTkzNjksLTAuMDYyOTM4NTAzOTIxMDMxOTUsLTAuMTMzNDg2ODM3MTQ4NjY2MzgsMC4wMjI0MTYzMzA4NzM5NjYyMTcsLTAuMDAyNTYwNTE0NzIzODgyMDc5LC0wLjAxOTk3NTkwMDY1MDAyNDQxNCwtMC4wMTUyNzU1MTkzNDEyMzAzOTIsLTAuMDA3OTQ3Mzg1MzExMTI2NzA5LC0wLjA2ODk2Mjg3MjAyODM1MDgzLC0wLjA4NDc3MDg1ODI4NzgxMTI4LDAuMDQ2OTI5NTM0NTI0Njc5MTg0LC0wLjA... |
155 | ways during the import process but it s important to keep in mind that they are subtly different In particular meta path finders operate at the beginning of the import process as keyed off the sys meta_path traversal By contrast path entry finders are in a sense an implementation detail of the path based finder and in... | en | "Wy0wLjA2MTAwOTMxMzkxMTE5OTU3LC0wLjAzMTI1MjQ3NzMxODA0ODQ4LC0wLjA2MjIxNTMyODIxNjU1MjczNCwwLjAxMzQ2NTE2ODg4NTg4NjY3LDAuMDQ5MzEzMDY4Mzg5ODkyNTgsLTAuMDQ3NjE1NjI4Njg5NTI3NTEsMC4wMzI2MjY4ODk2NDYwNTMzMTQsMC4wNTQ5MjgyMDk2MzI2MzUxMiwtMC4wMTU5MDY1NjExNjYwNDgwNSwwLjAwNDM3MzcxOTkxNTc0NzY0MjUsMC4wMTQ0NTg0NzM3NzE4MTA1MzIsMC4wNzcxODc... |
156 | rectory denoted by an empty string is handled slightly differently from other entries on sys path First if the current working directory is found to not exist no value is stored in sys path_importer_cache Second the value for the current working directory is looked up fresh for each module lookup Third the path used fo... | en | "Wy0wLjA2OTI5MDIyMDczNzQ1NzI4LC0wLjA0NTM2MTY2MDQyMDg5NDYyLC0wLjA2MTU3MjQ1NDg2OTc0NzE2LDAuMDM1NTQwMjYwMzc0NTQ2MDUsMC4wNjMxMjUzNTcwMzE4MjIyLC0wLjA0NTkzMDcyNDU5MTAxNjc3LDAuMDE1NzMzODAyNjkxMTAyMDI4LDAuMDQyODcyODg3MTA0NzQ5NjgsLTAuMDQ3NTEyNTU3MzU3NTQ5NjcsLTAuMDI5NzI5MTM1MzM0NDkxNzMsMC4wNjQ1ODM3MTEzMjYxMjIyOCwwLjAxNDEyNjIzOTM... |
157 | bsolute imports may use either the import or from import syntax but relative imports may only use the second form the reason for this is that import XXX YYY ZZZ should expose XXX YYY ZZZ as a usable expression but moduleY is not a valid expression 5 8 Special considerations for __main__ The __main__ module is a special... | en | "Wy0wLjA1NzcwMTcxNDMzNjg3MjEsLTAuMDU5NDU1MjcxODEwMjkzMiwtMC4wNDkwNDI4NTgxODMzODM5NCwwLjAyNTE1MjQwMTk5ODYzOTEwNywwLjAzNTE3MDUzNjQ4ODI5NDYsLTcuNjIzNzUyNDgwODY3NTUyZS02LDAuMDA1NTEwNDAxOTEyMDMzNTU4LDAuMDkzNTU2NTk3ODI4ODY1MDUsLTAuMTEwNTY2NzU3NjE5MzgwOTUsLTAuMDc0MzY4MjgzMTUyNTgwMjYsLTAuMDAwMjgyNzUzMzc1MzU4ODc5NTcsMC4wMzUyNjQ... |
158 | fnmatch Unix filename pattern matching Source code Lib fnmatch py This module provides support for Unix shell style wildcards which are not the same as regular expressions which are documented in the re module The special characters used in shell style wildcards are Pattern Meaning matches everything matches any single... | en | "Wy0wLjA0NzI5ODI2Mzc1ODQyMDk0NCwwLjAyMTExNDg3NDYzMTE2NjQ1OCwwLjAwMTA1ODc1MzkyOTEwMDkzMDcsLTAuMDEyODExODc4Njk2MDg0MDIzLC0wLjAyMDQyODU0NTc3MzAyOTMyNywtMC4wNTIzNjM3OTA1NzE2ODk2MDYsMC4wNDM5OTAzOTU5NjMxOTE5ODYsMC4wNzA1NzIyMDQ4ODc4NjY5NywtMC4wMTIwMTY4OTk4ODM3NDcxLC0wLjA2MDU4ODQzNDMzODU2OTY0LDAuMDI2OTM2MjYwOTgzMzQ3ODkzLDAuMDA... |
159 | sqlite3 DB API 2 0 interface for SQLite databases Source code Lib sqlite3 SQLite is a C library that provides a lightweight disk based database that doesn t require a separate server process and allows accessing the database using a nonstandard variant of the SQL query language Some applications can use SQLite for inte... | en | "Wy0wLjAzODEzNDM2NjI3Mzg4MDAwNSwtMC4xMDM0MDEwMTI3MTg2Nzc1MiwtMC4xMDM4OTQyMDM5MDEyOTA5LDAuMDA0NDk0OTcyMDYxMzY1ODQzLC0wLjA3NjAxODM3MDY4Nzk2MTU4LC0wLjA3MDQ5Nzg3Nzg5NTgzMjA2LDAuMDc0MDMwNzU2OTUwMzc4NDIsMC4wMzc5NzQ0NzY4MTQyNzAwMiwtMC4wNzk1MzEzNzkwNDQwNTU5NCwwLjAyNDY3MTYwNDg1Njg0ODcxNywtMC4wMDM2NTY0MzQxMjgwNjA5MzcsLTAuMDAxMzQ... |
160 | con commit Remember to commit the transaction after executing INSERT Notice that placeholders are used to bind data to the query Always use placeholders instead of string formatting to bind Python values to SQL statements to avoid SQL injection attacks see How to use placeholders to bind values in SQL queries for more ... | en | "WzAuMDAyNjY0MjQzODAyNDI4MjQ1NSwtMC4wMzE1OTI2OTMxNzk4NDU4MSwtMC4wOTkxNjYxNTQ4NjE0NTAyLDAuMDA4MDA2MDA0NjE2NjE4MTU2LC0wLjExMDAyMzM3OTMyNTg2NjcsMC4wMTQwMTM2MzMxMzE5ODA4OTYsMC4wNTE3NTUxMzAyOTA5ODUxMSwtMC4wMTg0NjMzMjQ3NTU0MzAyMiwwLjAwMTk5OTIxMDc5OTExMjkxNiwwLjA2NjUwMjMwMjg4NTA1NTU0LDAuMDQ0MDU3MTE5NjM3NzI3NzQsMC4wMDUwNjgxNzg... |
161 | file path and an optional query string The scheme part must be file and the path can be relative or absolute The query string allows passing parameters to SQLite enabling various How to work with SQLite URIs autocommit bool Control PEP 249 transaction handling behaviour See Connection autocommit and Transaction contro... | en | "Wy0wLjAxNzkxMTY1MjEwMzA2NjQ0NCwtMC4wMzU5NDEwNDIwMDYwMTU3OCwtMC4wODYzMTg1NzQ4NDU3OTA4NiwwLjAxNzE0NTA2MDAwMjgwMzgwMiwtMC4wNjIxODkzNjI5NDMxNzI0NTUsLTAuMDIyNTkzNzA2ODQ2MjM3MTgzLDAuMDg0Mjg3MzY3NzYxMTM1MSwwLjAwNDQ0MzU0NTgyNTc3OTQzOCwtMC4wMTAwMzE3ODIwOTA2NjM5MSwwLjAzNzcxMzI4MTgxMDI4MzY2LDAuMDEzMDUwOTA5MTU0MTE3MTA3LDAuMDEyOTU... |
162 | ionary key For example CREATE TABLE test i integer primary key will look up a converter named integer p point will look up a converter named point n number 10 will look up a converter named number This flag may be combined with PARSE_COLNAMES using the bitwise or operator sqlite3 SQLITE_OK sqlite3 SQLITE_DENY sqlite3 S... | en | "Wy0wLjAwMTg5OTU2NzU0OTExNjkwOTUsLTAuMDI1MTkzMDE2OTc2MTE4MDg4LC0wLjE0MDg1NzMzODkwNTMzNDQ3LC0wLjAyNDIyNzMxOTI4NTI3MzU1MiwtMC4wNTM3MTIzOTc4MTM3OTcsLTAuMDM4NTk5NzI5NTM3OTYzODcsMC4wNTQxMzA5OTc1MDg3NjQyNywtMC4wMTU4MzcyNTk1OTA2MjU3NjMsLTAuMDc4OTM3NjI3Mzc1MTI1ODksMC4wMDMxMjA1NTc4NzA3MTU4NTY2LC0wLjAxNjk3MzA3NDUyNTU5NDcxLC0wLjA... |
163 | to use the connection context manager An SQLite database connection has the following attributes and methods cursor factory Cursor Create and return a Cursor object The cursor method accepts a single optional parameter factory If supplied this must be a callable returning an instance of Cursor or its subclasses blobope... | en | "Wy0wLjAzMDM2MzUyNDMzMjY0MjU1NSwtMC4wOTQ0NDcxNDMzNzU4NzM1NywtMC4xMzI3ODI2NTI5NzQxMjg3MiwwLjA0MTExMjg1MTM1MTQ5OTU2LC0wLjEyOTAxMzU5Nzk2NTI0MDQ4LC0wLjAxMzIwOTYzMDczNTIxODUyNSwwLjA3Mzc3MDA2MTEzNTI5MjA1LDAuMDEwMDgzOTUyOTE4NjQ4NzIsLTAuMDY4MTgyODI2MDQyMTc1MjksMC4wNTA0OTEzNDA0NTgzOTMxLDAuMDI4ODkzMDA2OTY1NTE3OTk4LC0wLjAwNTM3OTU... |
164 | on close create_window_function name num_params aggregate_class Create or remove a user defined aggregate window function Parameters name str The name of the SQL aggregate window function to create or remove num_params int The number of arguments the SQL aggregate window function can accept If 1 it may take any number ... | en | "Wy0wLjA2MTY4ODYyMDU5NzEyNDEsLTAuMDQ2MjQ5MzAzOTY2NzYwNjM1LC0wLjA5OTE4MzM0MzM1MDg4NzMsMC4wMzkzOTkyODg1OTQ3MjI3NSwtMC4wNzk3NDMxMzE5OTUyMDExMSwtMC4wMzM0NzY1NzI0ODM3NzgsMC4wNjU0MDkxNTM2OTk4NzQ4OCwwLjAwMTcwMjk3MTk4OTI4ODkyNjEsLTAuMDM4MzMyOTUwMzIzODIwMTE0LDAuMDI2NzQzMTg4NTAwNDA0MzU4LC0wLjAyNDk5NTcxODE1MTMzMDk0OCwtMC4wMjcyODE... |
165 | or example to update a GUI If you want to clear any previously installed progress handler call the method with None for progress_handler Returning a non zero value from the handler function will terminate the currently executing query and cause it to raise a DatabaseError exception set_trace_callback trace_callback Reg... | en | "Wy0wLjAzMzExNzU1NTA4MTg0NDMzLC0wLjA4Mjg5Nzg0MTkzMDM4OTQsLTAuMDgxNTY4MjI2MjE4MjIzNTcsMC4wNDIyNDI1NjA1MzU2NjkzMywtMC4wMjI4NDI2NTEyMzMwNzcwNSwtMC4wNTcxNzAzODczNTc0NzMzNywwLjA1MDUxMzI4OTg2ODgzMTYzNSwtMC4wMjQ4MjAxNzUwMjE4ODY4MjYsLTAuMDY1ODQ3ODUxMzM2MDAyMzUsLTAuMDA2OTQ1MTA4OTk0ODQxNTc2LDAuMDE4OTkwNDY0NTA4NTMzNDc4LDAuMDIxNTU... |
166 | tep Defaults to 1 progress callback None If set to a callable it is invoked with three integer arguments for every backup iteration the status of the last iteration the remaining number of pages still to be copied and the total number of pages Defaults to None name str The name of the database to back up Either main th... | en | "Wy0wLjA3MDYwMzEyNDc5NzM0NDIxLC0wLjA5MTQ0NTkxNTQwMDk4MTksLTAuMTA2OTc0MTM5ODA5NjA4NDYsMC4wNDE5NDM2NjE4Njg1NzIyMzUsLTAuMTAxNTUzODk0NTc5NDEwNTUsLTAuMDU2MTE4MzY1Mzc3MTg3NzMsMC4wMTMyNTg3MTg4ODU0ODEzNTgsLTAuMDIyMjk5NTExMzU4MTQxOSwtMC4wMzI1NzU3MzM5NTk2NzQ4MzUsMC4wMTE3OTU5MzA1NjQ0MDM1MzQsMC4wMTAxMTc2MzUxMzA4ODIyNjMsMC4wMDY1OTI... |
167 | RANSACTION_CONTROL Pre Python 3 12 non PEP 249 compliant transaction control See isolation_level for more details This is currently the default value of autocommit Changing autocommit to False will open a new transaction and changing it to True will commit any pending transaction See Transaction control via the autocom... | en | "Wy0wLjA2Nzg5ODA3OTc1MjkyMjA2LC0wLjExNDU0NTc4NDg5MDY1MTcsLTAuMTQwODYxMDE5NDkyMTQ5MzUsMC4wMzk4MDY1ODk0ODQyMTQ3OCwtMC4wNDQxNTEyNDY1NDc2OTg5NzUsLTAuMDQwNzY5MDEwNzgyMjQxODIsMC4wNjcyNDgzMTQ2MTkwNjQzMywtMC4wMDIyNDE2OTI5NzE0MzgxNjk1LC0wLjA0NTk0MTYwOTg4OTI2ODg3NSwwLjA0NDMyNzQzNzg3NzY1NTAzLDAuMDk4NTE0OTUxNzY1NTM3MjYsMC4wNDE1NDY... |
168 | 2 will be removed in version 3 14 DeprecationWarning is emitted if named placeholders are used and the items in parameters are sequences instead of dict s Starting with Python 3 14 ProgrammingError will be raised instead executescript sql_script Execute the SQL statements in sql_script If the autocommit is LEGACY_TRANS... | en | "Wy0wLjA3OTQ3NzY5NzYxMDg1NTEsLTAuMDE1NjUxMTYwODUxMTIwOTUsLTAuMDY3NTcyODQ3MDA4NzA1MTQsMC4wMDcxNDg0NjA5NTA3MDI0MjksLTAuMTAwNTA3MTAyOTA2NzAzOTUsLTAuMDQ2MjM5OTY0NjYzOTgyMzksMC4wMjcxNzY5MTI4NzM5ODMzODMsLTAuMDI3OTM1MDI5OTM4ODE3MDI0LC0wLjA0NzYwNzQ3MDMwMzc3Mzg4LDAuMDg3NTEwMjI4MTU3MDQzNDYsMC4xMDE0NzE4NjM2ODcwMzg0MiwwLjAxNTc0MzE... |
169 | use row factories for more details Row objects class sqlite3 Row A Row instance serves as a highly optimized row_factory for Connection objects It supports iteration equality testing len and mapping access by column name and index Two Row objects compare equal if they have identical column names and values See How to ... | en | "Wy0wLjAxNzE3Nzg1MzczMzMwMTE2MywtMC4wNjkzMzc1NzY2Mjc3MzEzMiwtMC4xMTkyNzE2MTM2NTc0NzQ1MiwwLjAwMzYxOTk5NDI2OTY4Mzk1NywtMC4wOTYzOTM4MzEwNzQyMzc4MiwtMC4wOTEyMDA3NzYzOTgxODE5MiwwLjA1NDEzOTgyNjQ0Njc3MTYyLC0wLjAwOTE4NDE4ODIwOTQ3NDA4NywtMC4wODcwMjUzMjIwMjAwNTM4NiwwLjA2MzMzMzQ1MTc0Nzg5NDI5LDAuMDI3MDMwNzI1MDMyMDkxMTQsLTAuMDAyNDk... |
170 | ammer For example the database path is not found or a transaction could not be processed OperationalError is a subclass of DatabaseError exception sqlite3 IntegrityError Exception raised when the relational integrity of the database is affected e g a foreign key check fails It is a subclass of DatabaseError exception s... | en | "Wy0wLjA0Nzk4NTE4NDkzNzcxNTUzLC0wLjA4NTkyMjMwODI2NjE2Mjg3LC0wLjAzOTYwNzQ3NjQ0MzA1MjI5LDAuMDM1NTk5NzM4MzU5NDUxMjk0LC0wLjAzMjUwMTgxMzAyNDI4MjQ1NSwtMC4wOTI1MjYwMDM3MTgzNzYxNiwwLjAxMjU2OTIyNjMyNDU1ODI1OCwwLjA0OTgwMzUwNjU4Mjk3NTM5LC0wLjA0Mzc3NDY1Njk1MTQyNzQ2LDAuMDE5MTcyODIxMTkzOTMzNDg3LDAuMDExMjk2NTQ4ODgwNjM2NjkyLC0wLjAzMzI... |
171 | named parameters any extra items are ignored Here s an example of both styles con sqlite3 connect memory cur con execute CREATE TABLE lang name first_appeared This is the named style used with executemany data name C year 1972 name Fortran year 1957 name Python year 1991 name Go year 2009 cur executemany INSERT INTO l... | en | "Wy0wLjA1OTcyODQ4MDg3NTQ5MjA5NiwtMC4wNTA5NTIzNzEyMDk4NTk4NSwtMC4wNjM4NzMyOTg0NjYyMDU2LDAuMDU0NTIyMDcxMDMzNzE2MiwtMC4xMjYwNTMwNzk5NjI3MzA0LC0wLjAxNDM5MzAzODExNjM5NTQ3MywwLjA3NzQwNTk4OTE3MDA3NDQ2LDAuMDA0MzcwNTc1NzcwNzM1NzQxLC0wLjA0MzE3MzE4Mjc1NTcwODY5NCwtMC4wNTMzNjgwNjU1MDYyMTk4NjQsMC4wMTM4NzUzNzgyOTU3NzkyMjgsLTAuMDUyNDM... |
172 | p cur execute INSERT INTO test p VALUES p cur execute SELECT p AS p point FROM test print with column names cur fetchone 0 Adapter and converter recipes This section shows recipes for common adapters and converters import datetime import sqlite3 def adapt_date_iso val Adapt datetime date to ISO 8601 date return val is... | en | "Wy0wLjAwMDk0NjQ5NDk4MzUwOTE4MjksLTAuMDIzODAwMTQwMjQ2NzQ4OTI0LC0wLjA3MDUwODY1MTQzNTM3NTIxLDAuMDY1NDk1MjgyNDExNTc1MzIsLTAuMDMxMjU3OTY0NjcwNjU4MTEsLTAuMDE5MTA5Mjc3MDU0NjY3NDczLC0wLjAwMzkyOTcxMDk0Njk3NzEzODUsLTAuMDIzODIxMTQzNDMzNDUxNjUzLC0wLjA1OTQ4ODQ3MTU5NzQzMzA5LC0wLjAxODUyMjQ5NTQwMzg4NTg0LDAuMDg1NzI3NDc1NTgzNTUzMzEsLTA... |
173 | to open database file Create a shared named in memory database db file mem1 mode memory cache shared con1 sqlite3 connect db uri True con2 sqlite3 connect db uri True with con1 con1 execute CREATE TABLE shared data con1 execute INSERT INTO shared VALUES 28 res con2 execute SELECT data FROM shared assert res fetchone 28... | en | "Wy0wLjAwMjM3NTU2MDU3OTgyMTQ2NzQsLTAuMDg5NDY1MzU3MzYzMjI0MDMsLTAuMTQ2NzEyNzM1Mjk1Mjk1NzIsLTAuMDEyNzg2MDcxNzQ3NTQxNDI4LC0wLjA5MzU4Njk5NjE5NzcwMDUsLTAuMDE4MDQ1NzA0ODExODExNDQ3LDAuMDQ2MjU2NzM5NjQ2MTk2MzY1LC0wLjAxNDc3MTA5OTIwMjMzNDg4LC0wLjEzMTA3NjAyMjk4MjU5NzM1LDAuMDU4Mjc3Njg1MTk1MjA3NTk2LDAuMDEwMTkyMDkwNjQ1NDMyNDcyLC0wLjA... |
174 | implies PEP 249 compliant transaction control This means sqlite3 ensures that a transaction is always open so connect Connection commit and Connection rollback will implicitly open a new transaction immediately after closing the pending one for the latter two sqlite3 uses BEGIN DEFERRED statements when opening transac... | en | "Wy0wLjA0NTgxMjM4MzI5NDEwNTUzLC0wLjA4MDQwNjY1ODM1MTQyMTM2LC0wLjEyMDU3NTQ1NzgxMTM1NTU5LDAuMDIyMzc1MjU3Njg1NzgwNTI1LC0wLjA2MDg5MjMyODYxOTk1Njk3LDAuMDIzOTQ5NTc0Njc5MTM2Mjc2LDAuMDkyOTkxMzI5NzI5NTU3MDQsMC4wMDE3NTQ2MzI2ODUzMzM0OTA0LC0wLjAxOTY3OTYzOTQ4ODQ1ODYzMywwLjA0MTA5ODY4MDM0NzIwNDIxLDAuMDg5NzQzNzQ4MzA3MjI4MDksMC4wNDEyOTQ... |
175 | 4 Using Python on Windows This document aims to give an overview of Windows specific behaviour you should know about when using Python on Microsoft Windows Unlike most Unix systems and services Windows does not include a system supported installation of Python To make Python available the CPython team has compiled Wind... | en | "Wy0wLjA2ODMyODM1ODIzMjk3NSwtMC4wMDQ4MzAzODU1NTgzMDcxNzEsLTAuMDA1NzUzMTMwNjUyMDEwNDQxLDAuMDA4NzAxNjQxMTEyNTY1OTk0LDAuMDE5MDQxNzk3MTQ2MjAxMTM0LC0wLjAwNDY2NDA0MTEwMTkzMjUyNiwtMC4wMTAzOTQ3ODE4Mjc5MjY2MzYsMC4wNDg5NTcxMTMxNzY1ODQyNDQsLTAuMDI3MDgzMzg3NTk4Mzk1MzQ4LDAuMDIwMjkyOTQ1MjA2MTY1MzE0LC0wLjAzMTcwMjIzMTYxNTc4MTc4NCwwLjA... |
176 | FileSystem This allows the open function the os module and most other path functionality to accept and return paths longer than 260 characters After changing the above option no further configuration is required Changed in version 3 6 Support for long paths was enabled in Python 4 1 3 Installing Without UI All of the ... | en | "WzAuMDA0MTUxMDI1Nzg2OTk1ODg4LDAuMDE3MDkwNzI2NjQzODAwNzM1LC0wLjAzMDkzMDU2MTk0NDg0MjM0LDAuMDE3ODMzMDc0NTU0ODAwOTg3LDAuMDI1ODA2NDc1NDMwNzI3MDA1LC0wLjA3MDIxNDk2NDQ0OTQwNTY3LC0wLjAwNjk1MTA2NTczNDAyODgxNiwwLjA2OTQ0ODQ0ODcxNzU5NDE1LC0wLjA2OTE3MzkwOTcyMzc1ODcsLTAuMDI4NDM0ODA5Mjk3MzIzMjI3LDAuMDg2NjU5MDUxNDc3OTA5MDksMC4wMjA3Mjk... |
177 | r if possible Values provided as element text are always left as strings This example file sets the same options as the previous example Options Option Name InstallAllUsers Value no Option Name Include_launcher Value 0 Option Name Include_test Value no Option Name SimpleInstall Value yes Option Name SimpleInstallDescri... | en | "WzAuMDI1MTE4MzAyNTUzODkyMTM2LDAuMDM4ODAwODAyMDgxODIzMzUsMC4wMDE5NTY4MTE0MDc1ODA5NzE3LDAuMDA1ODA5NjE4NjI1Nzg5ODgxLDAuMDA3OTI2OTA3MzkwMzU2MDY0LDAuMDAyMjg3NTA5Mzg1NDk2Mzc4LDAuMDQwMjE1MTg2Nzc0NzMwNjgsMC4wNTIwMjU2OTA2NzQ3ODE4LC0wLjA5MDY5ODA3MDgyNDE0NjI3LC0wLjAyOTUyODQ5Njc4Njk1MjAyLDAuMDU2NTY5MTQ0MTI5NzUzMTEsMC4wMTEwNzA4MTQ... |
178 | rictions on Microsoft Store apps Python scripts may not have full write access to shared locations such as TEMP and the registry Instead it will write to a private copy If your scripts must modify the shared locations you will need to install the full installer At runtime Python will use a private copy of well known Wi... | en | "WzAuMDA5ODE3NzEwMTQ2MzA3OTQ1LC0wLjAyNzIzODQwODEwMzU4NTI0MywtMC4wNzUzMjUxODM1NzAzODQ5OCwwLjAzMjQzNTMyNzc2ODMyNTgwNiwwLjAwNjM5Mjc2NzY1Mjg2OTIyNDUsLTAuMDI0NzcwODE4NjUwNzIyNTA0LDAuMDQ3MDA0MjMwMzIwNDUzNjQ0LDAuMDgzNTg3NTA0OTIzMzQzNjYsLTAuMDE3MjU4NTU0Njk3MDM2NzQzLDAuMDUwMTQzNzg1Nzc0NzA3Nzk0LDAuMDU1NTQxNzA5MDY1NDM3MzIsLTAuMDA... |
179 | ibution is almost fully isolated from the user s system including environment variables system registry settings and installed packages The standard library is included as pre compiled and optimized pyc files in a ZIP and python3 dll python37 dll python exe and pythonw exe are all provided Tcl tk including all dependen... | en | "Wy0wLjAxNTYxNDgxMzE5MzY3ODg1NiwtMC4wNzM0NzUwMzMwNDQ4MTUwNiwtMC4wMTI2ODUxMTkxNzQ0MjA4MzQsMC4wMDA0MjkxNzczMzY2Mjc2MTc1LC0wLjAwMDQwNDg5MDc0MzA4NDI1MTksLTAuMDA2NDkyNDE1NDQzMDYyNzgyLDAuMDI2MzA0ODkzMTk1NjI5MTIsMC4xMTAyNTc1MDYzNzA1NDQ0MywtMC4wMDI5OTk3NTg1ODA2OTk1NjMsLTAuMDEzNzczODgzNjkyOTIwMjA4LDAuMDI3MjYxNDI4NTM0OTg0NTksLTA... |
180 | de the latest versions of Python or other libraries and are not maintained or supported by the core Python team 4 6 Configuring Python To run Python conveniently from a command prompt you might consider changing some default environment variables in Windows While the installer provides an option to configure the PATH a... | en | "WzAuMDI5MTg0MjEyOTA4MTQ4NzY2LC0wLjA2MzU0NDM3MDIzNDAxMjYsLTAuMDEzMjEwMzU1MzA0MTgxNTc2LDAuMDI4MTI5MzM1NDkyODQ5MzUsLTAuMDQ0MjcwMjM2MDQ1MTIyMTUsMC4wMDYyNDY1OTY1NzQ3ODMzMjUsLTAuMDUzNDgxNDI2MDkwMDAyMDYsMC4xMTQyODM5NDkxMzY3MzQwMSwtMC4wNjUzODc4NzQ4NDE2OTAwNiwtMC4wMTA4NjA5Mzk1MTAxNjY2NDUsLTAuMDM0MTk0MTU2NTI3NTE5MjI2LC0wLjAwNTk... |
181 | 8 for enabling UTF 8 mode and Excursus Setting environment variables for how to modify environment variables When the Python UTF 8 Mode is enabled you can still use the system encoding the ANSI Code Page via the mbcs codec Note that adding PYTHONUTF8 1 to the default environment variables will affect all Python 3 7 app... | en | "WzAuMDAzMDYxNjIwOTg0MjI2NDY1MiwtMC4wMTc5ODYxOTE0MzY2NDgzNywtMC4wNDA5NDExNzEzNDgwOTQ5NCwwLjAwMTM5MDY3NzQxMTEwOTIwOSwtMC4wNTQxMjk0NDc3ODgwMDAxMSwwLjAxOTM5NTAxMDU0NTg0OTgsMC4wMDIyNjU4NDYxMjM5MTg4OTEsMC4wOTIwNjA5MDEyMjQ2MTMxOSwtMC4wMTg4NjIwMDkwNDg0NjE5MTQsLTAuMDQwMzY1MjIyODQxNTAxMjM2LC0wLjAwMzMyMTk5ODk4NTQ4NDI0MjQsLTAuMDA... |
182 | sys version From the directory in which hello py lives execute the command py hello py You should notice the version number of your latest Python 2 x installation is printed Now try changing the first line to be python3 Re executing the command should now print the latest Python 3 x information As with the above comman... | en | "WzAuMDEwMTY0MTE1NTc3OTM2MTcyLC0wLjAxMzc1NTI2MDAzNTM5NTYyMiwwLjAzMTMxNjY0NTQ0MzQzOTQ4NCwwLjAwMDY3MTk5MjY2MDUwMDEwOTIsMC4wMzc1ODkxODEyMTQ1NzEsLTAuMDQ4NDM2NTAzODU3Mzc0MTksMC4wMDgwNjIwMzIwNTEzODQ0NDksMC4wMzEyNzMxMDc5NzU3MjEzNiwtMC4wODA0Njk1OTM0MDU3MjM1NywtMC4wMTQwOTQ4MjQ5MDI3MTMyOTksLTAuMDA2ODgxMjA2NzYyMDQ1NjIyLDAuMDA2OTg... |
183 | am Files XPython python exe Any commands not found in the INI file are treated as Windows executable paths that are absolute or relative to the directory containing the script file This is a convenience for Windows only scripts such as those generated by an installer since the behavior is not compatible with Unix style... | en | "Wy0wLjA0MzA5ODMzMDQ5Nzc0MTcsMC4wNDY2Njg4Mzg3MDk1OTI4MiwtMC4wNTYwOTMwNTk0ODAxOTAyOCwtMC4wMTAyMjQzNDMyNzc1MTM5OCwwLjAyNjA3MjYzNjI0NjY4MTIxMywtMC4wNTk0MjQxOTkxNjM5MTM3MywwLjAyNDE1NzE4MzI0NDgyNDQxLDAuMTA3Njg5NTgxODExNDI4MDcsLTAuMDQ5MTA4Njg0MDYyOTU3NzY0LC0wLjAwNjA0NDE0OTg2NDQ2NDk5OCwwLjAwODkzODU4NjMzOTM1NDUxNSwwLjA0MjU1OTQ... |
184 | me settings can be configured in the INI file used by the launcher The section in the INI file is called defaults and the key name will be the same as the environment variables without the leading PY_ prefix and note that the key names in the INI file are case insensitive The contents of an environment variable will ov... | en | "Wy0wLjAxMjI3ODAzOTAwODM3ODk4MywtMC4wMDE5NzM4NjUwODgwNzUzOTk0LC0wLjAyMTEzNTQzMjY0NTY3ODUyLDAuMDA0OTc1ODI3ODc2NDc4NDM0LC0wLjAwNjUyNTA5Mjc1ODIzODMxNiwtMC4wNTU1NTcxMTMxNDA4MjE0NiwwLjAwNDQxMjM4ODQyOTA0NTY3NywwLjA2ODk1MDg2MTY5MjQyODU5LC0wLjEwMTUwMzcyMjM2OTY3MDg3LC0wLjAxMzQ1NjIzMDA1MTgxNTUxLC0wLjAxNjY3MTg5NTk4MDgzNDk2LC0wLjA... |
185 | try If the Python Home cannot be located no PYTHONPATH is specified in the environment and no registry entries can be found a default path with relative entries is used e g Lib plat win etc If a pyvenv cfg file is found alongside the main executable or in the directory one level above the executable the following varia... | en | "WzAuMDE3MjExODQxNDE5MzM5MTgsLTAuMDQ1NzgxNjM0NzQ3OTgyMDI1LC0wLjA0OTgzOTYxMjA5NjU0ODA4LC0wLjAxNjE4NTAxOTE2NTI3NzQ4LDAuMDQ2NjM1MDQ2NjAxMjk1NDcsLTAuMDI2Mjc2MDU1NzIzNDI4NzI2LC0wLjAxMzA2NDA2OTY3MzQxODk5OSwwLjA4MjEzNjczNTMyMDA5MTI1LC0wLjAwNDg0NDI1NjIxMTA3MjIwNjUsLTAuMDU0Nzg1MDM5Mjc1ODg0NjMsMC4wMjE3NTQxODg0NjMwOTE4NSwtMC4wMDg... |
186 | ect files for Microsoft Visual Studio which is the compiler used to build the official Python releases These files are in the PCbuild directory Check PCbuild readme txt for general information on the build process For extension modules consult Building C and C Extensions on Windows 4 12 Other Platforms With ongoing dev... | en | "Wy0wLjAyNDUyMDY4NTg5NjI3NzQyOCwwLjA2MDMyNzQwMzI0NzM1NjQxNSwtMC4wMDM3NjgzNDg2MDA3MTUzOTksMC4wMTA1MDg4ODM3NDQ0NzgyMjYsMC4wNzIyNDU1MjMzMzM1NDk1LC0wLjAxMDgwOTAzMTMxNTE0Nzg3NywwLjAwODE2NzE0NzYzNjQxMzU3NCwwLjA2MTMzOTI1MTY5NzA2MzQ0NiwtMC4wMTU5Mjk2NjM1NTM4MzM5NiwtMC4wNDE3MzQ0MzQ2NjQyNDk0MiwwLjAxMzEwMzg3NzE5NDIyNTc4OCwtMC4wMjQ... |
187 | Binary Data Services The modules described in this chapter provide some basic services operations for manipulation of binary data Other operations on binary data specifically in relation to file formats and network protocols are described in the relevant sections Some libraries described under Text Processing Services ... | en | "Wy0wLjA0NTI5ODU1NzcyODUyODk3NiwtMC4wNDk1MzU1MTY2NDk0ODQ2MzQsLTAuMDgzMDgyNzgwMjQxOTY2MjUsLTAuMDQ0NTg1MzQzNDUwMzA3ODQ2LC0wLjA5Mjk0MTQ2Mjk5MzYyMTgzLC0wLjA5MDI3OTg4NDYzNjQwMjEzLDAuMDEwMzE3MjQ4MjkyMjY3MzIzLDAuMDI4OTI1NTY5NzI4MDE2ODUzLC0wLjA1NDMxNDIyNTkxMjA5NDExNiwtMC4wMjkwNDU4NTc0ODkxMDkwNCwtMC4wMjM3MDIwMDExOTkxMjYyNDQsMC4... |
188 | gettext Multilingual internationalization services Source code Lib gettext py The gettext module provides internationalization I18N and localization L10N services for your Python modules and applications It supports both the GNU gettext message catalog API and a higher level class based API that may be more appropriate... | en | "Wy0wLjAyOTY4OTk4ODEyMTM5MDM0MywtMC4wMjcwODA3MDcyNTIwMjU2MDQsLTAuMDQxODY4MTM1MzMzMDYxMjIsLTAuMDYwMTM2MjU4NjAyMTQyMzM0LC0wLjAxNzQ1OTEwOTQyNTU0NDc0LC0wLjA4NDI2NDg3NDQ1ODMxMjk5LDAuMDM4NjI2MTg2NTQ5NjYzNTQ0LDAuMDUzNzU3NjYzODE2MjEzNjEsLTAuMDIzNDI5MzYzOTY1OTg4MTYsLTAuMDc1ODgwMDU4MTA5NzYwMjgsMC4wMDEyOTcyMzM2MjYyNDY0NTIzLC0wLjA... |
189 | list of strings where each string is a language code If localedir is not given then the default system locale directory is used 2 If languages is not given then the following environment variables are searched LANGUAGE LC_ALL LC_MESSAGES and LANG The first one returning a non empty value is used for the languages varia... | en | "Wy0wLjA1OTE0MDU4NTM2MjkxMTIyNCwtMC4wMjA1ODQzNTIzMTQ0NzIyLC0wLjAzOTU3MTE3NzIxNDM4NDA4LC0wLjAwODg4ODQxNTA2MDkzNzQwNSwwLjAyNTkxNzgyNjIyMDM5MzE4LC0wLjA1NDk1MzMxODA4OTI0Njc1LDAuMDg4MjAyNDI0MzQ3NDAwNjcsMC4wMTQ2OTE1MjUxMzg5MTQ1ODUsLTAuMDExNTIzMzAwNzgxODQ2MDQ2LC0wLjAxNzI5Mzk3Mjg5NDU0OTM3LDAuMDg1NTI3MTE0NTcwMTQwODQsLTAuMDY5NzY... |
190 | es New in version 3 8 npgettext context singular plural n If a fallback has been set forward npgettext to the fallback Otherwise return the translated message Overridden in derived classes New in version 3 8 info Return a dictionary containing the metadata found in the message catalog file charset Return the encoding o... | en | "Wy0wLjA2MDU1OTMwNjI5MzcyNTk3LC0wLjAxOTMwNTc2NTYyODgxNDY5NywtMC4wMTY2NjE3NjY5MTY1MTM0NDMsMC4wMjUwNzAwNzQ5NDU2ODgyNDgsMC4wMDk4MTgxMTQzNDAzMDUzMjgsLTAuMDQyMzEyNzE4OTI3ODYwMjYsMC4xMTA0MTQ1MzQ4MDcyMDUyLDAuMDYxMzI4OTAyODQwNjE0MzIsLTAuMDQ2NzEyNzMzODA1MTc5NTk2LC0wLjAzMzM5NTQ4NDA4OTg1MTM4LDAuMDAxMjUzNDUyNTAxMjU5NzQ0MiwtMC4wNTM... |
191 | request is forwarded to the fallback s npgettext method Otherwise when n is 1 singular is returned and plural is returned in all other cases New in version 3 8 Solaris message catalog support The Solaris operating system defines its own binary mo file format but since no documentation can be found on this format it is ... | en | "Wy0wLjAzMTA4MjMzNzcyMjE4MjI3NCwwLjAzNTM5MTEwNzIwMTU3NjIzLC0wLjAyODExODIyMjk1MTg4OTAzOCwtMC4wNTc4MzA3MDk5NjQwMzY5NCwwLjAxNTk2NDYwMzA1MTU0MzIzNiwtMC4wOTIxOTAwNjQ0ODk4NDE0NiwwLjAzMjk3MDk3NjA4NDQ3MDc1LDAuMDE4NzA0MDMyNTI1NDIwMTksLTAuMDAyMzYxODg5MjMwMDg3Mzk5NSwtMC4wMzI1MTE3MTg1NzExODYwNjYsMC4wMTY2NTI3MzY4MTI4Mjk5NywtMC4wNjU... |
192 | m and the module s various natural language translation mo files reside in usr share locale in GNU gettext format Here s what you would put at the top of your module import gettext t gettext translation spam usr share locale _ t gettext Localizing your application If you are localizing your application you can install ... | en | "Wy0wLjAwNTg2MjA1MzAxODA2MzMwNywtMC4wNDg5Mzg0NDk0NzIxODg5NSwtMC4wNDgzNjkyOTIxNjk4MDkzNCwtMC4wMjIzNzA3MjAyODIxOTcsLTAuMDQ3NzE2MjU2MjMxMDY5NTY1LC0wLjAwMjc3MDkzNDQ4Njc2MTY4OSwwLjA4NTUxMTE0Nzk3NTkyMTYzLDAuMTA3NTM5OTIxOTk4OTc3NjYsLTAuMDQwODE4OTM3MTIyODIxODEsLTAuMDU0NzIxMjA2NDI2NjIwNDgsMC4wNTY4Mzk2NTk4MTAwNjYyMiwtMC4xMDQ3NzY... |
193 | urllib robotparser Parser for robots txt Source code Lib urllib robotparser py This module provides a single class RobotFileParser which answers questions about whether or not a particular user agent can fetch a URL on the web site that published the robots txt file For more details on the structure of robots txt files... | en | "Wy0wLjA5ODE1NTcwNzEyMDg5NTM5LC0wLjA0NzgzODkxNTEzOTQzNjcyLC0wLjAyNjc1ODYwNzQ3Njk0OTY5MiwtMC4wMDc4NjQ2NjYxNzEzNzE5MzcsLTAuMDIwNjE3MjU0MDc4Mzg4MjE0LC0wLjEwNjk4OTQzNTg1MTU3Mzk0LC0wLjAyNjEzMTUzMzA4NjI5OTg5NiwwLjAwNTQ2MjAzMjc0Mjc5ODMyOCwtMC4wNjM0NTQ2NzI2OTQyMDYyNCwtMC4wNTE3Mjg4NTU4MTg1MTAwNTYsMC4wNDE3NjQ4NDc5MzQyNDYwNiwwLjA... |
194 | Superseded Modules The modules described in this chapter are deprecated and only kept for backwards compatibility They have been superseded by other modules aifc Read and write AIFF and AIFC files audioop Manipulate raw audio data cgi Common Gateway Interface support cgitb Traceback manager for CGI scripts chunk Read I... | en | "Wy0wLjAxOTc5MTkwMTExMTYwMjc4MywtMC4xMDA5NDg1MjAwMDQ3NDkzLC0wLjA2NDU3OTI2MzMyOTUwNTkyLC0wLjA5MDY4Nzk0NTQ4NTExNTA1LDAuMDMyMTg5ODc1ODQxMTQwNzUsMC4wMTY1MDI3OTc2MDM2MDcxNzgsLTAuMDA1NzYxNDQ0MTAyOTcyNzQ2LDAuMDM2NzY0Nzg1NjQ3MzkyMjcsLTAuMDkzMjY3MDQ1OTE1MTI2OCwtMC4wMjk0MjA2MDY3OTE5NzMxMTQsMC4wNDM5MDM4NDI1NjgzOTc1MiwwLjAwMTEzMzc... |
195 | email message Message Representing an email message using the compat32 API The Message class is very similar to the EmailMessage class without the methods added by that class and with the default behavior of certain other methods being slightly different We also document here some methods that while supported by the Em... | en | "WzAuMDA3MDc2MDAwNzk0NzY4MzMzNCwwLjA0NzY0NjA2ODAzNjU1NjI0NCwwLjAyMzUzNzQ4MzA2NjMyMDQyLC0wLjAyNzY3NTE2MTEzODE3NjkxOCwwLjA2MzA2NjE5OTQyMTg4MjYzLC0wLjAzMTY3MzM1MzE2NTM4ODExLDAuMDUyMzk3MTUwNTQ2MzEyMzMsMC4wNTAyNjQ2Nzg4OTU0NzM0OCwwLjA2MDExOTkyMzIwNDE4MzU4LC0wLjAwOTY2NjU0NjI0Nzg5OTUzMiwtMC4wNTMxNTMxMTk5ODEyODg5MSwtMC4wNDAyNzU... |
196 | will be replaced by unicode unknown character code points See also as_bytes and BytesGenerator Changed in version 3 4 the policy keyword argument was added __str__ Equivalent to as_string Allows str msg to produce a string containing the formatted message as_bytes unixfrom False policy None Return the entire message f... | en | "Wy0wLjAzNzY1NjAwNTQ3MTk0NDgxLDAuMDU5NTUzNDE4MzA4NDk2NDc1LC0wLjAxNTQ0NDkyMDM5ODI5NDkyNiwwLjAzODI2MzMzOTU0OTMwMzA1NSwtMC4wMjQ2OTk2NDEzOTE2MzQ5NCwtMC4wNTM5NjY4NjEyMTgyMTQwMzUsMC4wNDMzNjcwODc4NDEwMzM5MzYsMC4wMzMxOTA2OTc0MzE1NjQzMywtMC4wMzA1NTQzMDU3NjIwNTI1MzYsLTAuMDI4NDgxMTUwMDQ1OTkwOTQ0LDAuMDEwMjgwMTA5MDEwNjM2ODA2LC0wLjA... |
197 | de to decode the original bytes using the charset specified by the Content Type header using the replace error handler If no charset is specified or if the charset given is not recognized by the email package the body is decoded using the default ASCII charset This is a legacy method On the EmailMessage class its funct... | en | "Wy0wLjAxNDE2NzM0Njk5MTU5ODYwNiwwLjAzNjY4NjYyOTA1NjkzMDU0LDAuMDQwMzc5ODExMDc4MzEwMDEsMC4wMTM3MTI0ODYyNTIxODg2ODMsLTAuMDA1MzU0MDI2MzMyNDk3NTk3LC0wLjA0Njk2NjAxNjI5MjU3MjAyLDAuMDgxMjU4MjIyNDYwNzQ2NzcsMC4wMjQyNDUyMjg2MTgzODM0MDgsMC4wMTI2OTA5MzI0ODk5MzE1ODMsLTAuMDExMzc4ODQ3MDYyNTg3NzM4LDAuMDA0Nzg0MzY2NTgxNTg4OTgzNSwtMC4wMjg... |
198 | ader with the same name If you want to ensure that the new header is the only one present in the message with field name name delete the field first e g del msg subject msg subject Python roolz __delitem__ name Delete all occurrences of the field with name name from the message s headers No exception is raised if the n... | en | "Wy0wLjAzMTIxODAwNzIwNjkxNjgxLDAuMDk4NzI5NzUyMDA0MTQ2NTgsLTAuMDI2MjM5MzA3NTk3Mjc5NTUsMC4wNzUwNzY2MjQ3NTEwOTEsMC4wNDE1MzkxODEwMjM4MzYxMzYsLTAuMDY3MzY1NjI0MDEwNTYyOSwwLjEwNDgyNjg2MDEyOTgzMzIyLDAuMDE0NDI1MDE4ODAyMjg1MTk0LC0wLjAwNTY4MTAxNDYxOTc2NzY2NiwwLjAwNDAxNjc2ODE4NzI4NDQ3LDAuMDQwODQzMTQwMzMzODkwOTE1LC0wLjA4MjE3NjY4NTM... |
199 | sign The left hand side of the is the key while the right hand side is the value If there is no sign in the parameter the value is the empty string otherwise the value is as described in get_param and is unquoted if optional unquote is True the default Optional failobj is the object to return if there is no Content Typ... | en | "WzAuMDAxMzY2Njg0Njc4OTQxOTY1LDAuMDg0ODMyNjc1NzU1MDIzOTYsLTAuMDEyNTI1NDE1MDQ4MDAzMTk3LDAuMDUzMDIxOTk3MjEzMzYzNjUsMC4wMDM3NDYyNTA2NDQzMjYyMSwwLjAzOTk3MzUwMTExNjAzNzM3LDAuMDk2MjI0ODM3MDA1MTM4NCwwLjAzMjU0MjQwNzUxMjY2NDc5NSwwLjAxMjI3OTAyNzE0MTYzMDY1LC0wLjA0NjQyMDU1NTU2MTc4MDkzLC0wLjAwODI2Mzc4NTM5MjA0NTk3NSwtMC4xMTYwNDYzODM... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.