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 lyndon.darcy
Recipients docs@python, lyndon.darcy, serhiy.storchaka
Date 2021-08-27.10:09:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAHEpg_5+Yrqdu+jYBqJQ2FTMGpQJ=41ykmzHy42wy+uMJJtDMw@mail.gmail.com>
In-reply-to <1630057115.49.0.489925511502.issue45029@roundup.psfhosted.org>
Content
Apologies, my original post was unclear.

The help(app.quit) which I posted is what we should get when the method
isn't clobbered.

What Serhiy has posted is what you get after running the example as-is.  It
shows that after running the example self.quit refers to a button object
instead of the quit method.

On Fri, 27 Aug 2021 at 7:38 pm, Serhiy Storchaka <report@bugs.python.org>
wrote:

>
> Serhiy Storchaka <storchaka+cpython@gmail.com> added the comment:
>
> I get different result:
>
> >>> app.quit
> <tkinter.Button object .!application.!button2>
> >>> help(app.quit)
> Help on Button in module tkinter object:
>
> class Button(Widget)
>  |  Button(master=None, cnf={}, **kw)
>  |
>  |  Button widget.
>  |
> ...
>
> ----------
> nosy: +serhiy.storchaka
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue45029>
> _______________________________________
>
History
Date User Action Args
2021-08-27 10:09:19lyndon.darcysetrecipients: + lyndon.darcy, docs@python, serhiy.storchaka
2021-08-27 10:09:19lyndon.darcylinkissue45029 messages
2021-08-27 10:09:19lyndon.darcycreate