background preloader

General

Facebook Twitter

This Week in Django. PythonStyleGuide - Launchpad Development. This document describes expected practices when writing Python code. There are occasions when you can break these rules, but be prepared to justify doing so when your code gets reviewed. Existing Conventions There are well-established conventions in the Python community, and in general we should follow these. General Python conventions, and required reading: PEP 8: Style Guide for Python Code PEP 257: Docstring Conventions The Zen of Python: python -c "import this" Note that our standards differ slightly from PEP-8 in some cases.

Coding standards other projects use: Although Launchpad is still written in Python 2, there are several things you can do to improve compatibility with Python 3, making an eventual port easier. Whitespace and Wrapping Code should fit within 78 columns, so as to fit nicely in an 80 column terminal, even when quoted in an email. Multiline braces There are lots of cases where you might have a list, tuple or dictionary literal that spans multiple lines. Naming Docstrings. Tracking change and innovation in the enterprise software development community.

Exclusive updates on: Facilitating the spread of knowledge and innovation in professional software development Login En | 中文 | 日本 | Fr | Br 959,935 Mar unique visitors New York 2014Jun 9 - Jun 13 San Francisco 2014Nov 3 - Nov 7 All topics You are here: InfoQ Homepage Search results for twitter Interview with Raffi Krikorian on Twitter's Infrastructure Jan 19, 2014 ... Real-Time Delivery Architecture at Twitter Oct 23, 2012 ... Twitter Content on InfoQ InfoQ.com is a practitioner-driven community news site focused on facilitating the spread of knowledge and innovation in professional software development. Twitter Open-Sources its MapReduce Streaming Framework ... Jan 16, 2014 ... Forecasting at Twitter Dec 30, 2013 ... Scaling Engineering Culture at Twitter. Running a Python script as a Windows service. Win Services helper. Can I run a Python script as a service (in Windows)? How.