Barry Warsaw
8e4c8019b1
Added a note on compound statements after remarks from David Goodger.
...
Make the code samples agree with this recommendation. ;)
2002-10-17 15:32:18 +00:00
Guido van Rossum
36a82afee6
Add ruling about source code encodings.
2002-10-07 13:40:41 +00:00
Fred Drake
d5b900cf13
Fix a couple of import statements.
2002-06-22 02:14:49 +00:00
Guido van Rossum
6655f152be
Don't use 'strorunicodeobj' as the generic object name. Use just
...
'obj' -- after all, you don't know that it's a string or unicode
object just yet, that's what the test in these examples is for!
2002-06-04 17:02:07 +00:00
Neal Norwitz
22cf1a49f9
Update for all the various ways of checking for a string/unicode object
...
in 2.3, 2.2, 2.1/2.0.
2002-06-04 16:57:44 +00:00
Barry Warsaw
842de4b458
Slight change to the string methods recommendation; we mitigate the
...
recommendation if compatibility with pre-Python 2.0 is necessary.
2002-05-29 16:07:27 +00:00
Guido van Rossum
78c759d636
Two tiny clarifications.
2002-05-24 19:46:20 +00:00
Andrew M. Kuchling
74d28aabb3
Typo fix
2002-05-24 19:42:30 +00:00
Barry Warsaw
a086f6d04f
More additions based on comments from Tim Peters, Neal Norwitz,
...
Gerhard Haring, and Guido van Rossum.
2002-05-24 19:39:47 +00:00
Barry Warsaw
7c91cd266a
Added Tim's names to avoid (with the addition of cap-I which looks
...
like an `l' in some fonts).
2002-05-24 17:07:17 +00:00
Barry Warsaw
d5a7731ccf
Integrated style recommendations from my (Barry's) mimelib/Mailman
...
style guide. Only added recommendations that Guido agrees with. :)
2002-05-24 16:22:16 +00:00
Guido van Rossum
7112960b46
Minor nits. Add strong preference for spaces over tabs.
2002-05-24 15:01:43 +00:00
Barry Warsaw
bd48c56a75
Roger <roger.haase@usa.net> points out that "mixed case" is
...
inconsistently used both to describe mixedCase and MixedCase.
MixedCase should really be CapWords, reserving mixedCase for the
situation where the first letter is lowercased.
Also, add a comment that MixedCase is sometimes called CamelCase.
Note that the existing most common case usage is that CamelCase has an
initial capitalized letter.
http://www.wikipedia.com/wiki/CamelCase
2001-12-21 05:49:26 +00:00
Guido van Rossum
5b12f72b7d
Apply Strunk & White. (Paul Flowerman.)
2001-11-01 13:03:30 +00:00
Barry Warsaw
295e210393
barry@digicool.com => barry@zope.com
2001-08-14 15:45:26 +00:00
Guido van Rossum
8bee56c3bf
Make the section on consistency a separate section, as in the
...
original. Close an unmatched parenthesis at the very end.
2001-07-05 20:38:11 +00:00
Barry Warsaw
e3eaa92bcf
Post it today.
2001-07-05 18:56:34 +00:00
Barry Warsaw
80caa6827f
Guido's famous Python Style Guide essay, converted to PEP format,
...
spellchecked and mildly edited. It's still as incomplete as the
former.
2001-07-05 18:56:12 +00:00