-
Notifications
You must be signed in to change notification settings - Fork 0
concepts
Jasper Zanjani edited this page Sep 14, 2020
·
2 revisions
#!/usr/bin/env pythonNon-interactive debugging is the most basic form of debugging, dependent on print or log statements placed within the body of code.
The PyTypeObject structure defines a new type and are fundamental to Python's object data model.
ionel's codelog
This is a struct that describes the class.
Each magic method has a field within this struct, which are called type slots.
-
__new__method is the constructor -
__init__is the initializer -
__prepare__returns a dictionary-like object that's used as the local namespace for all the code from the class body.
The method resolution order (MRO) refers to the order of base classes that are searched when using super().
src
It is accessed with __mro__, which returns a tuple of base classes in order of precedence, ending in object which is the root class of all classes.
- argparse ?
- array ?
- asyncio ?
- bisect ?
- csv ?
- ctypes ?
- curses ?
- datetime ?
- functools ?
- getpass ?
- glob ?
- heapq ?
- http ?
- json ?
- logging ?
- optparse ?
- os ?
- pathlib ?
- platform ?
- pythonnet ?
- random ?
- socket ?
- subprocess ?
- sqlite3 ?
- sys ?
- termcolor ?
- threading ?
- trace ?
- typing ?
- unittest ?
- urllib ?
- venv ?
- weakref ?
- winrm ?