Convert tuples to sets for faster searches (GH-19365)

This commit is contained in:
Raymond Hettinger 2020-04-04 11:03:04 -07:00 committed by GitHub
parent a1d4dbdfc7
commit 1ae6445391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1716,11 +1716,11 @@ def _make_nmtuple(name, types):
# attributes prohibited to set in NamedTuple class syntax # attributes prohibited to set in NamedTuple class syntax
_prohibited = ('__new__', '__init__', '__slots__', '__getnewargs__', _prohibited = {'__new__', '__init__', '__slots__', '__getnewargs__',
'_fields', '_field_defaults', '_field_types', '_fields', '_field_defaults', '_field_types',
'_make', '_replace', '_asdict', '_source') '_make', '_replace', '_asdict', '_source'}
_special = ('__module__', '__name__', '__annotations__') _special = {'__module__', '__name__', '__annotations__'}
class NamedTupleMeta(type): class NamedTupleMeta(type):