Strange error in IDLE
Shagshag
shagshag13 at yahoo.fr
Fri May 17 06:41:48 EDT 2002
Well i do that :
----
Python 2.2.1 (#34, Apr 9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>> def get_openingTag(node):
"""
"""
global SPECIALS_CHARS
#if node.nodeType == node.ELEMENT_NODE:
tmp = node.toxml()
tmp = remove_chars(tmp, SPECIALS_CHARS)
opening_tag = tmp[:tmp.index('>')] + '>'
return opening_tag
----
then press return type "get_openingTag("
and then it do that before i go further :
----
>>> Exception in Tkinter callback
Traceback (most recent call last):
File "D:\Python22\lib\lib-tk\Tkinter.py", line 1292, in __call__
return apply(self.func, args)
File "D:\PYTHON22\Tools\idle\CallTips.py", line 51, in paren_open_event
arg_text = get_arg_text(self.get_object_at_cursor())
File "D:\PYTHON22\Tools\idle\CallTips.py", line 148, in get_arg_text
while doc[:1] in " \t\n":
TypeError: 'in <string>' requires character as left operand
----
think there is a bug, no ???
More information about the Python-list
mailing list