This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author blueyed
Recipients blueyed
Date 2020-02-16.13:41:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It does:
        if '__args__' in frame.f_locals:
            args = frame.f_locals['__args__']
            args = None
        if args:
            s += reprlib.repr(args)
            s += '()'

However that appears to be wrong/unnecessary since the following likely, but
maybe also others:

    commit 75bb54c3d8
    Author: Guido van Rossum <>
    Date:   Mon Sep 28 15:33:38 1998 +0000

        Don't set a local variable named __args__; this feature no longer
        works and Greg Ward just reported a problem it caused...

    diff --git a/Lib/ b/Lib/
    index 3ca25adbbf..f2cf4caa36 100644
    --- a/Lib/
    +++ b/Lib/
    @@ -46,7 +46,7 @@ def dispatch_line(self, frame):
                    return self.trace_dispatch

            def dispatch_call(self, frame, arg):
    -               frame.f_locals['__args__'] = arg
    +               # XXX 'arg' is no longer used
                    if self.botframe is None:
                            # First call of dispatch since reset()
                            self.botframe = frame

Code ref:

So it should either get removed, or likely be replaced with actually displaying
the args.

For this the part could be factored out of `do_args` maybe, adjusting it for
handling non-current frames.

Of course somebody might inject/set `__args__` still (I've thought about doing that initially for pdb++, but will rather re-implement/override `format_stack_entry` instead), so support for this could be kept additionally.
Date User Action Args
2020-02-16 13:41:44blueyedsetrecipients: + blueyed
2020-02-16 13:41:44blueyedsetmessageid: <>
2020-02-16 13:41:44blueyedlinkissue39649 messages
2020-02-16 13:41:44blueyedcreate