ParamSpecString

class ParamSpecString(*args, **kwargs)

Superclasses: ParamSpec

A ParamSpec derived structure that contains the meta data for string properties.

Fields

class ParamSpecString
cset_first

A string containing the allowed values for the first byte

cset_nth

A string containing the allowed values for the subsequent bytes

default_value

Default value for the property specified

ensure_non_null

Replace None strings by an empty string

null_fold_if_empty

Replace empty string by None

parent_instance

Private ParamSpec portion

substitutor

The replacement byte for bytes which don’t match cset_first or cset_nth.