Python → Python tip
Instead of:
if one == None or two == None or three == None:
pass
use
if None in (one, two, three):
pass
or
if any([x == None for x in one, two, three]):
pass
python tip | July 31, 2011, 2:58 a.m.
Django → Django nonrelational batch support
I have implemented custom backend for Django, that let you use batch operations with Django and Google App Engine. You should be aware that API is not stable yet and I did not get official approval from django-nonrel team yet (although there is some progress).
batch-operations django django-nonrel | April 5, 2011, 10:19 a.m.
Links → Links for Jan. 9, 2011
-
Weekly links about django
DjangoWeekly is a free newsletter, keeping you you up-to-date with what’s happening in Django.
-
New App Engine Datastore API
Guido Van Rossum presents new asynchronous App Engine Datastore API, which is based on Python generators and "trampoline" framework.
-
Class Based Views and Dry Ravioli
Django ...
django google-app-engine python | Jan. 9, 2011, 11:25 a.m.
Links → Links for Nov. 11, 2010
-
Google Python Style Guide
This style guide contains many details that are initially hidden from view. They are marked by the triangle icon, which you see here on your left. Click it now. You should see "Hooray" appear below.
-
A Globals Class pattern for Python
A series of articles: A ...
python | Nov. 11, 2010, 7:50 a.m.
Links → Links for Nov. 2, 2010
-
Python Module of the Week
PyMOTW is a series of blog posts written by Doug Hellmann. It was started as a way to build the habit of writing something on a regular basis. The focus of the series is building a set of example code for the modules in the ...
google-app-engine python | Nov. 2, 2010, 7:05 a.m.
Links → Links for Oct. 27, 2010
-
Django on Google App Engine via SQL (not nonrel)
There are good chances that Django 1.3 will be fully supported on Google App Engine.
-
Bleach, HTML sanitizer and auto-linker
Bleach is a whitelist-based HTML sanitizer and auto-linker in Python, built on html5lib, for AMO and SUMO and released under ...
django google-app-engine mysql python | Oct. 27, 2010, 2:31 p.m.
Links → Links for Oct. 21, 2010
-
Building Python extension with mingw and cygwin for Windows
Building Python extension with mingw and cygwin for Windows.
-
Monty Hall Problem
Monty Hall Problem coded in Python. So easy to be coded and so hard to be understood on intuitive level...
-
CSS: px vs em vs % vs pt
When using ...
dev etc python unicode | Oct. 21, 2010, 4:21 p.m.
Django → Split django settings
Related links:
Some points
-
I don't see any sense "to move sensitive or machine/user specific settings like database passwords and such out of the main
settings.pyfile". What's the point to share incomplete ...