mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
Minor markup fix
This commit is contained in:
parent
9a359210aa
commit
fb3ced663d
1 changed files with 1 additions and 1 deletions
|
|
@ -533,7 +533,7 @@ faster versions that bypass error-checking and localize variable access::
|
||||||
def _replace(self, _map=map, **kwds):
|
def _replace(self, _map=map, **kwds):
|
||||||
return self._make(_map(kwds.pop, ('x', 'y'), self))
|
return self._make(_map(kwds.pop, ('x', 'y'), self))
|
||||||
|
|
||||||
Default values can be implemented by using :meth:`_replace`:: to
|
Default values can be implemented by using :meth:`_replace` to
|
||||||
customize a prototype instance::
|
customize a prototype instance::
|
||||||
|
|
||||||
>>> Account = namedtuple('Account', 'owner balance transaction_count')
|
>>> Account = namedtuple('Account', 'owner balance transaction_count')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue