Fixed a couple of small tyops.
This commit is contained in:
parent
b7714412f7
commit
1bd889d78c
|
@ -459,7 +459,7 @@ Naming Conventions
|
|||
|
||||
- __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 @@ Naming Conventions
|
|||
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 @@ Programming Recommendations
|
|||
- Don't compare boolean values to True or False using ==
|
||||
|
||||
Yes: if greeting:
|
||||
|
||||
No: if greeting == True:
|
||||
|
||||
Worse: if greeting is True:
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue