- __builtin__
- Scope, local, global, builtin
| Some Statements on Modules
- __builtins__
- The toplevel name space,
- __dict__
- Some Statements on Modules
- __doc__
- Special global variables
- __file__
- Special global variables
- __name__
- Special global variables
| Some Statements on Modules
- ADC
- Attributes, ADC, DAC
- argparse
- argparse
- argv
- Command line arguments
- array
- Lists
- atexit
- atexit
- breakLoop
- Break an outer loop
- builtin
- Scope, local, global, builtin
- capture shell output
- getoutput(), capturing shell command
- cbreak
- Single keystrokes, non-blocking
- class variables
- Class variables
- classes
- Classes
- classmethod
- The @classmethod decorator
- closure
- lambda (closure)
| Functor (closure)
- cmp
- Sorting
- control statements
- Control Statements
- copy files
- shutil, copy files
- cProfile
- cProfile
- Ctrl-C Handler
- Ctrl-C Handling
- DAC
- Attributes, ADC, DAC
- date
- localtime(), date and time
| strftime(), formatted date-time string
- datetime
- datetime (also rfc2822)
- decorator
- The @property decorator
| Decorator
- Details
- Details
- dictionary
- Dictionaries
- dir()
- hasattr() vs. dir() vs.
| Some Statements on Modules
- doty
- doty to datetime
- environment variables
- os.environ
| os.getcwd()
| os.getenv()
- events
- Events, motor position
- examples
- Examples
- except
- Exceptions
- exceptions
- Exceptions
- exit handler
- atexit
- exitfunc()
- exitfunc
- factory
- Factory
- file
- latest
- glob, find latest file
- file latest
- glob, find latest file
- files
- Input/Output
- copy
- shutil, copy files
- formatting strings
- Formatting
- from-import
- Importing modules
- function
- access()
- os.access()
- atoi()
- atoi()
- callable()
- callable()
- chdir()
- os.chdir()
- chmod()
- os.chmod()
- chr()
- chr(), ord()
- commands.getoutput()
- getoutput(), capturing shell command
- delattr()
- delattr(), getattr(), setattr()
- dir()
- dir()
- eval()
- eval()
- exec()
- exec()
- exitfunc()
- exitfunc
- filter()
- map, filter
- find()
- find()
- float()
- int(), float(), str()
- getattr()
- delattr(), getattr(), setattr()
- gethostname()
- gethostname()
- globals()
- globals() (example from 00-start.py)
- hasattr()
- hasattr()
- id()
- id()
- int()
- int(), float(), str()
| int(), round()
- issubclass
- issubclass()
- iter()
- iter()
- lambda
- lambda (closure)
- locals()
- locals()
- localtime()
- localtime(), date and time
- lower()
- lower(), upper()
- lstrip
- strip(), strip(), lstrip()
- map()
- map, filter
| map()
- ord()
- chr(), ord()
- os.environ()
- os.environ
- os.getcwd()
- os.getcwd()
- os.getenv()
- os.getenv()
- os.getpid()
- os.getpid()
- os.isatty()
- os.isatty()
- os.isdir()
- os.path.isdir()
- os.isfile()
- os.path.isfile()
- os.kill()
- os.kill()
- os.listdir()
- os.listdir() (all files in
- os.mkdir()
- os.mkdir()
- os.path.abspath()
- os.path.abspath(), current files directory
- os.path.dirname()
- os.path.basename()
| os.path.dirname()
- os.path.exists()
- os.path.exists()
- os.path.getmtime()
- os.path.getmtime()
- os.path.getsize()
- os.path.getsize()
- os.path.isExecutable()
- os.path.isExecutable()
- os.popen()
- os.popen(), capturing shell command
| os.popen(), ps ax, MacroServer/haspp09
| os.popen(), with time-out
- os.remove()
- os.remove(), os.rmdir()
- os.rename()
- os.rename() (mv)
- os.rmdir()
- os.remove(), os.rmdir()
- os.system()
- os.system(), execute a shell
| os.system(), calling ping
- os.walk()
- os.walk(), traverse dirs and
- partition()
- partition, rpartition()
- range()
- range()
- replace()
- replace()
- round()
- int(), round()
- rpartition()
- partition, rpartition()
- rstrip
- strip(), strip(), lstrip()
- setattr()
- delattr(), getattr(), setattr()
- sleep
- sleep(), usleep()
- socket.gethostbyaddr()
- gethostbyaddr()
- sort()
- sort(), sorted()
- sorted()
- sort(), sorted()
- split
- split(), join()
- str()
- int(), float(), str()
- strip
- strip(), strip(), lstrip()
- sys._getframe()
- getframe(), traceback
- sys.argv()
- argv
- sys.stdin.readlind()
- stdin.readline()
- type()
- type(), isinstance()
- upper()
- lower(), upper()
- Functions
- Functions
- functor
- Functor (closure)
- gap
- Reading the gap, Tango7
- get_attribute_list
- list comprehension
- get_attribute_list()
- hasattr() vs. dir() vs.
- glob
- glob, sorting file names
- latest file
- glob, find latest file
- globals()
- Scope, local, global, builtin
| Some Statements on Modules
- hasattr()
- hasattr() vs. dir() vs.
- High-level Python Interface
- High-level Python Interface: multi
- hostname
- getoutput(), capturing shell command
| gethostname()
- identity
- id()
- if
- If
- import
- Importing modules
- circular
- Circular imports
- inkey
- Single keystrokes, non-blocking
- Input register
- Attributes, I/O Register, SIS3610
- ipython
- IPython
- command history
- Command history
- TAB-completion
- TAB-Completion
- isatty()
- os.isatty()
- keyPressEvent
- Handle KeyPress events
- latest file
- glob, find latest file
- list
- Lists
- locals()
- Scope, local, global, builtin
- loops
- Loops
- map
- hasattr() vs. dir() vs.
| list comprehension
- MCA_8701
- Spectrum, MCA_8701
- module
- PrettyPrint
- pprint
- random
- random, seed(), setstate(), getstate()
- mouseReleaseEvent
- Handle KeyPress events
- Multi-class server
- High-level Python Interface: multi
- None
- If
| Truth
- NoneType
- type(), isinstance()
- numpy
- ellipsis
- ndarray, ellipsis [...]
- slicing
- ndarray, basic slicing
| ndarray, select rows and
- numpy.ndarray
- ndarray, basic slicing
| ndarray, select rows and
- objects
- Classes
- operators
- Operators
- bit-manipulation
- Operators
- expression
- Operators
- Output register
- Attributes, I/O Register, SIS3610
- parameter
- passing
- Functions
- ping
- os.system(), calling ping
- print
- Print
- print-function
- list comprehension
- property
- The property function
| The @property decorator
- prtc
- Press <return> to continue
- PYTHONPATH
- path (PYTHONPATH)
- QListWidget
- Handle KeyPress events
- QtGui.qApp.processEvents()
- Taurus application, process events
- raise
- Exceptions
- regular expressions
- Regular expressions
- scope
- Scope, local, global, builtin
- sets
- Sets
- shlex
- shlex, split preserving quoted
- shorthands
- Command Shorthands
- signal
- signal
- signal.alrm
- Catching a time-out
- singleton
- Singleton
| Singleton, QApp
- SIS3610
- Attributes, I/O Register, SIS3610
- socket
- Socket I/O, Client/Server (Mirror)
| Socket I/O, Spectra
- sort
- Sorting
| glob, sorting file names
- sort()
- sort(), sorted()
- sorted()
- sort(), sorted()
- startup script
- Miscellaneous
- startup scripts
- Configuration
- staticmethod
- The @staticmethod decorator
- store
- Command Shorthands
- strategy
- Strategy
- string
- Strings
- format
- Print
- subclass
- issubclass()
- swig
- swig
- sys.argv
- Command line arguments
- sys.path
- path (PYTHONPATH)
- sys.version
- Python version, version_info
- sys.version_info
- Python version, version_info
- Tango
- Attributes
- Attributes, ADC, DAC
| Commands and attributes, VFCADC
| Attributes, I/O Register, SIS3610
| Spectrum, MCA_8701
- Commands
- Commands and attributes, VFCADC
| Attributes, I/O Register, SIS3610
| Spectrum, MCA_8701
- Taurus
- changeDefaultPollingPeriod
- Taurus application, process events
- TaurusApplication
- Taurus application, process events
- template
- Template
- thread
- xRot, yRot rotated coordinates
- threads
- threads
- time
- localtime(), date and time
| strftime(), formatted date-time string
- time-out
- os.popen(), with time-out
| Catching a time-out
- traceback
- getframe(), traceback
| Traceback Information
- print_tb()
- traceback.print_tb
- truth
- Truth
- try
- Exceptions
- tuples
- Tuples
- unpack
- Argument passing
- VcExecutor
- VcExecutors
- VFCADC
- Commands and attributes, VFCADC
- Virtual
- counter
- VcExecutors
- motor
- VmExecutors
- VmExecutor
- VmExecutors
- vmstat
- zip (parsing vmstat output)
- walk
- os.walk(), traverse dirs and
- while
- Loops
- yesno
- yesno()
- yield
- yield
| Iteration
- zeromq
- zeromq
- zip
- zip (parsing vmstat output)