Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion docs/writing/style.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,16 @@ is a probable indication that such a refactoring is needed.
Idioms
------

Idiomatic Python code is often referred to as being *Pythonic*.
A programming Idiom, put simply, is _a way_ to write code. The notion of programming Idioms
is discussed amply at `c2 <http://c2.com/cgi/wiki?ProgrammingIdiom>` and at `Stack Overflow <http://stackoverflow.com/questions/302459/what-is-a-programming-idiom>`.

Idiomatic Python code is often referred to as being *Pythonic*.

Although there usually is one-- and preferably only one --obvious way to do it;
_the_ way to write idiomatic Python code can be non-obvious to Python beginners. So,
good idioms must be consciously acquired.

Some common Python idioms follow:

.. _unpacking-ref:

Expand Down