Package gensaschema :: Module _symbols :: Class Symbols
[frames] | no frames]

Class Symbols

source code

object --+
         |
        Symbols

Symbol table
Instance Methods
 
__init__(self, symbols=None, imports=None)
Initialization
source code
 
__delitem__(self, name)
Remove symbol entry if available
source code
 
__setitem__(self, name, symbol)
Set symbol table entry
source code
str
__getitem__(self, name)
Get symbol table entry
source code
str
__contains__(self, name)
Check symbol table entry
source code
iterable
__iter__(self)
Make item iterator
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables
_Imports imports
Import container
_Types types
Type container
Properties

Inherited from object: __class__

Method Details

__init__(self, symbols=None, imports=None)
(Constructor)

source code 
Initialization
Parameters:
  • symbols (dict) - Initial symbols
Overrides: object.__init__

__delitem__(self, name)
(Index deletion operator)

source code 
Remove symbol entry if available

__setitem__(self, name, symbol)
(Index assignment operator)

source code 
Set symbol table entry
Parameters:
  • name (str) - Symbol identifier
  • symbol (str) - Symbol
Raises:

__getitem__(self, name)
(Indexing operator)

source code 
Get symbol table entry
Parameters:
  • name (str) - Symbol identifier
Returns: str
The symbol
Raises:
  • KeyError - Symbol not found

__contains__(self, name)
(In operator)

source code 
Check symbol table entry
Parameters:
  • name (str) - Symbol identifier
Returns: str
The symbol
Raises:
  • KeyError - Symbol not found

__iter__(self)

source code 
Make item iterator
Returns: iterable
The iterator

Instance Variable Details

imports

Import container
Type:
_Imports

types

Type container
Type:
_Types