Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(10)

Delta Between Two Patch Sets: Lib/_collections_abc.py

Issue 26915: Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc
Left Patch Set: Created 3 years, 9 months ago
Right Patch Set: Created 3 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | Lib/test/test_collections.py » ('j') | Lib/test/test_collections.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # Copyright 2007 Google, Inc. All Rights Reserved. 1 # Copyright 2007 Google, Inc. All Rights Reserved.
2 # Licensed to PSF under a Contributor Agreement. 2 # Licensed to PSF under a Contributor Agreement.
3 3
4 """Abstract Base Classes (ABCs) for collections, according to PEP 3119. 4 """Abstract Base Classes (ABCs) for collections, according to PEP 3119.
5 5
6 Unit tests are in test_collections. 6 Unit tests are in test_collections.
7 """ 7 """
8 8
9 from abc import ABCMeta, abstractmethod 9 from abc import ABCMeta, abstractmethod
10 import sys 10 import sys
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 Raise ValueError if the value is not present. 951 Raise ValueError if the value is not present.
952 ''' 952 '''
953 del self[self.index(value)] 953 del self[self.index(value)]
954 954
955 def __iadd__(self, values): 955 def __iadd__(self, values):
956 self.extend(values) 956 self.extend(values)
957 return self 957 return self
958 958
959 MutableSequence.register(list) 959 MutableSequence.register(list)
960 MutableSequence.register(bytearray) # Multiply inheriting, see ByteString 960 MutableSequence.register(bytearray) # Multiply inheriting, see ByteString
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+