[wingide-users] Autocomplete doesn't recognize file()Wing IDE Support support at wingide.com
18 Feb 2003 10:59:55 -0500
Thank you for the bug report. We have confirmed the problem and are working on a patch for Wing v. 1.1.8. The patch should be available in the next few days. Thanks again, John On Sun, 2003-02-16 at 08:34, Rene Pijlman wrote: > Hello, >=20 > When typing the following code, autocomplete doesn't work on f. : >=20 > f =3D file(r"D:\x.txt","w") > assert isinstance(f,file) > f. >=20 > However, it works fine when file() is replaced by open(): >=20 > f =3D open(r"D:\x.txt","w") > assert isinstance(f,file) > f. >=20 > In fact, in the second case it works fine even without the assert > isinstance(). >=20 > It appears there are 2 bugs in this case: >=20 > 1) file() isn't recognized like open(), even though the Python manual mor= e > or less recommends the use of file() ("The file() constructor is new in > Python 2.2. The previous spelling, open(), is retained for compatibility, > and is an alias for file()." > http://www.python.org/dev/doc/devel/lib/built-in-funcs.html). >=20 > 2) The isinstance() as recommended by the WingIDE manual doesn't seem to > work in this case. >=20 > Is there anything I can do to make autocomplete work on objects produced = by > file()? Can this be fixed in WingIDE? >=20 > I'm evaluating WingIDE 1.1.7 with Python 2.2.2 (python.org distribution) = on > Windows 2000 Professional. >=20 > Regards, > Ren=E9 Pijlman >=20 > _________________________________________________ > Wing IDE discussion list > http://wingide.com/support/forum
Run by Mailman v 2.0.8
Copyright (c) 2000-2002, Archaeopteryx Software, Inc.