![]() ![]() ![]() I've verified this bug is in 2.7.1 and 3.2. ![]() The patch also changes Textpad so that instead of keeping the underlying window's size as instance attributes of this Textpad, Textpad asks the underlying window its size every time Textpad needs to know, allowing the underlying window to be resized at will. Second, when the underlying curses window was resized to be smaller than it was when the Textpad was created, pressing any key would result in infinite recursion (or with the new method, an infinite loop). The patch changes the implementation of _insert_printable_char() to be iterative, thus avoiding the infinite recursion. $LINES * $COLUMNS) > 1000 (the default max recursion limit), press any key and be greeted by a stack trace. Run that script in a terminal with area (i.e. Thus, any Textpad which had an area greater than the interpreter's maximum recursion limit would crash. First, the previous implementation of _insert_printable_char() used recursion to move characters when inserting a character. The attached patch fixes two bugs which manifest as infinite recursion in _insert_printable_char() of Textbox. Python 3.7, Python 3.6, Python 3.5, Python 2.7īerker.peksag, brian.curtin, python-dev, rxcomm, serhiy.storchaka, tycho, vstinnerĬreated on 00:47 by tycho, last changed 16:36 by dstufft. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |