Category:Python: Difference between revisions
Content added Content deleted
(Note about indentation) |
No edit summary |
||
Line 5: | Line 5: | ||
Python source files (.py files) are typically compiled to an intermediate bytecode language (.pyc files) and executed by a Python Virtual Machine. |
Python source files (.py files) are typically compiled to an intermediate bytecode language (.pyc files) and executed by a Python Virtual Machine. |
||
Note: because Python use whitespace for structure, do not format long code example with leading whitespace, but use <pre></pre> tags. This will make it easier to copy tested code into the wiki, and copying code out of the wiki. Example: |
Note: because Python use whitespace for structure, do not format long code example with leading whitespace, but use <nowiki><pre></pre></nowiki> tags. This will make it easier to copy tested code into the wiki, and copying code out of the wiki. Example: |
||
<pre> |
<pre> |
||
print 'this line must not have leading indentation!' |
print 'this line must not have leading indentation!' |