Two very small fixes.
This commit is contained in:
parent
84b55c245c
commit
e8514b11c0
|
@ -771,7 +771,7 @@ Of course, there will be some carrots to encourage users to derive
|
|||
from the appropriate base classes; these vary from default
|
||||
implementations for certain functionality to an improved ability to
|
||||
distinguish between mappings and sequences. But there are no sticks.
|
||||
If ``hasattr(x, __len__)`` works for you, great! ABCs are intended to
|
||||
If ``hasattr(x, "__len__")`` works for you, great! ABCs are intended to
|
||||
solve problems that don't have a good solution at all in Python 2,
|
||||
such as distinguishing between mappings and sequences.
|
||||
|
||||
|
|
|
@ -553,7 +553,7 @@ References
|
|||
Acknowledgements
|
||||
================
|
||||
|
||||
Thanks to Neil Norwitz for encouraging me to write this PEP in the
|
||||
Thanks to Neal Norwitz for encouraging me to write this PEP in the
|
||||
first place, to Travis Oliphant for pointing out that the numpy people
|
||||
didn't really care about the algebraic concepts, to Alan Isaac for
|
||||
reminding me that Scheme had already done this, and to Guido van
|
||||
|
|
Loading…
Reference in New Issue