Changeset 232
- Timestamp:
- 07/20/2010 05:45:09 PM (12 years ago)
- Location:
- SHX/trunk/src/SeismicHandler
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
SHX/trunk/src/SeismicHandler/core/parser.py
r231 r232 423 423 ... 424 424 Exception: Symbol BAR not found! 425 426 If one wants to delete a global symbol but keep the local symbol: 427 >>> s.setGlobal("bar", "global") 428 >>> s.bar 429 'global' 430 >>> s.bar = "local" 431 >>> s.deleteGlobal("bar") 432 >>> s.bar 433 'local' 425 434 """ 426 435 … … 472 481 self.__dict__["__globals"][name] = value 473 482 483 def deleteGlobal(self, name): 484 name = name.upper() 485 486 del self.__dict__["__globals"][name] 487 474 488 if __name__ == "__main__": 475 489 import doctest -
SHX/trunk/src/SeismicHandler/tests/data/SCRIPT1.SHC
r231 r232 1 ! 2 ! This file contains commands that are only used from Seismic Handler 3 ! scripts. They are tested against the parser. No error should occur. 4 ! 5 1 6 switch echo on 2 !switch capconv off 7 switch echo off 8 switch capconv off 3 9 sdef foo 3 10 switch capconv on 4 11 sdel foo 5 12 echo test /NO_LF
Note: See TracChangeset
for help on using the changeset viewer.