Essential Python Reading List Here’s my essential Python reading list. I’ve tried to order the items so you can pause or stop reading at any point: at every stage you’ll have learned about as much possible about Python for the effort you’ve put in. The Zen of Python The Zen of Python is so short I can include it here in its entirety. Typing import this in an interpreted session gives a pythonic spin on “Hello, world”. >>> import this The Zen of Python, by Tim Peters Beautiful is better than ugly. If this doesn’t ring true, Python isn’t for you. Python Tutorial Your next stop should be the Python tutorial. start here The latest version (by which I mean the version corresponding to the most recent stable release of Python) can be found on the web at but I recommend you find and bookmark the same page from your local Python installation: it will be available offline, pages will load fractionally quicker, and you’re sure to be reading about the version of Python you’re actually running. What’s New?
How not to write Python code » Ikke’s blog Lately I’ve been reading some rather unclean Python code. Maybe this is mainly because the author(s) of the code had no in-depth knowledge of the Python language itself, the ‘platform’ delivered with cPython,… Here’s a list of some of the mistakes you should really try to avoid when writing Python code: Some days ago RealNitro pointed me at this list of essential Python readings. “Idiomatic Python” is a must-read, even for experienced Python developers. That’s about it for now, maybe I’ll add some more items to this list later on. Posted in Development, Technology. Tagged with Development, python. By Nicolas – February 8, 2008
Python el:Περιεχόμενα - Notes Distutils-SIG Charter The Distutils-SIG exists to discuss the design, implementation, and maintenance of a suite of module distribution utilities for Python. These utilities are grouped in the 'distutils' package in Python. The goal of distutils is to make building, packaging, distributing, and installing Python modules, extensions, and applications painless and standardized. There are also third-party tools built on the top of distutils, that are using the Distutils mailing list as their home. Namely: setuptools zc.buildout If you are packaging a Python package, this SIG is probably a good starting point to ask questions. The goal of Distutils-SIG is also to try to catch the good bits and practices from third-party projects and insert them in Distutils itself to serve the community. What's Available Interested in learning more or trying out the Distutils?
ctypes tutorial Note: The code samples in this tutorial uses doctest to make sure that they actually work. Since some code samples behave differently under Linux, Windows, or Mac OS X, they contain doctest directives in comments. Note: Quite some code samples references the ctypes c_int type. ctypes exports the cdll, and on Windows also windll and oledll objects to load dynamic link libraries. You load libraries by accessing them as attributes of these objects. cdll loads libraries which export functions using the standard cdecl calling convention, while windll libraries call functions using the stdcall calling convention. oledll also uses the stdcall calling convention, and assumes the functions return a Windows HRESULT error code. Here are some examples for Windows, note that msvcrt is the MS standard C library containing most standard C functions, and uses the cdecl calling convention: Windows appends the usual '.dll' file suffix automatically. Functions are accessed as attributes of dll objects:
PLEAC-Python Following the Perl Cookbook (by Tom Christiansen and Nathan Torkington, published by O'Reilly) spirit, the PLEAC Project aims to gather fans of programming, in order to implement the solutions in other programming languages. In this document, you'll find an implementation of the Solutions of the Perl Cookbook in the Python language. The latest version of Python is 2.4 but users of 2.3 and 2.2 (and in some cases earlier versions) can use the code herein. Graphviz Ultimate Python Ebook Collection | Open Hacking Niall O'Higgins, "MongoDB and Python: Patterns and processes for the popular document-oriented database" O'Reilly Media | 2011-09-30 | ISBN: 1449310370 | 68 pages | PDF | 4,5 MB Learn how to leverage MongoDB with your Python applications, using the hands-on recipes in this book. You get complete code samples for tasks such as making fast geo queries for location-based apps, efficiently indexing your user documents for social-graph lookups, and many other scenarios. This guide explains the basics of the document-oriented database and shows you how to set up a Python environment with it. The recipes will help you: Download About the Book In "Starting Out with Python(R), Second Edition" Tony Gaddis' evenly-paced, accessible coverage introduces students to the basics of programming and prepares them to transition into more complicated languages. info Download pdf | 362 pages | 4.4 Mb Sales page: Download pdf | 502 pages | 33.8 Mb
PyCON FR swfk - Snake Wrangling for Kids (Learning to Program with Python) SWFK has been completely rewritten and updated, with new chapters (including developing graphical games), and new code examples. It also includes lots of fun programming puzzles, and illustrations, to help cement the learning. Published by No Starch Press, and available here: Python for Kids @ Amazon.com. Also more info can be found here. "Snake Wrangling for Kids" is a printable electronic book, for children 8 years and older, who would like to learn computer programming. There are 3 different versions of the free book (one for Mac, one for Linux and one for Windows). There are editions in French (see swfk-fr), Spanish (see swfk-es), German (see swfk-de), Bengali (see swfk-bn) and an Italian version in progress (see swfk-it). This version licensed under the Creative Commons: Please note: this is a self-edited manuscript (with help from feedback from the Python community), and as such may not be quite as polished as I would like.
Doug Hellmann