Futurism › class › dAmnPrivs
From Botdom Documentation
The dAmnPrivs class turns a string of dAmn privileges (e.g. thumbs=5 +smilies) into an easily parsable dictionary.
Contents |
Properties
- None
Initialization
__init__(str privstr)
This initializes the built-in dictionary found in the object, which you can read about in the next section, by parsing the inputted string.
Dictionary
When the dAmnPrivs object instance is accessed as a dictionary, it returns a dictionary of the privs which were inputted during the initialization.
privobj = dAmnPrivs("thumbs=5 +smilies") privs = privobj.__dict__ # privs is: {'smilies': True, 'thumbs': 5}

