[wingide-users] Python 3.0

Humberto Diogenes adm.humberto at digi.com.br
Wed Apr 23 23:35:56 MDT 2008

On 24/04/2008, at 02:26, Humberto Diogenes wrote:

> Hi!
>  Is there any way to run python3.0 projects inside Wing? I tried it  
> in Wing 3.1.0b2 but got syntax errors on wingdb.py -- obvious things  
> like print instead of print().
>  Then, just for kicks, I tried running 2to3 in wingdb.py but, as  
> expected, it didn't work very well... :)

   Well, even if it didn't work, the 2to3 tool helped me find a small  
error inside wingdb:

--- wingdb.py (original)
+++ wingdb.py (mine)
@@ -497,7 +497,7 @@
            file = open(logfile, "a")
            opened_file = 1
-        except IOError, OSError:
+        except (IOError, OSError):
            file = sys.stderr

        # Write log/exception info if we have a log file

Humberto Diógenes
Diginet Brasil

More information about the wingide-users mailing list