Fix-up indentation of sample code blocks for namedtuple mthod definitions.
This commit is contained in:
parent
afd112baef
commit
2950bca89c
|
@ -740,9 +740,7 @@ field names, the method and attribute names start with an underscore.
|
|||
.. method:: somenamedtuple._replace(kwargs)
|
||||
|
||||
Return a new instance of the named tuple replacing specified fields with new
|
||||
values:
|
||||
|
||||
::
|
||||
values::
|
||||
|
||||
>>> p = Point(x=11, y=22)
|
||||
>>> p._replace(x=33)
|
||||
|
|
Loading…
Reference in New Issue