background preloader

Computers

Facebook Twitter

Code Like a Pythonista: Idiomatic Python. In this interactive tutorial, we'll cover many essential Python idioms and techniques in depth, adding immediately useful tools to your belt.

Code Like a Pythonista: Idiomatic Python

There are 3 versions of this presentation: ©2006-2008, licensed under a Creative Commons Attribution/Share-Alike (BY-SA) license. My credentials: I am a resident of Montreal,father of two great kids, husband of one special woman,a full-time Python programmer,author of the Docutils project and reStructuredText,an editor of the Python Enhancement Proposals (or PEPs),an organizer of PyCon 2007, and chair of PyCon 2008,a member of the Python Software Foundation,a Director of the Foundation for the past year, and its Secretary. In the tutorial I presented at PyCon 2006 (called Text & Data Processing), I was surprised at the reaction to some techniques I used that I had thought were common knowledge. 2.3.6.2 String Formatting Operations. 2.3.6.2 String Formatting Operations String and Unicode objects have one unique built-in operation: the % operator (modulo).

2.3.6.2 String Formatting Operations

This is also known as the string formatting or interpolation operator. Given % (where is a string or Unicode object), % conversion specifications in are replaced with zero or more elements of . Dive Into Python.

Web Design

Graphics.