Changes between Version 6 and Version 7 of CodingStandards
- Timestamp:
- 2009-11-21T04:12:53Z (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CodingStandards
v6 v7 19 19 {{{ 20 20 # Copyright (c) 2009 Allmydata, Inc. 21 __copyright__ = "Copyright (c) 2009 Allmydata, Inc." 21 # This file is part of Tahoe-LAFS; see doc/about.html for licensing terms. 22 22 23 23 """ … … 27 27 # import Python Standard Library modules here 28 28 29 from a mdlib.util.assertutil import _assert, precondition, postcondition29 from allmydata.util.assertutil import _assert, precondition, postcondition 30 30 31 31 # import from other libraries, with a blank line between each library … … 33 33 # your code here 34 34 }}} 35 36 * Files should begin with a copyright notice then a docstring about that module.37 35 38 36 === truths and falsehoods === … … 180 178 == official Python standards == 181 179 182 These are listed in decreasing order of priority, so if a point in one of the latter guidelines contradicts a point in one of the earlier ones, then go with the earlier. The Allmydata-specific guidelines above override all else, of course.180 These are listed in decreasing order of priority, so if a point in one of the latter guidelines contradicts a point in one of the earlier ones, then go with the earlier. The Tahoe-LAFS-specific guidelines above override all else, of course. 183 181 184 182 === PEP 290 ===