[New-bugs-announce] [issue42630] Variable.__init__ raise a RuntimeError instead of obscure AttributeError

Ivo Shipkaliev report at bugs.python.org
Sun Dec 13 18:24:00 EST 2020


New submission from Ivo Shipkaliev <ivo.shipkaliev at gmail.com>:

Hello.

I think it would be nice to add:

335 >             if not master:
336 >                 raise RuntimeError('a valid Tk instance is required.')

to lib/tkinter/__init__.py, and not rely on this unclear AttributeError.

Could it be assigned to me, please?

Best Regards
Ivo Shipkaliev

----------
components: Tkinter
messages: 382944
nosy: shippo_
priority: normal
severity: normal
status: open
title: Variable.__init__ raise a RuntimeError instead of obscure AttributeError
type: behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42630>
_______________________________________


More information about the New-bugs-announce mailing list