Home Download Buy Blog Forum Support

Python 3.2 is out

Python 3.2 is out

Postby bizoo on Mon Feb 21, 2011 10:33 am

Jon, you previously wrote that You want to migrate to Python 3.2 when the official version get out.
Is this something you expect to handle in the Sublime Text 2 official release ?
bizoo
 
Posts: 880
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Python 3.2 is out

Postby bizoo on Mon Feb 21, 2011 2:31 pm

This version look good and lot of libraries are now available for Python 3.
There are still some popular missing (PIL, Twisted, Django) but IMHO they are not very useful for Sublime Text.

I still use Python 2.6 like you, but with this version I expect slowly moving to Python 3.2 and try to bypass 2.7 in the process (if I don't need to write script for both versions).
bizoo
 
Posts: 880
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Python 3.2 is out

Postby bizoo on Mon Feb 21, 2011 3:33 pm

sublimator wrote:re: Django being useless, I actually used to run CherryPy from within Sublime 1 fairly often LOL

I had it serving up the current file, embedding row/column attributes of each node into the html. Alt-click on nodes in the browser to move the cursor to related source in Sublime. On save it was embedding Javascript in a closure to scroll the browser to the node containing the current selections while putting a thin red border about them.

Of course completely static html gets pretty old quick so you want Genshi Templates and Firebug Integration

Wow !
Never ever thought doing something like that !
I bow respectfully...
bizoo
 
Posts: 880
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Python 3.2 is out

Postby jps on Tue Feb 22, 2011 10:03 pm

I'm going to give 3.2 a few weeks, at least, before I look at moving to it, in case any issues crop up.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Python 3.2 is out

Postby jps on Wed Feb 23, 2011 11:46 am

sublimator wrote:It's not a set in stone move? Still evaluating?


It'll happen, provided unicode module paths are indeed working, and that boost.python is compatible with it.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Python 3.2 is out

Postby jhawk28 on Wed Feb 23, 2011 12:03 pm

jps wrote:It'll happen, provided unicode module paths are indeed working, and that boost.python is compatible with it.


It looks like the SVN boost.python supports Python 3: http://www.boost.org/doc/libs/1_46_0/li ... /news.html
jhawk28
 
Posts: 26
Joined: Sat Jun 13, 2009 2:17 pm

Re: Python 3.2 is out

Postby bizoo on Mon Jul 04, 2011 8:13 am

Jon ,what about moving to Python 3 ?

It look maybe a little late now cos it mean that every plugins written for ST2 Python 2.6 will need an adaptation for Python 3.
2to3 converter make the transition easier but not painless.

On the other hand Python 2.x work great so why change it right now, it could wait Sublime Text 3.

However, upgrading to Python 2.7 mean that you could write (theoretically) plugin compatible with both 2.7 and 3.2 using 2to3 converter, which could be nice.
bizoo
 
Posts: 880
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Next

Return to General Discussion

Who is online

Users browsing this forum: come, Exabot [Bot] and 33 guests