background preloader

Python 2.6 Quick Reference

Python 2.6 Quick Reference
Style chooser: Modern, Modern B&W, Modern Colored, Classic, High contrast or Printing [Hint: Use styles Modern B&W or Printing to print. If you get problems, try printing the PDF versions instead] Contents Front matter Version 2.6 (What's new?) Creative Commons License. Last updated on July 31, 2010. Feb 10, 2009 upgraded by Richard Gruet and Josh Stone for Python 2.6 Dec 14, 2006 upgraded by Richard Gruet for Python 2.5 Feb 17, 2005, upgraded by Richard Gruet for Python 2.4 Oct 3, 2003 upgraded by Richard Gruet for Python 2.3 May 11, 2003, rev 4 upgraded by Richard Gruet for Python 2.2 (restyled by Andrei) Aug 7, 2001 upgraded by Simon Brunning for Python 2.1 May 16, 2001 upgraded by Richard Gruet and Simon Brunning for Python 2.0 Jun 18, 2000 upgraded by Richard Gruet for Python 1.5.2 Oct 20, 1995 created by Chris Hoffmann for Python 1.3 Color coding: Features added in 2.6 since 2.5 Features added in 2.5 since 2.4 Features added in 2.4 since 2.3 A link Invocation Options python[w] [-BdEhimOQsStuUvVWxX3?] Related:  python

Python Table of Contents Hey there, it appears your Javascript is disabled. That's fine, the site works without it. However, you might prefer reading it with syntax highlighting, which requires Javascript! Introduction Starting Out Starting Out (for real) Modules Syntax in Functions Types (or lack thereof) Recursion Higher Order Functions Errors and Exceptions Functionally Solving Problems A Short Visit to Common Data Structures The Hitchhiker's Guide to Concurrency More On Multiprocessing Errors and Processes Designing a Concurrent Application What is OTP? Clients and Servers Rage Against The Finite-State Machines Event Handlers Who Supervises The Supervisors? Building an Application With OTP Building OTP Applications The Count of Applications Release is the Word Leveling Up in The Process Quest Buckets Of Sockets EUnited Nations Council Bears, ETS, Beets Distribunomicon Distributed OTP Applications Common Test for Uncommon Tests Mnesia And The Art of Remembering Type Specifications and Erlang Conclusion Postscript: Maps

About Python · A Byte of Python Story behind the name Features of Python Simple Easy to Learn Free and Open Source High-level Language Portable Interpreted Object Oriented Extensible Embeddable Extensive Libraries Summary Python 3 versus 2 What Programmers Say Eric S. Python Mind, Beginner’s Mind The practice of Zen mind is beginner’s mind. The innocence of the first inquiry“what am I?”is needed throughout Zen practice. The mind of the beginner is empty, free of the habits of the expert, ready to accept, to doubt, and open to all the possibilities. It is the kind of mind which can see things as they are, which step by step and in a flash can realize the original nature of everything. This practice of Zen mind is found throughout the book. —Richard Baker, Introduction to Zen Mind, Beginner’s Mind Welcome to the Web site for Teach Yourself Python in 24 Hours. From the Introduction: This book’s primary aim is to teach you how to program. Click on the chapter icons below to visit the web page for each hour, where you will find links to other pages mentioned in the text, and where you can download zip archive files containing all you need to run the example programs in that chapter. A note on the background image. Visitors to this page: Main web site:

jQuery 1.4 iPhone reference app - O! Mr Speaker! Thursday, January 14, 2010 [English got you down? Try this post in Belorussian!] Welcome to the year twenty hundred and ten! As a very early christmas present, the jQuery team have announced they'll be dropping the 1.4 release on us in the next couple of days. To help you get your head around the reams of new information, I've created a neat-o reference app for your iPhone - so now you've got no excuse not to know what jQuery.noop, .nextUntil(), or .unwrap() does! To install it, go here on your iPhone then click "+" and "Add to Home Screen" for fullscreen app-y goodness.Please note! The application uses the jQuery touch plugin to appear all native-y, and the offline abilities of HTML5 to store the data for when you feel like reading jQuery docs on the bus. I'm sure that at the moment some methods that will be missing or incomplete - because of my dodgy parsing, changing docs, and poor QA skills... fixed in the next version fo' sure ;)

Syllabus | Introduction to Computer Science and Programming Introduction to Python - Iceweasel Introduction Python is an excellent, cross-platform, object-oriented interpreted language. Besides ease of use, its main characteristic is that it enforces indentation (don't indent, and the program won't run.) As of Septembre 2004, there are weaknesses to be aware of if you intend to use Python to write GUI apps for Windows, though: Python is originally a command-line, text-mode scripting language, so requires some add-on to build GUI apps. Setup At least three distributions of Python are currently available for the Windows platform (PythonWare used to be yet another package, but it's been deprecated): the version from Python.org, which requires your downloading the Win32all extension yourself ActivePython, which includes the Win32all extension, and an IDE (Note: Looks like their license restricts redistributions...) the Enthought edition (don't know how active it is) If you only need a basic distribution, try out Tiny Python. Compiling Pyco Psyco setuptools easy_install --upgrade MyPackage Pyrex

CouchDB: The Definitive Guide s Python Class  |  Python Education  |  Google Developers Welcome to Google's Python Class -- this is a free class for people with a little bit of programming experience who want to learn Python. The class includes written materials, lecture videos, and lots of code exercises to practice Python coding. These materials are used within Google to introduce Python to people who have just a little programming experience. The first exercises work on basic Python concepts like strings and lists, building up to the later exercises which are full programs dealing with text files, processes, and http connections. The class is geared for people who have a little bit of programming experience in some language, enough to know what a "variable" or "if statement" is. To get started, the Python sections are linked at the left -- Python Set Up to get Python installed on your machine, Python Introduction for an introduction to the language, and then Python Strings starts the coding material, leading to the first exercise.

A Guide to Python's Magic Methods « rafekettler.com Rafe Kettler Copyright © 2012 Rafe Kettler Version 1.17 A PDF version of this guide can be obtained from my site or Github. The magic methods guide has a git repository at Table of Contents Introduction This guide is the culmination of a few months' worth of blog posts. What are magic methods? So, to fix what I perceived as a flaw in Python's documentation, I set out to provide some more plain-English, example-driven documentation for Python's magic methods. I hope you enjoy it. Construction and Initialization Everyone knows the most basic magic method, __init__. __new__(cls, [...) __new__ is the first method to get called in an object's instantiation. __init__(self, [...) The initializer for the class. __del__(self) If __new__ and __init__ formed the constructor of the object, __del__ is the destructor. Putting it all together, here's an example of __init__ and __del__ in action: Making Operators Work on Custom Classes Comparison magic methods

JavaScript Reference - MDC This part of the JavaScript section on MDN serves as a repository of facts about the JavaScript language. Read more about this reference. Global objects This chapter documents all the JavaScript standard built-in objects, along with their methods and properties. Statements This chapter documents all the JavaScript statements and declarations. For an alphabetical listing see the sidebar on the left. Control flow Block A block statement is used to group zero or more statements. break Terminates the current loop, switch, or label statement and transfers program control to the statement following the terminated statement. continue Terminates execution of the statements in the current iteration of the current or labeled loop, and continues execution of the loop with the next iteration. Empty An empty statement is used to provide no statement, although the JavaScript syntax would expect one. if...else Executes a statement if a specified condition is true. switch throw Throws a user-defined exception. var let in

Related: