Two very small fixes.

This commit is contained in:
Georg Brandl 2007-09-04 08:21:25 +00:00
parent 84b55c245c
commit e8514b11c0
2 changed files with 2 additions and 2 deletions

View File

@ -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 from the appropriate base classes; these vary from default
implementations for certain functionality to an improved ability to implementations for certain functionality to an improved ability to
distinguish between mappings and sequences. But there are no sticks. 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, solve problems that don't have a good solution at all in Python 2,
such as distinguishing between mappings and sequences. such as distinguishing between mappings and sequences.

View File

@ -553,7 +553,7 @@ References
Acknowledgements 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 first place, to Travis Oliphant for pointing out that the numpy people
didn't really care about the algebraic concepts, to Alan Isaac for didn't really care about the algebraic concepts, to Alan Isaac for
reminding me that Scheme had already done this, and to Guido van reminding me that Scheme had already done this, and to Guido van