Variable | arm |
Undocumented |
Variable | binary_types |
Undocumented |
Variable | cpython |
Undocumented |
Variable | exec_ |
Undocumented |
Variable | FullArgSpec |
Undocumented |
Variable | has_refcount_gc |
Undocumented |
Variable | import_ |
Undocumented |
Variable | int_types |
Undocumented |
Variable | osx |
Undocumented |
Variable | print_ |
Undocumented |
Variable | py2k |
Undocumented |
Variable | py37 |
Undocumented |
Variable | py38 |
Undocumented |
Variable | py39 |
Undocumented |
Variable | py3k |
Undocumented |
Variable | pypy |
Undocumented |
Variable | string_types |
Undocumented |
Variable | win32 |
Undocumented |
Class | nullcontext |
Context manager that does no additional processing. |
Function | _formatannotation |
vendored from python 3.7 |
Function | _qualname |
Undocumented |
Function | b |
Undocumented |
Function | b64decode |
Undocumented |
Function | b64encode |
Undocumented |
Function | cmp |
Undocumented |
Function | dataclass_fields |
Return a sequence of all dataclasses.Field objects associated with a class. |
Function | decode_backslashreplace |
Undocumented |
Function | importlib_metadata_get |
Undocumented |
Function | inspect_formatargspec |
Copy formatargspec from python 3.7 standard library. |
Function | inspect_getfullargspec |
Fully vendored version of getfullargspec from Python 3.3. |
Function | local_dataclass_fields |
Return a sequence of all dataclasses.Field objects associated with a class, excluding those that originate from a superclass. |
Function | raise_ |
implement "raise" with cause support. |
Function | raise_from_cause |
legacy. use raise_() |
Function | reraise |
legacy. use raise_() |
Function | u |
Undocumented |
Function | ue |
Undocumented |
Function | with_metaclass |
Create a base class with a metaclass. |
Copy formatargspec from python 3.7 standard library.
Python 3 has deprecated formatargspec and requested that Signature be used instead, however this requires a full reimplementation of formatargspec() in terms of creating Parameter objects and such. Instead of introducing all the object-creation overhead and having to reinvent from scratch, just copy their compatibility routine.
Ultimately we would need to rewrite our "decorator" routine completely which is not really worth it right now, until all Python 2.x support is dropped.
Parameters | |
exception | exception to raise |
with_traceback | will call exception.with_traceback() |
replace_context | an as-yet-unsupported feature. This is an exception object which we are "replacing", e.g., it's our "cause" but we don't want it printed. Basically just what __suppress_context__ does but we don't want to suppress the enclosing context, if any. So for now we make it the cause. |
from_ | the cause. this actually sets the cause and doesn't hope to hide it someday. |
Create a base class with a metaclass.
Drops the middle class upon creation.
Source: https://lucumr.pocoo.org/2013/5/21/porting-to-python-3-redux/