· 7 years ago · Sep 19, 2018, 01:46 AM
1>>> 10/0
2Traceback (most recent call last):
3 File "<input>", line 1, in <module>
4ZeroDivisionError: division by zero
5>>> 10 + '10'
6Traceback (most recent call last):
7 File "<input>", line 1, in <module>
8TypeError: unsupported operand type(s) for +: 'int' and 'str'
9>>> abc
10Traceback (most recent call last):
11 File "<input>", line 1, in <module>
12NameError: name 'abc' is not defined
13>>> x = (1,2)
14>>> x.asdsadas
15Traceback (most recent call last):
16 File "<input>", line 1, in <module>
17AttributeError: 'tuple' object has no attribute 'asdsadas'
18>>> x.ab()
19Traceback (most recent call last):
20 File "<input>", line 1, in <module>
21AttributeError: 'tuple' object has no attribute 'ab'
22>>> help(builtins)
23Traceback (most recent call last):
24 File "<input>", line 1, in <module>
25NameError: name 'builtins' is not defined
26>>> import builtins
27>>> help(builtins)
28Help on built-in module builtins:
29
30NAME
31 builtins - Built-in functions, exceptions, and other objects.
32
33DESCRIPTION
34 Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices.
35
36CLASSES
37 object
38 BaseException
39 Exception
40 ArithmeticError
41 FloatingPointError
42 OverflowError
43 ZeroDivisionError
44 AssertionError
45 AttributeError
46 BufferError
47 EOFError
48 ImportError
49 LookupError
50 IndexError
51 KeyError
52 MemoryError
53 NameError
54 UnboundLocalError
55 OSError
56 BlockingIOError
57 ChildProcessError
58 ConnectionError
59 BrokenPipeError
60 ConnectionAbortedError
61 ConnectionRefusedError
62 ConnectionResetError
63 FileExistsError
64 FileNotFoundError
65 InterruptedError
66 IsADirectoryError
67 NotADirectoryError
68 PermissionError
69 ProcessLookupError
70 TimeoutError
71 ReferenceError
72 RuntimeError
73 NotImplementedError
74 RecursionError
75 StopAsyncIteration
76 StopIteration
77 SyntaxError
78 IndentationError
79 TabError
80 SystemError
81 TypeError
82 ValueError
83 UnicodeError
84 UnicodeDecodeError
85 UnicodeEncodeError
86 UnicodeTranslateError
87 Warning
88 BytesWarning
89 DeprecationWarning
90 FutureWarning
91 ImportWarning
92 PendingDeprecationWarning
93 ResourceWarning
94 RuntimeWarning
95 SyntaxWarning
96 UnicodeWarning
97 UserWarning
98 GeneratorExit
99 KeyboardInterrupt
100 SystemExit
101 bytearray
102 bytes
103 classmethod
104 complex
105 dict
106 enumerate
107 filter
108 float
109 frozenset
110 int
111 bool
112 list
113 map
114 memoryview
115 property
116 range
117 reversed
118 set
119 slice
120 staticmethod
121 str
122 super
123 tuple
124 type
125 zip
126
127 class ArithmeticError(Exception)
128 | Base class for arithmetic errors.
129 |
130 | Method resolution order:
131 | ArithmeticError
132 | Exception
133 | BaseException
134 | object
135 |
136 | Methods defined here:
137 |
138 | __init__(self, /, *args, **kwargs)
139 | Initialize self. See help(type(self)) for accurate signature.
140 |
141 | __new__(*args, **kwargs) from type
142 | Create and return a new object. See help(type) for accurate signature.
143 |
144 | ----------------------------------------------------------------------
145 | Methods inherited from BaseException:
146 |
147 | __delattr__(self, name, /)
148 | Implement delattr(self, name).
149 |
150 | __getattribute__(self, name, /)
151 | Return getattr(self, name).
152 |
153 | __reduce__(...)
154 | helper for pickle
155 |
156 | __repr__(self, /)
157 | Return repr(self).
158 |
159 | __setattr__(self, name, value, /)
160 | Implement setattr(self, name, value).
161 |
162 | __setstate__(...)
163 |
164 | __str__(self, /)
165 | Return str(self).
166 |
167 | with_traceback(...)
168 | Exception.with_traceback(tb) --
169 | set self.__traceback__ to tb and return self.
170 |
171 | ----------------------------------------------------------------------
172 | Data descriptors inherited from BaseException:
173 |
174 | __cause__
175 | exception cause
176 |
177 | __context__
178 | exception context
179 |
180 | __dict__
181 |
182 | __suppress_context__
183 |
184 | __traceback__
185 |
186 | args
187
188 class AssertionError(Exception)
189 | Assertion failed.
190 |
191 | Method resolution order:
192 | AssertionError
193 | Exception
194 | BaseException
195 | object
196 |
197 | Methods defined here:
198 |
199 | __init__(self, /, *args, **kwargs)
200 | Initialize self. See help(type(self)) for accurate signature.
201 |
202 | __new__(*args, **kwargs) from type
203 | Create and return a new object. See help(type) for accurate signature.
204 |
205 | ----------------------------------------------------------------------
206 | Methods inherited from BaseException:
207 |
208 | __delattr__(self, name, /)
209 | Implement delattr(self, name).
210 |
211 | __getattribute__(self, name, /)
212 | Return getattr(self, name).
213 |
214 | __reduce__(...)
215 | helper for pickle
216 |
217 | __repr__(self, /)
218 | Return repr(self).
219 |
220 | __setattr__(self, name, value, /)
221 | Implement setattr(self, name, value).
222 |
223 | __setstate__(...)
224 |
225 | __str__(self, /)
226 | Return str(self).
227 |
228 | with_traceback(...)
229 | Exception.with_traceback(tb) --
230 | set self.__traceback__ to tb and return self.
231 |
232 | ----------------------------------------------------------------------
233 | Data descriptors inherited from BaseException:
234 |
235 | __cause__
236 | exception cause
237 |
238 | __context__
239 | exception context
240 |
241 | __dict__
242 |
243 | __suppress_context__
244 |
245 | __traceback__
246 |
247 | args
248
249 class AttributeError(Exception)
250 | Attribute not found.
251 |
252 | Method resolution order:
253 | AttributeError
254 | Exception
255 | BaseException
256 | object
257 |
258 | Methods defined here:
259 |
260 | __init__(self, /, *args, **kwargs)
261 | Initialize self. See help(type(self)) for accurate signature.
262 |
263 | __new__(*args, **kwargs) from type
264 | Create and return a new object. See help(type) for accurate signature.
265 |
266 | ----------------------------------------------------------------------
267 | Methods inherited from BaseException:
268 |
269 | __delattr__(self, name, /)
270 | Implement delattr(self, name).
271 |
272 | __getattribute__(self, name, /)
273 | Return getattr(self, name).
274 |
275 | __reduce__(...)
276 | helper for pickle
277 |
278 | __repr__(self, /)
279 | Return repr(self).
280 |
281 | __setattr__(self, name, value, /)
282 | Implement setattr(self, name, value).
283 |
284 | __setstate__(...)
285 |
286 | __str__(self, /)
287 | Return str(self).
288 |
289 | with_traceback(...)
290 | Exception.with_traceback(tb) --
291 | set self.__traceback__ to tb and return self.
292 |
293 | ----------------------------------------------------------------------
294 | Data descriptors inherited from BaseException:
295 |
296 | __cause__
297 | exception cause
298 |
299 | __context__
300 | exception context
301 |
302 | __dict__
303 |
304 | __suppress_context__
305 |
306 | __traceback__
307 |
308 | args
309
310 class BaseException(object)
311 | Common base class for all exceptions
312 |
313 | Methods defined here:
314 |
315 | __delattr__(self, name, /)
316 | Implement delattr(self, name).
317 |
318 | __getattribute__(self, name, /)
319 | Return getattr(self, name).
320 |
321 | __init__(self, /, *args, **kwargs)
322 | Initialize self. See help(type(self)) for accurate signature.
323 |
324 | __new__(*args, **kwargs) from type
325 | Create and return a new object. See help(type) for accurate signature.
326 |
327 | __reduce__(...)
328 | helper for pickle
329 |
330 | __repr__(self, /)
331 | Return repr(self).
332 |
333 | __setattr__(self, name, value, /)
334 | Implement setattr(self, name, value).
335 |
336 | __setstate__(...)
337 |
338 | __str__(self, /)
339 | Return str(self).
340 |
341 | with_traceback(...)
342 | Exception.with_traceback(tb) --
343 | set self.__traceback__ to tb and return self.
344 |
345 | ----------------------------------------------------------------------
346 | Data descriptors defined here:
347 |
348 | __cause__
349 | exception cause
350 |
351 | __context__
352 | exception context
353 |
354 | __dict__
355 |
356 | __suppress_context__
357 |
358 | __traceback__
359 |
360 | args
361
362 class BlockingIOError(OSError)
363 | I/O operation would block.
364 |
365 | Method resolution order:
366 | BlockingIOError
367 | OSError
368 | Exception
369 | BaseException
370 | object
371 |
372 | Methods defined here:
373 |
374 | __init__(self, /, *args, **kwargs)
375 | Initialize self. See help(type(self)) for accurate signature.
376 |
377 | ----------------------------------------------------------------------
378 | Methods inherited from OSError:
379 |
380 | __new__(*args, **kwargs) from type
381 | Create and return a new object. See help(type) for accurate signature.
382 |
383 | __reduce__(...)
384 | helper for pickle
385 |
386 | __str__(self, /)
387 | Return str(self).
388 |
389 | ----------------------------------------------------------------------
390 | Data descriptors inherited from OSError:
391 |
392 | characters_written
393 |
394 | errno
395 | POSIX exception code
396 |
397 | filename
398 | exception filename
399 |
400 | filename2
401 | second exception filename
402 |
403 | strerror
404 | exception strerror
405 |
406 | winerror
407 | Win32 exception code
408 |
409 | ----------------------------------------------------------------------
410 | Methods inherited from BaseException:
411 |
412 | __delattr__(self, name, /)
413 | Implement delattr(self, name).
414 |
415 | __getattribute__(self, name, /)
416 | Return getattr(self, name).
417 |
418 | __repr__(self, /)
419 | Return repr(self).
420 |
421 | __setattr__(self, name, value, /)
422 | Implement setattr(self, name, value).
423 |
424 | __setstate__(...)
425 |
426 | with_traceback(...)
427 | Exception.with_traceback(tb) --
428 | set self.__traceback__ to tb and return self.
429 |
430 | ----------------------------------------------------------------------
431 | Data descriptors inherited from BaseException:
432 |
433 | __cause__
434 | exception cause
435 |
436 | __context__
437 | exception context
438 |
439 | __dict__
440 |
441 | __suppress_context__
442 |
443 | __traceback__
444 |
445 | args
446
447 class BrokenPipeError(ConnectionError)
448 | Broken pipe.
449 |
450 | Method resolution order:
451 | BrokenPipeError
452 | ConnectionError
453 | OSError
454 | Exception
455 | BaseException
456 | object
457 |
458 | Methods defined here:
459 |
460 | __init__(self, /, *args, **kwargs)
461 | Initialize self. See help(type(self)) for accurate signature.
462 |
463 | ----------------------------------------------------------------------
464 | Methods inherited from OSError:
465 |
466 | __new__(*args, **kwargs) from type
467 | Create and return a new object. See help(type) for accurate signature.
468 |
469 | __reduce__(...)
470 | helper for pickle
471 |
472 | __str__(self, /)
473 | Return str(self).
474 |
475 | ----------------------------------------------------------------------
476 | Data descriptors inherited from OSError:
477 |
478 | characters_written
479 |
480 | errno
481 | POSIX exception code
482 |
483 | filename
484 | exception filename
485 |
486 | filename2
487 | second exception filename
488 |
489 | strerror
490 | exception strerror
491 |
492 | winerror
493 | Win32 exception code
494 |
495 | ----------------------------------------------------------------------
496 | Methods inherited from BaseException:
497 |
498 | __delattr__(self, name, /)
499 | Implement delattr(self, name).
500 |
501 | __getattribute__(self, name, /)
502 | Return getattr(self, name).
503 |
504 | __repr__(self, /)
505 | Return repr(self).
506 |
507 | __setattr__(self, name, value, /)
508 | Implement setattr(self, name, value).
509 |
510 | __setstate__(...)
511 |
512 | with_traceback(...)
513 | Exception.with_traceback(tb) --
514 | set self.__traceback__ to tb and return self.
515 |
516 | ----------------------------------------------------------------------
517 | Data descriptors inherited from BaseException:
518 |
519 | __cause__
520 | exception cause
521 |
522 | __context__
523 | exception context
524 |
525 | __dict__
526 |
527 | __suppress_context__
528 |
529 | __traceback__
530 |
531 | args
532
533 class BufferError(Exception)
534 | Buffer error.
535 |
536 | Method resolution order:
537 | BufferError
538 | Exception
539 | BaseException
540 | object
541 |
542 | Methods defined here:
543 |
544 | __init__(self, /, *args, **kwargs)
545 | Initialize self. See help(type(self)) for accurate signature.
546 |
547 | __new__(*args, **kwargs) from type
548 | Create and return a new object. See help(type) for accurate signature.
549 |
550 | ----------------------------------------------------------------------
551 | Methods inherited from BaseException:
552 |
553 | __delattr__(self, name, /)
554 | Implement delattr(self, name).
555 |
556 | __getattribute__(self, name, /)
557 | Return getattr(self, name).
558 |
559 | __reduce__(...)
560 | helper for pickle
561 |
562 | __repr__(self, /)
563 | Return repr(self).
564 |
565 | __setattr__(self, name, value, /)
566 | Implement setattr(self, name, value).
567 |
568 | __setstate__(...)
569 |
570 | __str__(self, /)
571 | Return str(self).
572 |
573 | with_traceback(...)
574 | Exception.with_traceback(tb) --
575 | set self.__traceback__ to tb and return self.
576 |
577 | ----------------------------------------------------------------------
578 | Data descriptors inherited from BaseException:
579 |
580 | __cause__
581 | exception cause
582 |
583 | __context__
584 | exception context
585 |
586 | __dict__
587 |
588 | __suppress_context__
589 |
590 | __traceback__
591 |
592 | args
593
594 class BytesWarning(Warning)
595 | Base class for warnings about bytes and buffer related problems, mostly
596 | related to conversion from str or comparing to str.
597 |
598 | Method resolution order:
599 | BytesWarning
600 | Warning
601 | Exception
602 | BaseException
603 | object
604 |
605 | Methods defined here:
606 |
607 | __init__(self, /, *args, **kwargs)
608 | Initialize self. See help(type(self)) for accurate signature.
609 |
610 | __new__(*args, **kwargs) from type
611 | Create and return a new object. See help(type) for accurate signature.
612 |
613 | ----------------------------------------------------------------------
614 | Methods inherited from BaseException:
615 |
616 | __delattr__(self, name, /)
617 | Implement delattr(self, name).
618 |
619 | __getattribute__(self, name, /)
620 | Return getattr(self, name).
621 |
622 | __reduce__(...)
623 | helper for pickle
624 |
625 | __repr__(self, /)
626 | Return repr(self).
627 |
628 | __setattr__(self, name, value, /)
629 | Implement setattr(self, name, value).
630 |
631 | __setstate__(...)
632 |
633 | __str__(self, /)
634 | Return str(self).
635 |
636 | with_traceback(...)
637 | Exception.with_traceback(tb) --
638 | set self.__traceback__ to tb and return self.
639 |
640 | ----------------------------------------------------------------------
641 | Data descriptors inherited from BaseException:
642 |
643 | __cause__
644 | exception cause
645 |
646 | __context__
647 | exception context
648 |
649 | __dict__
650 |
651 | __suppress_context__
652 |
653 | __traceback__
654 |
655 | args
656
657 class ChildProcessError(OSError)
658 | Child process error.
659 |
660 | Method resolution order:
661 | ChildProcessError
662 | OSError
663 | Exception
664 | BaseException
665 | object
666 |
667 | Methods defined here:
668 |
669 | __init__(self, /, *args, **kwargs)
670 | Initialize self. See help(type(self)) for accurate signature.
671 |
672 | ----------------------------------------------------------------------
673 | Methods inherited from OSError:
674 |
675 | __new__(*args, **kwargs) from type
676 | Create and return a new object. See help(type) for accurate signature.
677 |
678 | __reduce__(...)
679 | helper for pickle
680 |
681 | __str__(self, /)
682 | Return str(self).
683 |
684 | ----------------------------------------------------------------------
685 | Data descriptors inherited from OSError:
686 |
687 | characters_written
688 |
689 | errno
690 | POSIX exception code
691 |
692 | filename
693 | exception filename
694 |
695 | filename2
696 | second exception filename
697 |
698 | strerror
699 | exception strerror
700 |
701 | winerror
702 | Win32 exception code
703 |
704 | ----------------------------------------------------------------------
705 | Methods inherited from BaseException:
706 |
707 | __delattr__(self, name, /)
708 | Implement delattr(self, name).
709 |
710 | __getattribute__(self, name, /)
711 | Return getattr(self, name).
712 |
713 | __repr__(self, /)
714 | Return repr(self).
715 |
716 | __setattr__(self, name, value, /)
717 | Implement setattr(self, name, value).
718 |
719 | __setstate__(...)
720 |
721 | with_traceback(...)
722 | Exception.with_traceback(tb) --
723 | set self.__traceback__ to tb and return self.
724 |
725 | ----------------------------------------------------------------------
726 | Data descriptors inherited from BaseException:
727 |
728 | __cause__
729 | exception cause
730 |
731 | __context__
732 | exception context
733 |
734 | __dict__
735 |
736 | __suppress_context__
737 |
738 | __traceback__
739 |
740 | args
741
742 class ConnectionAbortedError(ConnectionError)
743 | Connection aborted.
744 |
745 | Method resolution order:
746 | ConnectionAbortedError
747 | ConnectionError
748 | OSError
749 | Exception
750 | BaseException
751 | object
752 |
753 | Methods defined here:
754 |
755 | __init__(self, /, *args, **kwargs)
756 | Initialize self. See help(type(self)) for accurate signature.
757 |
758 | ----------------------------------------------------------------------
759 | Methods inherited from OSError:
760 |
761 | __new__(*args, **kwargs) from type
762 | Create and return a new object. See help(type) for accurate signature.
763 |
764 | __reduce__(...)
765 | helper for pickle
766 |
767 | __str__(self, /)
768 | Return str(self).
769 |
770 | ----------------------------------------------------------------------
771 | Data descriptors inherited from OSError:
772 |
773 | characters_written
774 |
775 | errno
776 | POSIX exception code
777 |
778 | filename
779 | exception filename
780 |
781 | filename2
782 | second exception filename
783 |
784 | strerror
785 | exception strerror
786 |
787 | winerror
788 | Win32 exception code
789 |
790 | ----------------------------------------------------------------------
791 | Methods inherited from BaseException:
792 |
793 | __delattr__(self, name, /)
794 | Implement delattr(self, name).
795 |
796 | __getattribute__(self, name, /)
797 | Return getattr(self, name).
798 |
799 | __repr__(self, /)
800 | Return repr(self).
801 |
802 | __setattr__(self, name, value, /)
803 | Implement setattr(self, name, value).
804 |
805 | __setstate__(...)
806 |
807 | with_traceback(...)
808 | Exception.with_traceback(tb) --
809 | set self.__traceback__ to tb and return self.
810 |
811 | ----------------------------------------------------------------------
812 | Data descriptors inherited from BaseException:
813 |
814 | __cause__
815 | exception cause
816 |
817 | __context__
818 | exception context
819 |
820 | __dict__
821 |
822 | __suppress_context__
823 |
824 | __traceback__
825 |
826 | args
827
828 class ConnectionError(OSError)
829 | Connection error.
830 |
831 | Method resolution order:
832 | ConnectionError
833 | OSError
834 | Exception
835 | BaseException
836 | object
837 |
838 | Methods defined here:
839 |
840 | __init__(self, /, *args, **kwargs)
841 | Initialize self. See help(type(self)) for accurate signature.
842 |
843 | ----------------------------------------------------------------------
844 | Methods inherited from OSError:
845 |
846 | __new__(*args, **kwargs) from type
847 | Create and return a new object. See help(type) for accurate signature.
848 |
849 | __reduce__(...)
850 | helper for pickle
851 |
852 | __str__(self, /)
853 | Return str(self).
854 |
855 | ----------------------------------------------------------------------
856 | Data descriptors inherited from OSError:
857 |
858 | characters_written
859 |
860 | errno
861 | POSIX exception code
862 |
863 | filename
864 | exception filename
865 |
866 | filename2
867 | second exception filename
868 |
869 | strerror
870 | exception strerror
871 |
872 | winerror
873 | Win32 exception code
874 |
875 | ----------------------------------------------------------------------
876 | Methods inherited from BaseException:
877 |
878 | __delattr__(self, name, /)
879 | Implement delattr(self, name).
880 |
881 | __getattribute__(self, name, /)
882 | Return getattr(self, name).
883 |
884 | __repr__(self, /)
885 | Return repr(self).
886 |
887 | __setattr__(self, name, value, /)
888 | Implement setattr(self, name, value).
889 |
890 | __setstate__(...)
891 |
892 | with_traceback(...)
893 | Exception.with_traceback(tb) --
894 | set self.__traceback__ to tb and return self.
895 |
896 | ----------------------------------------------------------------------
897 | Data descriptors inherited from BaseException:
898 |
899 | __cause__
900 | exception cause
901 |
902 | __context__
903 | exception context
904 |
905 | __dict__
906 |
907 | __suppress_context__
908 |
909 | __traceback__
910 |
911 | args
912
913 class ConnectionRefusedError(ConnectionError)
914 | Connection refused.
915 |
916 | Method resolution order:
917 | ConnectionRefusedError
918 | ConnectionError
919 | OSError
920 | Exception
921 | BaseException
922 | object
923 |
924 | Methods defined here:
925 |
926 | __init__(self, /, *args, **kwargs)
927 | Initialize self. See help(type(self)) for accurate signature.
928 |
929 | ----------------------------------------------------------------------
930 | Methods inherited from OSError:
931 |
932 | __new__(*args, **kwargs) from type
933 | Create and return a new object. See help(type) for accurate signature.
934 |
935 | __reduce__(...)
936 | helper for pickle
937 |
938 | __str__(self, /)
939 | Return str(self).
940 |
941 | ----------------------------------------------------------------------
942 | Data descriptors inherited from OSError:
943 |
944 | characters_written
945 |
946 | errno
947 | POSIX exception code
948 |
949 | filename
950 | exception filename
951 |
952 | filename2
953 | second exception filename
954 |
955 | strerror
956 | exception strerror
957 |
958 | winerror
959 | Win32 exception code
960 |
961 | ----------------------------------------------------------------------
962 | Methods inherited from BaseException:
963 |
964 | __delattr__(self, name, /)
965 | Implement delattr(self, name).
966 |
967 | __getattribute__(self, name, /)
968 | Return getattr(self, name).
969 |
970 | __repr__(self, /)
971 | Return repr(self).
972 |
973 | __setattr__(self, name, value, /)
974 | Implement setattr(self, name, value).
975 |
976 | __setstate__(...)
977 |
978 | with_traceback(...)
979 | Exception.with_traceback(tb) --
980 | set self.__traceback__ to tb and return self.
981 |
982 | ----------------------------------------------------------------------
983 | Data descriptors inherited from BaseException:
984 |
985 | __cause__
986 | exception cause
987 |
988 | __context__
989 | exception context
990 |
991 | __dict__
992 |
993 | __suppress_context__
994 |
995 | __traceback__
996 |
997 | args
998
999 class ConnectionResetError(ConnectionError)
1000 | Connection reset.
1001 |
1002 | Method resolution order:
1003 | ConnectionResetError
1004 | ConnectionError
1005 | OSError
1006 | Exception
1007 | BaseException
1008 | object
1009 |
1010 | Methods defined here:
1011 |
1012 | __init__(self, /, *args, **kwargs)
1013 | Initialize self. See help(type(self)) for accurate signature.
1014 |
1015 | ----------------------------------------------------------------------
1016 | Methods inherited from OSError:
1017 |
1018 | __new__(*args, **kwargs) from type
1019 | Create and return a new object. See help(type) for accurate signature.
1020 |
1021 | __reduce__(...)
1022 | helper for pickle
1023 |
1024 | __str__(self, /)
1025 | Return str(self).
1026 |
1027 | ----------------------------------------------------------------------
1028 | Data descriptors inherited from OSError:
1029 |
1030 | characters_written
1031 |
1032 | errno
1033 | POSIX exception code
1034 |
1035 | filename
1036 | exception filename
1037 |
1038 | filename2
1039 | second exception filename
1040 |
1041 | strerror
1042 | exception strerror
1043 |
1044 | winerror
1045 | Win32 exception code
1046 |
1047 | ----------------------------------------------------------------------
1048 | Methods inherited from BaseException:
1049 |
1050 | __delattr__(self, name, /)
1051 | Implement delattr(self, name).
1052 |
1053 | __getattribute__(self, name, /)
1054 | Return getattr(self, name).
1055 |
1056 | __repr__(self, /)
1057 | Return repr(self).
1058 |
1059 | __setattr__(self, name, value, /)
1060 | Implement setattr(self, name, value).
1061 |
1062 | __setstate__(...)
1063 |
1064 | with_traceback(...)
1065 | Exception.with_traceback(tb) --
1066 | set self.__traceback__ to tb and return self.
1067 |
1068 | ----------------------------------------------------------------------
1069 | Data descriptors inherited from BaseException:
1070 |
1071 | __cause__
1072 | exception cause
1073 |
1074 | __context__
1075 | exception context
1076 |
1077 | __dict__
1078 |
1079 | __suppress_context__
1080 |
1081 | __traceback__
1082 |
1083 | args
1084
1085 class DeprecationWarning(Warning)
1086 | Base class for warnings about deprecated features.
1087 |
1088 | Method resolution order:
1089 | DeprecationWarning
1090 | Warning
1091 | Exception
1092 | BaseException
1093 | object
1094 |
1095 | Methods defined here:
1096 |
1097 | __init__(self, /, *args, **kwargs)
1098 | Initialize self. See help(type(self)) for accurate signature.
1099 |
1100 | __new__(*args, **kwargs) from type
1101 | Create and return a new object. See help(type) for accurate signature.
1102 |
1103 | ----------------------------------------------------------------------
1104 | Methods inherited from BaseException:
1105 |
1106 | __delattr__(self, name, /)
1107 | Implement delattr(self, name).
1108 |
1109 | __getattribute__(self, name, /)
1110 | Return getattr(self, name).
1111 |
1112 | __reduce__(...)
1113 | helper for pickle
1114 |
1115 | __repr__(self, /)
1116 | Return repr(self).
1117 |
1118 | __setattr__(self, name, value, /)
1119 | Implement setattr(self, name, value).
1120 |
1121 | __setstate__(...)
1122 |
1123 | __str__(self, /)
1124 | Return str(self).
1125 |
1126 | with_traceback(...)
1127 | Exception.with_traceback(tb) --
1128 | set self.__traceback__ to tb and return self.
1129 |
1130 | ----------------------------------------------------------------------
1131 | Data descriptors inherited from BaseException:
1132 |
1133 | __cause__
1134 | exception cause
1135 |
1136 | __context__
1137 | exception context
1138 |
1139 | __dict__
1140 |
1141 | __suppress_context__
1142 |
1143 | __traceback__
1144 |
1145 | args
1146
1147 class EOFError(Exception)
1148 | Read beyond end of file.
1149 |
1150 | Method resolution order:
1151 | EOFError
1152 | Exception
1153 | BaseException
1154 | object
1155 |
1156 | Methods defined here:
1157 |
1158 | __init__(self, /, *args, **kwargs)
1159 | Initialize self. See help(type(self)) for accurate signature.
1160 |
1161 | __new__(*args, **kwargs) from type
1162 | Create and return a new object. See help(type) for accurate signature.
1163 |
1164 | ----------------------------------------------------------------------
1165 | Methods inherited from BaseException:
1166 |
1167 | __delattr__(self, name, /)
1168 | Implement delattr(self, name).
1169 |
1170 | __getattribute__(self, name, /)
1171 | Return getattr(self, name).
1172 |
1173 | __reduce__(...)
1174 | helper for pickle
1175 |
1176 | __repr__(self, /)
1177 | Return repr(self).
1178 |
1179 | __setattr__(self, name, value, /)
1180 | Implement setattr(self, name, value).
1181 |
1182 | __setstate__(...)
1183 |
1184 | __str__(self, /)
1185 | Return str(self).
1186 |
1187 | with_traceback(...)
1188 | Exception.with_traceback(tb) --
1189 | set self.__traceback__ to tb and return self.
1190 |
1191 | ----------------------------------------------------------------------
1192 | Data descriptors inherited from BaseException:
1193 |
1194 | __cause__
1195 | exception cause
1196 |
1197 | __context__
1198 | exception context
1199 |
1200 | __dict__
1201 |
1202 | __suppress_context__
1203 |
1204 | __traceback__
1205 |
1206 | args
1207
1208 EnvironmentError = class OSError(Exception)
1209 | Base class for I/O related errors.
1210 |
1211 | Method resolution order:
1212 | OSError
1213 | Exception
1214 | BaseException
1215 | object
1216 |
1217 | Methods defined here:
1218 |
1219 | __init__(self, /, *args, **kwargs)
1220 | Initialize self. See help(type(self)) for accurate signature.
1221 |
1222 | __new__(*args, **kwargs) from type
1223 | Create and return a new object. See help(type) for accurate signature.
1224 |
1225 | __reduce__(...)
1226 | helper for pickle
1227 |
1228 | __str__(self, /)
1229 | Return str(self).
1230 |
1231 | ----------------------------------------------------------------------
1232 | Data descriptors defined here:
1233 |
1234 | characters_written
1235 |
1236 | errno
1237 | POSIX exception code
1238 |
1239 | filename
1240 | exception filename
1241 |
1242 | filename2
1243 | second exception filename
1244 |
1245 | strerror
1246 | exception strerror
1247 |
1248 | winerror
1249 | Win32 exception code
1250 |
1251 | ----------------------------------------------------------------------
1252 | Methods inherited from BaseException:
1253 |
1254 | __delattr__(self, name, /)
1255 | Implement delattr(self, name).
1256 |
1257 | __getattribute__(self, name, /)
1258 | Return getattr(self, name).
1259 |
1260 | __repr__(self, /)
1261 | Return repr(self).
1262 |
1263 | __setattr__(self, name, value, /)
1264 | Implement setattr(self, name, value).
1265 |
1266 | __setstate__(...)
1267 |
1268 | with_traceback(...)
1269 | Exception.with_traceback(tb) --
1270 | set self.__traceback__ to tb and return self.
1271 |
1272 | ----------------------------------------------------------------------
1273 | Data descriptors inherited from BaseException:
1274 |
1275 | __cause__
1276 | exception cause
1277 |
1278 | __context__
1279 | exception context
1280 |
1281 | __dict__
1282 |
1283 | __suppress_context__
1284 |
1285 | __traceback__
1286 |
1287 | args
1288
1289 class Exception(BaseException)
1290 | Common base class for all non-exit exceptions.
1291 |
1292 | Method resolution order:
1293 | Exception
1294 | BaseException
1295 | object
1296 |
1297 | Methods defined here:
1298 |
1299 | __init__(self, /, *args, **kwargs)
1300 | Initialize self. See help(type(self)) for accurate signature.
1301 |
1302 | __new__(*args, **kwargs) from type
1303 | Create and return a new object. See help(type) for accurate signature.
1304 |
1305 | ----------------------------------------------------------------------
1306 | Methods inherited from BaseException:
1307 |
1308 | __delattr__(self, name, /)
1309 | Implement delattr(self, name).
1310 |
1311 | __getattribute__(self, name, /)
1312 | Return getattr(self, name).
1313 |
1314 | __reduce__(...)
1315 | helper for pickle
1316 |
1317 | __repr__(self, /)
1318 | Return repr(self).
1319 |
1320 | __setattr__(self, name, value, /)
1321 | Implement setattr(self, name, value).
1322 |
1323 | __setstate__(...)
1324 |
1325 | __str__(self, /)
1326 | Return str(self).
1327 |
1328 | with_traceback(...)
1329 | Exception.with_traceback(tb) --
1330 | set self.__traceback__ to tb and return self.
1331 |
1332 | ----------------------------------------------------------------------
1333 | Data descriptors inherited from BaseException:
1334 |
1335 | __cause__
1336 | exception cause
1337 |
1338 | __context__
1339 | exception context
1340 |
1341 | __dict__
1342 |
1343 | __suppress_context__
1344 |
1345 | __traceback__
1346 |
1347 | args
1348
1349 class FileExistsError(OSError)
1350 | File already exists.
1351 |
1352 | Method resolution order:
1353 | FileExistsError
1354 | OSError
1355 | Exception
1356 | BaseException
1357 | object
1358 |
1359 | Methods defined here:
1360 |
1361 | __init__(self, /, *args, **kwargs)
1362 | Initialize self. See help(type(self)) for accurate signature.
1363 |
1364 | ----------------------------------------------------------------------
1365 | Methods inherited from OSError:
1366 |
1367 | __new__(*args, **kwargs) from type
1368 | Create and return a new object. See help(type) for accurate signature.
1369 |
1370 | __reduce__(...)
1371 | helper for pickle
1372 |
1373 | __str__(self, /)
1374 | Return str(self).
1375 |
1376 | ----------------------------------------------------------------------
1377 | Data descriptors inherited from OSError:
1378 |
1379 | characters_written
1380 |
1381 | errno
1382 | POSIX exception code
1383 |
1384 | filename
1385 | exception filename
1386 |
1387 | filename2
1388 | second exception filename
1389 |
1390 | strerror
1391 | exception strerror
1392 |
1393 | winerror
1394 | Win32 exception code
1395 |
1396 | ----------------------------------------------------------------------
1397 | Methods inherited from BaseException:
1398 |
1399 | __delattr__(self, name, /)
1400 | Implement delattr(self, name).
1401 |
1402 | __getattribute__(self, name, /)
1403 | Return getattr(self, name).
1404 |
1405 | __repr__(self, /)
1406 | Return repr(self).
1407 |
1408 | __setattr__(self, name, value, /)
1409 | Implement setattr(self, name, value).
1410 |
1411 | __setstate__(...)
1412 |
1413 | with_traceback(...)
1414 | Exception.with_traceback(tb) --
1415 | set self.__traceback__ to tb and return self.
1416 |
1417 | ----------------------------------------------------------------------
1418 | Data descriptors inherited from BaseException:
1419 |
1420 | __cause__
1421 | exception cause
1422 |
1423 | __context__
1424 | exception context
1425 |
1426 | __dict__
1427 |
1428 | __suppress_context__
1429 |
1430 | __traceback__
1431 |
1432 | args
1433
1434 class FileNotFoundError(OSError)
1435 | File not found.
1436 |
1437 | Method resolution order:
1438 | FileNotFoundError
1439 | OSError
1440 | Exception
1441 | BaseException
1442 | object
1443 |
1444 | Methods defined here:
1445 |
1446 | __init__(self, /, *args, **kwargs)
1447 | Initialize self. See help(type(self)) for accurate signature.
1448 |
1449 | ----------------------------------------------------------------------
1450 | Methods inherited from OSError:
1451 |
1452 | __new__(*args, **kwargs) from type
1453 | Create and return a new object. See help(type) for accurate signature.
1454 |
1455 | __reduce__(...)
1456 | helper for pickle
1457 |
1458 | __str__(self, /)
1459 | Return str(self).
1460 |
1461 | ----------------------------------------------------------------------
1462 | Data descriptors inherited from OSError:
1463 |
1464 | characters_written
1465 |
1466 | errno
1467 | POSIX exception code
1468 |
1469 | filename
1470 | exception filename
1471 |
1472 | filename2
1473 | second exception filename
1474 |
1475 | strerror
1476 | exception strerror
1477 |
1478 | winerror
1479 | Win32 exception code
1480 |
1481 | ----------------------------------------------------------------------
1482 | Methods inherited from BaseException:
1483 |
1484 | __delattr__(self, name, /)
1485 | Implement delattr(self, name).
1486 |
1487 | __getattribute__(self, name, /)
1488 | Return getattr(self, name).
1489 |
1490 | __repr__(self, /)
1491 | Return repr(self).
1492 |
1493 | __setattr__(self, name, value, /)
1494 | Implement setattr(self, name, value).
1495 |
1496 | __setstate__(...)
1497 |
1498 | with_traceback(...)
1499 | Exception.with_traceback(tb) --
1500 | set self.__traceback__ to tb and return self.
1501 |
1502 | ----------------------------------------------------------------------
1503 | Data descriptors inherited from BaseException:
1504 |
1505 | __cause__
1506 | exception cause
1507 |
1508 | __context__
1509 | exception context
1510 |
1511 | __dict__
1512 |
1513 | __suppress_context__
1514 |
1515 | __traceback__
1516 |
1517 | args
1518
1519 class FloatingPointError(ArithmeticError)
1520 | Floating point operation failed.
1521 |
1522 | Method resolution order:
1523 | FloatingPointError
1524 | ArithmeticError
1525 | Exception
1526 | BaseException
1527 | object
1528 |
1529 | Methods defined here:
1530 |
1531 | __init__(self, /, *args, **kwargs)
1532 | Initialize self. See help(type(self)) for accurate signature.
1533 |
1534 | __new__(*args, **kwargs) from type
1535 | Create and return a new object. See help(type) for accurate signature.
1536 |
1537 | ----------------------------------------------------------------------
1538 | Methods inherited from BaseException:
1539 |
1540 | __delattr__(self, name, /)
1541 | Implement delattr(self, name).
1542 |
1543 | __getattribute__(self, name, /)
1544 | Return getattr(self, name).
1545 |
1546 | __reduce__(...)
1547 | helper for pickle
1548 |
1549 | __repr__(self, /)
1550 | Return repr(self).
1551 |
1552 | __setattr__(self, name, value, /)
1553 | Implement setattr(self, name, value).
1554 |
1555 | __setstate__(...)
1556 |
1557 | __str__(self, /)
1558 | Return str(self).
1559 |
1560 | with_traceback(...)
1561 | Exception.with_traceback(tb) --
1562 | set self.__traceback__ to tb and return self.
1563 |
1564 | ----------------------------------------------------------------------
1565 | Data descriptors inherited from BaseException:
1566 |
1567 | __cause__
1568 | exception cause
1569 |
1570 | __context__
1571 | exception context
1572 |
1573 | __dict__
1574 |
1575 | __suppress_context__
1576 |
1577 | __traceback__
1578 |
1579 | args
1580
1581 class FutureWarning(Warning)
1582 | Base class for warnings about constructs that will change semantically
1583 | in the future.
1584 |
1585 | Method resolution order:
1586 | FutureWarning
1587 | Warning
1588 | Exception
1589 | BaseException
1590 | object
1591 |
1592 | Methods defined here:
1593 |
1594 | __init__(self, /, *args, **kwargs)
1595 | Initialize self. See help(type(self)) for accurate signature.
1596 |
1597 | __new__(*args, **kwargs) from type
1598 | Create and return a new object. See help(type) for accurate signature.
1599 |
1600 | ----------------------------------------------------------------------
1601 | Methods inherited from BaseException:
1602 |
1603 | __delattr__(self, name, /)
1604 | Implement delattr(self, name).
1605 |
1606 | __getattribute__(self, name, /)
1607 | Return getattr(self, name).
1608 |
1609 | __reduce__(...)
1610 | helper for pickle
1611 |
1612 | __repr__(self, /)
1613 | Return repr(self).
1614 |
1615 | __setattr__(self, name, value, /)
1616 | Implement setattr(self, name, value).
1617 |
1618 | __setstate__(...)
1619 |
1620 | __str__(self, /)
1621 | Return str(self).
1622 |
1623 | with_traceback(...)
1624 | Exception.with_traceback(tb) --
1625 | set self.__traceback__ to tb and return self.
1626 |
1627 | ----------------------------------------------------------------------
1628 | Data descriptors inherited from BaseException:
1629 |
1630 | __cause__
1631 | exception cause
1632 |
1633 | __context__
1634 | exception context
1635 |
1636 | __dict__
1637 |
1638 | __suppress_context__
1639 |
1640 | __traceback__
1641 |
1642 | args
1643
1644 class GeneratorExit(BaseException)
1645 | Request that a generator exit.
1646 |
1647 | Method resolution order:
1648 | GeneratorExit
1649 | BaseException
1650 | object
1651 |
1652 | Methods defined here:
1653 |
1654 | __init__(self, /, *args, **kwargs)
1655 | Initialize self. See help(type(self)) for accurate signature.
1656 |
1657 | __new__(*args, **kwargs) from type
1658 | Create and return a new object. See help(type) for accurate signature.
1659 |
1660 | ----------------------------------------------------------------------
1661 | Methods inherited from BaseException:
1662 |
1663 | __delattr__(self, name, /)
1664 | Implement delattr(self, name).
1665 |
1666 | __getattribute__(self, name, /)
1667 | Return getattr(self, name).
1668 |
1669 | __reduce__(...)
1670 | helper for pickle
1671 |
1672 | __repr__(self, /)
1673 | Return repr(self).
1674 |
1675 | __setattr__(self, name, value, /)
1676 | Implement setattr(self, name, value).
1677 |
1678 | __setstate__(...)
1679 |
1680 | __str__(self, /)
1681 | Return str(self).
1682 |
1683 | with_traceback(...)
1684 | Exception.with_traceback(tb) --
1685 | set self.__traceback__ to tb and return self.
1686 |
1687 | ----------------------------------------------------------------------
1688 | Data descriptors inherited from BaseException:
1689 |
1690 | __cause__
1691 | exception cause
1692 |
1693 | __context__
1694 | exception context
1695 |
1696 | __dict__
1697 |
1698 | __suppress_context__
1699 |
1700 | __traceback__
1701 |
1702 | args
1703
1704 IOError = class OSError(Exception)
1705 | Base class for I/O related errors.
1706 |
1707 | Method resolution order:
1708 | OSError
1709 | Exception
1710 | BaseException
1711 | object
1712 |
1713 | Methods defined here:
1714 |
1715 | __init__(self, /, *args, **kwargs)
1716 | Initialize self. See help(type(self)) for accurate signature.
1717 |
1718 | __new__(*args, **kwargs) from type
1719 | Create and return a new object. See help(type) for accurate signature.
1720 |
1721 | __reduce__(...)
1722 | helper for pickle
1723 |
1724 | __str__(self, /)
1725 | Return str(self).
1726 |
1727 | ----------------------------------------------------------------------
1728 | Data descriptors defined here:
1729 |
1730 | characters_written
1731 |
1732 | errno
1733 | POSIX exception code
1734 |
1735 | filename
1736 | exception filename
1737 |
1738 | filename2
1739 | second exception filename
1740 |
1741 | strerror
1742 | exception strerror
1743 |
1744 | winerror
1745 | Win32 exception code
1746 |
1747 | ----------------------------------------------------------------------
1748 | Methods inherited from BaseException:
1749 |
1750 | __delattr__(self, name, /)
1751 | Implement delattr(self, name).
1752 |
1753 | __getattribute__(self, name, /)
1754 | Return getattr(self, name).
1755 |
1756 | __repr__(self, /)
1757 | Return repr(self).
1758 |
1759 | __setattr__(self, name, value, /)
1760 | Implement setattr(self, name, value).
1761 |
1762 | __setstate__(...)
1763 |
1764 | with_traceback(...)
1765 | Exception.with_traceback(tb) --
1766 | set self.__traceback__ to tb and return self.
1767 |
1768 | ----------------------------------------------------------------------
1769 | Data descriptors inherited from BaseException:
1770 |
1771 | __cause__
1772 | exception cause
1773 |
1774 | __context__
1775 | exception context
1776 |
1777 | __dict__
1778 |
1779 | __suppress_context__
1780 |
1781 | __traceback__
1782 |
1783 | args
1784
1785 class ImportError(Exception)
1786 | Import can't find module, or can't find name in module.
1787 |
1788 | Method resolution order:
1789 | ImportError
1790 | Exception
1791 | BaseException
1792 | object
1793 |
1794 | Methods defined here:
1795 |
1796 | __init__(self, /, *args, **kwargs)
1797 | Initialize self. See help(type(self)) for accurate signature.
1798 |
1799 | __str__(self, /)
1800 | Return str(self).
1801 |
1802 | ----------------------------------------------------------------------
1803 | Data descriptors defined here:
1804 |
1805 | msg
1806 | exception message
1807 |
1808 | name
1809 | module name
1810 |
1811 | path
1812 | module path
1813 |
1814 | ----------------------------------------------------------------------
1815 | Methods inherited from Exception:
1816 |
1817 | __new__(*args, **kwargs) from type
1818 | Create and return a new object. See help(type) for accurate signature.
1819 |
1820 | ----------------------------------------------------------------------
1821 | Methods inherited from BaseException:
1822 |
1823 | __delattr__(self, name, /)
1824 | Implement delattr(self, name).
1825 |
1826 | __getattribute__(self, name, /)
1827 | Return getattr(self, name).
1828 |
1829 | __reduce__(...)
1830 | helper for pickle
1831 |
1832 | __repr__(self, /)
1833 | Return repr(self).
1834 |
1835 | __setattr__(self, name, value, /)
1836 | Implement setattr(self, name, value).
1837 |
1838 | __setstate__(...)
1839 |
1840 | with_traceback(...)
1841 | Exception.with_traceback(tb) --
1842 | set self.__traceback__ to tb and return self.
1843 |
1844 | ----------------------------------------------------------------------
1845 | Data descriptors inherited from BaseException:
1846 |
1847 | __cause__
1848 | exception cause
1849 |
1850 | __context__
1851 | exception context
1852 |
1853 | __dict__
1854 |
1855 | __suppress_context__
1856 |
1857 | __traceback__
1858 |
1859 | args
1860
1861 class ImportWarning(Warning)
1862 | Base class for warnings about probable mistakes in module imports
1863 |
1864 | Method resolution order:
1865 | ImportWarning
1866 | Warning
1867 | Exception
1868 | BaseException
1869 | object
1870 |
1871 | Methods defined here:
1872 |
1873 | __init__(self, /, *args, **kwargs)
1874 | Initialize self. See help(type(self)) for accurate signature.
1875 |
1876 | __new__(*args, **kwargs) from type
1877 | Create and return a new object. See help(type) for accurate signature.
1878 |
1879 | ----------------------------------------------------------------------
1880 | Methods inherited from BaseException:
1881 |
1882 | __delattr__(self, name, /)
1883 | Implement delattr(self, name).
1884 |
1885 | __getattribute__(self, name, /)
1886 | Return getattr(self, name).
1887 |
1888 | __reduce__(...)
1889 | helper for pickle
1890 |
1891 | __repr__(self, /)
1892 | Return repr(self).
1893 |
1894 | __setattr__(self, name, value, /)
1895 | Implement setattr(self, name, value).
1896 |
1897 | __setstate__(...)
1898 |
1899 | __str__(self, /)
1900 | Return str(self).
1901 |
1902 | with_traceback(...)
1903 | Exception.with_traceback(tb) --
1904 | set self.__traceback__ to tb and return self.
1905 |
1906 | ----------------------------------------------------------------------
1907 | Data descriptors inherited from BaseException:
1908 |
1909 | __cause__
1910 | exception cause
1911 |
1912 | __context__
1913 | exception context
1914 |
1915 | __dict__
1916 |
1917 | __suppress_context__
1918 |
1919 | __traceback__
1920 |
1921 | args
1922
1923 class IndentationError(SyntaxError)
1924 | Improper indentation.
1925 |
1926 | Method resolution order:
1927 | IndentationError
1928 | SyntaxError
1929 | Exception
1930 | BaseException
1931 | object
1932 |
1933 | Methods defined here:
1934 |
1935 | __init__(self, /, *args, **kwargs)
1936 | Initialize self. See help(type(self)) for accurate signature.
1937 |
1938 | ----------------------------------------------------------------------
1939 | Methods inherited from SyntaxError:
1940 |
1941 | __str__(self, /)
1942 | Return str(self).
1943 |
1944 | ----------------------------------------------------------------------
1945 | Data descriptors inherited from SyntaxError:
1946 |
1947 | filename
1948 | exception filename
1949 |
1950 | lineno
1951 | exception lineno
1952 |
1953 | msg
1954 | exception msg
1955 |
1956 | offset
1957 | exception offset
1958 |
1959 | print_file_and_line
1960 | exception print_file_and_line
1961 |
1962 | text
1963 | exception text
1964 |
1965 | ----------------------------------------------------------------------
1966 | Methods inherited from Exception:
1967 |
1968 | __new__(*args, **kwargs) from type
1969 | Create and return a new object. See help(type) for accurate signature.
1970 |
1971 | ----------------------------------------------------------------------
1972 | Methods inherited from BaseException:
1973 |
1974 | __delattr__(self, name, /)
1975 | Implement delattr(self, name).
1976 |
1977 | __getattribute__(self, name, /)
1978 | Return getattr(self, name).
1979 |
1980 | __reduce__(...)
1981 | helper for pickle
1982 |
1983 | __repr__(self, /)
1984 | Return repr(self).
1985 |
1986 | __setattr__(self, name, value, /)
1987 | Implement setattr(self, name, value).
1988 |
1989 | __setstate__(...)
1990 |
1991 | with_traceback(...)
1992 | Exception.with_traceback(tb) --
1993 | set self.__traceback__ to tb and return self.
1994 |
1995 | ----------------------------------------------------------------------
1996 | Data descriptors inherited from BaseException:
1997 |
1998 | __cause__
1999 | exception cause
2000 |
2001 | __context__
2002 | exception context
2003 |
2004 | __dict__
2005 |
2006 | __suppress_context__
2007 |
2008 | __traceback__
2009 |
2010 | args
2011
2012 class IndexError(LookupError)
2013 | Sequence index out of range.
2014 |
2015 | Method resolution order:
2016 | IndexError
2017 | LookupError
2018 | Exception
2019 | BaseException
2020 | object
2021 |
2022 | Methods defined here:
2023 |
2024 | __init__(self, /, *args, **kwargs)
2025 | Initialize self. See help(type(self)) for accurate signature.
2026 |
2027 | __new__(*args, **kwargs) from type
2028 | Create and return a new object. See help(type) for accurate signature.
2029 |
2030 | ----------------------------------------------------------------------
2031 | Methods inherited from BaseException:
2032 |
2033 | __delattr__(self, name, /)
2034 | Implement delattr(self, name).
2035 |
2036 | __getattribute__(self, name, /)
2037 | Return getattr(self, name).
2038 |
2039 | __reduce__(...)
2040 | helper for pickle
2041 |
2042 | __repr__(self, /)
2043 | Return repr(self).
2044 |
2045 | __setattr__(self, name, value, /)
2046 | Implement setattr(self, name, value).
2047 |
2048 | __setstate__(...)
2049 |
2050 | __str__(self, /)
2051 | Return str(self).
2052 |
2053 | with_traceback(...)
2054 | Exception.with_traceback(tb) --
2055 | set self.__traceback__ to tb and return self.
2056 |
2057 | ----------------------------------------------------------------------
2058 | Data descriptors inherited from BaseException:
2059 |
2060 | __cause__
2061 | exception cause
2062 |
2063 | __context__
2064 | exception context
2065 |
2066 | __dict__
2067 |
2068 | __suppress_context__
2069 |
2070 | __traceback__
2071 |
2072 | args
2073
2074 class InterruptedError(OSError)
2075 | Interrupted by signal.
2076 |
2077 | Method resolution order:
2078 | InterruptedError
2079 | OSError
2080 | Exception
2081 | BaseException
2082 | object
2083 |
2084 | Methods defined here:
2085 |
2086 | __init__(self, /, *args, **kwargs)
2087 | Initialize self. See help(type(self)) for accurate signature.
2088 |
2089 | ----------------------------------------------------------------------
2090 | Methods inherited from OSError:
2091 |
2092 | __new__(*args, **kwargs) from type
2093 | Create and return a new object. See help(type) for accurate signature.
2094 |
2095 | __reduce__(...)
2096 | helper for pickle
2097 |
2098 | __str__(self, /)
2099 | Return str(self).
2100 |
2101 | ----------------------------------------------------------------------
2102 | Data descriptors inherited from OSError:
2103 |
2104 | characters_written
2105 |
2106 | errno
2107 | POSIX exception code
2108 |
2109 | filename
2110 | exception filename
2111 |
2112 | filename2
2113 | second exception filename
2114 |
2115 | strerror
2116 | exception strerror
2117 |
2118 | winerror
2119 | Win32 exception code
2120 |
2121 | ----------------------------------------------------------------------
2122 | Methods inherited from BaseException:
2123 |
2124 | __delattr__(self, name, /)
2125 | Implement delattr(self, name).
2126 |
2127 | __getattribute__(self, name, /)
2128 | Return getattr(self, name).
2129 |
2130 | __repr__(self, /)
2131 | Return repr(self).
2132 |
2133 | __setattr__(self, name, value, /)
2134 | Implement setattr(self, name, value).
2135 |
2136 | __setstate__(...)
2137 |
2138 | with_traceback(...)
2139 | Exception.with_traceback(tb) --
2140 | set self.__traceback__ to tb and return self.
2141 |
2142 | ----------------------------------------------------------------------
2143 | Data descriptors inherited from BaseException:
2144 |
2145 | __cause__
2146 | exception cause
2147 |
2148 | __context__
2149 | exception context
2150 |
2151 | __dict__
2152 |
2153 | __suppress_context__
2154 |
2155 | __traceback__
2156 |
2157 | args
2158
2159 class IsADirectoryError(OSError)
2160 | Operation doesn't work on directories.
2161 |
2162 | Method resolution order:
2163 | IsADirectoryError
2164 | OSError
2165 | Exception
2166 | BaseException
2167 | object
2168 |
2169 | Methods defined here:
2170 |
2171 | __init__(self, /, *args, **kwargs)
2172 | Initialize self. See help(type(self)) for accurate signature.
2173 |
2174 | ----------------------------------------------------------------------
2175 | Methods inherited from OSError:
2176 |
2177 | __new__(*args, **kwargs) from type
2178 | Create and return a new object. See help(type) for accurate signature.
2179 |
2180 | __reduce__(...)
2181 | helper for pickle
2182 |
2183 | __str__(self, /)
2184 | Return str(self).
2185 |
2186 | ----------------------------------------------------------------------
2187 | Data descriptors inherited from OSError:
2188 |
2189 | characters_written
2190 |
2191 | errno
2192 | POSIX exception code
2193 |
2194 | filename
2195 | exception filename
2196 |
2197 | filename2
2198 | second exception filename
2199 |
2200 | strerror
2201 | exception strerror
2202 |
2203 | winerror
2204 | Win32 exception code
2205 |
2206 | ----------------------------------------------------------------------
2207 | Methods inherited from BaseException:
2208 |
2209 | __delattr__(self, name, /)
2210 | Implement delattr(self, name).
2211 |
2212 | __getattribute__(self, name, /)
2213 | Return getattr(self, name).
2214 |
2215 | __repr__(self, /)
2216 | Return repr(self).
2217 |
2218 | __setattr__(self, name, value, /)
2219 | Implement setattr(self, name, value).
2220 |
2221 | __setstate__(...)
2222 |
2223 | with_traceback(...)
2224 | Exception.with_traceback(tb) --
2225 | set self.__traceback__ to tb and return self.
2226 |
2227 | ----------------------------------------------------------------------
2228 | Data descriptors inherited from BaseException:
2229 |
2230 | __cause__
2231 | exception cause
2232 |
2233 | __context__
2234 | exception context
2235 |
2236 | __dict__
2237 |
2238 | __suppress_context__
2239 |
2240 | __traceback__
2241 |
2242 | args
2243
2244 class KeyError(LookupError)
2245 | Mapping key not found.
2246 |
2247 | Method resolution order:
2248 | KeyError
2249 | LookupError
2250 | Exception
2251 | BaseException
2252 | object
2253 |
2254 | Methods defined here:
2255 |
2256 | __init__(self, /, *args, **kwargs)
2257 | Initialize self. See help(type(self)) for accurate signature.
2258 |
2259 | __str__(self, /)
2260 | Return str(self).
2261 |
2262 | ----------------------------------------------------------------------
2263 | Methods inherited from LookupError:
2264 |
2265 | __new__(*args, **kwargs) from type
2266 | Create and return a new object. See help(type) for accurate signature.
2267 |
2268 | ----------------------------------------------------------------------
2269 | Methods inherited from BaseException:
2270 |
2271 | __delattr__(self, name, /)
2272 | Implement delattr(self, name).
2273 |
2274 | __getattribute__(self, name, /)
2275 | Return getattr(self, name).
2276 |
2277 | __reduce__(...)
2278 | helper for pickle
2279 |
2280 | __repr__(self, /)
2281 | Return repr(self).
2282 |
2283 | __setattr__(self, name, value, /)
2284 | Implement setattr(self, name, value).
2285 |
2286 | __setstate__(...)
2287 |
2288 | with_traceback(...)
2289 | Exception.with_traceback(tb) --
2290 | set self.__traceback__ to tb and return self.
2291 |
2292 | ----------------------------------------------------------------------
2293 | Data descriptors inherited from BaseException:
2294 |
2295 | __cause__
2296 | exception cause
2297 |
2298 | __context__
2299 | exception context
2300 |
2301 | __dict__
2302 |
2303 | __suppress_context__
2304 |
2305 | __traceback__
2306 |
2307 | args
2308
2309 class KeyboardInterrupt(BaseException)
2310 | Program interrupted by user.
2311 |
2312 | Method resolution order:
2313 | KeyboardInterrupt
2314 | BaseException
2315 | object
2316 |
2317 | Methods defined here:
2318 |
2319 | __init__(self, /, *args, **kwargs)
2320 | Initialize self. See help(type(self)) for accurate signature.
2321 |
2322 | __new__(*args, **kwargs) from type
2323 | Create and return a new object. See help(type) for accurate signature.
2324 |
2325 | ----------------------------------------------------------------------
2326 | Methods inherited from BaseException:
2327 |
2328 | __delattr__(self, name, /)
2329 | Implement delattr(self, name).
2330 |
2331 | __getattribute__(self, name, /)
2332 | Return getattr(self, name).
2333 |
2334 | __reduce__(...)
2335 | helper for pickle
2336 |
2337 | __repr__(self, /)
2338 | Return repr(self).
2339 |
2340 | __setattr__(self, name, value, /)
2341 | Implement setattr(self, name, value).
2342 |
2343 | __setstate__(...)
2344 |
2345 | __str__(self, /)
2346 | Return str(self).
2347 |
2348 | with_traceback(...)
2349 | Exception.with_traceback(tb) --
2350 | set self.__traceback__ to tb and return self.
2351 |
2352 | ----------------------------------------------------------------------
2353 | Data descriptors inherited from BaseException:
2354 |
2355 | __cause__
2356 | exception cause
2357 |
2358 | __context__
2359 | exception context
2360 |
2361 | __dict__
2362 |
2363 | __suppress_context__
2364 |
2365 | __traceback__
2366 |
2367 | args
2368
2369 class LookupError(Exception)
2370 | Base class for lookup errors.
2371 |
2372 | Method resolution order:
2373 | LookupError
2374 | Exception
2375 | BaseException
2376 | object
2377 |
2378 | Methods defined here:
2379 |
2380 | __init__(self, /, *args, **kwargs)
2381 | Initialize self. See help(type(self)) for accurate signature.
2382 |
2383 | __new__(*args, **kwargs) from type
2384 | Create and return a new object. See help(type) for accurate signature.
2385 |
2386 | ----------------------------------------------------------------------
2387 | Methods inherited from BaseException:
2388 |
2389 | __delattr__(self, name, /)
2390 | Implement delattr(self, name).
2391 |
2392 | __getattribute__(self, name, /)
2393 | Return getattr(self, name).
2394 |
2395 | __reduce__(...)
2396 | helper for pickle
2397 |
2398 | __repr__(self, /)
2399 | Return repr(self).
2400 |
2401 | __setattr__(self, name, value, /)
2402 | Implement setattr(self, name, value).
2403 |
2404 | __setstate__(...)
2405 |
2406 | __str__(self, /)
2407 | Return str(self).
2408 |
2409 | with_traceback(...)
2410 | Exception.with_traceback(tb) --
2411 | set self.__traceback__ to tb and return self.
2412 |
2413 | ----------------------------------------------------------------------
2414 | Data descriptors inherited from BaseException:
2415 |
2416 | __cause__
2417 | exception cause
2418 |
2419 | __context__
2420 | exception context
2421 |
2422 | __dict__
2423 |
2424 | __suppress_context__
2425 |
2426 | __traceback__
2427 |
2428 | args
2429
2430 class MemoryError(Exception)
2431 | Out of memory.
2432 |
2433 | Method resolution order:
2434 | MemoryError
2435 | Exception
2436 | BaseException
2437 | object
2438 |
2439 | Methods defined here:
2440 |
2441 | __init__(self, /, *args, **kwargs)
2442 | Initialize self. See help(type(self)) for accurate signature.
2443 |
2444 | __new__(*args, **kwargs) from type
2445 | Create and return a new object. See help(type) for accurate signature.
2446 |
2447 | ----------------------------------------------------------------------
2448 | Methods inherited from BaseException:
2449 |
2450 | __delattr__(self, name, /)
2451 | Implement delattr(self, name).
2452 |
2453 | __getattribute__(self, name, /)
2454 | Return getattr(self, name).
2455 |
2456 | __reduce__(...)
2457 | helper for pickle
2458 |
2459 | __repr__(self, /)
2460 | Return repr(self).
2461 |
2462 | __setattr__(self, name, value, /)
2463 | Implement setattr(self, name, value).
2464 |
2465 | __setstate__(...)
2466 |
2467 | __str__(self, /)
2468 | Return str(self).
2469 |
2470 | with_traceback(...)
2471 | Exception.with_traceback(tb) --
2472 | set self.__traceback__ to tb and return self.
2473 |
2474 | ----------------------------------------------------------------------
2475 | Data descriptors inherited from BaseException:
2476 |
2477 | __cause__
2478 | exception cause
2479 |
2480 | __context__
2481 | exception context
2482 |
2483 | __dict__
2484 |
2485 | __suppress_context__
2486 |
2487 | __traceback__
2488 |
2489 | args
2490
2491 class NameError(Exception)
2492 | Name not found globally.
2493 |
2494 | Method resolution order:
2495 | NameError
2496 | Exception
2497 | BaseException
2498 | object
2499 |
2500 | Methods defined here:
2501 |
2502 | __init__(self, /, *args, **kwargs)
2503 | Initialize self. See help(type(self)) for accurate signature.
2504 |
2505 | __new__(*args, **kwargs) from type
2506 | Create and return a new object. See help(type) for accurate signature.
2507 |
2508 | ----------------------------------------------------------------------
2509 | Methods inherited from BaseException:
2510 |
2511 | __delattr__(self, name, /)
2512 | Implement delattr(self, name).
2513 |
2514 | __getattribute__(self, name, /)
2515 | Return getattr(self, name).
2516 |
2517 | __reduce__(...)
2518 | helper for pickle
2519 |
2520 | __repr__(self, /)
2521 | Return repr(self).
2522 |
2523 | __setattr__(self, name, value, /)
2524 | Implement setattr(self, name, value).
2525 |
2526 | __setstate__(...)
2527 |
2528 | __str__(self, /)
2529 | Return str(self).
2530 |
2531 | with_traceback(...)
2532 | Exception.with_traceback(tb) --
2533 | set self.__traceback__ to tb and return self.
2534 |
2535 | ----------------------------------------------------------------------
2536 | Data descriptors inherited from BaseException:
2537 |
2538 | __cause__
2539 | exception cause
2540 |
2541 | __context__
2542 | exception context
2543 |
2544 | __dict__
2545 |
2546 | __suppress_context__
2547 |
2548 | __traceback__
2549 |
2550 | args
2551
2552 class NotADirectoryError(OSError)
2553 | Operation only works on directories.
2554 |
2555 | Method resolution order:
2556 | NotADirectoryError
2557 | OSError
2558 | Exception
2559 | BaseException
2560 | object
2561 |
2562 | Methods defined here:
2563 |
2564 | __init__(self, /, *args, **kwargs)
2565 | Initialize self. See help(type(self)) for accurate signature.
2566 |
2567 | ----------------------------------------------------------------------
2568 | Methods inherited from OSError:
2569 |
2570 | __new__(*args, **kwargs) from type
2571 | Create and return a new object. See help(type) for accurate signature.
2572 |
2573 | __reduce__(...)
2574 | helper for pickle
2575 |
2576 | __str__(self, /)
2577 | Return str(self).
2578 |
2579 | ----------------------------------------------------------------------
2580 | Data descriptors inherited from OSError:
2581 |
2582 | characters_written
2583 |
2584 | errno
2585 | POSIX exception code
2586 |
2587 | filename
2588 | exception filename
2589 |
2590 | filename2
2591 | second exception filename
2592 |
2593 | strerror
2594 | exception strerror
2595 |
2596 | winerror
2597 | Win32 exception code
2598 |
2599 | ----------------------------------------------------------------------
2600 | Methods inherited from BaseException:
2601 |
2602 | __delattr__(self, name, /)
2603 | Implement delattr(self, name).
2604 |
2605 | __getattribute__(self, name, /)
2606 | Return getattr(self, name).
2607 |
2608 | __repr__(self, /)
2609 | Return repr(self).
2610 |
2611 | __setattr__(self, name, value, /)
2612 | Implement setattr(self, name, value).
2613 |
2614 | __setstate__(...)
2615 |
2616 | with_traceback(...)
2617 | Exception.with_traceback(tb) --
2618 | set self.__traceback__ to tb and return self.
2619 |
2620 | ----------------------------------------------------------------------
2621 | Data descriptors inherited from BaseException:
2622 |
2623 | __cause__
2624 | exception cause
2625 |
2626 | __context__
2627 | exception context
2628 |
2629 | __dict__
2630 |
2631 | __suppress_context__
2632 |
2633 | __traceback__
2634 |
2635 | args
2636
2637 class NotImplementedError(RuntimeError)
2638 | Method or function hasn't been implemented yet.
2639 |
2640 | Method resolution order:
2641 | NotImplementedError
2642 | RuntimeError
2643 | Exception
2644 | BaseException
2645 | object
2646 |
2647 | Methods defined here:
2648 |
2649 | __init__(self, /, *args, **kwargs)
2650 | Initialize self. See help(type(self)) for accurate signature.
2651 |
2652 | __new__(*args, **kwargs) from type
2653 | Create and return a new object. See help(type) for accurate signature.
2654 |
2655 | ----------------------------------------------------------------------
2656 | Methods inherited from BaseException:
2657 |
2658 | __delattr__(self, name, /)
2659 | Implement delattr(self, name).
2660 |
2661 | __getattribute__(self, name, /)
2662 | Return getattr(self, name).
2663 |
2664 | __reduce__(...)
2665 | helper for pickle
2666 |
2667 | __repr__(self, /)
2668 | Return repr(self).
2669 |
2670 | __setattr__(self, name, value, /)
2671 | Implement setattr(self, name, value).
2672 |
2673 | __setstate__(...)
2674 |
2675 | __str__(self, /)
2676 | Return str(self).
2677 |
2678 | with_traceback(...)
2679 | Exception.with_traceback(tb) --
2680 | set self.__traceback__ to tb and return self.
2681 |
2682 | ----------------------------------------------------------------------
2683 | Data descriptors inherited from BaseException:
2684 |
2685 | __cause__
2686 | exception cause
2687 |
2688 | __context__
2689 | exception context
2690 |
2691 | __dict__
2692 |
2693 | __suppress_context__
2694 |
2695 | __traceback__
2696 |
2697 | args
2698
2699 class OSError(Exception)
2700 | Base class for I/O related errors.
2701 |
2702 | Method resolution order:
2703 | OSError
2704 | Exception
2705 | BaseException
2706 | object
2707 |
2708 | Methods defined here:
2709 |
2710 | __init__(self, /, *args, **kwargs)
2711 | Initialize self. See help(type(self)) for accurate signature.
2712 |
2713 | __new__(*args, **kwargs) from type
2714 | Create and return a new object. See help(type) for accurate signature.
2715 |
2716 | __reduce__(...)
2717 | helper for pickle
2718 |
2719 | __str__(self, /)
2720 | Return str(self).
2721 |
2722 | ----------------------------------------------------------------------
2723 | Data descriptors defined here:
2724 |
2725 | characters_written
2726 |
2727 | errno
2728 | POSIX exception code
2729 |
2730 | filename
2731 | exception filename
2732 |
2733 | filename2
2734 | second exception filename
2735 |
2736 | strerror
2737 | exception strerror
2738 |
2739 | winerror
2740 | Win32 exception code
2741 |
2742 | ----------------------------------------------------------------------
2743 | Methods inherited from BaseException:
2744 |
2745 | __delattr__(self, name, /)
2746 | Implement delattr(self, name).
2747 |
2748 | __getattribute__(self, name, /)
2749 | Return getattr(self, name).
2750 |
2751 | __repr__(self, /)
2752 | Return repr(self).
2753 |
2754 | __setattr__(self, name, value, /)
2755 | Implement setattr(self, name, value).
2756 |
2757 | __setstate__(...)
2758 |
2759 | with_traceback(...)
2760 | Exception.with_traceback(tb) --
2761 | set self.__traceback__ to tb and return self.
2762 |
2763 | ----------------------------------------------------------------------
2764 | Data descriptors inherited from BaseException:
2765 |
2766 | __cause__
2767 | exception cause
2768 |
2769 | __context__
2770 | exception context
2771 |
2772 | __dict__
2773 |
2774 | __suppress_context__
2775 |
2776 | __traceback__
2777 |
2778 | args
2779
2780 class OverflowError(ArithmeticError)
2781 | Result too large to be represented.
2782 |
2783 | Method resolution order:
2784 | OverflowError
2785 | ArithmeticError
2786 | Exception
2787 | BaseException
2788 | object
2789 |
2790 | Methods defined here:
2791 |
2792 | __init__(self, /, *args, **kwargs)
2793 | Initialize self. See help(type(self)) for accurate signature.
2794 |
2795 | __new__(*args, **kwargs) from type
2796 | Create and return a new object. See help(type) for accurate signature.
2797 |
2798 | ----------------------------------------------------------------------
2799 | Methods inherited from BaseException:
2800 |
2801 | __delattr__(self, name, /)
2802 | Implement delattr(self, name).
2803 |
2804 | __getattribute__(self, name, /)
2805 | Return getattr(self, name).
2806 |
2807 | __reduce__(...)
2808 | helper for pickle
2809 |
2810 | __repr__(self, /)
2811 | Return repr(self).
2812 |
2813 | __setattr__(self, name, value, /)
2814 | Implement setattr(self, name, value).
2815 |
2816 | __setstate__(...)
2817 |
2818 | __str__(self, /)
2819 | Return str(self).
2820 |
2821 | with_traceback(...)
2822 | Exception.with_traceback(tb) --
2823 | set self.__traceback__ to tb and return self.
2824 |
2825 | ----------------------------------------------------------------------
2826 | Data descriptors inherited from BaseException:
2827 |
2828 | __cause__
2829 | exception cause
2830 |
2831 | __context__
2832 | exception context
2833 |
2834 | __dict__
2835 |
2836 | __suppress_context__
2837 |
2838 | __traceback__
2839 |
2840 | args
2841
2842 class PendingDeprecationWarning(Warning)
2843 | Base class for warnings about features which will be deprecated
2844 | in the future.
2845 |
2846 | Method resolution order:
2847 | PendingDeprecationWarning
2848 | Warning
2849 | Exception
2850 | BaseException
2851 | object
2852 |
2853 | Methods defined here:
2854 |
2855 | __init__(self, /, *args, **kwargs)
2856 | Initialize self. See help(type(self)) for accurate signature.
2857 |
2858 | __new__(*args, **kwargs) from type
2859 | Create and return a new object. See help(type) for accurate signature.
2860 |
2861 | ----------------------------------------------------------------------
2862 | Methods inherited from BaseException:
2863 |
2864 | __delattr__(self, name, /)
2865 | Implement delattr(self, name).
2866 |
2867 | __getattribute__(self, name, /)
2868 | Return getattr(self, name).
2869 |
2870 | __reduce__(...)
2871 | helper for pickle
2872 |
2873 | __repr__(self, /)
2874 | Return repr(self).
2875 |
2876 | __setattr__(self, name, value, /)
2877 | Implement setattr(self, name, value).
2878 |
2879 | __setstate__(...)
2880 |
2881 | __str__(self, /)
2882 | Return str(self).
2883 |
2884 | with_traceback(...)
2885 | Exception.with_traceback(tb) --
2886 | set self.__traceback__ to tb and return self.
2887 |
2888 | ----------------------------------------------------------------------
2889 | Data descriptors inherited from BaseException:
2890 |
2891 | __cause__
2892 | exception cause
2893 |
2894 | __context__
2895 | exception context
2896 |
2897 | __dict__
2898 |
2899 | __suppress_context__
2900 |
2901 | __traceback__
2902 |
2903 | args
2904
2905 class PermissionError(OSError)
2906 | Not enough permissions.
2907 |
2908 | Method resolution order:
2909 | PermissionError
2910 | OSError
2911 | Exception
2912 | BaseException
2913 | object
2914 |
2915 | Methods defined here:
2916 |
2917 | __init__(self, /, *args, **kwargs)
2918 | Initialize self. See help(type(self)) for accurate signature.
2919 |
2920 | ----------------------------------------------------------------------
2921 | Methods inherited from OSError:
2922 |
2923 | __new__(*args, **kwargs) from type
2924 | Create and return a new object. See help(type) for accurate signature.
2925 |
2926 | __reduce__(...)
2927 | helper for pickle
2928 |
2929 | __str__(self, /)
2930 | Return str(self).
2931 |
2932 | ----------------------------------------------------------------------
2933 | Data descriptors inherited from OSError:
2934 |
2935 | characters_written
2936 |
2937 | errno
2938 | POSIX exception code
2939 |
2940 | filename
2941 | exception filename
2942 |
2943 | filename2
2944 | second exception filename
2945 |
2946 | strerror
2947 | exception strerror
2948 |
2949 | winerror
2950 | Win32 exception code
2951 |
2952 | ----------------------------------------------------------------------
2953 | Methods inherited from BaseException:
2954 |
2955 | __delattr__(self, name, /)
2956 | Implement delattr(self, name).
2957 |
2958 | __getattribute__(self, name, /)
2959 | Return getattr(self, name).
2960 |
2961 | __repr__(self, /)
2962 | Return repr(self).
2963 |
2964 | __setattr__(self, name, value, /)
2965 | Implement setattr(self, name, value).
2966 |
2967 | __setstate__(...)
2968 |
2969 | with_traceback(...)
2970 | Exception.with_traceback(tb) --
2971 | set self.__traceback__ to tb and return self.
2972 |
2973 | ----------------------------------------------------------------------
2974 | Data descriptors inherited from BaseException:
2975 |
2976 | __cause__
2977 | exception cause
2978 |
2979 | __context__
2980 | exception context
2981 |
2982 | __dict__
2983 |
2984 | __suppress_context__
2985 |
2986 | __traceback__
2987 |
2988 | args
2989
2990 class ProcessLookupError(OSError)
2991 | Process not found.
2992 |
2993 | Method resolution order:
2994 | ProcessLookupError
2995 | OSError
2996 | Exception
2997 | BaseException
2998 | object
2999 |
3000 | Methods defined here:
3001 |
3002 | __init__(self, /, *args, **kwargs)
3003 | Initialize self. See help(type(self)) for accurate signature.
3004 |
3005 | ----------------------------------------------------------------------
3006 | Methods inherited from OSError:
3007 |
3008 | __new__(*args, **kwargs) from type
3009 | Create and return a new object. See help(type) for accurate signature.
3010 |
3011 | __reduce__(...)
3012 | helper for pickle
3013 |
3014 | __str__(self, /)
3015 | Return str(self).
3016 |
3017 | ----------------------------------------------------------------------
3018 | Data descriptors inherited from OSError:
3019 |
3020 | characters_written
3021 |
3022 | errno
3023 | POSIX exception code
3024 |
3025 | filename
3026 | exception filename
3027 |
3028 | filename2
3029 | second exception filename
3030 |
3031 | strerror
3032 | exception strerror
3033 |
3034 | winerror
3035 | Win32 exception code
3036 |
3037 | ----------------------------------------------------------------------
3038 | Methods inherited from BaseException:
3039 |
3040 | __delattr__(self, name, /)
3041 | Implement delattr(self, name).
3042 |
3043 | __getattribute__(self, name, /)
3044 | Return getattr(self, name).
3045 |
3046 | __repr__(self, /)
3047 | Return repr(self).
3048 |
3049 | __setattr__(self, name, value, /)
3050 | Implement setattr(self, name, value).
3051 |
3052 | __setstate__(...)
3053 |
3054 | with_traceback(...)
3055 | Exception.with_traceback(tb) --
3056 | set self.__traceback__ to tb and return self.
3057 |
3058 | ----------------------------------------------------------------------
3059 | Data descriptors inherited from BaseException:
3060 |
3061 | __cause__
3062 | exception cause
3063 |
3064 | __context__
3065 | exception context
3066 |
3067 | __dict__
3068 |
3069 | __suppress_context__
3070 |
3071 | __traceback__
3072 |
3073 | args
3074
3075 class RecursionError(RuntimeError)
3076 | Recursion limit exceeded.
3077 |
3078 | Method resolution order:
3079 | RecursionError
3080 | RuntimeError
3081 | Exception
3082 | BaseException
3083 | object
3084 |
3085 | Methods defined here:
3086 |
3087 | __init__(self, /, *args, **kwargs)
3088 | Initialize self. See help(type(self)) for accurate signature.
3089 |
3090 | __new__(*args, **kwargs) from type
3091 | Create and return a new object. See help(type) for accurate signature.
3092 |
3093 | ----------------------------------------------------------------------
3094 | Methods inherited from BaseException:
3095 |
3096 | __delattr__(self, name, /)
3097 | Implement delattr(self, name).
3098 |
3099 | __getattribute__(self, name, /)
3100 | Return getattr(self, name).
3101 |
3102 | __reduce__(...)
3103 | helper for pickle
3104 |
3105 | __repr__(self, /)
3106 | Return repr(self).
3107 |
3108 | __setattr__(self, name, value, /)
3109 | Implement setattr(self, name, value).
3110 |
3111 | __setstate__(...)
3112 |
3113 | __str__(self, /)
3114 | Return str(self).
3115 |
3116 | with_traceback(...)
3117 | Exception.with_traceback(tb) --
3118 | set self.__traceback__ to tb and return self.
3119 |
3120 | ----------------------------------------------------------------------
3121 | Data descriptors inherited from BaseException:
3122 |
3123 | __cause__
3124 | exception cause
3125 |
3126 | __context__
3127 | exception context
3128 |
3129 | __dict__
3130 |
3131 | __suppress_context__
3132 |
3133 | __traceback__
3134 |
3135 | args
3136
3137 class ReferenceError(Exception)
3138 | Weak ref proxy used after referent went away.
3139 |
3140 | Method resolution order:
3141 | ReferenceError
3142 | Exception
3143 | BaseException
3144 | object
3145 |
3146 | Methods defined here:
3147 |
3148 | __init__(self, /, *args, **kwargs)
3149 | Initialize self. See help(type(self)) for accurate signature.
3150 |
3151 | __new__(*args, **kwargs) from type
3152 | Create and return a new object. See help(type) for accurate signature.
3153 |
3154 | ----------------------------------------------------------------------
3155 | Methods inherited from BaseException:
3156 |
3157 | __delattr__(self, name, /)
3158 | Implement delattr(self, name).
3159 |
3160 | __getattribute__(self, name, /)
3161 | Return getattr(self, name).
3162 |
3163 | __reduce__(...)
3164 | helper for pickle
3165 |
3166 | __repr__(self, /)
3167 | Return repr(self).
3168 |
3169 | __setattr__(self, name, value, /)
3170 | Implement setattr(self, name, value).
3171 |
3172 | __setstate__(...)
3173 |
3174 | __str__(self, /)
3175 | Return str(self).
3176 |
3177 | with_traceback(...)
3178 | Exception.with_traceback(tb) --
3179 | set self.__traceback__ to tb and return self.
3180 |
3181 | ----------------------------------------------------------------------
3182 | Data descriptors inherited from BaseException:
3183 |
3184 | __cause__
3185 | exception cause
3186 |
3187 | __context__
3188 | exception context
3189 |
3190 | __dict__
3191 |
3192 | __suppress_context__
3193 |
3194 | __traceback__
3195 |
3196 | args
3197
3198 class ResourceWarning(Warning)
3199 | Base class for warnings about resource usage.
3200 |
3201 | Method resolution order:
3202 | ResourceWarning
3203 | Warning
3204 | Exception
3205 | BaseException
3206 | object
3207 |
3208 | Methods defined here:
3209 |
3210 | __init__(self, /, *args, **kwargs)
3211 | Initialize self. See help(type(self)) for accurate signature.
3212 |
3213 | __new__(*args, **kwargs) from type
3214 | Create and return a new object. See help(type) for accurate signature.
3215 |
3216 | ----------------------------------------------------------------------
3217 | Methods inherited from BaseException:
3218 |
3219 | __delattr__(self, name, /)
3220 | Implement delattr(self, name).
3221 |
3222 | __getattribute__(self, name, /)
3223 | Return getattr(self, name).
3224 |
3225 | __reduce__(...)
3226 | helper for pickle
3227 |
3228 | __repr__(self, /)
3229 | Return repr(self).
3230 |
3231 | __setattr__(self, name, value, /)
3232 | Implement setattr(self, name, value).
3233 |
3234 | __setstate__(...)
3235 |
3236 | __str__(self, /)
3237 | Return str(self).
3238 |
3239 | with_traceback(...)
3240 | Exception.with_traceback(tb) --
3241 | set self.__traceback__ to tb and return self.
3242 |
3243 | ----------------------------------------------------------------------
3244 | Data descriptors inherited from BaseException:
3245 |
3246 | __cause__
3247 | exception cause
3248 |
3249 | __context__
3250 | exception context
3251 |
3252 | __dict__
3253 |
3254 | __suppress_context__
3255 |
3256 | __traceback__
3257 |
3258 | args
3259
3260 class RuntimeError(Exception)
3261 | Unspecified run-time error.
3262 |
3263 | Method resolution order:
3264 | RuntimeError
3265 | Exception
3266 | BaseException
3267 | object
3268 |
3269 | Methods defined here:
3270 |
3271 | __init__(self, /, *args, **kwargs)
3272 | Initialize self. See help(type(self)) for accurate signature.
3273 |
3274 | __new__(*args, **kwargs) from type
3275 | Create and return a new object. See help(type) for accurate signature.
3276 |
3277 | ----------------------------------------------------------------------
3278 | Methods inherited from BaseException:
3279 |
3280 | __delattr__(self, name, /)
3281 | Implement delattr(self, name).
3282 |
3283 | __getattribute__(self, name, /)
3284 | Return getattr(self, name).
3285 |
3286 | __reduce__(...)
3287 | helper for pickle
3288 |
3289 | __repr__(self, /)
3290 | Return repr(self).
3291 |
3292 | __setattr__(self, name, value, /)
3293 | Implement setattr(self, name, value).
3294 |
3295 | __setstate__(...)
3296 |
3297 | __str__(self, /)
3298 | Return str(self).
3299 |
3300 | with_traceback(...)
3301 | Exception.with_traceback(tb) --
3302 | set self.__traceback__ to tb and return self.
3303 |
3304 | ----------------------------------------------------------------------
3305 | Data descriptors inherited from BaseException:
3306 |
3307 | __cause__
3308 | exception cause
3309 |
3310 | __context__
3311 | exception context
3312 |
3313 | __dict__
3314 |
3315 | __suppress_context__
3316 |
3317 | __traceback__
3318 |
3319 | args
3320
3321 class RuntimeWarning(Warning)
3322 | Base class for warnings about dubious runtime behavior.
3323 |
3324 | Method resolution order:
3325 | RuntimeWarning
3326 | Warning
3327 | Exception
3328 | BaseException
3329 | object
3330 |
3331 | Methods defined here:
3332 |
3333 | __init__(self, /, *args, **kwargs)
3334 | Initialize self. See help(type(self)) for accurate signature.
3335 |
3336 | __new__(*args, **kwargs) from type
3337 | Create and return a new object. See help(type) for accurate signature.
3338 |
3339 | ----------------------------------------------------------------------
3340 | Methods inherited from BaseException:
3341 |
3342 | __delattr__(self, name, /)
3343 | Implement delattr(self, name).
3344 |
3345 | __getattribute__(self, name, /)
3346 | Return getattr(self, name).
3347 |
3348 | __reduce__(...)
3349 | helper for pickle
3350 |
3351 | __repr__(self, /)
3352 | Return repr(self).
3353 |
3354 | __setattr__(self, name, value, /)
3355 | Implement setattr(self, name, value).
3356 |
3357 | __setstate__(...)
3358 |
3359 | __str__(self, /)
3360 | Return str(self).
3361 |
3362 | with_traceback(...)
3363 | Exception.with_traceback(tb) --
3364 | set self.__traceback__ to tb and return self.
3365 |
3366 | ----------------------------------------------------------------------
3367 | Data descriptors inherited from BaseException:
3368 |
3369 | __cause__
3370 | exception cause
3371 |
3372 | __context__
3373 | exception context
3374 |
3375 | __dict__
3376 |
3377 | __suppress_context__
3378 |
3379 | __traceback__
3380 |
3381 | args
3382
3383 class StopAsyncIteration(Exception)
3384 | Signal the end from iterator.__anext__().
3385 |
3386 | Method resolution order:
3387 | StopAsyncIteration
3388 | Exception
3389 | BaseException
3390 | object
3391 |
3392 | Methods defined here:
3393 |
3394 | __init__(self, /, *args, **kwargs)
3395 | Initialize self. See help(type(self)) for accurate signature.
3396 |
3397 | __new__(*args, **kwargs) from type
3398 | Create and return a new object. See help(type) for accurate signature.
3399 |
3400 | ----------------------------------------------------------------------
3401 | Methods inherited from BaseException:
3402 |
3403 | __delattr__(self, name, /)
3404 | Implement delattr(self, name).
3405 |
3406 | __getattribute__(self, name, /)
3407 | Return getattr(self, name).
3408 |
3409 | __reduce__(...)
3410 | helper for pickle
3411 |
3412 | __repr__(self, /)
3413 | Return repr(self).
3414 |
3415 | __setattr__(self, name, value, /)
3416 | Implement setattr(self, name, value).
3417 |
3418 | __setstate__(...)
3419 |
3420 | __str__(self, /)
3421 | Return str(self).
3422 |
3423 | with_traceback(...)
3424 | Exception.with_traceback(tb) --
3425 | set self.__traceback__ to tb and return self.
3426 |
3427 | ----------------------------------------------------------------------
3428 | Data descriptors inherited from BaseException:
3429 |
3430 | __cause__
3431 | exception cause
3432 |
3433 | __context__
3434 | exception context
3435 |
3436 | __dict__
3437 |
3438 | __suppress_context__
3439 |
3440 | __traceback__
3441 |
3442 | args
3443
3444 class StopIteration(Exception)
3445 | Signal the end from iterator.__next__().
3446 |
3447 | Method resolution order:
3448 | StopIteration
3449 | Exception
3450 | BaseException
3451 | object
3452 |
3453 | Methods defined here:
3454 |
3455 | __init__(self, /, *args, **kwargs)
3456 | Initialize self. See help(type(self)) for accurate signature.
3457 |
3458 | ----------------------------------------------------------------------
3459 | Data descriptors defined here:
3460 |
3461 | value
3462 | generator return value
3463 |
3464 | ----------------------------------------------------------------------
3465 | Methods inherited from Exception:
3466 |
3467 | __new__(*args, **kwargs) from type
3468 | Create and return a new object. See help(type) for accurate signature.
3469 |
3470 | ----------------------------------------------------------------------
3471 | Methods inherited from BaseException:
3472 |
3473 | __delattr__(self, name, /)
3474 | Implement delattr(self, name).
3475 |
3476 | __getattribute__(self, name, /)
3477 | Return getattr(self, name).
3478 |
3479 | __reduce__(...)
3480 | helper for pickle
3481 |
3482 | __repr__(self, /)
3483 | Return repr(self).
3484 |
3485 | __setattr__(self, name, value, /)
3486 | Implement setattr(self, name, value).
3487 |
3488 | __setstate__(...)
3489 |
3490 | __str__(self, /)
3491 | Return str(self).
3492 |
3493 | with_traceback(...)
3494 | Exception.with_traceback(tb) --
3495 | set self.__traceback__ to tb and return self.
3496 |
3497 | ----------------------------------------------------------------------
3498 | Data descriptors inherited from BaseException:
3499 |
3500 | __cause__
3501 | exception cause
3502 |
3503 | __context__
3504 | exception context
3505 |
3506 | __dict__
3507 |
3508 | __suppress_context__
3509 |
3510 | __traceback__
3511 |
3512 | args
3513
3514 class SyntaxError(Exception)
3515 | Invalid syntax.
3516 |
3517 | Method resolution order:
3518 | SyntaxError
3519 | Exception
3520 | BaseException
3521 | object
3522 |
3523 | Methods defined here:
3524 |
3525 | __init__(self, /, *args, **kwargs)
3526 | Initialize self. See help(type(self)) for accurate signature.
3527 |
3528 | __str__(self, /)
3529 | Return str(self).
3530 |
3531 | ----------------------------------------------------------------------
3532 | Data descriptors defined here:
3533 |
3534 | filename
3535 | exception filename
3536 |
3537 | lineno
3538 | exception lineno
3539 |
3540 | msg
3541 | exception msg
3542 |
3543 | offset
3544 | exception offset
3545 |
3546 | print_file_and_line
3547 | exception print_file_and_line
3548 |
3549 | text
3550 | exception text
3551 |
3552 | ----------------------------------------------------------------------
3553 | Methods inherited from Exception:
3554 |
3555 | __new__(*args, **kwargs) from type
3556 | Create and return a new object. See help(type) for accurate signature.
3557 |
3558 | ----------------------------------------------------------------------
3559 | Methods inherited from BaseException:
3560 |
3561 | __delattr__(self, name, /)
3562 | Implement delattr(self, name).
3563 |
3564 | __getattribute__(self, name, /)
3565 | Return getattr(self, name).
3566 |
3567 | __reduce__(...)
3568 | helper for pickle
3569 |
3570 | __repr__(self, /)
3571 | Return repr(self).
3572 |
3573 | __setattr__(self, name, value, /)
3574 | Implement setattr(self, name, value).
3575 |
3576 | __setstate__(...)
3577 |
3578 | with_traceback(...)
3579 | Exception.with_traceback(tb) --
3580 | set self.__traceback__ to tb and return self.
3581 |
3582 | ----------------------------------------------------------------------
3583 | Data descriptors inherited from BaseException:
3584 |
3585 | __cause__
3586 | exception cause
3587 |
3588 | __context__
3589 | exception context
3590 |
3591 | __dict__
3592 |
3593 | __suppress_context__
3594 |
3595 | __traceback__
3596 |
3597 | args
3598
3599 class SyntaxWarning(Warning)
3600 | Base class for warnings about dubious syntax.
3601 |
3602 | Method resolution order:
3603 | SyntaxWarning
3604 | Warning
3605 | Exception
3606 | BaseException
3607 | object
3608 |
3609 | Methods defined here:
3610 |
3611 | __init__(self, /, *args, **kwargs)
3612 | Initialize self. See help(type(self)) for accurate signature.
3613 |
3614 | __new__(*args, **kwargs) from type
3615 | Create and return a new object. See help(type) for accurate signature.
3616 |
3617 | ----------------------------------------------------------------------
3618 | Methods inherited from BaseException:
3619 |
3620 | __delattr__(self, name, /)
3621 | Implement delattr(self, name).
3622 |
3623 | __getattribute__(self, name, /)
3624 | Return getattr(self, name).
3625 |
3626 | __reduce__(...)
3627 | helper for pickle
3628 |
3629 | __repr__(self, /)
3630 | Return repr(self).
3631 |
3632 | __setattr__(self, name, value, /)
3633 | Implement setattr(self, name, value).
3634 |
3635 | __setstate__(...)
3636 |
3637 | __str__(self, /)
3638 | Return str(self).
3639 |
3640 | with_traceback(...)
3641 | Exception.with_traceback(tb) --
3642 | set self.__traceback__ to tb and return self.
3643 |
3644 | ----------------------------------------------------------------------
3645 | Data descriptors inherited from BaseException:
3646 |
3647 | __cause__
3648 | exception cause
3649 |
3650 | __context__
3651 | exception context
3652 |
3653 | __dict__
3654 |
3655 | __suppress_context__
3656 |
3657 | __traceback__
3658 |
3659 | args
3660
3661 class SystemError(Exception)
3662 | Internal error in the Python interpreter.
3663 |
3664 | Please report this to the Python maintainer, along with the traceback,
3665 | the Python version, and the hardware/OS platform and version.
3666 |
3667 | Method resolution order:
3668 | SystemError
3669 | Exception
3670 | BaseException
3671 | object
3672 |
3673 | Methods defined here:
3674 |
3675 | __init__(self, /, *args, **kwargs)
3676 | Initialize self. See help(type(self)) for accurate signature.
3677 |
3678 | __new__(*args, **kwargs) from type
3679 | Create and return a new object. See help(type) for accurate signature.
3680 |
3681 | ----------------------------------------------------------------------
3682 | Methods inherited from BaseException:
3683 |
3684 | __delattr__(self, name, /)
3685 | Implement delattr(self, name).
3686 |
3687 | __getattribute__(self, name, /)
3688 | Return getattr(self, name).
3689 |
3690 | __reduce__(...)
3691 | helper for pickle
3692 |
3693 | __repr__(self, /)
3694 | Return repr(self).
3695 |
3696 | __setattr__(self, name, value, /)
3697 | Implement setattr(self, name, value).
3698 |
3699 | __setstate__(...)
3700 |
3701 | __str__(self, /)
3702 | Return str(self).
3703 |
3704 | with_traceback(...)
3705 | Exception.with_traceback(tb) --
3706 | set self.__traceback__ to tb and return self.
3707 |
3708 | ----------------------------------------------------------------------
3709 | Data descriptors inherited from BaseException:
3710 |
3711 | __cause__
3712 | exception cause
3713 |
3714 | __context__
3715 | exception context
3716 |
3717 | __dict__
3718 |
3719 | __suppress_context__
3720 |
3721 | __traceback__
3722 |
3723 | args
3724
3725 class SystemExit(BaseException)
3726 | Request to exit from the interpreter.
3727 |
3728 | Method resolution order:
3729 | SystemExit
3730 | BaseException
3731 | object
3732 |
3733 | Methods defined here:
3734 |
3735 | __init__(self, /, *args, **kwargs)
3736 | Initialize self. See help(type(self)) for accurate signature.
3737 |
3738 | ----------------------------------------------------------------------
3739 | Data descriptors defined here:
3740 |
3741 | code
3742 | exception code
3743 |
3744 | ----------------------------------------------------------------------
3745 | Methods inherited from BaseException:
3746 |
3747 | __delattr__(self, name, /)
3748 | Implement delattr(self, name).
3749 |
3750 | __getattribute__(self, name, /)
3751 | Return getattr(self, name).
3752 |
3753 | __new__(*args, **kwargs) from type
3754 | Create and return a new object. See help(type) for accurate signature.
3755 |
3756 | __reduce__(...)
3757 | helper for pickle
3758 |
3759 | __repr__(self, /)
3760 | Return repr(self).
3761 |
3762 | __setattr__(self, name, value, /)
3763 | Implement setattr(self, name, value).
3764 |
3765 | __setstate__(...)
3766 |
3767 | __str__(self, /)
3768 | Return str(self).
3769 |
3770 | with_traceback(...)
3771 | Exception.with_traceback(tb) --
3772 | set self.__traceback__ to tb and return self.
3773 |
3774 | ----------------------------------------------------------------------
3775 | Data descriptors inherited from BaseException:
3776 |
3777 | __cause__
3778 | exception cause
3779 |
3780 | __context__
3781 | exception context
3782 |
3783 | __dict__
3784 |
3785 | __suppress_context__
3786 |
3787 | __traceback__
3788 |
3789 | args
3790
3791 class TabError(IndentationError)
3792 | Improper mixture of spaces and tabs.
3793 |
3794 | Method resolution order:
3795 | TabError
3796 | IndentationError
3797 | SyntaxError
3798 | Exception
3799 | BaseException
3800 | object
3801 |
3802 | Methods defined here:
3803 |
3804 | __init__(self, /, *args, **kwargs)
3805 | Initialize self. See help(type(self)) for accurate signature.
3806 |
3807 | ----------------------------------------------------------------------
3808 | Methods inherited from SyntaxError:
3809 |
3810 | __str__(self, /)
3811 | Return str(self).
3812 |
3813 | ----------------------------------------------------------------------
3814 | Data descriptors inherited from SyntaxError:
3815 |
3816 | filename
3817 | exception filename
3818 |
3819 | lineno
3820 | exception lineno
3821 |
3822 | msg
3823 | exception msg
3824 |
3825 | offset
3826 | exception offset
3827 |
3828 | print_file_and_line
3829 | exception print_file_and_line
3830 |
3831 | text
3832 | exception text
3833 |
3834 | ----------------------------------------------------------------------
3835 | Methods inherited from Exception:
3836 |
3837 | __new__(*args, **kwargs) from type
3838 | Create and return a new object. See help(type) for accurate signature.
3839 |
3840 | ----------------------------------------------------------------------
3841 | Methods inherited from BaseException:
3842 |
3843 | __delattr__(self, name, /)
3844 | Implement delattr(self, name).
3845 |
3846 | __getattribute__(self, name, /)
3847 | Return getattr(self, name).
3848 |
3849 | __reduce__(...)
3850 | helper for pickle
3851 |
3852 | __repr__(self, /)
3853 | Return repr(self).
3854 |
3855 | __setattr__(self, name, value, /)
3856 | Implement setattr(self, name, value).
3857 |
3858 | __setstate__(...)
3859 |
3860 | with_traceback(...)
3861 | Exception.with_traceback(tb) --
3862 | set self.__traceback__ to tb and return self.
3863 |
3864 | ----------------------------------------------------------------------
3865 | Data descriptors inherited from BaseException:
3866 |
3867 | __cause__
3868 | exception cause
3869 |
3870 | __context__
3871 | exception context
3872 |
3873 | __dict__
3874 |
3875 | __suppress_context__
3876 |
3877 | __traceback__
3878 |
3879 | args
3880
3881 class TimeoutError(OSError)
3882 | Timeout expired.
3883 |
3884 | Method resolution order:
3885 | TimeoutError
3886 | OSError
3887 | Exception
3888 | BaseException
3889 | object
3890 |
3891 | Methods defined here:
3892 |
3893 | __init__(self, /, *args, **kwargs)
3894 | Initialize self. See help(type(self)) for accurate signature.
3895 |
3896 | ----------------------------------------------------------------------
3897 | Methods inherited from OSError:
3898 |
3899 | __new__(*args, **kwargs) from type
3900 | Create and return a new object. See help(type) for accurate signature.
3901 |
3902 | __reduce__(...)
3903 | helper for pickle
3904 |
3905 | __str__(self, /)
3906 | Return str(self).
3907 |
3908 | ----------------------------------------------------------------------
3909 | Data descriptors inherited from OSError:
3910 |
3911 | characters_written
3912 |
3913 | errno
3914 | POSIX exception code
3915 |
3916 | filename
3917 | exception filename
3918 |
3919 | filename2
3920 | second exception filename
3921 |
3922 | strerror
3923 | exception strerror
3924 |
3925 | winerror
3926 | Win32 exception code
3927 |
3928 | ----------------------------------------------------------------------
3929 | Methods inherited from BaseException:
3930 |
3931 | __delattr__(self, name, /)
3932 | Implement delattr(self, name).
3933 |
3934 | __getattribute__(self, name, /)
3935 | Return getattr(self, name).
3936 |
3937 | __repr__(self, /)
3938 | Return repr(self).
3939 |
3940 | __setattr__(self, name, value, /)
3941 | Implement setattr(self, name, value).
3942 |
3943 | __setstate__(...)
3944 |
3945 | with_traceback(...)
3946 | Exception.with_traceback(tb) --
3947 | set self.__traceback__ to tb and return self.
3948 |
3949 | ----------------------------------------------------------------------
3950 | Data descriptors inherited from BaseException:
3951 |
3952 | __cause__
3953 | exception cause
3954 |
3955 | __context__
3956 | exception context
3957 |
3958 | __dict__
3959 |
3960 | __suppress_context__
3961 |
3962 | __traceback__
3963 |
3964 | args
3965
3966 class TypeError(Exception)
3967 | Inappropriate argument type.
3968 |
3969 | Method resolution order:
3970 | TypeError
3971 | Exception
3972 | BaseException
3973 | object
3974 |
3975 | Methods defined here:
3976 |
3977 | __init__(self, /, *args, **kwargs)
3978 | Initialize self. See help(type(self)) for accurate signature.
3979 |
3980 | __new__(*args, **kwargs) from type
3981 | Create and return a new object. See help(type) for accurate signature.
3982 |
3983 | ----------------------------------------------------------------------
3984 | Methods inherited from BaseException:
3985 |
3986 | __delattr__(self, name, /)
3987 | Implement delattr(self, name).
3988 |
3989 | __getattribute__(self, name, /)
3990 | Return getattr(self, name).
3991 |
3992 | __reduce__(...)
3993 | helper for pickle
3994 |
3995 | __repr__(self, /)
3996 | Return repr(self).
3997 |
3998 | __setattr__(self, name, value, /)
3999 | Implement setattr(self, name, value).
4000 |
4001 | __setstate__(...)
4002 |
4003 | __str__(self, /)
4004 | Return str(self).
4005 |
4006 | with_traceback(...)
4007 | Exception.with_traceback(tb) --
4008 | set self.__traceback__ to tb and return self.
4009 |
4010 | ----------------------------------------------------------------------
4011 | Data descriptors inherited from BaseException:
4012 |
4013 | __cause__
4014 | exception cause
4015 |
4016 | __context__
4017 | exception context
4018 |
4019 | __dict__
4020 |
4021 | __suppress_context__
4022 |
4023 | __traceback__
4024 |
4025 | args
4026
4027 class UnboundLocalError(NameError)
4028 | Local name referenced but not bound to a value.
4029 |
4030 | Method resolution order:
4031 | UnboundLocalError
4032 | NameError
4033 | Exception
4034 | BaseException
4035 | object
4036 |
4037 | Methods defined here:
4038 |
4039 | __init__(self, /, *args, **kwargs)
4040 | Initialize self. See help(type(self)) for accurate signature.
4041 |
4042 | __new__(*args, **kwargs) from type
4043 | Create and return a new object. See help(type) for accurate signature.
4044 |
4045 | ----------------------------------------------------------------------
4046 | Methods inherited from BaseException:
4047 |
4048 | __delattr__(self, name, /)
4049 | Implement delattr(self, name).
4050 |
4051 | __getattribute__(self, name, /)
4052 | Return getattr(self, name).
4053 |
4054 | __reduce__(...)
4055 | helper for pickle
4056 |
4057 | __repr__(self, /)
4058 | Return repr(self).
4059 |
4060 | __setattr__(self, name, value, /)
4061 | Implement setattr(self, name, value).
4062 |
4063 | __setstate__(...)
4064 |
4065 | __str__(self, /)
4066 | Return str(self).
4067 |
4068 | with_traceback(...)
4069 | Exception.with_traceback(tb) --
4070 | set self.__traceback__ to tb and return self.
4071 |
4072 | ----------------------------------------------------------------------
4073 | Data descriptors inherited from BaseException:
4074 |
4075 | __cause__
4076 | exception cause
4077 |
4078 | __context__
4079 | exception context
4080 |
4081 | __dict__
4082 |
4083 | __suppress_context__
4084 |
4085 | __traceback__
4086 |
4087 | args
4088
4089 class UnicodeDecodeError(UnicodeError)
4090 | Unicode decoding error.
4091 |
4092 | Method resolution order:
4093 | UnicodeDecodeError
4094 | UnicodeError
4095 | ValueError
4096 | Exception
4097 | BaseException
4098 | object
4099 |
4100 | Methods defined here:
4101 |
4102 | __init__(self, /, *args, **kwargs)
4103 | Initialize self. See help(type(self)) for accurate signature.
4104 |
4105 | __new__(*args, **kwargs) from type
4106 | Create and return a new object. See help(type) for accurate signature.
4107 |
4108 | __str__(self, /)
4109 | Return str(self).
4110 |
4111 | ----------------------------------------------------------------------
4112 | Data descriptors defined here:
4113 |
4114 | encoding
4115 | exception encoding
4116 |
4117 | end
4118 | exception end
4119 |
4120 | object
4121 | exception object
4122 |
4123 | reason
4124 | exception reason
4125 |
4126 | start
4127 | exception start
4128 |
4129 | ----------------------------------------------------------------------
4130 | Methods inherited from BaseException:
4131 |
4132 | __delattr__(self, name, /)
4133 | Implement delattr(self, name).
4134 |
4135 | __getattribute__(self, name, /)
4136 | Return getattr(self, name).
4137 |
4138 | __reduce__(...)
4139 | helper for pickle
4140 |
4141 | __repr__(self, /)
4142 | Return repr(self).
4143 |
4144 | __setattr__(self, name, value, /)
4145 | Implement setattr(self, name, value).
4146 |
4147 | __setstate__(...)
4148 |
4149 | with_traceback(...)
4150 | Exception.with_traceback(tb) --
4151 | set self.__traceback__ to tb and return self.
4152 |
4153 | ----------------------------------------------------------------------
4154 | Data descriptors inherited from BaseException:
4155 |
4156 | __cause__
4157 | exception cause
4158 |
4159 | __context__
4160 | exception context
4161 |
4162 | __dict__
4163 |
4164 | __suppress_context__
4165 |
4166 | __traceback__
4167 |
4168 | args
4169
4170 class UnicodeEncodeError(UnicodeError)
4171 | Unicode encoding error.
4172 |
4173 | Method resolution order:
4174 | UnicodeEncodeError
4175 | UnicodeError
4176 | ValueError
4177 | Exception
4178 | BaseException
4179 | object
4180 |
4181 | Methods defined here:
4182 |
4183 | __init__(self, /, *args, **kwargs)
4184 | Initialize self. See help(type(self)) for accurate signature.
4185 |
4186 | __new__(*args, **kwargs) from type
4187 | Create and return a new object. See help(type) for accurate signature.
4188 |
4189 | __str__(self, /)
4190 | Return str(self).
4191 |
4192 | ----------------------------------------------------------------------
4193 | Data descriptors defined here:
4194 |
4195 | encoding
4196 | exception encoding
4197 |
4198 | end
4199 | exception end
4200 |
4201 | object
4202 | exception object
4203 |
4204 | reason
4205 | exception reason
4206 |
4207 | start
4208 | exception start
4209 |
4210 | ----------------------------------------------------------------------
4211 | Methods inherited from BaseException:
4212 |
4213 | __delattr__(self, name, /)
4214 | Implement delattr(self, name).
4215 |
4216 | __getattribute__(self, name, /)
4217 | Return getattr(self, name).
4218 |
4219 | __reduce__(...)
4220 | helper for pickle
4221 |
4222 | __repr__(self, /)
4223 | Return repr(self).
4224 |
4225 | __setattr__(self, name, value, /)
4226 | Implement setattr(self, name, value).
4227 |
4228 | __setstate__(...)
4229 |
4230 | with_traceback(...)
4231 | Exception.with_traceback(tb) --
4232 | set self.__traceback__ to tb and return self.
4233 |
4234 | ----------------------------------------------------------------------
4235 | Data descriptors inherited from BaseException:
4236 |
4237 | __cause__
4238 | exception cause
4239 |
4240 | __context__
4241 | exception context
4242 |
4243 | __dict__
4244 |
4245 | __suppress_context__
4246 |
4247 | __traceback__
4248 |
4249 | args
4250
4251 class UnicodeError(ValueError)
4252 | Unicode related error.
4253 |
4254 | Method resolution order:
4255 | UnicodeError
4256 | ValueError
4257 | Exception
4258 | BaseException
4259 | object
4260 |
4261 | Methods defined here:
4262 |
4263 | __init__(self, /, *args, **kwargs)
4264 | Initialize self. See help(type(self)) for accurate signature.
4265 |
4266 | __new__(*args, **kwargs) from type
4267 | Create and return a new object. See help(type) for accurate signature.
4268 |
4269 | ----------------------------------------------------------------------
4270 | Methods inherited from BaseException:
4271 |
4272 | __delattr__(self, name, /)
4273 | Implement delattr(self, name).
4274 |
4275 | __getattribute__(self, name, /)
4276 | Return getattr(self, name).
4277 |
4278 | __reduce__(...)
4279 | helper for pickle
4280 |
4281 | __repr__(self, /)
4282 | Return repr(self).
4283 |
4284 | __setattr__(self, name, value, /)
4285 | Implement setattr(self, name, value).
4286 |
4287 | __setstate__(...)
4288 |
4289 | __str__(self, /)
4290 | Return str(self).
4291 |
4292 | with_traceback(...)
4293 | Exception.with_traceback(tb) --
4294 | set self.__traceback__ to tb and return self.
4295 |
4296 | ----------------------------------------------------------------------
4297 | Data descriptors inherited from BaseException:
4298 |
4299 | __cause__
4300 | exception cause
4301 |
4302 | __context__
4303 | exception context
4304 |
4305 | __dict__
4306 |
4307 | __suppress_context__
4308 |
4309 | __traceback__
4310 |
4311 | args
4312
4313 class UnicodeTranslateError(UnicodeError)
4314 | Unicode translation error.
4315 |
4316 | Method resolution order:
4317 | UnicodeTranslateError
4318 | UnicodeError
4319 | ValueError
4320 | Exception
4321 | BaseException
4322 | object
4323 |
4324 | Methods defined here:
4325 |
4326 | __init__(self, /, *args, **kwargs)
4327 | Initialize self. See help(type(self)) for accurate signature.
4328 |
4329 | __new__(*args, **kwargs) from type
4330 | Create and return a new object. See help(type) for accurate signature.
4331 |
4332 | __str__(self, /)
4333 | Return str(self).
4334 |
4335 | ----------------------------------------------------------------------
4336 | Data descriptors defined here:
4337 |
4338 | encoding
4339 | exception encoding
4340 |
4341 | end
4342 | exception end
4343 |
4344 | object
4345 | exception object
4346 |
4347 | reason
4348 | exception reason
4349 |
4350 | start
4351 | exception start
4352 |
4353 | ----------------------------------------------------------------------
4354 | Methods inherited from BaseException:
4355 |
4356 | __delattr__(self, name, /)
4357 | Implement delattr(self, name).
4358 |
4359 | __getattribute__(self, name, /)
4360 | Return getattr(self, name).
4361 |
4362 | __reduce__(...)
4363 | helper for pickle
4364 |
4365 | __repr__(self, /)
4366 | Return repr(self).
4367 |
4368 | __setattr__(self, name, value, /)
4369 | Implement setattr(self, name, value).
4370 |
4371 | __setstate__(...)
4372 |
4373 | with_traceback(...)
4374 | Exception.with_traceback(tb) --
4375 | set self.__traceback__ to tb and return self.
4376 |
4377 | ----------------------------------------------------------------------
4378 | Data descriptors inherited from BaseException:
4379 |
4380 | __cause__
4381 | exception cause
4382 |
4383 | __context__
4384 | exception context
4385 |
4386 | __dict__
4387 |
4388 | __suppress_context__
4389 |
4390 | __traceback__
4391 |
4392 | args
4393
4394 class UnicodeWarning(Warning)
4395 | Base class for warnings about Unicode related problems, mostly
4396 | related to conversion problems.
4397 |
4398 | Method resolution order:
4399 | UnicodeWarning
4400 | Warning
4401 | Exception
4402 | BaseException
4403 | object
4404 |
4405 | Methods defined here:
4406 |
4407 | __init__(self, /, *args, **kwargs)
4408 | Initialize self. See help(type(self)) for accurate signature.
4409 |
4410 | __new__(*args, **kwargs) from type
4411 | Create and return a new object. See help(type) for accurate signature.
4412 |
4413 | ----------------------------------------------------------------------
4414 | Methods inherited from BaseException:
4415 |
4416 | __delattr__(self, name, /)
4417 | Implement delattr(self, name).
4418 |
4419 | __getattribute__(self, name, /)
4420 | Return getattr(self, name).
4421 |
4422 | __reduce__(...)
4423 | helper for pickle
4424 |
4425 | __repr__(self, /)
4426 | Return repr(self).
4427 |
4428 | __setattr__(self, name, value, /)
4429 | Implement setattr(self, name, value).
4430 |
4431 | __setstate__(...)
4432 |
4433 | __str__(self, /)
4434 | Return str(self).
4435 |
4436 | with_traceback(...)
4437 | Exception.with_traceback(tb) --
4438 | set self.__traceback__ to tb and return self.
4439 |
4440 | ----------------------------------------------------------------------
4441 | Data descriptors inherited from BaseException:
4442 |
4443 | __cause__
4444 | exception cause
4445 |
4446 | __context__
4447 | exception context
4448 |
4449 | __dict__
4450 |
4451 | __suppress_context__
4452 |
4453 | __traceback__
4454 |
4455 | args
4456
4457 class UserWarning(Warning)
4458 | Base class for warnings generated by user code.
4459 |
4460 | Method resolution order:
4461 | UserWarning
4462 | Warning
4463 | Exception
4464 | BaseException
4465 | object
4466 |
4467 | Methods defined here:
4468 |
4469 | __init__(self, /, *args, **kwargs)
4470 | Initialize self. See help(type(self)) for accurate signature.
4471 |
4472 | __new__(*args, **kwargs) from type
4473 | Create and return a new object. See help(type) for accurate signature.
4474 |
4475 | ----------------------------------------------------------------------
4476 | Methods inherited from BaseException:
4477 |
4478 | __delattr__(self, name, /)
4479 | Implement delattr(self, name).
4480 |
4481 | __getattribute__(self, name, /)
4482 | Return getattr(self, name).
4483 |
4484 | __reduce__(...)
4485 | helper for pickle
4486 |
4487 | __repr__(self, /)
4488 | Return repr(self).
4489 |
4490 | __setattr__(self, name, value, /)
4491 | Implement setattr(self, name, value).
4492 |
4493 | __setstate__(...)
4494 |
4495 | __str__(self, /)
4496 | Return str(self).
4497 |
4498 | with_traceback(...)
4499 | Exception.with_traceback(tb) --
4500 | set self.__traceback__ to tb and return self.
4501 |
4502 | ----------------------------------------------------------------------
4503 | Data descriptors inherited from BaseException:
4504 |
4505 | __cause__
4506 | exception cause
4507 |
4508 | __context__
4509 | exception context
4510 |
4511 | __dict__
4512 |
4513 | __suppress_context__
4514 |
4515 | __traceback__
4516 |
4517 | args
4518
4519 class ValueError(Exception)
4520 | Inappropriate argument value (of correct type).
4521 |
4522 | Method resolution order:
4523 | ValueError
4524 | Exception
4525 | BaseException
4526 | object
4527 |
4528 | Methods defined here:
4529 |
4530 | __init__(self, /, *args, **kwargs)
4531 | Initialize self. See help(type(self)) for accurate signature.
4532 |
4533 | __new__(*args, **kwargs) from type
4534 | Create and return a new object. See help(type) for accurate signature.
4535 |
4536 | ----------------------------------------------------------------------
4537 | Methods inherited from BaseException:
4538 |
4539 | __delattr__(self, name, /)
4540 | Implement delattr(self, name).
4541 |
4542 | __getattribute__(self, name, /)
4543 | Return getattr(self, name).
4544 |
4545 | __reduce__(...)
4546 | helper for pickle
4547 |
4548 | __repr__(self, /)
4549 | Return repr(self).
4550 |
4551 | __setattr__(self, name, value, /)
4552 | Implement setattr(self, name, value).
4553 |
4554 | __setstate__(...)
4555 |
4556 | __str__(self, /)
4557 | Return str(self).
4558 |
4559 | with_traceback(...)
4560 | Exception.with_traceback(tb) --
4561 | set self.__traceback__ to tb and return self.
4562 |
4563 | ----------------------------------------------------------------------
4564 | Data descriptors inherited from BaseException:
4565 |
4566 | __cause__
4567 | exception cause
4568 |
4569 | __context__
4570 | exception context
4571 |
4572 | __dict__
4573 |
4574 | __suppress_context__
4575 |
4576 | __traceback__
4577 |
4578 | args
4579
4580 class Warning(Exception)
4581 | Base class for warning categories.
4582 |
4583 | Method resolution order:
4584 | Warning
4585 | Exception
4586 | BaseException
4587 | object
4588 |
4589 | Methods defined here:
4590 |
4591 | __init__(self, /, *args, **kwargs)
4592 | Initialize self. See help(type(self)) for accurate signature.
4593 |
4594 | __new__(*args, **kwargs) from type
4595 | Create and return a new object. See help(type) for accurate signature.
4596 |
4597 | ----------------------------------------------------------------------
4598 | Methods inherited from BaseException:
4599 |
4600 | __delattr__(self, name, /)
4601 | Implement delattr(self, name).
4602 |
4603 | __getattribute__(self, name, /)
4604 | Return getattr(self, name).
4605 |
4606 | __reduce__(...)
4607 | helper for pickle
4608 |
4609 | __repr__(self, /)
4610 | Return repr(self).
4611 |
4612 | __setattr__(self, name, value, /)
4613 | Implement setattr(self, name, value).
4614 |
4615 | __setstate__(...)
4616 |
4617 | __str__(self, /)
4618 | Return str(self).
4619 |
4620 | with_traceback(...)
4621 | Exception.with_traceback(tb) --
4622 | set self.__traceback__ to tb and return self.
4623 |
4624 | ----------------------------------------------------------------------
4625 | Data descriptors inherited from BaseException:
4626 |
4627 | __cause__
4628 | exception cause
4629 |
4630 | __context__
4631 | exception context
4632 |
4633 | __dict__
4634 |
4635 | __suppress_context__
4636 |
4637 | __traceback__
4638 |
4639 | args
4640
4641 WindowsError = class OSError(Exception)
4642 | Base class for I/O related errors.
4643 |
4644 | Method resolution order:
4645 | OSError
4646 | Exception
4647 | BaseException
4648 | object
4649 |
4650 | Methods defined here:
4651 |
4652 | __init__(self, /, *args, **kwargs)
4653 | Initialize self. See help(type(self)) for accurate signature.
4654 |
4655 | __new__(*args, **kwargs) from type
4656 | Create and return a new object. See help(type) for accurate signature.
4657 |
4658 | __reduce__(...)
4659 | helper for pickle
4660 |
4661 | __str__(self, /)
4662 | Return str(self).
4663 |
4664 | ----------------------------------------------------------------------
4665 | Data descriptors defined here:
4666 |
4667 | characters_written
4668 |
4669 | errno
4670 | POSIX exception code
4671 |
4672 | filename
4673 | exception filename
4674 |
4675 | filename2
4676 | second exception filename
4677 |
4678 | strerror
4679 | exception strerror
4680 |
4681 | winerror
4682 | Win32 exception code
4683 |
4684 | ----------------------------------------------------------------------
4685 | Methods inherited from BaseException:
4686 |
4687 | __delattr__(self, name, /)
4688 | Implement delattr(self, name).
4689 |
4690 | __getattribute__(self, name, /)
4691 | Return getattr(self, name).
4692 |
4693 | __repr__(self, /)
4694 | Return repr(self).
4695 |
4696 | __setattr__(self, name, value, /)
4697 | Implement setattr(self, name, value).
4698 |
4699 | __setstate__(...)
4700 |
4701 | with_traceback(...)
4702 | Exception.with_traceback(tb) --
4703 | set self.__traceback__ to tb and return self.
4704 |
4705 | ----------------------------------------------------------------------
4706 | Data descriptors inherited from BaseException:
4707 |
4708 | __cause__
4709 | exception cause
4710 |
4711 | __context__
4712 | exception context
4713 |
4714 | __dict__
4715 |
4716 | __suppress_context__
4717 |
4718 | __traceback__
4719 |
4720 | args
4721
4722 class ZeroDivisionError(ArithmeticError)
4723 | Second argument to a division or modulo operation was zero.
4724 |
4725 | Method resolution order:
4726 | ZeroDivisionError
4727 | ArithmeticError
4728 | Exception
4729 | BaseException
4730 | object
4731 |
4732 | Methods defined here:
4733 |
4734 | __init__(self, /, *args, **kwargs)
4735 | Initialize self. See help(type(self)) for accurate signature.
4736 |
4737 | __new__(*args, **kwargs) from type
4738 | Create and return a new object. See help(type) for accurate signature.
4739 |
4740 | ----------------------------------------------------------------------
4741 | Methods inherited from BaseException:
4742 |
4743 | __delattr__(self, name, /)
4744 | Implement delattr(self, name).
4745 |
4746 | __getattribute__(self, name, /)
4747 | Return getattr(self, name).
4748 |
4749 | __reduce__(...)
4750 | helper for pickle
4751 |
4752 | __repr__(self, /)
4753 | Return repr(self).
4754 |
4755 | __setattr__(self, name, value, /)
4756 | Implement setattr(self, name, value).
4757 |
4758 | __setstate__(...)
4759 |
4760 | __str__(self, /)
4761 | Return str(self).
4762 |
4763 | with_traceback(...)
4764 | Exception.with_traceback(tb) --
4765 | set self.__traceback__ to tb and return self.
4766 |
4767 | ----------------------------------------------------------------------
4768 | Data descriptors inherited from BaseException:
4769 |
4770 | __cause__
4771 | exception cause
4772 |
4773 | __context__
4774 | exception context
4775 |
4776 | __dict__
4777 |
4778 | __suppress_context__
4779 |
4780 | __traceback__
4781 |
4782 | args
4783
4784 class bool(int)
4785 | bool(x) -> bool
4786 |
4787 | Returns True when the argument x is true, False otherwise.
4788 | The builtins True and False are the only two instances of the class bool.
4789 | The class bool is a subclass of the class int, and cannot be subclassed.
4790 |
4791 | Method resolution order:
4792 | bool
4793 | int
4794 | object
4795 |
4796 | Methods defined here:
4797 |
4798 | __and__(self, value, /)
4799 | Return self&value.
4800 |
4801 | __new__(*args, **kwargs) from type
4802 | Create and return a new object. See help(type) for accurate signature.
4803 |
4804 | __or__(self, value, /)
4805 | Return self|value.
4806 |
4807 | __rand__(self, value, /)
4808 | Return value&self.
4809 |
4810 | __repr__(self, /)
4811 | Return repr(self).
4812 |
4813 | __ror__(self, value, /)
4814 | Return value|self.
4815 |
4816 | __rxor__(self, value, /)
4817 | Return value^self.
4818 |
4819 | __str__(self, /)
4820 | Return str(self).
4821 |
4822 | __xor__(self, value, /)
4823 | Return self^value.
4824 |
4825 | ----------------------------------------------------------------------
4826 | Methods inherited from int:
4827 |
4828 | __abs__(self, /)
4829 | abs(self)
4830 |
4831 | __add__(self, value, /)
4832 | Return self+value.
4833 |
4834 | __bool__(self, /)
4835 | self != 0
4836 |
4837 | __ceil__(...)
4838 | Ceiling of an Integral returns itself.
4839 |
4840 | __divmod__(self, value, /)
4841 | Return divmod(self, value).
4842 |
4843 | __eq__(self, value, /)
4844 | Return self==value.
4845 |
4846 | __float__(self, /)
4847 | float(self)
4848 |
4849 | __floor__(...)
4850 | Flooring an Integral returns itself.
4851 |
4852 | __floordiv__(self, value, /)
4853 | Return self//value.
4854 |
4855 | __format__(...)
4856 | default object formatter
4857 |
4858 | __ge__(self, value, /)
4859 | Return self>=value.
4860 |
4861 | __getattribute__(self, name, /)
4862 | Return getattr(self, name).
4863 |
4864 | __getnewargs__(...)
4865 |
4866 | __gt__(self, value, /)
4867 | Return self>value.
4868 |
4869 | __hash__(self, /)
4870 | Return hash(self).
4871 |
4872 | __index__(self, /)
4873 | Return self converted to an integer, if self is suitable for use as an index into a list.
4874 |
4875 | __int__(self, /)
4876 | int(self)
4877 |
4878 | __invert__(self, /)
4879 | ~self
4880 |
4881 | __le__(self, value, /)
4882 | Return self<=value.
4883 |
4884 | __lshift__(self, value, /)
4885 | Return self<<value.
4886 |
4887 | __lt__(self, value, /)
4888 | Return self<value.
4889 |
4890 | __mod__(self, value, /)
4891 | Return self%value.
4892 |
4893 | __mul__(self, value, /)
4894 | Return self*value.
4895 |
4896 | __ne__(self, value, /)
4897 | Return self!=value.
4898 |
4899 | __neg__(self, /)
4900 | -self
4901 |
4902 | __pos__(self, /)
4903 | +self
4904 |
4905 | __pow__(self, value, mod=None, /)
4906 | Return pow(self, value, mod).
4907 |
4908 | __radd__(self, value, /)
4909 | Return value+self.
4910 |
4911 | __rdivmod__(self, value, /)
4912 | Return divmod(value, self).
4913 |
4914 | __rfloordiv__(self, value, /)
4915 | Return value//self.
4916 |
4917 | __rlshift__(self, value, /)
4918 | Return value<<self.
4919 |
4920 | __rmod__(self, value, /)
4921 | Return value%self.
4922 |
4923 | __rmul__(self, value, /)
4924 | Return value*self.
4925 |
4926 | __round__(...)
4927 | Rounding an Integral returns itself.
4928 | Rounding with an ndigits argument also returns an integer.
4929 |
4930 | __rpow__(self, value, mod=None, /)
4931 | Return pow(value, self, mod).
4932 |
4933 | __rrshift__(self, value, /)
4934 | Return value>>self.
4935 |
4936 | __rshift__(self, value, /)
4937 | Return self>>value.
4938 |
4939 | __rsub__(self, value, /)
4940 | Return value-self.
4941 |
4942 | __rtruediv__(self, value, /)
4943 | Return value/self.
4944 |
4945 | __sizeof__(...)
4946 | Returns size in memory, in bytes
4947 |
4948 | __sub__(self, value, /)
4949 | Return self-value.
4950 |
4951 | __truediv__(self, value, /)
4952 | Return self/value.
4953 |
4954 | __trunc__(...)
4955 | Truncating an Integral returns itself.
4956 |
4957 | bit_length(...)
4958 | int.bit_length() -> int
4959 |
4960 | Number of bits necessary to represent self in binary.
4961 | >>> bin(37)
4962 | '0b100101'
4963 | >>> (37).bit_length()
4964 | 6
4965 |
4966 | conjugate(...)
4967 | Returns self, the complex conjugate of any int.
4968 |
4969 | from_bytes(...) from type
4970 | int.from_bytes(bytes, byteorder, *, signed=False) -> int
4971 |
4972 | Return the integer represented by the given array of bytes.
4973 |
4974 | The bytes argument must be a bytes-like object (e.g. bytes or bytearray).
4975 |
4976 | The byteorder argument determines the byte order used to represent the
4977 | integer. If byteorder is 'big', the most significant byte is at the
4978 | beginning of the byte array. If byteorder is 'little', the most
4979 | significant byte is at the end of the byte array. To request the native
4980 | byte order of the host system, use `sys.byteorder' as the byte order value.
4981 |
4982 | The signed keyword-only argument indicates whether two's complement is
4983 | used to represent the integer.
4984 |
4985 | to_bytes(...)
4986 | int.to_bytes(length, byteorder, *, signed=False) -> bytes
4987 |
4988 | Return an array of bytes representing an integer.
4989 |
4990 | The integer is represented using length bytes. An OverflowError is
4991 | raised if the integer is not representable with the given number of
4992 | bytes.
4993 |
4994 | The byteorder argument determines the byte order used to represent the
4995 | integer. If byteorder is 'big', the most significant byte is at the
4996 | beginning of the byte array. If byteorder is 'little', the most
4997 | significant byte is at the end of the byte array. To request the native
4998 | byte order of the host system, use `sys.byteorder' as the byte order value.
4999 |
5000 | The signed keyword-only argument determines whether two's complement is
5001 | used to represent the integer. If signed is False and a negative integer
5002 | is given, an OverflowError is raised.
5003 |
5004 | ----------------------------------------------------------------------
5005 | Data descriptors inherited from int:
5006 |
5007 | denominator
5008 | the denominator of a rational number in lowest terms
5009 |
5010 | imag
5011 | the imaginary part of a complex number
5012 |
5013 | numerator
5014 | the numerator of a rational number in lowest terms
5015 |
5016 | real
5017 | the real part of a complex number
5018
5019 class bytearray(object)
5020 | bytearray(iterable_of_ints) -> bytearray
5021 | bytearray(string, encoding[, errors]) -> bytearray
5022 | bytearray(bytes_or_buffer) -> mutable copy of bytes_or_buffer
5023 | bytearray(int) -> bytes array of size given by the parameter initialized with null bytes
5024 | bytearray() -> empty bytes array
5025 |
5026 | Construct an mutable bytearray object from:
5027 | - an iterable yielding integers in range(256)
5028 | - a text string encoded using the specified encoding
5029 | - a bytes or a buffer object
5030 | - any object implementing the buffer API.
5031 | - an integer
5032 |
5033 | Methods defined here:
5034 |
5035 | __add__(self, value, /)
5036 | Return self+value.
5037 |
5038 | __alloc__(...)
5039 | B.__alloc__() -> int
5040 |
5041 | Return the number of bytes actually allocated.
5042 |
5043 | __contains__(self, key, /)
5044 | Return key in self.
5045 |
5046 | __delitem__(self, key, /)
5047 | Delete self[key].
5048 |
5049 | __eq__(self, value, /)
5050 | Return self==value.
5051 |
5052 | __ge__(self, value, /)
5053 | Return self>=value.
5054 |
5055 | __getattribute__(self, name, /)
5056 | Return getattr(self, name).
5057 |
5058 | __getitem__(self, key, /)
5059 | Return self[key].
5060 |
5061 | __gt__(self, value, /)
5062 | Return self>value.
5063 |
5064 | __iadd__(self, value, /)
5065 | Implement self+=value.
5066 |
5067 | __imul__(self, value, /)
5068 | Implement self*=value.
5069 |
5070 | __init__(self, /, *args, **kwargs)
5071 | Initialize self. See help(type(self)) for accurate signature.
5072 |
5073 | __iter__(self, /)
5074 | Implement iter(self).
5075 |
5076 | __le__(self, value, /)
5077 | Return self<=value.
5078 |
5079 | __len__(self, /)
5080 | Return len(self).
5081 |
5082 | __lt__(self, value, /)
5083 | Return self<value.
5084 |
5085 | __mod__(self, value, /)
5086 | Return self%value.
5087 |
5088 | __mul__(self, value, /)
5089 | Return self*value.n
5090 |
5091 | __ne__(self, value, /)
5092 | Return self!=value.
5093 |
5094 | __new__(*args, **kwargs) from type
5095 | Create and return a new object. See help(type) for accurate signature.
5096 |
5097 | __reduce__(self, /)
5098 | Return state information for pickling.
5099 |
5100 | __reduce_ex__(self, proto=0, /)
5101 | Return state information for pickling.
5102 |
5103 | __repr__(self, /)
5104 | Return repr(self).
5105 |
5106 | __rmod__(self, value, /)
5107 | Return value%self.
5108 |
5109 | __rmul__(self, value, /)
5110 | Return self*value.
5111 |
5112 | __setitem__(self, key, value, /)
5113 | Set self[key] to value.
5114 |
5115 | __sizeof__(self, /)
5116 | Returns the size of the bytearray object in memory, in bytes.
5117 |
5118 | __str__(self, /)
5119 | Return str(self).
5120 |
5121 | append(self, item, /)
5122 | Append a single item to the end of the bytearray.
5123 |
5124 | item
5125 | The item to be appended.
5126 |
5127 | capitalize(...)
5128 | B.capitalize() -> copy of B
5129 |
5130 | Return a copy of B with only its first character capitalized (ASCII)
5131 | and the rest lower-cased.
5132 |
5133 | center(...)
5134 | B.center(width[, fillchar]) -> copy of B
5135 |
5136 | Return B centered in a string of length width. Padding is
5137 | done using the specified fill character (default is a space).
5138 |
5139 | clear(self, /)
5140 | Remove all items from the bytearray.
5141 |
5142 | copy(self, /)
5143 | Return a copy of B.
5144 |
5145 | count(...)
5146 | B.count(sub[, start[, end]]) -> int
5147 |
5148 | Return the number of non-overlapping occurrences of subsection sub in
5149 | bytes B[start:end]. Optional arguments start and end are interpreted
5150 | as in slice notation.
5151 |
5152 | decode(self, /, encoding='utf-8', errors='strict')
5153 | Decode the bytearray using the codec registered for encoding.
5154 |
5155 | encoding
5156 | The encoding with which to decode the bytearray.
5157 | errors
5158 | The error handling scheme to use for the handling of decoding errors.
5159 | The default is 'strict' meaning that decoding errors raise a
5160 | UnicodeDecodeError. Other possible values are 'ignore' and 'replace'
5161 | as well as any other name registered with codecs.register_error that
5162 | can handle UnicodeDecodeErrors.
5163 |
5164 | endswith(...)
5165 | B.endswith(suffix[, start[, end]]) -> bool
5166 |
5167 | Return True if B ends with the specified suffix, False otherwise.
5168 | With optional start, test B beginning at that position.
5169 | With optional end, stop comparing B at that position.
5170 | suffix can also be a tuple of bytes to try.
5171 |
5172 | expandtabs(...)
5173 | B.expandtabs(tabsize=8) -> copy of B
5174 |
5175 | Return a copy of B where all tab characters are expanded using spaces.
5176 | If tabsize is not given, a tab size of 8 characters is assumed.
5177 |
5178 | extend(self, iterable_of_ints, /)
5179 | Append all the items from the iterator or sequence to the end of the bytearray.
5180 |
5181 | iterable_of_ints
5182 | The iterable of items to append.
5183 |
5184 | find(...)
5185 | B.find(sub[, start[, end]]) -> int
5186 |
5187 | Return the lowest index in B where subsection sub is found,
5188 | such that sub is contained within B[start,end]. Optional
5189 | arguments start and end are interpreted as in slice notation.
5190 |
5191 | Return -1 on failure.
5192 |
5193 | fromhex(string, /) from type
5194 | Create a bytearray object from a string of hexadecimal numbers.
5195 |
5196 | Spaces between two numbers are accepted.
5197 | Example: bytearray.fromhex('B9 01EF') -> bytearray(b'\\xb9\\x01\\xef')
5198 |
5199 | hex(...)
5200 | B.hex() -> string
5201 |
5202 | Create a string of hexadecimal numbers from a bytearray object.
5203 | Example: bytearray([0xb9, 0x01, 0xef]).hex() -> 'b901ef'.
5204 |
5205 | index(...)
5206 | B.index(sub[, start[, end]]) -> int
5207 |
5208 | Like B.find() but raise ValueError when the subsection is not found.
5209 |
5210 | insert(self, index, item, /)
5211 | Insert a single item into the bytearray before the given index.
5212 |
5213 | index
5214 | The index where the value is to be inserted.
5215 | item
5216 | The item to be inserted.
5217 |
5218 | isalnum(...)
5219 | B.isalnum() -> bool
5220 |
5221 | Return True if all characters in B are alphanumeric
5222 | and there is at least one character in B, False otherwise.
5223 |
5224 | isalpha(...)
5225 | B.isalpha() -> bool
5226 |
5227 | Return True if all characters in B are alphabetic
5228 | and there is at least one character in B, False otherwise.
5229 |
5230 | isdigit(...)
5231 | B.isdigit() -> bool
5232 |
5233 | Return True if all characters in B are digits
5234 | and there is at least one character in B, False otherwise.
5235 |
5236 | islower(...)
5237 | B.islower() -> bool
5238 |
5239 | Return True if all cased characters in B are lowercase and there is
5240 | at least one cased character in B, False otherwise.
5241 |
5242 | isspace(...)
5243 | B.isspace() -> bool
5244 |
5245 | Return True if all characters in B are whitespace
5246 | and there is at least one character in B, False otherwise.
5247 |
5248 | istitle(...)
5249 | B.istitle() -> bool
5250 |
5251 | Return True if B is a titlecased string and there is at least one
5252 | character in B, i.e. uppercase characters may only follow uncased
5253 | characters and lowercase characters only cased ones. Return False
5254 | otherwise.
5255 |
5256 | isupper(...)
5257 | B.isupper() -> bool
5258 |
5259 | Return True if all cased characters in B are uppercase and there is
5260 | at least one cased character in B, False otherwise.
5261 |
5262 | join(self, iterable_of_bytes, /)
5263 | Concatenate any number of bytes/bytearray objects.
5264 |
5265 | The bytearray whose method is called is inserted in between each pair.
5266 |
5267 | The result is returned as a new bytearray object.
5268 |
5269 | ljust(...)
5270 | B.ljust(width[, fillchar]) -> copy of B
5271 |
5272 | Return B left justified in a string of length width. Padding is
5273 | done using the specified fill character (default is a space).
5274 |
5275 | lower(...)
5276 | B.lower() -> copy of B
5277 |
5278 | Return a copy of B with all ASCII characters converted to lowercase.
5279 |
5280 | lstrip(self, bytes=None, /)
5281 | Strip leading bytes contained in the argument.
5282 |
5283 | If the argument is omitted or None, strip leading ASCII whitespace.
5284 |
5285 | partition(self, sep, /)
5286 | Partition the bytearray into three parts using the given separator.
5287 |
5288 | This will search for the separator sep in the bytearray. If the separator is
5289 | found, returns a 3-tuple containing the part before the separator, the
5290 | separator itself, and the part after it.
5291 |
5292 | If the separator is not found, returns a 3-tuple containing the original
5293 | bytearray object and two empty bytearray objects.
5294 |
5295 | pop(self, index=-1, /)
5296 | Remove and return a single item from B.
5297 |
5298 | index
5299 | The index from where to remove the item.
5300 | -1 (the default value) means remove the last item.
5301 |
5302 | If no index argument is given, will pop the last item.
5303 |
5304 | remove(self, value, /)
5305 | Remove the first occurrence of a value in the bytearray.
5306 |
5307 | value
5308 | The value to remove.
5309 |
5310 | replace(self, old, new, count=-1, /)
5311 | Return a copy with all occurrences of substring old replaced by new.
5312 |
5313 | count
5314 | Maximum number of occurrences to replace.
5315 | -1 (the default value) means replace all occurrences.
5316 |
5317 | If the optional argument count is given, only the first count occurrences are
5318 | replaced.
5319 |
5320 | reverse(self, /)
5321 | Reverse the order of the values in B in place.
5322 |
5323 | rfind(...)
5324 | B.rfind(sub[, start[, end]]) -> int
5325 |
5326 | Return the highest index in B where subsection sub is found,
5327 | such that sub is contained within B[start,end]. Optional
5328 | arguments start and end are interpreted as in slice notation.
5329 |
5330 | Return -1 on failure.
5331 |
5332 | rindex(...)
5333 | B.rindex(sub[, start[, end]]) -> int
5334 |
5335 | Like B.rfind() but raise ValueError when the subsection is not found.
5336 |
5337 | rjust(...)
5338 | B.rjust(width[, fillchar]) -> copy of B
5339 |
5340 | Return B right justified in a string of length width. Padding is
5341 | done using the specified fill character (default is a space)
5342 |
5343 | rpartition(self, sep, /)
5344 | Partition the bytes into three parts using the given separator.
5345 |
5346 | This will search for the separator sep in the bytearray, starting and the end.
5347 | If the separator is found, returns a 3-tuple containing the part before the
5348 | separator, the separator itself, and the part after it.
5349 |
5350 | If the separator is not found, returns a 3-tuple containing two empty bytearray
5351 | objects and the original bytearray object.
5352 |
5353 | rsplit(self, /, sep=None, maxsplit=-1)
5354 | Return a list of the sections in the bytearray, using sep as the delimiter.
5355 |
5356 | sep
5357 | The delimiter according which to split the bytearray.
5358 | None (the default value) means split on ASCII whitespace characters
5359 | (space, tab, return, newline, formfeed, vertical tab).
5360 | maxsplit
5361 | Maximum number of splits to do.
5362 | -1 (the default value) means no limit.
5363 |
5364 | Splitting is done starting at the end of the bytearray and working to the front.
5365 |
5366 | rstrip(self, bytes=None, /)
5367 | Strip trailing bytes contained in the argument.
5368 |
5369 | If the argument is omitted or None, strip trailing ASCII whitespace.
5370 |
5371 | split(self, /, sep=None, maxsplit=-1)
5372 | Return a list of the sections in the bytearray, using sep as the delimiter.
5373 |
5374 | sep
5375 | The delimiter according which to split the bytearray.
5376 | None (the default value) means split on ASCII whitespace characters
5377 | (space, tab, return, newline, formfeed, vertical tab).
5378 | maxsplit
5379 | Maximum number of splits to do.
5380 | -1 (the default value) means no limit.
5381 |
5382 | splitlines(self, /, keepends=False)
5383 | Return a list of the lines in the bytearray, breaking at line boundaries.
5384 |
5385 | Line breaks are not included in the resulting list unless keepends is given and
5386 | true.
5387 |
5388 | startswith(...)
5389 | B.startswith(prefix[, start[, end]]) -> bool
5390 |
5391 | Return True if B starts with the specified prefix, False otherwise.
5392 | With optional start, test B beginning at that position.
5393 | With optional end, stop comparing B at that position.
5394 | prefix can also be a tuple of bytes to try.
5395 |
5396 | strip(self, bytes=None, /)
5397 | Strip leading and trailing bytes contained in the argument.
5398 |
5399 | If the argument is omitted or None, strip leading and trailing ASCII whitespace.
5400 |
5401 | swapcase(...)
5402 | B.swapcase() -> copy of B
5403 |
5404 | Return a copy of B with uppercase ASCII characters converted
5405 | to lowercase ASCII and vice versa.
5406 |
5407 | title(...)
5408 | B.title() -> copy of B
5409 |
5410 | Return a titlecased version of B, i.e. ASCII words start with uppercase
5411 | characters, all remaining cased characters have lowercase.
5412 |
5413 | translate(...)
5414 | translate(table, [deletechars])
5415 | Return a copy with each character mapped by the given translation table.
5416 |
5417 | table
5418 | Translation table, which must be a bytes object of length 256.
5419 |
5420 | All characters occurring in the optional argument deletechars are removed.
5421 | The remaining characters are mapped through the given translation table.
5422 |
5423 | upper(...)
5424 | B.upper() -> copy of B
5425 |
5426 | Return a copy of B with all ASCII characters converted to uppercase.
5427 |
5428 | zfill(...)
5429 | B.zfill(width) -> copy of B
5430 |
5431 | Pad a numeric string B with zeros on the left, to fill a field
5432 | of the specified width. B is never truncated.
5433 |
5434 | ----------------------------------------------------------------------
5435 | Static methods defined here:
5436 |
5437 | maketrans(frm, to, /)
5438 | Return a translation table useable for the bytes or bytearray translate method.
5439 |
5440 | The returned table will be one where each byte in frm is mapped to the byte at
5441 | the same position in to.
5442 |
5443 | The bytes objects frm and to must be of the same length.
5444 |
5445 | ----------------------------------------------------------------------
5446 | Data and other attributes defined here:
5447 |
5448 | __hash__ = None
5449
5450 class bytes(object)
5451 | bytes(iterable_of_ints) -> bytes
5452 | bytes(string, encoding[, errors]) -> bytes
5453 | bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer
5454 | bytes(int) -> bytes object of size given by the parameter initialized with null bytes
5455 | bytes() -> empty bytes object
5456 |
5457 | Construct an immutable array of bytes from:
5458 | - an iterable yielding integers in range(256)
5459 | - a text string encoded using the specified encoding
5460 | - any object implementing the buffer API.
5461 | - an integer
5462 |
5463 | Methods defined here:
5464 |
5465 | __add__(self, value, /)
5466 | Return self+value.
5467 |
5468 | __contains__(self, key, /)
5469 | Return key in self.
5470 |
5471 | __eq__(self, value, /)
5472 | Return self==value.
5473 |
5474 | __ge__(self, value, /)
5475 | Return self>=value.
5476 |
5477 | __getattribute__(self, name, /)
5478 | Return getattr(self, name).
5479 |
5480 | __getitem__(self, key, /)
5481 | Return self[key].
5482 |
5483 | __getnewargs__(...)
5484 |
5485 | __gt__(self, value, /)
5486 | Return self>value.
5487 |
5488 | __hash__(self, /)
5489 | Return hash(self).
5490 |
5491 | __iter__(self, /)
5492 | Implement iter(self).
5493 |
5494 | __le__(self, value, /)
5495 | Return self<=value.
5496 |
5497 | __len__(self, /)
5498 | Return len(self).
5499 |
5500 | __lt__(self, value, /)
5501 | Return self<value.
5502 |
5503 | __mod__(self, value, /)
5504 | Return self%value.
5505 |
5506 | __mul__(self, value, /)
5507 | Return self*value.n
5508 |
5509 | __ne__(self, value, /)
5510 | Return self!=value.
5511 |
5512 | __new__(*args, **kwargs) from type
5513 | Create and return a new object. See help(type) for accurate signature.
5514 |
5515 | __repr__(self, /)
5516 | Return repr(self).
5517 |
5518 | __rmod__(self, value, /)
5519 | Return value%self.
5520 |
5521 | __rmul__(self, value, /)
5522 | Return self*value.
5523 |
5524 | __str__(self, /)
5525 | Return str(self).
5526 |
5527 | capitalize(...)
5528 | B.capitalize() -> copy of B
5529 |
5530 | Return a copy of B with only its first character capitalized (ASCII)
5531 | and the rest lower-cased.
5532 |
5533 | center(...)
5534 | B.center(width[, fillchar]) -> copy of B
5535 |
5536 | Return B centered in a string of length width. Padding is
5537 | done using the specified fill character (default is a space).
5538 |
5539 | count(...)
5540 | B.count(sub[, start[, end]]) -> int
5541 |
5542 | Return the number of non-overlapping occurrences of substring sub in
5543 | string B[start:end]. Optional arguments start and end are interpreted
5544 | as in slice notation.
5545 |
5546 | decode(self, /, encoding='utf-8', errors='strict')
5547 | Decode the bytes using the codec registered for encoding.
5548 |
5549 | encoding
5550 | The encoding with which to decode the bytes.
5551 | errors
5552 | The error handling scheme to use for the handling of decoding errors.
5553 | The default is 'strict' meaning that decoding errors raise a
5554 | UnicodeDecodeError. Other possible values are 'ignore' and 'replace'
5555 | as well as any other name registered with codecs.register_error that
5556 | can handle UnicodeDecodeErrors.
5557 |
5558 | endswith(...)
5559 | B.endswith(suffix[, start[, end]]) -> bool
5560 |
5561 | Return True if B ends with the specified suffix, False otherwise.
5562 | With optional start, test B beginning at that position.
5563 | With optional end, stop comparing B at that position.
5564 | suffix can also be a tuple of bytes to try.
5565 |
5566 | expandtabs(...)
5567 | B.expandtabs(tabsize=8) -> copy of B
5568 |
5569 | Return a copy of B where all tab characters are expanded using spaces.
5570 | If tabsize is not given, a tab size of 8 characters is assumed.
5571 |
5572 | find(...)
5573 | B.find(sub[, start[, end]]) -> int
5574 |
5575 | Return the lowest index in B where substring sub is found,
5576 | such that sub is contained within B[start:end]. Optional
5577 | arguments start and end are interpreted as in slice notation.
5578 |
5579 | Return -1 on failure.
5580 |
5581 | fromhex(string, /) from type
5582 | Create a bytes object from a string of hexadecimal numbers.
5583 |
5584 | Spaces between two numbers are accepted.
5585 | Example: bytes.fromhex('B9 01EF') -> b'\\xb9\\x01\\xef'.
5586 |
5587 | hex(...)
5588 | B.hex() -> string
5589 |
5590 | Create a string of hexadecimal numbers from a bytes object.
5591 | Example: b'\xb9\x01\xef'.hex() -> 'b901ef'.
5592 |
5593 | index(...)
5594 | B.index(sub[, start[, end]]) -> int
5595 |
5596 | Like B.find() but raise ValueError when the substring is not found.
5597 |
5598 | isalnum(...)
5599 | B.isalnum() -> bool
5600 |
5601 | Return True if all characters in B are alphanumeric
5602 | and there is at least one character in B, False otherwise.
5603 |
5604 | isalpha(...)
5605 | B.isalpha() -> bool
5606 |
5607 | Return True if all characters in B are alphabetic
5608 | and there is at least one character in B, False otherwise.
5609 |
5610 | isdigit(...)
5611 | B.isdigit() -> bool
5612 |
5613 | Return True if all characters in B are digits
5614 | and there is at least one character in B, False otherwise.
5615 |
5616 | islower(...)
5617 | B.islower() -> bool
5618 |
5619 | Return True if all cased characters in B are lowercase and there is
5620 | at least one cased character in B, False otherwise.
5621 |
5622 | isspace(...)
5623 | B.isspace() -> bool
5624 |
5625 | Return True if all characters in B are whitespace
5626 | and there is at least one character in B, False otherwise.
5627 |
5628 | istitle(...)
5629 | B.istitle() -> bool
5630 |
5631 | Return True if B is a titlecased string and there is at least one
5632 | character in B, i.e. uppercase characters may only follow uncased
5633 | characters and lowercase characters only cased ones. Return False
5634 | otherwise.
5635 |
5636 | isupper(...)
5637 | B.isupper() -> bool
5638 |
5639 | Return True if all cased characters in B are uppercase and there is
5640 | at least one cased character in B, False otherwise.
5641 |
5642 | join(self, iterable_of_bytes, /)
5643 | Concatenate any number of bytes objects.
5644 |
5645 | The bytes whose method is called is inserted in between each pair.
5646 |
5647 | The result is returned as a new bytes object.
5648 |
5649 | Example: b'.'.join([b'ab', b'pq', b'rs']) -> b'ab.pq.rs'.
5650 |
5651 | ljust(...)
5652 | B.ljust(width[, fillchar]) -> copy of B
5653 |
5654 | Return B left justified in a string of length width. Padding is
5655 | done using the specified fill character (default is a space).
5656 |
5657 | lower(...)
5658 | B.lower() -> copy of B
5659 |
5660 | Return a copy of B with all ASCII characters converted to lowercase.
5661 |
5662 | lstrip(self, bytes=None, /)
5663 | Strip leading bytes contained in the argument.
5664 |
5665 | If the argument is omitted or None, strip leading ASCII whitespace.
5666 |
5667 | partition(self, sep, /)
5668 | Partition the bytes into three parts using the given separator.
5669 |
5670 | This will search for the separator sep in the bytes. If the separator is found,
5671 | returns a 3-tuple containing the part before the separator, the separator
5672 | itself, and the part after it.
5673 |
5674 | If the separator is not found, returns a 3-tuple containing the original bytes
5675 | object and two empty bytes objects.
5676 |
5677 | replace(self, old, new, count=-1, /)
5678 | Return a copy with all occurrences of substring old replaced by new.
5679 |
5680 | count
5681 | Maximum number of occurrences to replace.
5682 | -1 (the default value) means replace all occurrences.
5683 |
5684 | If the optional argument count is given, only the first count occurrences are
5685 | replaced.
5686 |
5687 | rfind(...)
5688 | B.rfind(sub[, start[, end]]) -> int
5689 |
5690 | Return the highest index in B where substring sub is found,
5691 | such that sub is contained within B[start:end]. Optional
5692 | arguments start and end are interpreted as in slice notation.
5693 |
5694 | Return -1 on failure.
5695 |
5696 | rindex(...)
5697 | B.rindex(sub[, start[, end]]) -> int
5698 |
5699 | Like B.rfind() but raise ValueError when the substring is not found.
5700 |
5701 | rjust(...)
5702 | B.rjust(width[, fillchar]) -> copy of B
5703 |
5704 | Return B right justified in a string of length width. Padding is
5705 | done using the specified fill character (default is a space)
5706 |
5707 | rpartition(self, sep, /)
5708 | Partition the bytes into three parts using the given separator.
5709 |
5710 | This will search for the separator sep in the bytes, starting and the end. If
5711 | the separator is found, returns a 3-tuple containing the part before the
5712 | separator, the separator itself, and the part after it.
5713 |
5714 | If the separator is not found, returns a 3-tuple containing two empty bytes
5715 | objects and the original bytes object.
5716 |
5717 | rsplit(self, /, sep=None, maxsplit=-1)
5718 | Return a list of the sections in the bytes, using sep as the delimiter.
5719 |
5720 | sep
5721 | The delimiter according which to split the bytes.
5722 | None (the default value) means split on ASCII whitespace characters
5723 | (space, tab, return, newline, formfeed, vertical tab).
5724 | maxsplit
5725 | Maximum number of splits to do.
5726 | -1 (the default value) means no limit.
5727 |
5728 | Splitting is done starting at the end of the bytes and working to the front.
5729 |
5730 | rstrip(self, bytes=None, /)
5731 | Strip trailing bytes contained in the argument.
5732 |
5733 | If the argument is omitted or None, strip trailing ASCII whitespace.
5734 |
5735 | split(self, /, sep=None, maxsplit=-1)
5736 | Return a list of the sections in the bytes, using sep as the delimiter.
5737 |
5738 | sep
5739 | The delimiter according which to split the bytes.
5740 | None (the default value) means split on ASCII whitespace characters
5741 | (space, tab, return, newline, formfeed, vertical tab).
5742 | maxsplit
5743 | Maximum number of splits to do.
5744 | -1 (the default value) means no limit.
5745 |
5746 | splitlines(self, /, keepends=False)
5747 | Return a list of the lines in the bytes, breaking at line boundaries.
5748 |
5749 | Line breaks are not included in the resulting list unless keepends is given and
5750 | true.
5751 |
5752 | startswith(...)
5753 | B.startswith(prefix[, start[, end]]) -> bool
5754 |
5755 | Return True if B starts with the specified prefix, False otherwise.
5756 | With optional start, test B beginning at that position.
5757 | With optional end, stop comparing B at that position.
5758 | prefix can also be a tuple of bytes to try.
5759 |
5760 | strip(self, bytes=None, /)
5761 | Strip leading and trailing bytes contained in the argument.
5762 |
5763 | If the argument is omitted or None, strip leading and trailing ASCII whitespace.
5764 |
5765 | swapcase(...)
5766 | B.swapcase() -> copy of B
5767 |
5768 | Return a copy of B with uppercase ASCII characters converted
5769 | to lowercase ASCII and vice versa.
5770 |
5771 | title(...)
5772 | B.title() -> copy of B
5773 |
5774 | Return a titlecased version of B, i.e. ASCII words start with uppercase
5775 | characters, all remaining cased characters have lowercase.
5776 |
5777 | translate(...)
5778 | translate(table, [deletechars])
5779 | Return a copy with each character mapped by the given translation table.
5780 |
5781 | table
5782 | Translation table, which must be a bytes object of length 256.
5783 |
5784 | All characters occurring in the optional argument deletechars are removed.
5785 | The remaining characters are mapped through the given translation table.
5786 |
5787 | upper(...)
5788 | B.upper() -> copy of B
5789 |
5790 | Return a copy of B with all ASCII characters converted to uppercase.
5791 |
5792 | zfill(...)
5793 | B.zfill(width) -> copy of B
5794 |
5795 | Pad a numeric string B with zeros on the left, to fill a field
5796 | of the specified width. B is never truncated.
5797 |
5798 | ----------------------------------------------------------------------
5799 | Static methods defined here:
5800 |
5801 | maketrans(frm, to, /)
5802 | Return a translation table useable for the bytes or bytearray translate method.
5803 |
5804 | The returned table will be one where each byte in frm is mapped to the byte at
5805 | the same position in to.
5806 |
5807 | The bytes objects frm and to must be of the same length.
5808
5809 class classmethod(object)
5810 | classmethod(function) -> method
5811 |
5812 | Convert a function to be a class method.
5813 |
5814 | A class method receives the class as implicit first argument,
5815 | just like an instance method receives the instance.
5816 | To declare a class method, use this idiom:
5817 |
5818 | class C:
5819 | def f(cls, arg1, arg2, ...): ...
5820 | f = classmethod(f)
5821 |
5822 | It can be called either on the class (e.g. C.f()) or on an instance
5823 | (e.g. C().f()). The instance is ignored except for its class.
5824 | If a class method is called for a derived class, the derived class
5825 | object is passed as the implied first argument.
5826 |
5827 | Class methods are different than C++ or Java static methods.
5828 | If you want those, see the staticmethod builtin.
5829 |
5830 | Methods defined here:
5831 |
5832 | __get__(self, instance, owner, /)
5833 | Return an attribute of instance, which is of type owner.
5834 |
5835 | __init__(self, /, *args, **kwargs)
5836 | Initialize self. See help(type(self)) for accurate signature.
5837 |
5838 | __new__(*args, **kwargs) from type
5839 | Create and return a new object. See help(type) for accurate signature.
5840 |
5841 | ----------------------------------------------------------------------
5842 | Data descriptors defined here:
5843 |
5844 | __dict__
5845 |
5846 | __func__
5847 |
5848 | __isabstractmethod__
5849
5850 class complex(object)
5851 | complex(real[, imag]) -> complex number
5852 |
5853 | Create a complex number from a real part and an optional imaginary part.
5854 | This is equivalent to (real + imag*1j) where imag defaults to 0.
5855 |
5856 | Methods defined here:
5857 |
5858 | __abs__(self, /)
5859 | abs(self)
5860 |
5861 | __add__(self, value, /)
5862 | Return self+value.
5863 |
5864 | __bool__(self, /)
5865 | self != 0
5866 |
5867 | __divmod__(self, value, /)
5868 | Return divmod(self, value).
5869 |
5870 | __eq__(self, value, /)
5871 | Return self==value.
5872 |
5873 | __float__(self, /)
5874 | float(self)
5875 |
5876 | __floordiv__(self, value, /)
5877 | Return self//value.
5878 |
5879 | __format__(...)
5880 | complex.__format__() -> str
5881 |
5882 | Convert to a string according to format_spec.
5883 |
5884 | __ge__(self, value, /)
5885 | Return self>=value.
5886 |
5887 | __getattribute__(self, name, /)
5888 | Return getattr(self, name).
5889 |
5890 | __getnewargs__(...)
5891 |
5892 | __gt__(self, value, /)
5893 | Return self>value.
5894 |
5895 | __hash__(self, /)
5896 | Return hash(self).
5897 |
5898 | __int__(self, /)
5899 | int(self)
5900 |
5901 | __le__(self, value, /)
5902 | Return self<=value.
5903 |
5904 | __lt__(self, value, /)
5905 | Return self<value.
5906 |
5907 | __mod__(self, value, /)
5908 | Return self%value.
5909 |
5910 | __mul__(self, value, /)
5911 | Return self*value.
5912 |
5913 | __ne__(self, value, /)
5914 | Return self!=value.
5915 |
5916 | __neg__(self, /)
5917 | -self
5918 |
5919 | __new__(*args, **kwargs) from type
5920 | Create and return a new object. See help(type) for accurate signature.
5921 |
5922 | __pos__(self, /)
5923 | +self
5924 |
5925 | __pow__(self, value, mod=None, /)
5926 | Return pow(self, value, mod).
5927 |
5928 | __radd__(self, value, /)
5929 | Return value+self.
5930 |
5931 | __rdivmod__(self, value, /)
5932 | Return divmod(value, self).
5933 |
5934 | __repr__(self, /)
5935 | Return repr(self).
5936 |
5937 | __rfloordiv__(self, value, /)
5938 | Return value//self.
5939 |
5940 | __rmod__(self, value, /)
5941 | Return value%self.
5942 |
5943 | __rmul__(self, value, /)
5944 | Return value*self.
5945 |
5946 | __rpow__(self, value, mod=None, /)
5947 | Return pow(value, self, mod).
5948 |
5949 | __rsub__(self, value, /)
5950 | Return value-self.
5951 |
5952 | __rtruediv__(self, value, /)
5953 | Return value/self.
5954 |
5955 | __str__(self, /)
5956 | Return str(self).
5957 |
5958 | __sub__(self, value, /)
5959 | Return self-value.
5960 |
5961 | __truediv__(self, value, /)
5962 | Return self/value.
5963 |
5964 | conjugate(...)
5965 | complex.conjugate() -> complex
5966 |
5967 | Return the complex conjugate of its argument. (3-4j).conjugate() == 3+4j.
5968 |
5969 | ----------------------------------------------------------------------
5970 | Data descriptors defined here:
5971 |
5972 | imag
5973 | the imaginary part of a complex number
5974 |
5975 | real
5976 | the real part of a complex number
5977
5978 class dict(object)
5979 | dict() -> new empty dictionary
5980 | dict(mapping) -> new dictionary initialized from a mapping object's
5981 | (key, value) pairs
5982 | dict(iterable) -> new dictionary initialized as if via:
5983 | d = {}
5984 | for k, v in iterable:
5985 | d[k] = v
5986 | dict(**kwargs) -> new dictionary initialized with the name=value pairs
5987 | in the keyword argument list. For example: dict(one=1, two=2)
5988 |
5989 | Methods defined here:
5990 |
5991 | __contains__(self, key, /)
5992 | True if D has a key k, else False.
5993 |
5994 | __delitem__(self, key, /)
5995 | Delete self[key].
5996 |
5997 | __eq__(self, value, /)
5998 | Return self==value.
5999 |
6000 | __ge__(self, value, /)
6001 | Return self>=value.
6002 |
6003 | __getattribute__(self, name, /)
6004 | Return getattr(self, name).
6005 |
6006 | __getitem__(...)
6007 | x.__getitem__(y) <==> x[y]
6008 |
6009 | __gt__(self, value, /)
6010 | Return self>value.
6011 |
6012 | __init__(self, /, *args, **kwargs)
6013 | Initialize self. See help(type(self)) for accurate signature.
6014 |
6015 | __iter__(self, /)
6016 | Implement iter(self).
6017 |
6018 | __le__(self, value, /)
6019 | Return self<=value.
6020 |
6021 | __len__(self, /)
6022 | Return len(self).
6023 |
6024 | __lt__(self, value, /)
6025 | Return self<value.
6026 |
6027 | __ne__(self, value, /)
6028 | Return self!=value.
6029 |
6030 | __new__(*args, **kwargs) from type
6031 | Create and return a new object. See help(type) for accurate signature.
6032 |
6033 | __repr__(self, /)
6034 | Return repr(self).
6035 |
6036 | __setitem__(self, key, value, /)
6037 | Set self[key] to value.
6038 |
6039 | __sizeof__(...)
6040 | D.__sizeof__() -> size of D in memory, in bytes
6041 |
6042 | clear(...)
6043 | D.clear() -> None. Remove all items from D.
6044 |
6045 | copy(...)
6046 | D.copy() -> a shallow copy of D
6047 |
6048 | fromkeys(iterable, value=None, /) from type
6049 | Returns a new dict with keys from iterable and values equal to value.
6050 |
6051 | get(...)
6052 | D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.
6053 |
6054 | items(...)
6055 | D.items() -> a set-like object providing a view on D's items
6056 |
6057 | keys(...)
6058 | D.keys() -> a set-like object providing a view on D's keys
6059 |
6060 | pop(...)
6061 | D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
6062 | If key is not found, d is returned if given, otherwise KeyError is raised
6063 |
6064 | popitem(...)
6065 | D.popitem() -> (k, v), remove and return some (key, value) pair as a
6066 | 2-tuple; but raise KeyError if D is empty.
6067 |
6068 | setdefault(...)
6069 | D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D
6070 |
6071 | update(...)
6072 | D.update([E, ]**F) -> None. Update D from dict/iterable E and F.
6073 | If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
6074 | If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v
6075 | In either case, this is followed by: for k in F: D[k] = F[k]
6076 |
6077 | values(...)
6078 | D.values() -> an object providing a view on D's values
6079 |
6080 | ----------------------------------------------------------------------
6081 | Data and other attributes defined here:
6082 |
6083 | __hash__ = None
6084
6085 class enumerate(object)
6086 | enumerate(iterable[, start]) -> iterator for index, value of iterable
6087 |
6088 | Return an enumerate object. iterable must be another object that supports
6089 | iteration. The enumerate object yields pairs containing a count (from
6090 | start, which defaults to zero) and a value yielded by the iterable argument.
6091 | enumerate is useful for obtaining an indexed list:
6092 | (0, seq[0]), (1, seq[1]), (2, seq[2]), ...
6093 |
6094 | Methods defined here:
6095 |
6096 | __getattribute__(self, name, /)
6097 | Return getattr(self, name).
6098 |
6099 | __iter__(self, /)
6100 | Implement iter(self).
6101 |
6102 | __new__(*args, **kwargs) from type
6103 | Create and return a new object. See help(type) for accurate signature.
6104 |
6105 | __next__(self, /)
6106 | Implement next(self).
6107 |
6108 | __reduce__(...)
6109 | Return state information for pickling.
6110
6111 class filter(object)
6112 | filter(function or None, iterable) --> filter object
6113 |
6114 | Return an iterator yielding those items of iterable for which function(item)
6115 | is true. If function is None, return the items that are true.
6116 |
6117 | Methods defined here:
6118 |
6119 | __getattribute__(self, name, /)
6120 | Return getattr(self, name).
6121 |
6122 | __iter__(self, /)
6123 | Implement iter(self).
6124 |
6125 | __new__(*args, **kwargs) from type
6126 | Create and return a new object. See help(type) for accurate signature.
6127 |
6128 | __next__(self, /)
6129 | Implement next(self).
6130 |
6131 | __reduce__(...)
6132 | Return state information for pickling.
6133
6134 class float(object)
6135 | float(x) -> floating point number
6136 |
6137 | Convert a string or number to a floating point number, if possible.
6138 |
6139 | Methods defined here:
6140 |
6141 | __abs__(self, /)
6142 | abs(self)
6143 |
6144 | __add__(self, value, /)
6145 | Return self+value.
6146 |
6147 | __bool__(self, /)
6148 | self != 0
6149 |
6150 | __divmod__(self, value, /)
6151 | Return divmod(self, value).
6152 |
6153 | __eq__(self, value, /)
6154 | Return self==value.
6155 |
6156 | __float__(self, /)
6157 | float(self)
6158 |
6159 | __floordiv__(self, value, /)
6160 | Return self//value.
6161 |
6162 | __format__(...)
6163 | float.__format__(format_spec) -> string
6164 |
6165 | Formats the float according to format_spec.
6166 |
6167 | __ge__(self, value, /)
6168 | Return self>=value.
6169 |
6170 | __getattribute__(self, name, /)
6171 | Return getattr(self, name).
6172 |
6173 | __getformat__(...) from type
6174 | float.__getformat__(typestr) -> string
6175 |
6176 | You probably don't want to use this function. It exists mainly to be
6177 | used in Python's test suite.
6178 |
6179 | typestr must be 'double' or 'float'. This function returns whichever of
6180 | 'unknown', 'IEEE, big-endian' or 'IEEE, little-endian' best describes the
6181 | format of floating point numbers used by the C type named by typestr.
6182 |
6183 | __getnewargs__(...)
6184 |
6185 | __gt__(self, value, /)
6186 | Return self>value.
6187 |
6188 | __hash__(self, /)
6189 | Return hash(self).
6190 |
6191 | __int__(self, /)
6192 | int(self)
6193 |
6194 | __le__(self, value, /)
6195 | Return self<=value.
6196 |
6197 | __lt__(self, value, /)
6198 | Return self<value.
6199 |
6200 | __mod__(self, value, /)
6201 | Return self%value.
6202 |
6203 | __mul__(self, value, /)
6204 | Return self*value.
6205 |
6206 | __ne__(self, value, /)
6207 | Return self!=value.
6208 |
6209 | __neg__(self, /)
6210 | -self
6211 |
6212 | __new__(*args, **kwargs) from type
6213 | Create and return a new object. See help(type) for accurate signature.
6214 |
6215 | __pos__(self, /)
6216 | +self
6217 |
6218 | __pow__(self, value, mod=None, /)
6219 | Return pow(self, value, mod).
6220 |
6221 | __radd__(self, value, /)
6222 | Return value+self.
6223 |
6224 | __rdivmod__(self, value, /)
6225 | Return divmod(value, self).
6226 |
6227 | __repr__(self, /)
6228 | Return repr(self).
6229 |
6230 | __rfloordiv__(self, value, /)
6231 | Return value//self.
6232 |
6233 | __rmod__(self, value, /)
6234 | Return value%self.
6235 |
6236 | __rmul__(self, value, /)
6237 | Return value*self.
6238 |
6239 | __round__(...)
6240 | Return the Integral closest to x, rounding half toward even.
6241 | When an argument is passed, work like built-in round(x, ndigits).
6242 |
6243 | __rpow__(self, value, mod=None, /)
6244 | Return pow(value, self, mod).
6245 |
6246 | __rsub__(self, value, /)
6247 | Return value-self.
6248 |
6249 | __rtruediv__(self, value, /)
6250 | Return value/self.
6251 |
6252 | __setformat__(...) from type
6253 | float.__setformat__(typestr, fmt) -> None
6254 |
6255 | You probably don't want to use this function. It exists mainly to be
6256 | used in Python's test suite.
6257 |
6258 | typestr must be 'double' or 'float'. fmt must be one of 'unknown',
6259 | 'IEEE, big-endian' or 'IEEE, little-endian', and in addition can only be
6260 | one of the latter two if it appears to match the underlying C reality.
6261 |
6262 | Override the automatic determination of C-level floating point type.
6263 | This affects how floats are converted to and from binary strings.
6264 |
6265 | __str__(self, /)
6266 | Return str(self).
6267 |
6268 | __sub__(self, value, /)
6269 | Return self-value.
6270 |
6271 | __truediv__(self, value, /)
6272 | Return self/value.
6273 |
6274 | __trunc__(...)
6275 | Return the Integral closest to x between 0 and x.
6276 |
6277 | as_integer_ratio(...)
6278 | float.as_integer_ratio() -> (int, int)
6279 |
6280 | Return a pair of integers, whose ratio is exactly equal to the original
6281 | float and with a positive denominator.
6282 | Raise OverflowError on infinities and a ValueError on NaNs.
6283 |
6284 | >>> (10.0).as_integer_ratio()
6285 | (10, 1)
6286 | >>> (0.0).as_integer_ratio()
6287 | (0, 1)
6288 | >>> (-.25).as_integer_ratio()
6289 | (-1, 4)
6290 |
6291 | conjugate(...)
6292 | Return self, the complex conjugate of any float.
6293 |
6294 | fromhex(...) from type
6295 | float.fromhex(string) -> float
6296 |
6297 | Create a floating-point number from a hexadecimal string.
6298 | >>> float.fromhex('0x1.ffffp10')
6299 | 2047.984375
6300 | >>> float.fromhex('-0x1p-1074')
6301 | -5e-324
6302 |
6303 | hex(...)
6304 | float.hex() -> string
6305 |
6306 | Return a hexadecimal representation of a floating-point number.
6307 | >>> (-0.1).hex()
6308 | '-0x1.999999999999ap-4'
6309 | >>> 3.14159.hex()
6310 | '0x1.921f9f01b866ep+1'
6311 |
6312 | is_integer(...)
6313 | Return True if the float is an integer.
6314 |
6315 | ----------------------------------------------------------------------
6316 | Data descriptors defined here:
6317 |
6318 | imag
6319 | the imaginary part of a complex number
6320 |
6321 | real
6322 | the real part of a complex number
6323
6324 class frozenset(object)
6325 | frozenset() -> empty frozenset object
6326 | frozenset(iterable) -> frozenset object
6327 |
6328 | Build an immutable unordered collection of unique elements.
6329 |
6330 | Methods defined here:
6331 |
6332 | __and__(self, value, /)
6333 | Return self&value.
6334 |
6335 | __contains__(...)
6336 | x.__contains__(y) <==> y in x.
6337 |
6338 | __eq__(self, value, /)
6339 | Return self==value.
6340 |
6341 | __ge__(self, value, /)
6342 | Return self>=value.
6343 |
6344 | __getattribute__(self, name, /)
6345 | Return getattr(self, name).
6346 |
6347 | __gt__(self, value, /)
6348 | Return self>value.
6349 |
6350 | __hash__(self, /)
6351 | Return hash(self).
6352 |
6353 | __iter__(self, /)
6354 | Implement iter(self).
6355 |
6356 | __le__(self, value, /)
6357 | Return self<=value.
6358 |
6359 | __len__(self, /)
6360 | Return len(self).
6361 |
6362 | __lt__(self, value, /)
6363 | Return self<value.
6364 |
6365 | __ne__(self, value, /)
6366 | Return self!=value.
6367 |
6368 | __new__(*args, **kwargs) from type
6369 | Create and return a new object. See help(type) for accurate signature.
6370 |
6371 | __or__(self, value, /)
6372 | Return self|value.
6373 |
6374 | __rand__(self, value, /)
6375 | Return value&self.
6376 |
6377 | __reduce__(...)
6378 | Return state information for pickling.
6379 |
6380 | __repr__(self, /)
6381 | Return repr(self).
6382 |
6383 | __ror__(self, value, /)
6384 | Return value|self.
6385 |
6386 | __rsub__(self, value, /)
6387 | Return value-self.
6388 |
6389 | __rxor__(self, value, /)
6390 | Return value^self.
6391 |
6392 | __sizeof__(...)
6393 | S.__sizeof__() -> size of S in memory, in bytes
6394 |
6395 | __sub__(self, value, /)
6396 | Return self-value.
6397 |
6398 | __xor__(self, value, /)
6399 | Return self^value.
6400 |
6401 | copy(...)
6402 | Return a shallow copy of a set.
6403 |
6404 | difference(...)
6405 | Return the difference of two or more sets as a new set.
6406 |
6407 | (i.e. all elements that are in this set but not the others.)
6408 |
6409 | intersection(...)
6410 | Return the intersection of two sets as a new set.
6411 |
6412 | (i.e. all elements that are in both sets.)
6413 |
6414 | isdisjoint(...)
6415 | Return True if two sets have a null intersection.
6416 |
6417 | issubset(...)
6418 | Report whether another set contains this set.
6419 |
6420 | issuperset(...)
6421 | Report whether this set contains another set.
6422 |
6423 | symmetric_difference(...)
6424 | Return the symmetric difference of two sets as a new set.
6425 |
6426 | (i.e. all elements that are in exactly one of the sets.)
6427 |
6428 | union(...)
6429 | Return the union of sets as a new set.
6430 |
6431 | (i.e. all elements that are in either set.)
6432
6433 class int(object)
6434 | int(x=0) -> integer
6435 | int(x, base=10) -> integer
6436 |
6437 | Convert a number or string to an integer, or return 0 if no arguments
6438 | are given. If x is a number, return x.__int__(). For floating point
6439 | numbers, this truncates towards zero.
6440 |
6441 | If x is not a number or if base is given, then x must be a string,
6442 | bytes, or bytearray instance representing an integer literal in the
6443 | given base. The literal can be preceded by '+' or '-' and be surrounded
6444 | by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
6445 | Base 0 means to interpret the base from the string as an integer literal.
6446 | >>> int('0b100', base=0)
6447 | 4
6448 |
6449 | Methods defined here:
6450 |
6451 | __abs__(self, /)
6452 | abs(self)
6453 |
6454 | __add__(self, value, /)
6455 | Return self+value.
6456 |
6457 | __and__(self, value, /)
6458 | Return self&value.
6459 |
6460 | __bool__(self, /)
6461 | self != 0
6462 |
6463 | __ceil__(...)
6464 | Ceiling of an Integral returns itself.
6465 |
6466 | __divmod__(self, value, /)
6467 | Return divmod(self, value).
6468 |
6469 | __eq__(self, value, /)
6470 | Return self==value.
6471 |
6472 | __float__(self, /)
6473 | float(self)
6474 |
6475 | __floor__(...)
6476 | Flooring an Integral returns itself.
6477 |
6478 | __floordiv__(self, value, /)
6479 | Return self//value.
6480 |
6481 | __format__(...)
6482 | default object formatter
6483 |
6484 | __ge__(self, value, /)
6485 | Return self>=value.
6486 |
6487 | __getattribute__(self, name, /)
6488 | Return getattr(self, name).
6489 |
6490 | __getnewargs__(...)
6491 |
6492 | __gt__(self, value, /)
6493 | Return self>value.
6494 |
6495 | __hash__(self, /)
6496 | Return hash(self).
6497 |
6498 | __index__(self, /)
6499 | Return self converted to an integer, if self is suitable for use as an index into a list.
6500 |
6501 | __int__(self, /)
6502 | int(self)
6503 |
6504 | __invert__(self, /)
6505 | ~self
6506 |
6507 | __le__(self, value, /)
6508 | Return self<=value.
6509 |
6510 | __lshift__(self, value, /)
6511 | Return self<<value.
6512 |
6513 | __lt__(self, value, /)
6514 | Return self<value.
6515 |
6516 | __mod__(self, value, /)
6517 | Return self%value.
6518 |
6519 | __mul__(self, value, /)
6520 | Return self*value.
6521 |
6522 | __ne__(self, value, /)
6523 | Return self!=value.
6524 |
6525 | __neg__(self, /)
6526 | -self
6527 |
6528 | __new__(*args, **kwargs) from type
6529 | Create and return a new object. See help(type) for accurate signature.
6530 |
6531 | __or__(self, value, /)
6532 | Return self|value.
6533 |
6534 | __pos__(self, /)
6535 | +self
6536 |
6537 | __pow__(self, value, mod=None, /)
6538 | Return pow(self, value, mod).
6539 |
6540 | __radd__(self, value, /)
6541 | Return value+self.
6542 |
6543 | __rand__(self, value, /)
6544 | Return value&self.
6545 |
6546 | __rdivmod__(self, value, /)
6547 | Return divmod(value, self).
6548 |
6549 | __repr__(self, /)
6550 | Return repr(self).
6551 |
6552 | __rfloordiv__(self, value, /)
6553 | Return value//self.
6554 |
6555 | __rlshift__(self, value, /)
6556 | Return value<<self.
6557 |
6558 | __rmod__(self, value, /)
6559 | Return value%self.
6560 |
6561 | __rmul__(self, value, /)
6562 | Return value*self.
6563 |
6564 | __ror__(self, value, /)
6565 | Return value|self.
6566 |
6567 | __round__(...)
6568 | Rounding an Integral returns itself.
6569 | Rounding with an ndigits argument also returns an integer.
6570 |
6571 | __rpow__(self, value, mod=None, /)
6572 | Return pow(value, self, mod).
6573 |
6574 | __rrshift__(self, value, /)
6575 | Return value>>self.
6576 |
6577 | __rshift__(self, value, /)
6578 | Return self>>value.
6579 |
6580 | __rsub__(self, value, /)
6581 | Return value-self.
6582 |
6583 | __rtruediv__(self, value, /)
6584 | Return value/self.
6585 |
6586 | __rxor__(self, value, /)
6587 | Return value^self.
6588 |
6589 | __sizeof__(...)
6590 | Returns size in memory, in bytes
6591 |
6592 | __str__(self, /)
6593 | Return str(self).
6594 |
6595 | __sub__(self, value, /)
6596 | Return self-value.
6597 |
6598 | __truediv__(self, value, /)
6599 | Return self/value.
6600 |
6601 | __trunc__(...)
6602 | Truncating an Integral returns itself.
6603 |
6604 | __xor__(self, value, /)
6605 | Return self^value.
6606 |
6607 | bit_length(...)
6608 | int.bit_length() -> int
6609 |
6610 | Number of bits necessary to represent self in binary.
6611 | >>> bin(37)
6612 | '0b100101'
6613 | >>> (37).bit_length()
6614 | 6
6615 |
6616 | conjugate(...)
6617 | Returns self, the complex conjugate of any int.
6618 |
6619 | from_bytes(...) from type
6620 | int.from_bytes(bytes, byteorder, *, signed=False) -> int
6621 |
6622 | Return the integer represented by the given array of bytes.
6623 |
6624 | The bytes argument must be a bytes-like object (e.g. bytes or bytearray).
6625 |
6626 | The byteorder argument determines the byte order used to represent the
6627 | integer. If byteorder is 'big', the most significant byte is at the
6628 | beginning of the byte array. If byteorder is 'little', the most
6629 | significant byte is at the end of the byte array. To request the native
6630 | byte order of the host system, use `sys.byteorder' as the byte order value.
6631 |
6632 | The signed keyword-only argument indicates whether two's complement is
6633 | used to represent the integer.
6634 |
6635 | to_bytes(...)
6636 | int.to_bytes(length, byteorder, *, signed=False) -> bytes
6637 |
6638 | Return an array of bytes representing an integer.
6639 |
6640 | The integer is represented using length bytes. An OverflowError is
6641 | raised if the integer is not representable with the given number of
6642 | bytes.
6643 |
6644 | The byteorder argument determines the byte order used to represent the
6645 | integer. If byteorder is 'big', the most significant byte is at the
6646 | beginning of the byte array. If byteorder is 'little', the most
6647 | significant byte is at the end of the byte array. To request the native
6648 | byte order of the host system, use `sys.byteorder' as the byte order value.
6649 |
6650 | The signed keyword-only argument determines whether two's complement is
6651 | used to represent the integer. If signed is False and a negative integer
6652 | is given, an OverflowError is raised.
6653 |
6654 | ----------------------------------------------------------------------
6655 | Data descriptors defined here:
6656 |
6657 | denominator
6658 | the denominator of a rational number in lowest terms
6659 |
6660 | imag
6661 | the imaginary part of a complex number
6662 |
6663 | numerator
6664 | the numerator of a rational number in lowest terms
6665 |
6666 | real
6667 | the real part of a complex number
6668
6669 class list(object)
6670 | list() -> new empty list
6671 | list(iterable) -> new list initialized from iterable's items
6672 |
6673 | Methods defined here:
6674 |
6675 | __add__(self, value, /)
6676 | Return self+value.
6677 |
6678 | __contains__(self, key, /)
6679 | Return key in self.
6680 |
6681 | __delitem__(self, key, /)
6682 | Delete self[key].
6683 |
6684 | __eq__(self, value, /)
6685 | Return self==value.
6686 |
6687 | __ge__(self, value, /)
6688 | Return self>=value.
6689 |
6690 | __getattribute__(self, name, /)
6691 | Return getattr(self, name).
6692 |
6693 | __getitem__(...)
6694 | x.__getitem__(y) <==> x[y]
6695 |
6696 | __gt__(self, value, /)
6697 | Return self>value.
6698 |
6699 | __iadd__(self, value, /)
6700 | Implement self+=value.
6701 |
6702 | __imul__(self, value, /)
6703 | Implement self*=value.
6704 |
6705 | __init__(self, /, *args, **kwargs)
6706 | Initialize self. See help(type(self)) for accurate signature.
6707 |
6708 | __iter__(self, /)
6709 | Implement iter(self).
6710 |
6711 | __le__(self, value, /)
6712 | Return self<=value.
6713 |
6714 | __len__(self, /)
6715 | Return len(self).
6716 |
6717 | __lt__(self, value, /)
6718 | Return self<value.
6719 |
6720 | __mul__(self, value, /)
6721 | Return self*value.n
6722 |
6723 | __ne__(self, value, /)
6724 | Return self!=value.
6725 |
6726 | __new__(*args, **kwargs) from type
6727 | Create and return a new object. See help(type) for accurate signature.
6728 |
6729 | __repr__(self, /)
6730 | Return repr(self).
6731 |
6732 | __reversed__(...)
6733 | L.__reversed__() -- return a reverse iterator over the list
6734 |
6735 | __rmul__(self, value, /)
6736 | Return self*value.
6737 |
6738 | __setitem__(self, key, value, /)
6739 | Set self[key] to value.
6740 |
6741 | __sizeof__(...)
6742 | L.__sizeof__() -- size of L in memory, in bytes
6743 |
6744 | append(...)
6745 | L.append(object) -> None -- append object to end
6746 |
6747 | clear(...)
6748 | L.clear() -> None -- remove all items from L
6749 |
6750 | copy(...)
6751 | L.copy() -> list -- a shallow copy of L
6752 |
6753 | count(...)
6754 | L.count(value) -> integer -- return number of occurrences of value
6755 |
6756 | extend(...)
6757 | L.extend(iterable) -> None -- extend list by appending elements from the iterable
6758 |
6759 | index(...)
6760 | L.index(value, [start, [stop]]) -> integer -- return first index of value.
6761 | Raises ValueError if the value is not present.
6762 |
6763 | insert(...)
6764 | L.insert(index, object) -- insert object before index
6765 |
6766 | pop(...)
6767 | L.pop([index]) -> item -- remove and return item at index (default last).
6768 | Raises IndexError if list is empty or index is out of range.
6769 |
6770 | remove(...)
6771 | L.remove(value) -> None -- remove first occurrence of value.
6772 | Raises ValueError if the value is not present.
6773 |
6774 | reverse(...)
6775 | L.reverse() -- reverse *IN PLACE*
6776 |
6777 | sort(...)
6778 | L.sort(key=None, reverse=False) -> None -- stable sort *IN PLACE*
6779 |
6780 | ----------------------------------------------------------------------
6781 | Data and other attributes defined here:
6782 |
6783 | __hash__ = None
6784
6785 class map(object)
6786 | map(func, *iterables) --> map object
6787 |
6788 | Make an iterator that computes the function using arguments from
6789 | each of the iterables. Stops when the shortest iterable is exhausted.
6790 |
6791 | Methods defined here:
6792 |
6793 | __getattribute__(self, name, /)
6794 | Return getattr(self, name).
6795 |
6796 | __iter__(self, /)
6797 | Implement iter(self).
6798 |
6799 | __new__(*args, **kwargs) from type
6800 | Create and return a new object. See help(type) for accurate signature.
6801 |
6802 | __next__(self, /)
6803 | Implement next(self).
6804 |
6805 | __reduce__(...)
6806 | Return state information for pickling.
6807
6808 class memoryview(object)
6809 | Create a new memoryview object which references the given object.
6810 |
6811 | Methods defined here:
6812 |
6813 | __delitem__(self, key, /)
6814 | Delete self[key].
6815 |
6816 | __enter__(...)
6817 |
6818 | __eq__(self, value, /)
6819 | Return self==value.
6820 |
6821 | __exit__(...)
6822 |
6823 | __ge__(self, value, /)
6824 | Return self>=value.
6825 |
6826 | __getattribute__(self, name, /)
6827 | Return getattr(self, name).
6828 |
6829 | __getitem__(self, key, /)
6830 | Return self[key].
6831 |
6832 | __gt__(self, value, /)
6833 | Return self>value.
6834 |
6835 | __hash__(self, /)
6836 | Return hash(self).
6837 |
6838 | __le__(self, value, /)
6839 | Return self<=value.
6840 |
6841 | __len__(self, /)
6842 | Return len(self).
6843 |
6844 | __lt__(self, value, /)
6845 | Return self<value.
6846 |
6847 | __ne__(self, value, /)
6848 | Return self!=value.
6849 |
6850 | __new__(*args, **kwargs) from type
6851 | Create and return a new object. See help(type) for accurate signature.
6852 |
6853 | __repr__(self, /)
6854 | Return repr(self).
6855 |
6856 | __setitem__(self, key, value, /)
6857 | Set self[key] to value.
6858 |
6859 | cast(self, /, format, *, shape)
6860 | Cast a memoryview to a new format or shape.
6861 |
6862 | hex(self, /)
6863 | Return the data in the buffer as a string of hexadecimal numbers.
6864 |
6865 | release(self, /)
6866 | Release the underlying buffer exposed by the memoryview object.
6867 |
6868 | tobytes(self, /)
6869 | Return the data in the buffer as a byte string.
6870 |
6871 | tolist(self, /)
6872 | Return the data in the buffer as a list of elements.
6873 |
6874 | ----------------------------------------------------------------------
6875 | Data descriptors defined here:
6876 |
6877 | c_contiguous
6878 | A bool indicating whether the memory is C contiguous.
6879 |
6880 | contiguous
6881 | A bool indicating whether the memory is contiguous.
6882 |
6883 | f_contiguous
6884 | A bool indicating whether the memory is Fortran contiguous.
6885 |
6886 | format
6887 | A string containing the format (in struct module style)
6888 | for each element in the view.
6889 |
6890 | itemsize
6891 | The size in bytes of each element of the memoryview.
6892 |
6893 | nbytes
6894 | The amount of space in bytes that the array would use in
6895 | a contiguous representation.
6896 |
6897 | ndim
6898 | An integer indicating how many dimensions of a multi-dimensional
6899 | array the memory represents.
6900 |
6901 | obj
6902 | The underlying object of the memoryview.
6903 |
6904 | readonly
6905 | A bool indicating whether the memory is read only.
6906 |
6907 | shape
6908 | A tuple of ndim integers giving the shape of the memory
6909 | as an N-dimensional array.
6910 |
6911 | strides
6912 | A tuple of ndim integers giving the size in bytes to access
6913 | each element for each dimension of the array.
6914 |
6915 | suboffsets
6916 | A tuple of integers used internally for PIL-style arrays.
6917
6918 class object
6919 | The most base type
6920
6921 class property(object)
6922 | property(fget=None, fset=None, fdel=None, doc=None) -> property attribute
6923 |
6924 | fget is a function to be used for getting an attribute value, and likewise
6925 | fset is a function for setting, and fdel a function for del'ing, an
6926 | attribute. Typical use is to define a managed attribute x:
6927 |
6928 | class C(object):
6929 | def getx(self): return self._x
6930 | def setx(self, value): self._x = value
6931 | def delx(self): del self._x
6932 | x = property(getx, setx, delx, "I'm the 'x' property.")
6933 |
6934 | Decorators make defining new properties or modifying existing ones easy:
6935 |
6936 | class C(object):
6937 | @property
6938 | def x(self):
6939 | "I am the 'x' property."
6940 | return self._x
6941 | @x.setter
6942 | def x(self, value):
6943 | self._x = value
6944 | @x.deleter
6945 | def x(self):
6946 | del self._x
6947 |
6948 | Methods defined here:
6949 |
6950 | __delete__(self, instance, /)
6951 | Delete an attribute of instance.
6952 |
6953 | __get__(self, instance, owner, /)
6954 | Return an attribute of instance, which is of type owner.
6955 |
6956 | __getattribute__(self, name, /)
6957 | Return getattr(self, name).
6958 |
6959 | __init__(self, /, *args, **kwargs)
6960 | Initialize self. See help(type(self)) for accurate signature.
6961 |
6962 | __new__(*args, **kwargs) from type
6963 | Create and return a new object. See help(type) for accurate signature.
6964 |
6965 | __set__(self, instance, value, /)
6966 | Set an attribute of instance to value.
6967 |
6968 | deleter(...)
6969 | Descriptor to change the deleter on a property.
6970 |
6971 | getter(...)
6972 | Descriptor to change the getter on a property.
6973 |
6974 | setter(...)
6975 | Descriptor to change the setter on a property.
6976 |
6977 | ----------------------------------------------------------------------
6978 | Data descriptors defined here:
6979 |
6980 | __isabstractmethod__
6981 |
6982 | fdel
6983 |
6984 | fget
6985 |
6986 | fset
6987
6988 class range(object)
6989 | range(stop) -> range object
6990 | range(start, stop[, step]) -> range object
6991 |
6992 | Return an object that produces a sequence of integers from start (inclusive)
6993 | to stop (exclusive) by step. range(i, j) produces i, i+1, i+2, ..., j-1.
6994 | start defaults to 0, and stop is omitted! range(4) produces 0, 1, 2, 3.
6995 | These are exactly the valid indices for a list of 4 elements.
6996 | When step is given, it specifies the increment (or decrement).
6997 |
6998 | Methods defined here:
6999 |
7000 | __contains__(self, key, /)
7001 | Return key in self.
7002 |
7003 | __eq__(self, value, /)
7004 | Return self==value.
7005 |
7006 | __ge__(self, value, /)
7007 | Return self>=value.
7008 |
7009 | __getattribute__(self, name, /)
7010 | Return getattr(self, name).
7011 |
7012 | __getitem__(self, key, /)
7013 | Return self[key].
7014 |
7015 | __gt__(self, value, /)
7016 | Return self>value.
7017 |
7018 | __hash__(self, /)
7019 | Return hash(self).
7020 |
7021 | __iter__(self, /)
7022 | Implement iter(self).
7023 |
7024 | __le__(self, value, /)
7025 | Return self<=value.
7026 |
7027 | __len__(self, /)
7028 | Return len(self).
7029 |
7030 | __lt__(self, value, /)
7031 | Return self<value.
7032 |
7033 | __ne__(self, value, /)
7034 | Return self!=value.
7035 |
7036 | __new__(*args, **kwargs) from type
7037 | Create and return a new object. See help(type) for accurate signature.
7038 |
7039 | __reduce__(...)
7040 | helper for pickle
7041 |
7042 | __repr__(self, /)
7043 | Return repr(self).
7044 |
7045 | __reversed__(...)
7046 | Return a reverse iterator.
7047 |
7048 | count(...)
7049 | rangeobject.count(value) -> integer -- return number of occurrences of value
7050 |
7051 | index(...)
7052 | rangeobject.index(value, [start, [stop]]) -> integer -- return index of value.
7053 | Raise ValueError if the value is not present.
7054 |
7055 | ----------------------------------------------------------------------
7056 | Data descriptors defined here:
7057 |
7058 | start
7059 |
7060 | step
7061 |
7062 | stop
7063
7064 class reversed(object)
7065 | reversed(sequence) -> reverse iterator over values of the sequence
7066 |
7067 | Return a reverse iterator
7068 |
7069 | Methods defined here:
7070 |
7071 | __getattribute__(self, name, /)
7072 | Return getattr(self, name).
7073 |
7074 | __iter__(self, /)
7075 | Implement iter(self).
7076 |
7077 | __length_hint__(...)
7078 | Private method returning an estimate of len(list(it)).
7079 |
7080 | __new__(*args, **kwargs) from type
7081 | Create and return a new object. See help(type) for accurate signature.
7082 |
7083 | __next__(self, /)
7084 | Implement next(self).
7085 |
7086 | __reduce__(...)
7087 | Return state information for pickling.
7088 |
7089 | __setstate__(...)
7090 | Set state information for unpickling.
7091
7092 class set(object)
7093 | set() -> new empty set object
7094 | set(iterable) -> new set object
7095 |
7096 | Build an unordered collection of unique elements.
7097 |
7098 | Methods defined here:
7099 |
7100 | __and__(self, value, /)
7101 | Return self&value.
7102 |
7103 | __contains__(...)
7104 | x.__contains__(y) <==> y in x.
7105 |
7106 | __eq__(self, value, /)
7107 | Return self==value.
7108 |
7109 | __ge__(self, value, /)
7110 | Return self>=value.
7111 |
7112 | __getattribute__(self, name, /)
7113 | Return getattr(self, name).
7114 |
7115 | __gt__(self, value, /)
7116 | Return self>value.
7117 |
7118 | __iand__(self, value, /)
7119 | Return self&=value.
7120 |
7121 | __init__(self, /, *args, **kwargs)
7122 | Initialize self. See help(type(self)) for accurate signature.
7123 |
7124 | __ior__(self, value, /)
7125 | Return self|=value.
7126 |
7127 | __isub__(self, value, /)
7128 | Return self-=value.
7129 |
7130 | __iter__(self, /)
7131 | Implement iter(self).
7132 |
7133 | __ixor__(self, value, /)
7134 | Return self^=value.
7135 |
7136 | __le__(self, value, /)
7137 | Return self<=value.
7138 |
7139 | __len__(self, /)
7140 | Return len(self).
7141 |
7142 | __lt__(self, value, /)
7143 | Return self<value.
7144 |
7145 | __ne__(self, value, /)
7146 | Return self!=value.
7147 |
7148 | __new__(*args, **kwargs) from type
7149 | Create and return a new object. See help(type) for accurate signature.
7150 |
7151 | __or__(self, value, /)
7152 | Return self|value.
7153 |
7154 | __rand__(self, value, /)
7155 | Return value&self.
7156 |
7157 | __reduce__(...)
7158 | Return state information for pickling.
7159 |
7160 | __repr__(self, /)
7161 | Return repr(self).
7162 |
7163 | __ror__(self, value, /)
7164 | Return value|self.
7165 |
7166 | __rsub__(self, value, /)
7167 | Return value-self.
7168 |
7169 | __rxor__(self, value, /)
7170 | Return value^self.
7171 |
7172 | __sizeof__(...)
7173 | S.__sizeof__() -> size of S in memory, in bytes
7174 |
7175 | __sub__(self, value, /)
7176 | Return self-value.
7177 |
7178 | __xor__(self, value, /)
7179 | Return self^value.
7180 |
7181 | add(...)
7182 | Add an element to a set.
7183 |
7184 | This has no effect if the element is already present.
7185 |
7186 | clear(...)
7187 | Remove all elements from this set.
7188 |
7189 | copy(...)
7190 | Return a shallow copy of a set.
7191 |
7192 | difference(...)
7193 | Return the difference of two or more sets as a new set.
7194 |
7195 | (i.e. all elements that are in this set but not the others.)
7196 |
7197 | difference_update(...)
7198 | Remove all elements of another set from this set.
7199 |
7200 | discard(...)
7201 | Remove an element from a set if it is a member.
7202 |
7203 | If the element is not a member, do nothing.
7204 |
7205 | intersection(...)
7206 | Return the intersection of two sets as a new set.
7207 |
7208 | (i.e. all elements that are in both sets.)
7209 |
7210 | intersection_update(...)
7211 | Update a set with the intersection of itself and another.
7212 |
7213 | isdisjoint(...)
7214 | Return True if two sets have a null intersection.
7215 |
7216 | issubset(...)
7217 | Report whether another set contains this set.
7218 |
7219 | issuperset(...)
7220 | Report whether this set contains another set.
7221 |
7222 | pop(...)
7223 | Remove and return an arbitrary set element.
7224 | Raises KeyError if the set is empty.
7225 |
7226 | remove(...)
7227 | Remove an element from a set; it must be a member.
7228 |
7229 | If the element is not a member, raise a KeyError.
7230 |
7231 | symmetric_difference(...)
7232 | Return the symmetric difference of two sets as a new set.
7233 |
7234 | (i.e. all elements that are in exactly one of the sets.)
7235 |
7236 | symmetric_difference_update(...)
7237 | Update a set with the symmetric difference of itself and another.
7238 |
7239 | union(...)
7240 | Return the union of sets as a new set.
7241 |
7242 | (i.e. all elements that are in either set.)
7243 |
7244 | update(...)
7245 | Update a set with the union of itself and others.
7246 |
7247 | ----------------------------------------------------------------------
7248 | Data and other attributes defined here:
7249 |
7250 | __hash__ = None
7251
7252 class slice(object)
7253 | slice(stop)
7254 | slice(start, stop[, step])
7255 |
7256 | Create a slice object. This is used for extended slicing (e.g. a[0:10:2]).
7257 |
7258 | Methods defined here:
7259 |
7260 | __eq__(self, value, /)
7261 | Return self==value.
7262 |
7263 | __ge__(self, value, /)
7264 | Return self>=value.
7265 |
7266 | __getattribute__(self, name, /)
7267 | Return getattr(self, name).
7268 |
7269 | __gt__(self, value, /)
7270 | Return self>value.
7271 |
7272 | __le__(self, value, /)
7273 | Return self<=value.
7274 |
7275 | __lt__(self, value, /)
7276 | Return self<value.
7277 |
7278 | __ne__(self, value, /)
7279 | Return self!=value.
7280 |
7281 | __new__(*args, **kwargs) from type
7282 | Create and return a new object. See help(type) for accurate signature.
7283 |
7284 | __reduce__(...)
7285 | Return state information for pickling.
7286 |
7287 | __repr__(self, /)
7288 | Return repr(self).
7289 |
7290 | indices(...)
7291 | S.indices(len) -> (start, stop, stride)
7292 |
7293 | Assuming a sequence of length len, calculate the start and stop
7294 | indices, and the stride length of the extended slice described by
7295 | S. Out of bounds indices are clipped in a manner consistent with the
7296 | handling of normal slices.
7297 |
7298 | ----------------------------------------------------------------------
7299 | Data descriptors defined here:
7300 |
7301 | start
7302 |
7303 | step
7304 |
7305 | stop
7306 |
7307 | ----------------------------------------------------------------------
7308 | Data and other attributes defined here:
7309 |
7310 | __hash__ = None
7311
7312 class staticmethod(object)
7313 | staticmethod(function) -> method
7314 |
7315 | Convert a function to be a static method.
7316 |
7317 | A static method does not receive an implicit first argument.
7318 | To declare a static method, use this idiom:
7319 |
7320 | class C:
7321 | def f(arg1, arg2, ...): ...
7322 | f = staticmethod(f)
7323 |
7324 | It can be called either on the class (e.g. C.f()) or on an instance
7325 | (e.g. C().f()). The instance is ignored except for its class.
7326 |
7327 | Static methods in Python are similar to those found in Java or C++.
7328 | For a more advanced concept, see the classmethod builtin.
7329 |
7330 | Methods defined here:
7331 |
7332 | __get__(self, instance, owner, /)
7333 | Return an attribute of instance, which is of type owner.
7334 |
7335 | __init__(self, /, *args, **kwargs)
7336 | Initialize self. See help(type(self)) for accurate signature.
7337 |
7338 | __new__(*args, **kwargs) from type
7339 | Create and return a new object. See help(type) for accurate signature.
7340 |
7341 | ----------------------------------------------------------------------
7342 | Data descriptors defined here:
7343 |
7344 | __dict__
7345 |
7346 | __func__
7347 |
7348 | __isabstractmethod__
7349
7350 class str(object)
7351 | str(object='') -> str
7352 | str(bytes_or_buffer[, encoding[, errors]]) -> str
7353 |
7354 | Create a new string object from the given object. If encoding or
7355 | errors is specified, then the object must expose a data buffer
7356 | that will be decoded using the given encoding and error handler.
7357 | Otherwise, returns the result of object.__str__() (if defined)
7358 | or repr(object).
7359 | encoding defaults to sys.getdefaultencoding().
7360 | errors defaults to 'strict'.
7361 |
7362 | Methods defined here:
7363 |
7364 | __add__(self, value, /)
7365 | Return self+value.
7366 |
7367 | __contains__(self, key, /)
7368 | Return key in self.
7369 |
7370 | __eq__(self, value, /)
7371 | Return self==value.
7372 |
7373 | __format__(...)
7374 | S.__format__(format_spec) -> str
7375 |
7376 | Return a formatted version of S as described by format_spec.
7377 |
7378 | __ge__(self, value, /)
7379 | Return self>=value.
7380 |
7381 | __getattribute__(self, name, /)
7382 | Return getattr(self, name).
7383 |
7384 | __getitem__(self, key, /)
7385 | Return self[key].
7386 |
7387 | __getnewargs__(...)
7388 |
7389 | __gt__(self, value, /)
7390 | Return self>value.
7391 |
7392 | __hash__(self, /)
7393 | Return hash(self).
7394 |
7395 | __iter__(self, /)
7396 | Implement iter(self).
7397 |
7398 | __le__(self, value, /)
7399 | Return self<=value.
7400 |
7401 | __len__(self, /)
7402 | Return len(self).
7403 |
7404 | __lt__(self, value, /)
7405 | Return self<value.
7406 |
7407 | __mod__(self, value, /)
7408 | Return self%value.
7409 |
7410 | __mul__(self, value, /)
7411 | Return self*value.n
7412 |
7413 | __ne__(self, value, /)
7414 | Return self!=value.
7415 |
7416 | __new__(*args, **kwargs) from type
7417 | Create and return a new object. See help(type) for accurate signature.
7418 |
7419 | __repr__(self, /)
7420 | Return repr(self).
7421 |
7422 | __rmod__(self, value, /)
7423 | Return value%self.
7424 |
7425 | __rmul__(self, value, /)
7426 | Return self*value.
7427 |
7428 | __sizeof__(...)
7429 | S.__sizeof__() -> size of S in memory, in bytes
7430 |
7431 | __str__(self, /)
7432 | Return str(self).
7433 |
7434 | capitalize(...)
7435 | S.capitalize() -> str
7436 |
7437 | Return a capitalized version of S, i.e. make the first character
7438 | have upper case and the rest lower case.
7439 |
7440 | casefold(...)
7441 | S.casefold() -> str
7442 |
7443 | Return a version of S suitable for caseless comparisons.
7444 |
7445 | center(...)
7446 | S.center(width[, fillchar]) -> str
7447 |
7448 | Return S centered in a string of length width. Padding is
7449 | done using the specified fill character (default is a space)
7450 |
7451 | count(...)
7452 | S.count(sub[, start[, end]]) -> int
7453 |
7454 | Return the number of non-overlapping occurrences of substring sub in
7455 | string S[start:end]. Optional arguments start and end are
7456 | interpreted as in slice notation.
7457 |
7458 | encode(...)
7459 | S.encode(encoding='utf-8', errors='strict') -> bytes
7460 |
7461 | Encode S using the codec registered for encoding. Default encoding
7462 | is 'utf-8'. errors may be given to set a different error
7463 | handling scheme. Default is 'strict' meaning that encoding errors raise
7464 | a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and
7465 | 'xmlcharrefreplace' as well as any other name registered with
7466 | codecs.register_error that can handle UnicodeEncodeErrors.
7467 |
7468 | endswith(...)
7469 | S.endswith(suffix[, start[, end]]) -> bool
7470 |
7471 | Return True if S ends with the specified suffix, False otherwise.
7472 | With optional start, test S beginning at that position.
7473 | With optional end, stop comparing S at that position.
7474 | suffix can also be a tuple of strings to try.
7475 |
7476 | expandtabs(...)
7477 | S.expandtabs(tabsize=8) -> str
7478 |
7479 | Return a copy of S where all tab characters are expanded using spaces.
7480 | If tabsize is not given, a tab size of 8 characters is assumed.
7481 |
7482 | find(...)
7483 | S.find(sub[, start[, end]]) -> int
7484 |
7485 | Return the lowest index in S where substring sub is found,
7486 | such that sub is contained within S[start:end]. Optional
7487 | arguments start and end are interpreted as in slice notation.
7488 |
7489 | Return -1 on failure.
7490 |
7491 | format(...)
7492 | S.format(*args, **kwargs) -> str
7493 |
7494 | Return a formatted version of S, using substitutions from args and kwargs.
7495 | The substitutions are identified by braces ('{' and '}').
7496 |
7497 | format_map(...)
7498 | S.format_map(mapping) -> str
7499 |
7500 | Return a formatted version of S, using substitutions from mapping.
7501 | The substitutions are identified by braces ('{' and '}').
7502 |
7503 | index(...)
7504 | S.index(sub[, start[, end]]) -> int
7505 |
7506 | Like S.find() but raise ValueError when the substring is not found.
7507 |
7508 | isalnum(...)
7509 | S.isalnum() -> bool
7510 |
7511 | Return True if all characters in S are alphanumeric
7512 | and there is at least one character in S, False otherwise.
7513 |
7514 | isalpha(...)
7515 | S.isalpha() -> bool
7516 |
7517 | Return True if all characters in S are alphabetic
7518 | and there is at least one character in S, False otherwise.
7519 |
7520 | isdecimal(...)
7521 | S.isdecimal() -> bool
7522 |
7523 | Return True if there are only decimal characters in S,
7524 | False otherwise.
7525 |
7526 | isdigit(...)
7527 | S.isdigit() -> bool
7528 |
7529 | Return True if all characters in S are digits
7530 | and there is at least one character in S, False otherwise.
7531 |
7532 | isidentifier(...)
7533 | S.isidentifier() -> bool
7534 |
7535 | Return True if S is a valid identifier according
7536 | to the language definition.
7537 |
7538 | Use keyword.iskeyword() to test for reserved identifiers
7539 | such as "def" and "class".
7540 |
7541 | islower(...)
7542 | S.islower() -> bool
7543 |
7544 | Return True if all cased characters in S are lowercase and there is
7545 | at least one cased character in S, False otherwise.
7546 |
7547 | isnumeric(...)
7548 | S.isnumeric() -> bool
7549 |
7550 | Return True if there are only numeric characters in S,
7551 | False otherwise.
7552 |
7553 | isprintable(...)
7554 | S.isprintable() -> bool
7555 |
7556 | Return True if all characters in S are considered
7557 | printable in repr() or S is empty, False otherwise.
7558 |
7559 | isspace(...)
7560 | S.isspace() -> bool
7561 |
7562 | Return True if all characters in S are whitespace
7563 | and there is at least one character in S, False otherwise.
7564 |
7565 | istitle(...)
7566 | S.istitle() -> bool
7567 |
7568 | Return True if S is a titlecased string and there is at least one
7569 | character in S, i.e. upper- and titlecase characters may only
7570 | follow uncased characters and lowercase characters only cased ones.
7571 | Return False otherwise.
7572 |
7573 | isupper(...)
7574 | S.isupper() -> bool
7575 |
7576 | Return True if all cased characters in S are uppercase and there is
7577 | at least one cased character in S, False otherwise.
7578 |
7579 | join(...)
7580 | S.join(iterable) -> str
7581 |
7582 | Return a string which is the concatenation of the strings in the
7583 | iterable. The separator between elements is S.
7584 |
7585 | ljust(...)
7586 | S.ljust(width[, fillchar]) -> str
7587 |
7588 | Return S left-justified in a Unicode string of length width. Padding is
7589 | done using the specified fill character (default is a space).
7590 |
7591 | lower(...)
7592 | S.lower() -> str
7593 |
7594 | Return a copy of the string S converted to lowercase.
7595 |
7596 | lstrip(...)
7597 | S.lstrip([chars]) -> str
7598 |
7599 | Return a copy of the string S with leading whitespace removed.
7600 | If chars is given and not None, remove characters in chars instead.
7601 |
7602 | partition(...)
7603 | S.partition(sep) -> (head, sep, tail)
7604 |
7605 | Search for the separator sep in S, and return the part before it,
7606 | the separator itself, and the part after it. If the separator is not
7607 | found, return S and two empty strings.
7608 |
7609 | replace(...)
7610 | S.replace(old, new[, count]) -> str
7611 |
7612 | Return a copy of S with all occurrences of substring
7613 | old replaced by new. If the optional argument count is
7614 | given, only the first count occurrences are replaced.
7615 |
7616 | rfind(...)
7617 | S.rfind(sub[, start[, end]]) -> int
7618 |
7619 | Return the highest index in S where substring sub is found,
7620 | such that sub is contained within S[start:end]. Optional
7621 | arguments start and end are interpreted as in slice notation.
7622 |
7623 | Return -1 on failure.
7624 |
7625 | rindex(...)
7626 | S.rindex(sub[, start[, end]]) -> int
7627 |
7628 | Like S.rfind() but raise ValueError when the substring is not found.
7629 |
7630 | rjust(...)
7631 | S.rjust(width[, fillchar]) -> str
7632 |
7633 | Return S right-justified in a string of length width. Padding is
7634 | done using the specified fill character (default is a space).
7635 |
7636 | rpartition(...)
7637 | S.rpartition(sep) -> (head, sep, tail)
7638 |
7639 | Search for the separator sep in S, starting at the end of S, and return
7640 | the part before it, the separator itself, and the part after it. If the
7641 | separator is not found, return two empty strings and S.
7642 |
7643 | rsplit(...)
7644 | S.rsplit(sep=None, maxsplit=-1) -> list of strings
7645 |
7646 | Return a list of the words in S, using sep as the
7647 | delimiter string, starting at the end of the string and
7648 | working to the front. If maxsplit is given, at most maxsplit
7649 | splits are done. If sep is not specified, any whitespace string
7650 | is a separator.
7651 |
7652 | rstrip(...)
7653 | S.rstrip([chars]) -> str
7654 |
7655 | Return a copy of the string S with trailing whitespace removed.
7656 | If chars is given and not None, remove characters in chars instead.
7657 |
7658 | split(...)
7659 | S.split(sep=None, maxsplit=-1) -> list of strings
7660 |
7661 | Return a list of the words in S, using sep as the
7662 | delimiter string. If maxsplit is given, at most maxsplit
7663 | splits are done. If sep is not specified or is None, any
7664 | whitespace string is a separator and empty strings are
7665 | removed from the result.
7666 |
7667 | splitlines(...)
7668 | S.splitlines([keepends]) -> list of strings
7669 |
7670 | Return a list of the lines in S, breaking at line boundaries.
7671 | Line breaks are not included in the resulting list unless keepends
7672 | is given and true.
7673 |
7674 | startswith(...)
7675 | S.startswith(prefix[, start[, end]]) -> bool
7676 |
7677 | Return True if S starts with the specified prefix, False otherwise.
7678 | With optional start, test S beginning at that position.
7679 | With optional end, stop comparing S at that position.
7680 | prefix can also be a tuple of strings to try.
7681 |
7682 | strip(...)
7683 | S.strip([chars]) -> str
7684 |
7685 | Return a copy of the string S with leading and trailing
7686 | whitespace removed.
7687 | If chars is given and not None, remove characters in chars instead.
7688 |
7689 | swapcase(...)
7690 | S.swapcase() -> str
7691 |
7692 | Return a copy of S with uppercase characters converted to lowercase
7693 | and vice versa.
7694 |
7695 | title(...)
7696 | S.title() -> str
7697 |
7698 | Return a titlecased version of S, i.e. words start with title case
7699 | characters, all remaining cased characters have lower case.
7700 |
7701 | translate(...)
7702 | S.translate(table) -> str
7703 |
7704 | Return a copy of the string S in which each character has been mapped
7705 | through the given translation table. The table must implement
7706 | lookup/indexing via __getitem__, for instance a dictionary or list,
7707 | mapping Unicode ordinals to Unicode ordinals, strings, or None. If
7708 | this operation raises LookupError, the character is left untouched.
7709 | Characters mapped to None are deleted.
7710 |
7711 | upper(...)
7712 | S.upper() -> str
7713 |
7714 | Return a copy of S converted to uppercase.
7715 |
7716 | zfill(...)
7717 | S.zfill(width) -> str
7718 |
7719 | Pad a numeric string S with zeros on the left, to fill a field
7720 | of the specified width. The string S is never truncated.
7721 |
7722 | ----------------------------------------------------------------------
7723 | Static methods defined here:
7724 |
7725 | maketrans(x, y=None, z=None, /)
7726 | Return a translation table usable for str.translate().
7727 |
7728 | If there is only one argument, it must be a dictionary mapping Unicode
7729 | ordinals (integers) or characters to Unicode ordinals, strings or None.
7730 | Character keys will be then converted to ordinals.
7731 | If there are two arguments, they must be strings of equal length, and
7732 | in the resulting dictionary, each character in x will be mapped to the
7733 | character at the same position in y. If there is a third argument, it
7734 | must be a string, whose characters will be mapped to None in the result.
7735
7736 class super(object)
7737 | super() -> same as super(__class__, <first argument>)
7738 | super(type) -> unbound super object
7739 | super(type, obj) -> bound super object; requires isinstance(obj, type)
7740 | super(type, type2) -> bound super object; requires issubclass(type2, type)
7741 | Typical use to call a cooperative superclass method:
7742 | class C(B):
7743 | def meth(self, arg):
7744 | super().meth(arg)
7745 | This works for class methods too:
7746 | class C(B):
7747 | @classmethod
7748 | def cmeth(cls, arg):
7749 | super().cmeth(arg)
7750 |
7751 | Methods defined here:
7752 |
7753 | __get__(self, instance, owner, /)
7754 | Return an attribute of instance, which is of type owner.
7755 |
7756 | __getattribute__(self, name, /)
7757 | Return getattr(self, name).
7758 |
7759 | __init__(self, /, *args, **kwargs)
7760 | Initialize self. See help(type(self)) for accurate signature.
7761 |
7762 | __new__(*args, **kwargs) from type
7763 | Create and return a new object. See help(type) for accurate signature.
7764 |
7765 | __repr__(self, /)
7766 | Return repr(self).
7767 |
7768 | ----------------------------------------------------------------------
7769 | Data descriptors defined here:
7770 |
7771 | __self__
7772 | the instance invoking super(); may be None
7773 |
7774 | __self_class__
7775 | the type of the instance invoking super(); may be None
7776 |
7777 | __thisclass__
7778 | the class invoking super()
7779
7780 class tuple(object)
7781 | tuple() -> empty tuple
7782 | tuple(iterable) -> tuple initialized from iterable's items
7783 |
7784 | If the argument is a tuple, the return value is the same object.
7785 |
7786 | Methods defined here:
7787 |
7788 | __add__(self, value, /)
7789 | Return self+value.
7790 |
7791 | __contains__(self, key, /)
7792 | Return key in self.
7793 |
7794 | __eq__(self, value, /)
7795 | Return self==value.
7796 |
7797 | __ge__(self, value, /)
7798 | Return self>=value.
7799 |
7800 | __getattribute__(self, name, /)
7801 | Return getattr(self, name).
7802 |
7803 | __getitem__(self, key, /)
7804 | Return self[key].
7805 |
7806 | __getnewargs__(...)
7807 |
7808 | __gt__(self, value, /)
7809 | Return self>value.
7810 |
7811 | __hash__(self, /)
7812 | Return hash(self).
7813 |
7814 | __iter__(self, /)
7815 | Implement iter(self).
7816 |
7817 | __le__(self, value, /)
7818 | Return self<=value.
7819 |
7820 | __len__(self, /)
7821 | Return len(self).
7822 |
7823 | __lt__(self, value, /)
7824 | Return self<value.
7825 |
7826 | __mul__(self, value, /)
7827 | Return self*value.n
7828 |
7829 | __ne__(self, value, /)
7830 | Return self!=value.
7831 |
7832 | __new__(*args, **kwargs) from type
7833 | Create and return a new object. See help(type) for accurate signature.
7834 |
7835 | __repr__(self, /)
7836 | Return repr(self).
7837 |
7838 | __rmul__(self, value, /)
7839 | Return self*value.
7840 |
7841 | count(...)
7842 | T.count(value) -> integer -- return number of occurrences of value
7843 |
7844 | index(...)
7845 | T.index(value, [start, [stop]]) -> integer -- return first index of value.
7846 | Raises ValueError if the value is not present.
7847
7848 class type(object)
7849 | type(object_or_name, bases, dict)
7850 | type(object) -> the object's type
7851 | type(name, bases, dict) -> a new type
7852 |
7853 | Methods defined here:
7854 |
7855 | __call__(self, /, *args, **kwargs)
7856 | Call self as a function.
7857 |
7858 | __delattr__(self, name, /)
7859 | Implement delattr(self, name).
7860 |
7861 | __dir__(...)
7862 | __dir__() -> list
7863 | specialized __dir__ implementation for types
7864 |
7865 | __getattribute__(self, name, /)
7866 | Return getattr(self, name).
7867 |
7868 | __init__(self, /, *args, **kwargs)
7869 | Initialize self. See help(type(self)) for accurate signature.
7870 |
7871 | __instancecheck__(...)
7872 | __instancecheck__() -> bool
7873 | check if an object is an instance
7874 |
7875 | __new__(*args, **kwargs)
7876 | Create and return a new object. See help(type) for accurate signature.
7877 |
7878 | __prepare__(...)
7879 | __prepare__() -> dict
7880 | used to create the namespace for the class statement
7881 |
7882 | __repr__(self, /)
7883 | Return repr(self).
7884 |
7885 | __setattr__(self, name, value, /)
7886 | Implement setattr(self, name, value).
7887 |
7888 | __sizeof__(...)
7889 | __sizeof__() -> int
7890 | return memory consumption of the type object
7891 |
7892 | __subclasscheck__(...)
7893 | __subclasscheck__() -> bool
7894 | check if a class is a subclass
7895 |
7896 | __subclasses__(...)
7897 | __subclasses__() -> list of immediate subclasses
7898 |
7899 | mro(...)
7900 | mro() -> list
7901 | return a type's method resolution order
7902 |
7903 | ----------------------------------------------------------------------
7904 | Data descriptors defined here:
7905 |
7906 | __abstractmethods__
7907 |
7908 | __dict__
7909 |
7910 | __text_signature__
7911 |
7912 | ----------------------------------------------------------------------
7913 | Data and other attributes defined here:
7914 |
7915 | __base__ = <class 'object'>
7916 | The most base type
7917 |
7918 | __bases__ = (<class 'object'>,)
7919 |
7920 | __basicsize__ = 432
7921 |
7922 | __dictoffset__ = 132
7923 |
7924 | __flags__ = -2146675712
7925 |
7926 | __itemsize__ = 20
7927 |
7928 | __mro__ = (<class 'type'>, <class 'object'>)
7929 |
7930 | __weakrefoffset__ = 184
7931
7932 class zip(object)
7933 | zip(iter1 [,iter2 [...]]) --> zip object
7934 |
7935 | Return a zip object whose .__next__() method returns a tuple where
7936 | the i-th element comes from the i-th iterable argument. The .__next__()
7937 | method continues until the shortest iterable in the argument sequence
7938 | is exhausted and then it raises StopIteration.
7939 |
7940 | Methods defined here:
7941 |
7942 | __getattribute__(self, name, /)
7943 | Return getattr(self, name).
7944 |
7945 | __iter__(self, /)
7946 | Implement iter(self).
7947 |
7948 | __new__(*args, **kwargs) from type
7949 | Create and return a new object. See help(type) for accurate signature.
7950 |
7951 | __next__(self, /)
7952 | Implement next(self).
7953 |
7954 | __reduce__(...)
7955 | Return state information for pickling.
7956
7957FUNCTIONS
7958 __build_class__(...)
7959 __build_class__(func, name, *bases, metaclass=None, **kwds) -> class
7960
7961 Internal helper function used by the class statement.
7962
7963 abs(x, /)
7964 Return the absolute value of the argument.
7965
7966 all(iterable, /)
7967 Return True if bool(x) is True for all values x in the iterable.
7968
7969 If the iterable is empty, return True.
7970
7971 any(iterable, /)
7972 Return True if bool(x) is True for any x in the iterable.
7973
7974 If the iterable is empty, return False.
7975
7976 ascii(obj, /)
7977 Return an ASCII-only representation of an object.
7978
7979 As repr(), return a string containing a printable representation of an
7980 object, but escape the non-ASCII characters in the string returned by
7981 repr() using \\x, \\u or \\U escapes. This generates a string similar
7982 to that returned by repr() in Python 2.
7983
7984 bin(number, /)
7985 Return the binary representation of an integer.
7986
7987 >>> bin(2796202)
7988 '0b1010101010101010101010'
7989
7990 callable(obj, /)
7991 Return whether the object is callable (i.e., some kind of function).
7992
7993 Note that classes are callable, as are instances of classes with a
7994 __call__() method.
7995
7996 chr(i, /)
7997 Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff.
7998
7999 compile(source, filename, mode, flags=0, dont_inherit=False, optimize=-1)
8000 Compile source into a code object that can be executed by exec() or eval().
8001
8002 The source code may represent a Python module, statement or expression.
8003 The filename will be used for run-time error messages.
8004 The mode must be 'exec' to compile a module, 'single' to compile a
8005 single (interactive) statement, or 'eval' to compile an expression.
8006 The flags argument, if present, controls which future statements influence
8007 the compilation of the code.
8008 The dont_inherit argument, if true, stops the compilation inheriting
8009 the effects of any future statements in effect in the code calling
8010 compile; if absent or false these statements do influence the compilation,
8011 in addition to any features explicitly specified.
8012
8013 delattr(obj, name, /)
8014 Deletes the named attribute from the given object.
8015
8016 delattr(x, 'y') is equivalent to ``del x.y''
8017
8018 dir(...)
8019 dir([object]) -> list of strings
8020
8021 If called without an argument, return the names in the current scope.
8022 Else, return an alphabetized list of names comprising (some of) the attributes
8023 of the given object, and of attributes reachable from it.
8024 If the object supplies a method named __dir__, it will be used; otherwise
8025 the default dir() logic is used and returns:
8026 for a module object: the module's attributes.
8027 for a class object: its attributes, and recursively the attributes
8028 of its bases.
8029 for any other object: its attributes, its class's attributes, and
8030 recursively the attributes of its class's base classes.
8031
8032 divmod(x, y, /)
8033 Return the tuple ((x-x%y)/y, x%y). Invariant: div*y + mod == x.
8034
8035 eval(source, globals=None, locals=None, /)
8036 Evaluate the given source in the context of globals and locals.
8037
8038 The source may be a string representing a Python expression
8039 or a code object as returned by compile().
8040 The globals must be a dictionary and locals can be any mapping,
8041 defaulting to the current globals and locals.
8042 If only globals is given, locals defaults to it.
8043
8044 exec(source, globals=None, locals=None, /)
8045 Execute the given source in the context of globals and locals.
8046
8047 The source may be a string representing one or more Python statements
8048 or a code object as returned by compile().
8049 The globals must be a dictionary and locals can be any mapping,
8050 defaulting to the current globals and locals.
8051 If only globals is given, locals defaults to it.
8052
8053 format(value, format_spec='', /)
8054 Return value.__format__(format_spec)
8055
8056 format_spec defaults to the empty string
8057
8058 getattr(...)
8059 getattr(object, name[, default]) -> value
8060
8061 Get a named attribute from an object; getattr(x, 'y') is equivalent to x.y.
8062 When a default argument is given, it is returned when the attribute doesn't
8063 exist; without it, an exception is raised in that case.
8064
8065 globals()
8066 Return the dictionary containing the current scope's global variables.
8067
8068 NOTE: Updates to this dictionary *will* affect name lookups in the current
8069 global scope and vice-versa.
8070
8071 hasattr(obj, name, /)
8072 Return whether the object has an attribute with the given name.
8073
8074 This is done by calling getattr(obj, name) and catching AttributeError.
8075
8076 hash(obj, /)
8077 Return the hash value for the given object.
8078
8079 Two objects that compare equal must also have the same hash value, but the
8080 reverse is not necessarily true.
8081
8082 hex(number, /)
8083 Return the hexadecimal representation of an integer.
8084
8085 >>> hex(12648430)
8086 '0xc0ffee'
8087
8088 id(obj, /)
8089 Return the identity of an object.
8090
8091 This is guaranteed to be unique among simultaneously existing objects.
8092 (CPython uses the object's memory address.)
8093
8094 input(prompt=None, /)
8095 Read a string from standard input. The trailing newline is stripped.
8096
8097 The prompt string, if given, is printed to standard output without a
8098 trailing newline before reading input.
8099
8100 If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError.
8101 On *nix systems, readline is used if available.
8102
8103 isinstance(obj, class_or_tuple, /)
8104 Return whether an object is an instance of a class or of a subclass thereof.
8105
8106 A tuple, as in ``isinstance(x, (A, B, ...))``, may be given as the target to
8107 check against. This is equivalent to ``isinstance(x, A) or isinstance(x, B)
8108 or ...`` etc.
8109
8110 issubclass(cls, class_or_tuple, /)
8111 Return whether 'cls' is a derived from another class or is the same class.
8112
8113 A tuple, as in ``issubclass(x, (A, B, ...))``, may be given as the target to
8114 check against. This is equivalent to ``issubclass(x, A) or issubclass(x, B)
8115 or ...`` etc.
8116
8117 iter(...)
8118 iter(iterable) -> iterator
8119 iter(callable, sentinel) -> iterator
8120
8121 Get an iterator from an object. In the first form, the argument must
8122 supply its own iterator, or be a sequence.
8123 In the second form, the callable is called until it returns the sentinel.
8124
8125 len(obj, /)
8126 Return the number of items in a container.
8127
8128 locals()
8129 Return a dictionary containing the current scope's local variables.
8130
8131 NOTE: Whether or not updates to this dictionary will affect name lookups in
8132 the local scope and vice-versa is *implementation dependent* and not
8133 covered by any backwards compatibility guarantees.
8134
8135 max(...)
8136 max(iterable, *[, default=obj, key=func]) -> value
8137 max(arg1, arg2, *args, *[, key=func]) -> value
8138
8139 With a single iterable argument, return its biggest item. The
8140 default keyword-only argument specifies an object to return if
8141 the provided iterable is empty.
8142 With two or more arguments, return the largest argument.
8143
8144 min(...)
8145 min(iterable, *[, default=obj, key=func]) -> value
8146 min(arg1, arg2, *args, *[, key=func]) -> value
8147
8148 With a single iterable argument, return its smallest item. The
8149 default keyword-only argument specifies an object to return if
8150 the provided iterable is empty.
8151 With two or more arguments, return the smallest argument.
8152
8153 next(...)
8154 next(iterator[, default])
8155
8156 Return the next item from the iterator. If default is given and the iterator
8157 is exhausted, it is returned instead of raising StopIteration.
8158
8159 oct(number, /)
8160 Return the octal representation of an integer.
8161
8162 >>> oct(342391)
8163 '0o1234567'
8164
8165 open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)
8166 Open file and return a stream. Raise IOError upon failure.
8167
8168 file is either a text or byte string giving the name (and the path
8169 if the file isn't in the current working directory) of the file to
8170 be opened or an integer file descriptor of the file to be
8171 wrapped. (If a file descriptor is given, it is closed when the
8172 returned I/O object is closed, unless closefd is set to False.)
8173
8174 mode is an optional string that specifies the mode in which the file
8175 is opened. It defaults to 'r' which means open for reading in text
8176 mode. Other common values are 'w' for writing (truncating the file if
8177 it already exists), 'x' for creating and writing to a new file, and
8178 'a' for appending (which on some Unix systems, means that all writes
8179 append to the end of the file regardless of the current seek position).
8180 In text mode, if encoding is not specified the encoding used is platform
8181 dependent: locale.getpreferredencoding(False) is called to get the
8182 current locale encoding. (For reading and writing raw bytes use binary
8183 mode and leave encoding unspecified.) The available modes are:
8184
8185 ========= ===============================================================
8186 Character Meaning
8187 --------- ---------------------------------------------------------------
8188 'r' open for reading (default)
8189 'w' open for writing, truncating the file first
8190 'x' create a new file and open it for writing
8191 'a' open for writing, appending to the end of the file if it exists
8192 'b' binary mode
8193 't' text mode (default)
8194 '+' open a disk file for updating (reading and writing)
8195 'U' universal newline mode (deprecated)
8196 ========= ===============================================================
8197
8198 The default mode is 'rt' (open for reading text). For binary random
8199 access, the mode 'w+b' opens and truncates the file to 0 bytes, while
8200 'r+b' opens the file without truncation. The 'x' mode implies 'w' and
8201 raises an `FileExistsError` if the file already exists.
8202
8203 Python distinguishes between files opened in binary and text modes,
8204 even when the underlying operating system doesn't. Files opened in
8205 binary mode (appending 'b' to the mode argument) return contents as
8206 bytes objects without any decoding. In text mode (the default, or when
8207 't' is appended to the mode argument), the contents of the file are
8208 returned as strings, the bytes having been first decoded using a
8209 platform-dependent encoding or using the specified encoding if given.
8210
8211 'U' mode is deprecated and will raise an exception in future versions
8212 of Python. It has no effect in Python 3. Use newline to control
8213 universal newlines mode.
8214
8215 buffering is an optional integer used to set the buffering policy.
8216 Pass 0 to switch buffering off (only allowed in binary mode), 1 to select
8217 line buffering (only usable in text mode), and an integer > 1 to indicate
8218 the size of a fixed-size chunk buffer. When no buffering argument is
8219 given, the default buffering policy works as follows:
8220
8221 * Binary files are buffered in fixed-size chunks; the size of the buffer
8222 is chosen using a heuristic trying to determine the underlying device's
8223 "block size" and falling back on `io.DEFAULT_BUFFER_SIZE`.
8224 On many systems, the buffer will typically be 4096 or 8192 bytes long.
8225
8226 * "Interactive" text files (files for which isatty() returns True)
8227 use line buffering. Other text files use the policy described above
8228 for binary files.
8229
8230 encoding is the name of the encoding used to decode or encode the
8231 file. This should only be used in text mode. The default encoding is
8232 platform dependent, but any encoding supported by Python can be
8233 passed. See the codecs module for the list of supported encodings.
8234
8235 errors is an optional string that specifies how encoding errors are to
8236 be handled---this argument should not be used in binary mode. Pass
8237 'strict' to raise a ValueError exception if there is an encoding error
8238 (the default of None has the same effect), or pass 'ignore' to ignore
8239 errors. (Note that ignoring encoding errors can lead to data loss.)
8240 See the documentation for codecs.register or run 'help(codecs.Codec)'
8241 for a list of the permitted encoding error strings.
8242
8243 newline controls how universal newlines works (it only applies to text
8244 mode). It can be None, '', '\n', '\r', and '\r\n'. It works as
8245 follows:
8246
8247 * On input, if newline is None, universal newlines mode is
8248 enabled. Lines in the input can end in '\n', '\r', or '\r\n', and
8249 these are translated into '\n' before being returned to the
8250 caller. If it is '', universal newline mode is enabled, but line
8251 endings are returned to the caller untranslated. If it has any of
8252 the other legal values, input lines are only terminated by the given
8253 string, and the line ending is returned to the caller untranslated.
8254
8255 * On output, if newline is None, any '\n' characters written are
8256 translated to the system default line separator, os.linesep. If
8257 newline is '' or '\n', no translation takes place. If newline is any
8258 of the other legal values, any '\n' characters written are translated
8259 to the given string.
8260
8261 If closefd is False, the underlying file descriptor will be kept open
8262 when the file is closed. This does not work when a file name is given
8263 and must be True in that case.
8264
8265 A custom opener can be used by passing a callable as *opener*. The
8266 underlying file descriptor for the file object is then obtained by
8267 calling *opener* with (*file*, *flags*). *opener* must return an open
8268 file descriptor (passing os.open as *opener* results in functionality
8269 similar to passing None).
8270
8271 open() returns a file object whose type depends on the mode, and
8272 through which the standard file operations such as reading and writing
8273 are performed. When open() is used to open a file in a text mode ('w',
8274 'r', 'wt', 'rt', etc.), it returns a TextIOWrapper. When used to open
8275 a file in a binary mode, the returned class varies: in read binary
8276 mode, it returns a BufferedReader; in write binary and append binary
8277 modes, it returns a BufferedWriter, and in read/write mode, it returns
8278 a BufferedRandom.
8279
8280 It is also possible to use a string or bytearray as a file for both
8281 reading and writing. For strings StringIO can be used like a file
8282 opened in a text mode, and for bytes a BytesIO can be used like a file
8283 opened in a binary mode.
8284
8285 ord(c, /)
8286 Return the Unicode code point for a one-character string.
8287
8288 pow(x, y, z=None, /)
8289 Equivalent to x**y (with two arguments) or x**y % z (with three arguments)
8290
8291 Some types, such as ints, are able to use a more efficient algorithm when
8292 invoked using the three argument form.
8293
8294 print(...)
8295 print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)
8296
8297 Prints the values to a stream, or to sys.stdout by default.
8298 Optional keyword arguments:
8299 file: a file-like object (stream); defaults to the current sys.stdout.
8300 sep: string inserted between values, default a space.
8301 end: string appended after the last value, default a newline.
8302 flush: whether to forcibly flush the stream.
8303
8304 repr(obj, /)
8305 Return the canonical string representation of the object.
8306
8307 For many object types, including most builtins, eval(repr(obj)) == obj.
8308
8309 round(...)
8310 round(number[, ndigits]) -> number
8311
8312 Round a number to a given precision in decimal digits (default 0 digits).
8313 This returns an int when called with one argument, otherwise the
8314 same type as the number. ndigits may be negative.
8315
8316 setattr(obj, name, value, /)
8317 Sets the named attribute on the given object to the specified value.
8318
8319 setattr(x, 'y', v) is equivalent to ``x.y = v''
8320
8321 sorted(iterable, key=None, reverse=False)
8322 Return a new list containing all items from the iterable in ascending order.
8323
8324 A custom key function can be supplied to customise the sort order, and the
8325 reverse flag can be set to request the result in descending order.
8326
8327 sum(iterable, start=0, /)
8328 Return the sum of a 'start' value (default: 0) plus an iterable of numbers
8329
8330 When the iterable is empty, return the start value.
8331 This function is intended specifically for use with numeric values and may
8332 reject non-numeric types.
8333
8334 vars(...)
8335 vars([object]) -> dictionary
8336
8337 Without arguments, equivalent to locals().
8338 With an argument, equivalent to object.__dict__.
8339
8340DATA
8341 Ellipsis = Ellipsis
8342 False = False
8343 None = None
8344 NotImplemented = NotImplemented
8345 True = True
8346 __debug__ = True
8347 copyright = Copyright (c) 2001-2015 Python Software Foundati...ematisc...
8348 credits = Thanks to CWI, CNRI, BeOpen.com, Zope Corpor...opment. ...
8349 exit = Use exit() or Ctrl-Z plus Return to exit
8350 help = Type help() for interactive help, or help(object) for help abou...
8351 license = Type license() to see the full license text
8352 quit = Use quit() or Ctrl-Z plus Return to exit
8353
8354FILE
8355 (built-in)