diff options
author | Raymond Hettinger <python@rcn.com> | 2016-08-26 04:11:50 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-08-26 04:11:50 (GMT) |
commit | 7ea386e56e76deb2ceeb87c0ac4b346e24cd82e1 (patch) | |
tree | 3fb6addb93c15d15b06bc8ba7dfc37a91e560b9c /Doc/reference | |
parent | 39e9af6bb3fdd0dd59292b5a014d398956f0b7cd (diff) | |
download | cpython-7ea386e56e76deb2ceeb87c0ac4b346e24cd82e1.zip cpython-7ea386e56e76deb2ceeb87c0ac4b346e24cd82e1.tar.gz cpython-7ea386e56e76deb2ceeb87c0ac4b346e24cd82e1.tar.bz2 |
Issue 19504: Change "customise" to "customize" American spelling.
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/datamodel.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index f97eb08..6894c7c 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1117,7 +1117,7 @@ Basic customization instance; for example: ``BaseClass.__init__(self, [args...])``. Because :meth:`__new__` and :meth:`__init__` work together in constructing - objects (:meth:`__new__` to create it, and :meth:`__init__` to customise it), + objects (:meth:`__new__` to create it, and :meth:`__init__` to customize it), no non-``None`` value may be returned by :meth:`__init__`; doing so will cause a :exc:`TypeError` to be raised at runtime. @@ -1637,7 +1637,7 @@ By default, classes are constructed using :func:`type`. The class body is executed in a new namespace and the class name is bound locally to the result of ``type(name, bases, namespace)``. -The class creation process can be customised by passing the ``metaclass`` +The class creation process can be customized by passing the ``metaclass`` keyword argument in the class definition line, or by inheriting from an existing class that included such an argument. In the following example, both ``MyClass`` and ``MySubclass`` are instances of ``Meta``:: |