Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8266a5e

Browse filesBrowse files
committed
fixes
1 parent 20f3dac commit 8266a5e
Copy full SHA for 8266a5e

File tree

Expand file treeCollapse file tree

2 files changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-1
lines changed

‎Lib/annotationlib.py

Copy file name to clipboardExpand all lines: Lib/annotationlib.py
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ def __eq__(self, other):
235235
and self.__forward_is_class__ == other.__forward_is_class__
236236
and self.__cell__ == other.__cell__
237237
and self.__owner__ == other.__owner__
238+
and (
239+
(tuple(sorted(self.__extra_names__.items())) if self.__extra_names__ else None) ==
240+
(tuple(sorted(other.__extra_names__.items())) if other.__extra_names__ else None)
241+
)
238242
)
239243

240244
def __hash__(self):
@@ -245,6 +249,7 @@ def __hash__(self):
245249
self.__forward_is_class__,
246250
self.__cell__,
247251
self.__owner__,
252+
tuple(sorted(self.__extra_names__.items())) if self.__extra_names__ else None,
248253
))
249254

250255
def __or__(self, other):

‎Lib/ast.py

Copy file name to clipboardExpand all lines: Lib/ast.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ def iter_fields(node):
276276
Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields``
277277
that is present on *node*.
278278
"""
279-
print(node)
280279
for field in node._fields:
281280
try:
282281
yield field, getattr(node, field)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.