diff options
author | Raymond Hettinger <python@rcn.com> | 2016-08-16 17:55:43 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-08-16 17:55:43 (GMT) |
commit | 6538b430cfa3b076da2f9320bb86aaa3c3c7bcf5 (patch) | |
tree | ab705c5a5f2fd6c4b275b038570ccb85e3d54396 /Lib/collections | |
parent | 3ee933f1c34755bb210e23942d22649a0c38bd23 (diff) | |
download | cpython-6538b430cfa3b076da2f9320bb86aaa3c3c7bcf5.zip cpython-6538b430cfa3b076da2f9320bb86aaa3c3c7bcf5.tar.gz cpython-6538b430cfa3b076da2f9320bb86aaa3c3c7bcf5.tar.bz2 |
Issue #25628: Make namedtuple "rename" and "verbose" parameters keyword-only.
Diffstat (limited to 'Lib/collections')
-rw-r--r-- | Lib/collections/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index b941950..f465e74 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -353,7 +353,7 @@ _field_template = '''\ {name} = _property(_itemgetter({index:d}), doc='Alias for field number {index:d}') ''' -def namedtuple(typename, field_names, verbose=False, rename=False): +def namedtuple(typename, field_names, *, verbose=False, rename=False): """Returns a new subclass of tuple with named fields. >>> Point = namedtuple('Point', ['x', 'y']) |