FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-86690: Add `retval [variable]` option to pdb by romuald · Pull Request #23601 · python/cpython · GitHub

/ cpython Public

gh-86690: Add retval [variable] option to pdb - #23601

Closed
romuald wants to merge 1 commit into
python:mainfrom
romuald:pdb-retval-store
Closed

gh-86690: Add retval [variable] option to pdb#23601
romuald wants to merge 1 commit into
python:mainfrom
romuald:pdb-retval-store

Conversation

romuald commented Dec 1, 2020
edited by serhiy-storchaka
Loading

Copy link
Copy Markdown
Contributor

Add optional argument to pdb retval command, to allow accessing the
current value being returned in the stack.

For example, given the following code:

def get_thing():
    debugger()
    return Thing(value=123)
(pdb) retval
<Thing instance at 0x1234>
(pdb) retval xx
(pdb) xx.value
123

https://bugs.python.org/issue42524

Add optional argument to pdb `retval` command, to allow accessing the
current value being returned in the stack.

For example, given the following code:

```python
def get_thing():
    debugger()
    return Thing(value=123)
```

```
(pdb) retval
<Thing instance at 0x1234>
(pdb) retval xx
(pdb) xx.value
123
```

github-actions Bot commented Jan 1, 2021

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

github-actions Bot added the stale Stale PR or inactive for long period of time. label Jan 1, 2021
github-actions Bot removed the stale Stale PR or inactive for long period of time. label Aug 1, 2022
romuald mannequin mentioned this pull request Apr 10, 2022

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 8, 2026
github-actions Bot removed the stale Stale PR or inactive for long period of time. label Aug 11, 2026
serhiy-storchaka changed the title bpo-42524: Add retval [variable] option to pdb gh-86690: Add retval [variable] option to pdb Aug 12, 2026
This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL