[Python-bugs-list] [ python-Bugs-448835 ] Python 2.2a1 Under Idle - Generator
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 07 Aug 2001 10:20:36 -0700
Bugs item #448835, was opened at 2001-08-07 09:52
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=448835&group_id=5470
>Category: Python Library
>Group: Python 2.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Colin J. Williams (cjwhrh)
>Assigned to: Guido van Rossum (gvanrossum)
Summary: Python 2.2a1 Under Idle - Generator
Initial Comment:
The following program, run under Idle, gives the message below:
def fib():
a, b = 0, 1
while 1:
yield b
a, b = b, a+b
>>> Exception in Tkinter callback
Traceback (most recent call last):
File "G:\PYTHON22\lib\lib-tk\Tkinter.py", line 1285, in __call__
return apply(self.func, args)
File "G:\PYTHON22\Tools\idle\ScriptBinding.py", line 64, in check_module_event
if not self.tabnanny(filename):
File "G:\PYTHON22\Tools\idle\ScriptBinding.py", line 72, in tabnanny
tabnanny.reset_globals()
AttributeError: 'module' object has no attribute 'reset_globals'
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-08-07 10:20
Message:
Logged In: YES
user_id=6380
Thanks for reporting this. Turns out IDLE was using some
internal APIs of tabnanny that were changed by a recent
conversion to use the new generator-based tokenizer API.
It's fixed in CVS now!
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=448835&group_id=5470