mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Issue #27366: Tweak PEP 487 documentation
* Added versionadded directives * Deleted duplicate sentence from __init_subclass__ docstring * Modernized tests
This commit is contained in:
parent
6074f217db
commit
01d1719062
3 changed files with 30 additions and 26 deletions
|
@ -4341,11 +4341,10 @@ object_init_subclass(PyObject *cls, PyObject *arg)
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(object_init_subclass_doc,
|
||||
"This method is called when a class is subclassed\n"
|
||||
"This method is called when a class is subclassed.\n"
|
||||
"\n"
|
||||
"Whenever a class is subclassed, this method is called. The default\n"
|
||||
"implementation does nothing. It may be overridden to extend\n"
|
||||
"subclasses.\n");
|
||||
"The default implementation does nothing. It may be\n"
|
||||
"overridden to extend subclasses.\n");
|
||||
|
||||
/*
|
||||
from PEP 3101, this code implements:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue