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

Delta Between Two Patch Sets: Lib/_collections_abc.py

Issue 25958: Implicit ABCs have no means of "anti-registration"
Left Patch Set: Created 3 years, 6 months ago
Right Patch Set: Created 3 years, 6 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 | « Doc/reference/datamodel.rst ('k') | Lib/test/test_augassign.py » ('j') | no next file with change/comment »
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 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 Raise ValueError if the value is not present. 930 Raise ValueError if the value is not present.
931 ''' 931 '''
932 del self[self.index(value)] 932 del self[self.index(value)]
933 933
934 def __iadd__(self, values): 934 def __iadd__(self, values):
935 self.extend(values) 935 self.extend(values)
936 return self 936 return self
937 937
938 MutableSequence.register(list) 938 MutableSequence.register(list)
939 MutableSequence.register(bytearray) # Multiply inheriting, see ByteString 939 MutableSequence.register(bytearray) # Multiply inheriting, see ByteString
LEFTRIGHT

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