Last active
April 24, 2023 20:43
-
-
Save zitterbewegung/fe14c1ec6a2fa61f09315bbdd25de1bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Mapping: | |
def __init__(self, iterable): | |
self.items_list = [] | |
self.__update(iterable) | |
def update(self, iterable): | |
for item in iterable: | |
self.items_list.append(item) | |
__update = update # private copy of original update() method | |
class MappingSubclass(Mapping): | |
def update(self, keys, values): | |
# provides new signature for update() | |
# but does not break __init__() | |
for item in zip(keys, values): | |
self.items_list.append(item) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(: !550 ) idle3.10 | |
2023-04-24 14:24:52.856 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:24:53.243 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.062 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.076 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.168 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.179 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.184 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.195 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.201 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.211 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.217 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.228 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.234 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.244 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.251 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.261 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.267 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.277 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.284 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.294 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.311 Python[69630:507872] +[CATransaction synchronize] called within transaction | |
2023-04-24 14:32:36.330 Python[69630:507872] +[CATransaction synchronize] called within transaction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment