Browse Source

#21662: fix typo, improve sentence flow

Patch by Steve Dougherty.
pull/224/head
R David Murray 12 years ago
parent
commit
2c0781853a
  1. 6
      Doc/reference/datamodel.rst

6
Doc/reference/datamodel.rst

@ -2102,9 +2102,9 @@ left undefined.
.. note::
When :meth:`__index__` is defined, :meth:`__int__` should also be defined,
and both shuld return the same value, in order to have a coherent integer
type class.
In order to have a coherent integer type class, when :meth:`__index__` is
defined :meth:`__int__` should also be defined, and both should return
the same value.
.. _context-managers:

Loading…
Cancel
Save