class documentation
A list of SSymbol objects that can be used to store a list of elements.
It is used to store a list of symbols, strings, numbers, or other lists.
| Method | __init__ |
Initialization of a SSymbol object or one of its sub-classes. |
| Method | set |
Set the value of a list of elements. |
| Method | to |
Return a string representation of the value. |
| Instance Variable | length |
The length of the symbol. Could be the length of a string, number of items in a list etc. |
| Instance Variable | value |
The actual stored value. This is either one of the the basic data typs, of a SSymbol, list of SSymbol, dictionary, etc. |
Inherited from SSymbol:
| Class Method | symbol |
Create a new SSymbol object from a value. |
| Method | __contains__ |
Check whether an object is contained within the value. |
| Method | __eq__ |
Check whether two SSymbol objects are equal. |
| Method | __getitem__ |
Return an element or a slice from a list, or a character from a string. |
| Method | __gt__ |
Check whether the value is greater than another value. |
| Method | __len__ |
Return the length of the value. |
| Method | __lt__ |
Check whether the value is less than another value. |
| Method | __repr__ |
Nicely printable version of value. |
| Method | __str__ |
Nicely printable version of value. |
| Method | print |
Print the hierarchy in reverse order (parent first) with reversed indentation. |
| Method | raw |
The Python "raw" value. |
| Class Variable | __slots__ |
Slots of class attributes. |
| Instance Variable | parent |
Parent SSymbol object. |
| Instance Variable | type |
SType to indicate the type. |
Initialization of a SSymbol object or one of its sub-classes.
Only one of the arguments must be passed to the function. If no argument is given, then the symbol becomes a NIL object.
| Parameters | |
lst:SSymbolsList | None | Undocumented |
parent:SSymbol | None | Parent SSymbol object. |
| typ | Type of the symbol. |
Return a string representation of the value.
| Parameters | |
quotebool | Quote strings. |
pythonbool | Return a Python list representation. |
| Returns | |
str | A string representation of the value. |
length =
¶
The length of the symbol. Could be the length of a string, number of items in a list etc.