module documentation
General purpose utility functions.
Function | error |
Undocumented |
Function | find |
Looks up a class by full name. |
Function | parse |
Parse a str path to a Path object using resolve_path() . |
Function | parse |
Parse string like 'public:match*' to a tuple (PrivacyClass.PUBLIC, 'match*'). |
Function | partialclass |
Bind a class to be created with some predefined __init__ arguments. |
Function | resolve |
Parse a given path string to a Path object. |
Type Variable | T |
Undocumented |
def findClassFromDottedName(dottedname:
str
, optionname: str
, base_class: str | type[ T]
) -> type[ T]
:
(source)
¶
Looks up a class by full name.
Raises | |
ValueError | If can't find the class. |
Parse a str path to a Path
object using resolve_path()
.
Watch out, prints a message and SystemExits on error!
Parse string like 'public:match*' to a tuple (PrivacyClass.PUBLIC, 'match*').
Watch out, prints a message and SystemExits on error!
Parse a given path string to a Path
object.
The path is converted to an absolute path, as required by System.setSourceHref()
. The path does not need to exist.
Watch out, prints a message and SystemExits on error!