diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-02-09 12:48:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-09 12:48:31 (GMT) |
commit | 3d4a174c0e3ca793d6bc827acbfd1e920c01a8d1 (patch) | |
tree | d641b5e88bdf6de729ee78bc34d49d74c70c322c /Doc/extending | |
parent | fe92c441519d0c4fc93bb98fc1bb4e225dea44c4 (diff) | |
download | cpython-3d4a174c0e3ca793d6bc827acbfd1e920c01a8d1.zip cpython-3d4a174c0e3ca793d6bc827acbfd1e920c01a8d1.tar.gz cpython-3d4a174c0e3ca793d6bc827acbfd1e920c01a8d1.tar.bz2 |
[3.6] Make formatting of some return codes conforming to the general style. (GH-5587). (GH-5598)
(cherry picked from commit 5bb0005f9ff768ac443924b4bb26c3818ce8dc5a)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Doc/extending')
-rw-r--r-- | Doc/extending/newtypes.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst index d28d224..edba57e 100644 --- a/Doc/extending/newtypes.rst +++ b/Doc/extending/newtypes.rst @@ -391,8 +391,8 @@ is used to initialize an object after it's created. Unlike the new method, we can't guarantee that the initializer is called. The initializer isn't called when unpickling objects and it can be overridden. Our initializer accepts arguments to provide initial values for our instance. Initializers always accept -positional and keyword arguments. Initializers should return either 0 on -success or -1 on error. +positional and keyword arguments. Initializers should return either ``0`` on +success or ``-1`` on error. Initializers can be called multiple times. Anyone can call the :meth:`__init__` method on our objects. For this reason, we have to be extra careful when |