Message265096
The news part of the patch did not apply -- best not to include such in posted patches.
After recompiliing 3.5 on Windows 10, the two tkinter test cases give the 3.3 TypeErrors instead of crashing. test_tcl also runs. curses does not run on Windows.
I do not know enough internals to really understand #15721 or why you call the fix a workaround, but I do understand 'exception' (OK) versus 'crash' (forbidden). Unless you think restoring the previous situation (tp_new = NUll) can cause a worse problem, I would apply this soon, within a week, so not forgotten before the June update releases. The tcl test addition is correct. The fix can be improved later if you think of something better.
I initially wondered why _tkinter has classes that cannot be instantiated (from Python). Then I discovered that this is normal, and that the exception is standard.
>>> type(iter([]))()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: cannot create 'list_iterator' instances
Is list_iterator.tp_new NULL? Or does it raise instead of crash by other means? |
|
Date |
User |
Action |
Args |
2016-05-07 22:42:11 | terry.reedy | set | recipients:
+ terry.reedy, loewis, amaury.forgeotdarc, pitrou, ned.deily, asvetlov, serhiy.storchaka, Robin.Schreiber |
2016-05-07 22:42:11 | terry.reedy | set | messageid: <1462660931.02.0.0988095201973.issue23815@psf.upfronthosting.co.za> |
2016-05-07 22:42:11 | terry.reedy | link | issue23815 messages |
2016-05-07 22:42:10 | terry.reedy | create | |
|