Re: [SQLObject] porting to python 3

2009-10-18 Thread Oleg Broytman
On Sun, Oct 18, 2009 at 11:14:40AM +0200, Daniel Fetchinson wrote: > I'm using 2to3 from trunk with python 2.6.1 and sqlobject 0.12b2 is > 2to3-able. Lots of files need modification of course but apparently > 2to3 could take care of all of them. I haven't run the test suite > though, but this in it

Re: [SQLObject] porting to python 3

2009-10-18 Thread Daniel Fetchinson
>> Great! Does this mean that 0.12 aims to 2to3-able? > >I don't know, I didn't switch even to 2.7 yet. Please report any > problem. I'm using 2to3 from trunk with python 2.6.1 and sqlobject 0.12b2 is 2to3-able. Lots of files need modification of course but apparently 2to3 could take care of a

Re: [SQLObject] porting to python 3

2009-10-14 Thread Oleg Broytman
On Wed, Oct 14, 2009 at 10:40:39PM +0200, Daniel Fetchinson wrote: > Great! Does this mean that 0.12 aims to 2to3-able? I don't know, I didn't switch even to 2.7 yet. Please report any problem. Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru Progr

Re: [SQLObject] porting to python 3

2009-10-14 Thread Daniel Fetchinson
>> RefactoringTool: ### In file col.py ### >> RefactoringTool: Line 357: could not convert: raise '@@: figure out >> the exception for a delete' >> RefactoringTool: Python 3 does not support string exceptions >> RefactoringTool: Line 978: could not convert: raise "Enum type is not >> supported" >>

Re: [SQLObject] porting to python 3

2009-09-30 Thread Oleg Broytman
On Mon, Jan 26, 2009 at 04:27:47PM -0800, Daniel Fetchinson wrote: > RefactoringTool: ### In file col.py ### > RefactoringTool: Line 357: could not convert: raise '@@: figure out > the exception for a delete' > RefactoringTool: Python 3 does not support string exceptions > RefactoringTool: Line 978

Re: [SQLObject] porting to python 3

2009-01-27 Thread Daniel Fetchinson
>> >> Martin van Loewis ported postgresql to python 3 >> > >> >Which one? There are 3 or 4 DB API drivers for Pg; SO uses psycopg. >> >> Yes, that one, see here: >> >> http://mail.python.org/pipermail/python-porting/2008-December/04.html >> >> So I think it would be absolutely useful to thi

Re: [SQLObject] porting to python 3

2009-01-27 Thread Oleg Broytmann
On Tue, Jan 27, 2009 at 09:18:51AM -0800, Daniel Fetchinson wrote: > >> Martin van Loewis ported postgresql to python 3 > > > >Which one? There are 3 or 4 DB API drivers for Pg; SO uses psycopg. > > Yes, that one, see here: > > http://mail.python.org/pipermail/python-porting/2008-December/000

Re: [SQLObject] porting to python 3

2009-01-27 Thread Daniel Fetchinson
>> Martin van Loewis ported postgresql to python 3 > >Which one? There are 3 or 4 DB API drivers for Pg; SO uses psycopg. Yes, that one, see here: http://mail.python.org/pipermail/python-porting/2008-December/04.html So I think it would be absolutely useful to think about porting SO, the

Re: [SQLObject] porting to python 3

2009-01-27 Thread Oleg Broytmann
On Tue, Jan 27, 2009 at 01:28:18AM -0800, Daniel Fetchinson wrote: > Martin van Loewis ported postgresql to python 3 Which one? There are 3 or 4 DB API drivers for Pg; SO uses psycopg. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers d

Re: [SQLObject] porting to python 3

2009-01-27 Thread Daniel Fetchinson
>> I've started to play with 2to3 and sqlobject 0.10.4. I haven't really >> converted anything yet, just noted that the following 2 issues need to >> be changed before a conversion can be successful (both are trivial): >> >> RefactoringTool: ### In file col.py ### >> RefactoringTool: Line 357: coul

Re: [SQLObject] porting to python 3

2009-01-27 Thread Oleg Broytmann
On Mon, Jan 26, 2009 at 04:27:47PM -0800, Daniel Fetchinson wrote: > I've started to play with 2to3 and sqlobject 0.10.4. I haven't really > converted anything yet, just noted that the following 2 issues need to > be changed before a conversion can be successful (both are trivial): > > Refactoring

[SQLObject] porting to python 3

2009-01-26 Thread Daniel Fetchinson
I've started to play with 2to3 and sqlobject 0.10.4. I haven't really converted anything yet, just noted that the following 2 issues need to be changed before a conversion can be successful (both are trivial): RefactoringTool: ### In file col.py ### RefactoringTool: Line 357: could not convert: ra