Category:Python: Difference between revisions
update
(Changed dead link to grammar specification.) |
(update) |
||
(10 intermediate revisions by 6 users not shown) | |||
Line 1:
{{language
|exec=interpreted
|site=
|strength=strong
|safety=safe
|express=implicit
|checking=dynamic
|parampass=object reference
|gc=yes
|LCT=yes
|bnf=
It is easy to create clean bug-free programs in Python due to the motto: "Errors should never pass silently." Python is an [[wp:Interpreter (computing)|interpreter]]. Python source files (.py files) are typically compiled to an intermediate [[bytecode]] language (.pyc files) and executed by a Python Virtual Machine.
===Notes===
Because Python uses whitespace for structure, do not format long code examples with leading whitespace, instead use <code><nowiki><pre></pre></nowiki></code> tags, or, preferably, <code><nowiki><syntaxhighlight lang
if True:
Some Python examples may deviate from idiomatic Python because they may be written to work in Python 3.X as well as Python 2.X environments. This includes doing things like:
Line 29 ⟶ 30:
==See Also==
* [[wp:python_(programming_language)|Wikipedia: Python]]
==Todo==
[[Tasks_not_implemented_in_Python]]
|