[Bug 597763] Re: IDLE: raises Exception TclError in a special case

Bug Watch Updater 597763 at bugs.launchpad.net
Wed Jan 4 20:59:49 UTC 2012


** Changed in: python
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.1 in Ubuntu.
https://bugs.launchpad.net/bugs/597763

Title:
  IDLE: raises Exception TclError in a special case

Status in Python:
  Confirmed
Status in “python3.1” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: python3.1

  To reproduce the bug, use the following class:

  class x(object):
  	TEST = "hello"
  	THE_MAXIMUM = 55
  	
  	def __init__(self, a, b):
  		self.a = 3
  		self.b = "test"

  and set the cursor behind "test". After that use SHIFT + UP (so from 3
  to incl. "test" will be marked) and after that use SHIFT + POS1, which
  will produce this exception:

  >>> Exception in Tkinter callback
  Traceback (most recent call last):
    File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__
      return self.func(*args)
    File "/usr/lib/python2.6/idlelib/MultiCall.py", line 151, in handler
      r = l[i](event)
    File "/usr/lib/python2.6/idlelib/EditorWindow.py", line 335, in home_callback
      if self.text.compare(first,">",last):
    File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 2863, in compare
      self._w, 'compare', index1, op, index2))
  TclError: expected boolean value but got ""

  This will appear in all latest Python IDLEs (2.6.4, 3.1.1+). In my
  opinion this bug will not only appear in this case but rather in
  different ones. I attached a screenshot.

To manage notifications about this bug go to:
https://bugs.launchpad.net/python/+bug/597763/+subscriptions




More information about the foundations-bugs mailing list