Next: Importing SIC objects
Up: Using SIC from Python
Previous: The gdict container
Contents
Index
The Sic object in Python __main__
This object is obsolescent.
Whatever is the way you launched SIC and Python through the Pygildas features, an
object named Sic will be created at initialization time in the Python __main__.
It is used for these purposes:
- It stores (as attributes) aliases of commands documented at subsection
2.3.2. If user called Python from SIC, he can only access
them from the Sic object. If user called Gildas from Python (e.g. by
importing pysic or pygreg), he can either call these commands
with the pysic/pygreg or Sic prefix. Calling Sic()
switches to the SIC prompt.
- It stores as an attribute the array of 10 instances named localspaces and
used to save local variables (see subsection 2.5).
- It stores a logical flag named warnings which activate/deactivate
warnings (printed when importing a variable failed for example). It is set to
True by default, but user can switch it to False.
Next: Importing SIC objects
Up: Using SIC from Python
Previous: The gdict container
Contents
Index
Gildas manager
2014-07-01