[wingide-users] Autocomplete doesn't recognize file()Wing IDE Support support at wingide.com
Wed, 19 Feb 2003 06:59:16 -0500 (EST)
FYI, this problem has been fixed in our sources and will be addressed in the next minor release of Wing (coming fairly soon). Thanks, - Stephan ------------------------------ On Sun, 16 Feb 2003, 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 >=20
Run by Mailman v 2.0.8
Copyright (c) 2000-2002, Archaeopteryx Software, Inc.