pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/3bb85672bb894403a787a9c5afc0ca5987d28fe0

60c69660fa.css" /> closes bpo-42726: gdb libpython: InstanceProxy support for py3 (GH-23… · python/cpython@3bb8567 · GitHub
Skip to content

Commit 3bb8567

Browse files
closes bpo-42726: gdb libpython: InstanceProxy support for py3 (GH-23912)
On Fedora 31 gdb is using python 3.7.9, calling `proxyval` on an instance with a dictionary fails because of the `dict.iteritems` usage. This PR changes the code to be compatible with py2 and py3. This changed seemed small enough to not need an issue and news blurb, if one is required please let me know. Automerge-Triggered-By: GH:benjaminp (cherry picked from commit b57ada9) Co-authored-by: Augusto Hack <hack.augusto@gmail.com>
1 parent a125198 commit 3bb8567

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed Python 3 compatibility issue with gdb/libpython.py handling of attribute
2+
dictionaries.

Tools/gdb/libpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def __init__(self, cl_name, attrdict, address):
468468
def __repr__(self):
469469
if isinstance(self.attrdict, dict):
470470
kwargs = ', '.join(["%s=%r" % (arg, val)
471-
for arg, val in self.attrdict.iteritems()])
471+
for arg, val in self.attrdict.items()])
472472
return '<%s(%s) at remote 0x%x>' % (self.cl_name,
473473
kwargs, self.address)
474474
else:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy