Wednesday, July 22, 2009

Python Baiscs

In this post we will be learning about some of the basics of python language.

1 How to create .pyc
a. In order to create compiled python code, you need to run this in directory of your python source code.
python -mcompileall .


b. In your python interpreter, execute the following commands
>>> import py_compile
>>> py_compile.compile('test.py')

No comments:

Post a Comment

Followers