[Idle-dev] Debian idle-python2.2 crashes

paulette mercurius paulette mercurius" <pmercurius@access4less.net
Sat, 2 Aug 2003 03:26:20 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C358A5.D797BE00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

When I do this idle crashes:
>>>import gtk
>>>dir(gtk)
and it crashes, the window disappears from screen

I discover this snippet of code in ObjectBrowser.py:
def IsExpandable(self):
        return not not dir(self.object)
Is return not not proper coding
This may be the problem
How to correct that, if so
Email me at: cahubbard@netzero.net=20

------=_NextPart_000_0005_01C358A5.D797BE00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>When I do this idle =
crashes:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt;&gt;&gt;import gtk</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt;&gt;&gt;dir(gtk)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and it crashes, the window disappears =
from=20
screen</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I discover this snippet of code in=20
ObjectBrowser.py:</FONT></DIV>
<DIV><STRONG><FONT color=3D#a020f0>def</FONT></STRONG> <B><FONT=20
color=3D#0000ff>IsExpandable</FONT></B>(self):<BR>&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
<B><FONT color=3D#a020f0>return</FONT></B> <B><FONT =
color=3D#a020f0>not</FONT></B>=20
<B><FONT color=3D#a020f0>not</FONT></B> dir(self.object)</DIV>
<DIV>Is <STRONG>return not not</STRONG> proper coding</DIV>
<DIV>This may be the problem</DIV>
<DIV>How to correct that, if&nbsp;so</DIV>
<DIV>Email&nbsp;me at: <A=20
href=3D"mailto:cahubbard@netzero.net">cahubbard@netzero.net</A>&nbsp;</DI=
V></BODY></HTML>

------=_NextPart_000_0005_01C358A5.D797BE00--