User Tools

Site Tools


command:python

Table of Contents

python

“python” delimits a block of literal Python code embedded in a PyMOL command script.

Example

python 

for a in range(1,10): 
    b = 10 - a 
    print a, b 

python end 

Notes

Literal Python blocks avoid the annoying requirement of having to use explicit line continuation markers for multi-line Python commands embedded within Python scripts.

See Also

command/python.txt · Last modified: 2013/08/19 21:01 (external edit)