I planning to send a series of patches for moving closer to python 3
compatibility as far as it is possible with python 2.x
This first patch changes all 'mydict.has_key(name)' type of checks
with 'name in mydict'.
Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
On Sun, May 15, 2011 at 04:10:04PM +0200, Daniel Fetchinson wrote:
> I planning to send a series of patches for moving closer to python 3
> compatibility as far as it is possible with python 2.x
>
> This first patch changes all 'mydict.has_key(name)' type of checks
> with 'name in mydict'.
Applied and committed in the revision 4387 in the trunk. Thank you!
Oleg.
--
Oleg Broytman http://phdru.name/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
BTW, what backend are you going to use for testing? AFAIU sqlite3 is the
only py3k-compatible driver now. I've added py-postgresql, MySQL
Connector/Python, oursql and pyfirebirdsql to TODO, but not at the very
top.
Oleg.
--
Oleg Broytman http://phdru.name/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
On Mon, May 16, 2011 at 09:15:57PM +0200, Daniel Fetchinson wrote:
> > AFAIU sqlite3 is the only py3k-compatible driver now. I've added py-postgresql, MySQL
> > Connector/Python, oursql and pyfirebirdsql to TODO, but not at the very
> > top.
>
> What about psycopg?
>
> http://initd.org/psycopg/articles/2011/01/24/psycopg2-porting-python-3-report/
I haven't heard the news, thank you for the reference.
Oleg.
--
Oleg Broytman http://phdru.name/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.