Mercurial > kallithea
view CONTRIBUTORS @ 3625:260a7a01b054 beta
follow Python conventions for boolean values
True and False might be singletons and the "default" values for "boolean"
expressions, but "all" values in Python has a boolean value and should be
evaluated as such. Checking with 'is True' and 'is False' is thus confusing,
error prone and unnessarily complex.
If we anywhere rely and nullable boolean fields from the database layer and
don't want the null value to be treated as False then we should check
explicitly for null with 'is None'.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 28 Mar 2013 01:10:45 +0100 |
parents | 53e5f01081ac |
children | 3563bb7b4b82 c71e05076359 |
line wrap: on
line source
List of contributors to RhodeCode project: Marcin Kuźmiński <marcin@python-works.com> Lukasz Balcerzak <lukaszbalcerzak@gmail.com> Jason Harris <jason@jasonfharris.com> Thayne Harbaugh <thayne@fusionio.com> cejones <> Thomas Waldmann <tw-public@gmx.de> Lorenzo M. Catucci <lorenzo@sancho.ccd.uniroma2.it> Dmitri Kuznetsov <> Jared Bunting <jared.bunting@peachjean.com> Steve Romanow <slestak989@gmail.com> Augosto Hermann <augusto.herrmann@planejamento.gov.br> Ankit Solanki <ankit.solanki@gmail.com> Liad Shani <liadff@gmail.com> Les Peabody <lpeabody@gmail.com> Jonas Oberschweiber <jonas.oberschweiber@d-velop.de> Matt Zuba <matt.zuba@goodwillaz.org> Aras Pranckevicius <aras@unity3d.com> Tony Bussieres <t.bussieres@gmail.com> Erwin Kroon <e.kroon@smartmetersolutions.nl> nansenat16 <nansenat16@null.tw> Vincent Duvert <vincent@duvert.net> Takumi IINO <trot.thunder@gmail.com> Indra Talip <indra.talip@gmail.com> James Rhodes <jrhodes@redpointsoftware.com.au> Dominik Ruf <dominikruf@gmail.com> xpol <xpolife@gmail.com> Vincent Caron <vcaron@bearstech.com> Zachary Auclair <zach101@gmail.com> Stefan Engel <mail@engel-stefan.de> Andrew Shadura <bugzilla@tut.by> Raoul Thill <raoul.thill@gmail.com> Philip Jameson <philip.j@hostdime.com> Mads Kiilerich <madski@unity3d.com> Dan Sheridan <djs@adelard.com> Dennis Brakhane <brakhane@googlemail.com>