Skip to content

Conversation

@hackaugusto
Copy link
Contributor

@hackaugusto hackaugusto commented Dec 23, 2020

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.

https://bugs.python.org/issue42726

Automerge-Triggered-By: GH:benjaminp

Copy link
Member

@Fidget-Spinner Fidget-Spinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM other than one minor nit. Thanks!

I can't speak for the core devs, but my hunch is that we may need an issue and news entry :). Usually bugfixes get news entries, and the issue can help ping core devs interested in such issues.

@hackaugusto hackaugusto changed the title gdb libpython: InstanceProxy support for py3 bpo42726: gdb libpython: InstanceProxy support for py3 Dec 23, 2020
@hackaugusto hackaugusto changed the title bpo42726: gdb libpython: InstanceProxy support for py3 bpo-42726: gdb libpython: InstanceProxy support for py3 Dec 23, 2020
@hackaugusto hackaugusto force-pushed the gdb/libpython-instanceproxy-support-for-py3 branch from 557efd0 to d9c02f8 Compare December 23, 2020 18:42
@hackaugusto
Copy link
Contributor Author

I can't speak for the core devs, but my hunch is that we may need an issue and news entry :). Usually bugfixes get news entries, and the issue can help ping core devs interested in such issues.

Created issue and added news entry

@hackaugusto hackaugusto force-pushed the gdb/libpython-instanceproxy-support-for-py3 branch from d9c02f8 to 0e31076 Compare December 24, 2020 16:52
@benjaminp benjaminp changed the title bpo-42726: gdb libpython: InstanceProxy support for py3 closes bpo-42726: gdb libpython: InstanceProxy support for py3 Dec 24, 2020
@miss-islington
Copy link
Contributor

@hackaugusto: Status check is done, and it's a failure ❌ .

@miss-islington
Copy link
Contributor

@hackaugusto: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit b57ada9 into python:master Dec 24, 2020
@miss-islington
Copy link
Contributor

Thanks @hackaugusto for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 24, 2020
…nGH-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 <[email protected]>
@bedevere-bot
Copy link

GH-23924 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 24, 2020
…nGH-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 <[email protected]>
@bedevere-bot
Copy link

GH-23925 is a backport of this pull request to the 3.8 branch.

miss-islington added a commit that referenced this pull request Dec 24, 2020
)

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 <[email protected]>
miss-islington added a commit that referenced this pull request Dec 24, 2020
)

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 <[email protected]>
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
…nGH-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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants