[Python-checkins] commit of r41689 - peps/trunk/pep-0008.txt

barry.warsaw python-checkins at python.org
Wed Dec 14 23:54:57 CET 2005


Author: barry.warsaw
Date: Wed Dec 14 23:54:57 2005
New Revision: 41689
Modified:
 peps/trunk/pep-0008.txt
Log:
Fixed a couple of small tyops.
Modified: peps/trunk/pep-0008.txt
==============================================================================
--- peps/trunk/pep-0008.txt	(original)
+++ peps/trunk/pep-0008.txt	Wed Dec 14 23:54:57 2005
@@ -459,7 +459,7 @@
 
 - __double_leading_and_trailing_underscore__: "magic" objects or
 attributes that live in user-controlled namespaces. E.g. __init__,
- __import__ or __file__. Never invent such names; only use then
+ __import__ or __file__. Never invent such names; only use them
 as documented.
 
 Prescriptive: Naming Conventions
@@ -487,7 +487,7 @@
 module that provides a higher level (e.g. more object oriented)
 interface, the C/C++ module has a leading underscore (e.g. _socket).
 
- Like module, Python packages should have short, all-lowercase names,
+ Like modules, Python packages should have short, all-lowercase names,
 without underscores.
 
 Class Names
@@ -727,7 +727,9 @@
 - Don't compare boolean values to True or False using ==
 
 Yes: if greeting:
+
 No: if greeting == True:
+
 Worse: if greeting is True:
 
 
@@ -746,7 +748,7 @@
 
 [6] PEP 20, The Zen of Python
 
- [7] PEP 328, Imports: Multi-Line and Absolute/Relative 
+ [7] PEP 328, Imports: Multi-Line and Absolute/Relative
 
 
 Copyright


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /