Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Data Structures | |
class | _OptionError |
Functions | |
def | warn |
def | warn_explicit |
def | showwarning |
def | formatwarning |
def | filterwarnings |
def | resetwarnings |
Variables | |
list | __all__ |
string | defaultaction = "default" |
list | filters = [] |
dictionary | onceregistry = {} |
Python part of the warnings subsystem.
def warnings.filterwarnings | ( | action, | |
message = "" , |
|||
category = Warning , |
|||
module = "" , |
|||
lineno = 0 , |
|||
append = 0 |
|||
) |
Insert an entry into the list of warnings filters (at the front). Use assertions to check that all arguments have the right type.
Definition at line 113 of file warnings.py.
def warnings.formatwarning | ( | message, | |
category, | |||
filename, | |||
lineno | |||
) |
Function to format a warning the standard way.
Definition at line 103 of file warnings.py.
References filterwarnings(), linecache.getline(), and string.strip().
def warnings.resetwarnings | ( | ) |
Reset the list of warnings filters to its default state.
Definition at line 132 of file warnings.py.
def warnings.showwarning | ( | message, | |
category, | |||
filename, | |||
lineno, | |||
file = None |
|||
) |
Hook to write a warning to a file; replace if you like.
Definition at line 97 of file warnings.py.
References formatwarning().
def warnings.warn | ( | message, | |
category = None , |
|||
stacklevel = 1 |
|||
) |
Issue a warning, or maybe ignore it or raise an exception.
Definition at line 12 of file warnings.py.
References warn_explicit().
def warnings.warn_explicit | ( | message, | |
category, | |||
filename, | |||
lineno, | |||
module = None , |
|||
registry = None |
|||
) |
Definition at line 45 of file warnings.py.
References string.lower(), showwarning(), and locale.str().
list __all__ |
Definition at line 5 of file warnings.py.
string defaultaction = "default" |
Definition at line 8 of file warnings.py.
list filters = [] |
Definition at line 9 of file warnings.py.
dictionary onceregistry = {} |
Definition at line 10 of file warnings.py.