Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 42 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Vinay Sajip  
View profile  
 More options Dec 2 2011, 10:55 am
From: Vinay Sajip <vinay_sa...@yahoo.co.uk>
Date: Fri, 2 Dec 2011 07:55:51 -0800 (PST)
Local: Fri, Dec 2 2011 10:55 am
Subject: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase
The Python 3 port now has all tests passing on 2.7.2 and 3.2.2 with
the same codebase:

Python 2.7.2
=========

Ran 4475 tests in 373.875s

OK (skipped=90, expected failures=3)

Python 3.2.2
=========

Ran 4420 tests in 364.044s

OK (skipped=97, expected failures=2, unexpected successes=1)

This incorporates the very latest changes in Django SVN trunk
(r17165).

Regards,

Vinay Sajip


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jannis Leidel  
View profile  
 More options Dec 2 2011, 12:59 pm
From: Jannis Leidel <lei...@gmail.com>
Date: Fri, 2 Dec 2011 09:59:58 -0800 (PST)
Local: Fri, Dec 2 2011 12:59 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase
Incredible, thanks!

On Dec 2, 4:55 pm, Vinay Sajip <vinay_sa...@yahoo.co.uk> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jacob Kaplan-Moss  
View profile  
 More options Dec 2 2011, 1:03 pm
From: Jacob Kaplan-Moss <ja...@jacobian.org>
Date: Fri, 2 Dec 2011 12:03:29 -0600
Local: Fri, Dec 2 2011 1:03 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

On Fri, Dec 2, 2011 at 9:55 AM, Vinay Sajip <vinay_sa...@yahoo.co.uk> wrote:
> The Python 3 port now has all tests passing on 2.7.2 and 3.2.2 with
> the same codebase:

WOOOO!

This is really fantastic news - I can't thank you enough for pushing
this. I've just started scratching the surface and don't have any
specific feedback yet, but I want to make sure you know how
appreciative I am.

I'll try to spend the weekend writing/porting an app or two. If I can,
I'll let you know how it goes.

Jacob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Håkon Erichsen  
View profile  
 More options Dec 2 2011, 1:11 pm
From: Håkon Erichsen <hakon.erich...@gmail.com>
Date: Fri, 2 Dec 2011 19:11:06 +0100
Local: Fri, Dec 2 2011 1:11 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

2011/12/2 Vinay Sajip <vinay_sa...@yahoo.co.uk>

> The Python 3 port now has all tests passing on 2.7.2 and 3.2.2 with
> the same codebase:

Wohoo! Can't wait to try py3 with Django! :)

Regards,
Håkon Erichsen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe & Anne Tennies  
View profile  
 More options Dec 2 2011, 1:34 pm
From: "Joe & Anne Tennies" <tenn...@gmail.com>
Date: Fri, 2 Dec 2011 12:34:27 -0600
Local: Fri, Dec 2 2011 1:34 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

So, last time I saw, you had only run against sqlite. Do you need help
testing it against postgres, MySQL, and oracle (perhaps some unofficial
ones)? What about all the caching backends? Do we need tests Python 3
equivalent tests for the ones that were skipped due to being Python 2-isms?
What about some sort of "porting guide" or other needed documentation?

Basically, what's left, besides getting it merged into the official trunk
that people can help you with?

2011/12/2 Håkon Erichsen <hakon.erich...@gmail.com>

--
Joe & Anne Tennies
tenn...@gmail.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tomek Paczkowski  
View profile  
 More options Dec 2 2011, 2:32 pm
From: Tomek Paczkowski <to...@hauru.eu>
Date: Fri, 2 Dec 2011 11:32:15 -0800 (PST)
Local: Fri, Dec 2 2011 2:32 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

Most important: where to send all those beer pints?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ricardo Bįnffy  
View profile  
 More options Dec 2 2011, 2:55 pm
From: Ricardo Bįnffy <rban...@gmail.com>
Date: Fri, 2 Dec 2011 11:55:42 -0800 (PST)
Local: Fri, Dec 2 2011 2:55 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

Great news! \o/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Timothy.Broder  
View profile  
 More options Dec 2 2011, 3:46 pm
From: "Timothy.Broder" <timothy.bro...@gmail.com>
Date: Fri, 2 Dec 2011 12:46:35 -0800 (PST)
Local: Fri, Dec 2 2011 3:46 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

awesome guys. big kudos


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Kelly  
View profile  
 More options Dec 2 2011, 4:29 pm
From: Ian Kelly <ian.g.ke...@gmail.com>
Date: Fri, 2 Dec 2011 14:29:15 -0700
Local: Fri, Dec 2 2011 4:29 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase
On Fri, Dec 2, 2011 at 11:34 AM, Joe & Anne Tennies <tenn...@gmail.com> wrote:

> So, last time I saw, you had only run against sqlite. Do you need help
> testing it against postgres, MySQL, and oracle (perhaps some unofficial
> ones)? What about all the caching backends? Do we need tests Python 3
> equivalent tests for the ones that were skipped due to being Python 2-isms?
> What about some sort of "porting guide" or other needed documentation?

> Basically, what's left, besides getting it merged into the official trunk
> that people can help you with?

I'm already planning to go through the Oracle tests this weekend to
get them ready for 1.4, so I'll run this through as well and let you
know how it goes.  Right now I expect failures even in 2.7.

Cheers,
Ian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vinay Sajip  
View profile  
 More options Dec 2 2011, 8:17 pm
From: Vinay Sajip <vinay_sa...@yahoo.co.uk>
Date: Fri, 2 Dec 2011 17:17:48 -0800 (PST)
Local: Fri, Dec 2 2011 8:17 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase
On Dec 2, 6:03 pm, Jacob Kaplan-Moss <ja...@jacobian.org> wrote:

> I'll try to spend the weekend writing/porting an app or two. If I can,
> I'll let you know how it goes.

That would be very useful feedback, thanks.

Regards,

Vinay Sajip


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vinay Sajip  
View profile  
 More options Dec 2 2011, 8:23 pm
From: Vinay Sajip <vinay_sa...@yahoo.co.uk>
Date: Fri, 2 Dec 2011 17:23:11 -0800 (PST)
Local: Fri, Dec 2 2011 8:23 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase
On Dec 2, 6:34 pm, "Joe & Anne Tennies" <tenn...@gmail.com> wrote:

> So, last time I saw, you had only run against sqlite. Do you need help
> testing it against postgres, MySQL, and oracle (perhaps some unofficial
> ones)? What about all the caching backends? Do we need tests Python 3
> equivalent tests for the ones that were skipped due to being Python 2-isms?
> What about some sort of "porting guide" or other needed documentation?

> Basically, what's left, besides getting it merged into the official trunk
> that people can help you with?

Yes, you can help with one or all of the above items. As far as I
know, the additional tests that are skipped are because of
dependencies on PIL and setuptools (neither of which I have installed
to run with Python 3: and there are some PIL ports for Python3, plus
one can use distribute in place of setuptools. This is the area I am
working on currently - working in a virtualenv with distribute and a
PIL port installed.

You can certainly try helping with a PostgreSQL backend, I believe py-
postgresql can be used as a PostgreSQL driver under Python 3. Ian
Kelly mentioned on this thread that he'll be looking at the Oracle
backend.

Regards,

Vinay Sajip


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vinay Sajip  
View profile  
 More options Dec 2 2011, 8:27 pm
From: Vinay Sajip <vinay_sa...@yahoo.co.uk>
Date: Fri, 2 Dec 2011 17:27:33 -0800 (PST)
Local: Fri, Dec 2 2011 8:27 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

On Dec 2, 7:32 pm, Tomek Paczkowski <to...@hauru.eu> wrote:

> Most important: where to send all those beer pints?

Heh. I do drink beer, but my liver would probably prefer it if someone
were to send me something from my Amazon wishlist, which is on

http://www.amazon.co.uk/registry/wishlist/2CJGJ3I4HEIK5

But don't all rush at once ;-)

Regards,

Vinay Sajip


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vinay Sajip  
View profile  
 More options Dec 2 2011, 8:29 pm
From: Vinay Sajip <vinay_sa...@yahoo.co.uk>
Date: Fri, 2 Dec 2011 17:29:21 -0800 (PST)
Local: Fri, Dec 2 2011 8:29 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase
On Dec 2, 9:29 pm, Ian Kelly <ian.g.ke...@gmail.com> wrote:

> I'm already planning to go through the Oracle tests this weekend to
> get them ready for 1.4, so I'll run this through as well and let you
> know how it goes.  Right now I expect failures even in 2.7.

Great, I look forward to the feedback. I can't do any testing at the
moment with an Oracle backend, unfortunately - but I can certainly
look at test failures under 3.x which succeed under 2.x to try and
eyeball fixes to problems.

Regards,

Vinay Sajip


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
adamrights  
View profile  
 More options Dec 2 2011, 8:41 pm
From: adamrights <adamrig...@gmail.com>
Date: Fri, 2 Dec 2011 17:41:38 -0800 (PST)
Local: Fri, Dec 2 2011 8:41 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

If I get a little time this weekend I'll try this with a postgre backend.
Awesome that this is being done and the Django looks to be more active.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karen Tracey  
View profile  
 More options Dec 3 2011, 3:50 pm
From: Karen Tracey <kmtra...@gmail.com>
Date: Sat, 3 Dec 2011 15:50:32 -0500
Local: Sat, Dec 3 2011 3:50 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

On Fri, Dec 2, 2011 at 10:55 AM, Vinay Sajip <vinay_sa...@yahoo.co.uk>wrote:

> The Python 3 port now has all tests passing on 2.7.2 and 3.2.2 with
> the same codebase:

What about Pythons 2.5 and 2.6?

Karen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luke Plant  
View profile  
 More options Dec 3 2011, 4:18 pm
From: Luke Plant <L.Plant...@cantab.net>
Date: Sat, 03 Dec 2011 21:18:29 +0000
Local: Sat, Dec 3 2011 4:18 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

To follow up some discussion on reddit, the subject of exceptions was
brought up. The Python 2.X/3.X compatible way to do exceptions requires:

  e = sys.exc_info()[1]

...if you need the actual exception object. As discussed on reddit, this
is slow on PyPy.

I did some checks in the py3k patch of all the cases where we actually
do this because we need the exception object. I found the following:

= Cases where slowness probably doesn't matter too much =

== Developer errors ==

 - template syntax errors and other errors

 - incorrect configuration e.g. import errors due to incorrect dotted
   to path to some component

These are generally only observed during development, not production.

== Tests ==

 - running tests - many instances at different levels of code - in
   unittest and in tests themselves.

It would be nice if test suite ran fast, but not so important.

== Runtime 'exceptional' cases ==

 - file handling errors e.g. file already exists, permission errors.
   (These are likely 'rare' cases or misconfiguration, but conceivably
   they could be common).

 - general view exception handling.

   If any exception happens in a view, (including Http404), we pass it
   to the exception handling middleware. This also applies to
   decorators created from middleware. (So, this might not be such an
   'exceptional' case).

 - crashers of various kinds, especially in management commands
   e.g. can't serialize data in dumpdata command

 - invalid HTTP requests

 - some DB operational/integrity errors (the exception object is needed
   to map between the different types of errors that should be raised)

   - most of these were already calling sys.exc_info()

= Cases where slowness probably does matter =

 - signals - errors are caught and appended to 'responses'. Signals
   can be used for all kinds of things.

 - wrapping DoesNotExist in IndexError in queryset slicing

   - we could potentially change this behaviour - do we really
     need to capture the underlying exception arguments and
     pass to IndexError?

 - Validation error handling - the validators in django.core.validators
   for URLs and email validation use an actual exception object.

 - model validation and form validation - use exceptions to pass info
   around.

 - errors that happen in templates but are silenced. (we check the
   actual exception object to see if we should silence them). Since
   they are silent, there could be any number of these going on in an
   app.

 - MultiJoin in query generation code - don't know how often this
   is thrown and caught. We could conceivably change the way this works,
   it is internal.

 - Resolver404 errors - very common, since it is part of the URL
   resolving mechanism. This is a documented API, so we can't change it.

I also found a couple of places where we can avoid creating the
exception object if `settings.DEBUG = False` - untested patch attached.

Regards,

Luke

--
The fashion wears out more apparel than the man.
            -- William Shakespeare

Luke Plant || http://lukeplant.me.uk/

  faster_404_exception_handling.diff
1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vinay Sajip  
View profile  
 More options Dec 3 2011, 4:55 pm
From: Vinay Sajip <vinay_sa...@yahoo.co.uk>
Date: Sat, 3 Dec 2011 13:55:42 -0800 (PST)
Local: Sat, Dec 3 2011 4:55 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase
On Dec 3, 8:50 pm, Karen Tracey <kmtra...@gmail.com> wrote:

> On Fri, Dec 2, 2011 at 10:55 AM, Vinay Sajip <vinay_sa...@yahoo.co.uk>wrote:

> > The Python 3 port now has all tests passing on 2.7.2 and 3.2.2 with
> > the same codebase:

> What about Pythons 2.5 and 2.6?

I've done nothing intentionally that prevents the port from working on
2.6 and 2.7 - it's just that my test machine happens to be a recent
Ubuntu variant that doesn't have them installed.

Regards,

Vinay Sajip


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vinay Sajip  
View profile  
 More options Dec 3 2011, 5:30 pm
From: Vinay Sajip <vinay_sa...@yahoo.co.uk>
Date: Sat, 3 Dec 2011 14:30:21 -0800 (PST)
Local: Sat, Dec 3 2011 5:30 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

On Dec 3, 8:50 pm, Karen Tracey <kmtra...@gmail.com> wrote:

> What about Pythons 2.5 and 2.6?

I did a bit more checking, and a bit more work will be required on 2.5
and 2.6: for example, on 2.5, parse_qsl needs to come from elsewhere,
and on 2.6, unittest.skipIf needs to come from somewhere else. So some
changes need to be made to django/utils/py3.py to accommodate this -
it shouldn't be too much work, hopefully :-)

Regards,

Vinay Sajip


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vinay Sajip  
View profile  
 More options Dec 3 2011, 6:41 pm
From: Vinay Sajip <vinay_sa...@yahoo.co.uk>
Date: Sat, 3 Dec 2011 15:41:34 -0800 (PST)
Local: Sat, Dec 3 2011 6:41 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase
On Dec 3, 8:50 pm, Karen Tracey <kmtra...@gmail.com> wrote:

> What about Pythons 2.5 and 2.6?

Okay, I've now done some more testing, and with some minor changes, I
can report that good results were obtained on Pythons 2.5.4 and 2.6.2.
The remaining failures are representational ones - u'foo' vs. 'foo'
and order of dictionary keys in doctest output. Summaries follow.

Python 2.5.4
==========

Ran 4490 tests in 481.852s

FAILED (failures=1, skipped=91, expected failures=3)

Python 2.6.2
==========

Ran 4490 tests in 449.179s

OK (skipped=89, expected failures=3)

Regards,

Vinay Sajip


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vinay Sajip  
View profile  
 More options Dec 4 2011, 7:24 am
From: Vinay Sajip <vinay_sa...@yahoo.co.uk>
Date: Sun, 4 Dec 2011 04:24:33 -0800 (PST)
Local: Sun, Dec 4 2011 7:24 am
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

On Dec 3, 9:18 pm, Luke Plant <L.Plant...@cantab.net> wrote:

> I did some checks in the py3k patch of all the cases where we actually
> do this because we need the exception object. I found the following:

Thanks for the analysis and suggested patch.  I've implemented this
patch in my branch, and the tests are running now on 2.5.4, 2.6.2,
2.7.2 and 3.2.2 :-)

Regards,

Vinay Sajip


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Kelly  
View profile  
 More options Dec 6 2011, 10:26 pm
From: Ian Kelly <ian.g.ke...@gmail.com>
Date: Tue, 6 Dec 2011 20:26:00 -0700
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase
I've just finished going through the oracle tests and sent you a pull
request that fixes a few issues:

* compiler.py still had a map(None) call, that I replaced with izip_longest.
* cx_Oracle doesn't seem to want to accept bools as bind parameters
with Python 3; these had to be converted to ints.
* we were calling iterator.next() in one place instead of next(iterator)
* a couple of tests (one of which is specifically an Oracle test)
needed minor updates

The biggest change was just adding izip_longest to utils.py3 and
utils.itercompat.

With these changes, I'm not seeing any failures with oracle that I'm
not also seeing with sqlite3.  I am seeing a bunch of failures,
though.

FAILED (failures=17, errors=24, skipped=97, expected failures=2,
unexpected successes=1)

Most of the failures are coming from the timezones tests.

Also, one rather obnoxious failure that I encountered was the
file_uploads.FileUploadTests.test_large_upload test, which doesn't
actually fail but just hangs indefinitely.  I had to skip the test in
order to run the full suite.

Cheers,
Ian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Clelland  
View profile  
 More options Dec 6 2011, 10:46 pm
From: Ian Clelland <clell...@gmail.com>
Date: Tue, 6 Dec 2011 19:46:56 -0800
Local: Tues, Dec 6 2011 10:46 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

> * compiler.py still had a map(None) call, that I replaced with

izip_longest.

> The biggest change was just adding izip_longest to utils.py3 and
> utils.itercompat.

I had the same issue with MySQL -- I used a block like this:

try:
   from itertools import zip_longest
except ImportError:
   # python 2.x
   from itertools import izip_longest as zip_longest

The code doesn't really seem to mind; iterator or generator, so I didn't
think it was worth making an exact compatibility function

> Ian

> --
> You received this message because you are subscribed to the Google Groups

"Django developers" group.
> To post to this group, send email to django-developers@googlegroups.com.
> To unsubscribe from this group, send email to

django-developers+unsubscribe@googlegroups.com.
> For more options, visit this group at

http://groups.google.com/group/django-developers?hl=en.


--
Regards,
Ian Clelland
<clell...@gmail.com>

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Kelly  
View profile  
 More options Dec 6 2011, 11:25 pm
From: Ian Kelly <ian.g.ke...@gmail.com>
Date: Tue, 6 Dec 2011 21:25:14 -0700
Local: Tues, Dec 6 2011 11:25 pm
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

itertools.izip_longest was added in Python 2.6, though, so a
compatibility function is needed for Python 2.5.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Clelland  
View profile  
 More options Dec 7 2011, 12:53 am
From: Ian Clelland <clell...@gmail.com>
Date: Tue, 6 Dec 2011 21:53:37 -0800
Local: Wed, Dec 7 2011 12:53 am
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

On Tuesday, December 6, 2011, Ian Kelly <ian.g.ke...@gmail.com> wrote:
> itertools.izip_longest was added in Python 2.6, though, so a
> compatibility function is needed for Python 2.5.

Ahh, that's a good catch. I'll have to make use of your solution, then.

Ian

--
Regards,
Ian Clelland
<clell...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vinay Sajip  
View profile  
 More options Dec 7 2011, 7:14 am
From: Vinay Sajip <vinay_sa...@yahoo.co.uk>
Date: Wed, 7 Dec 2011 04:14:59 -0800 (PST)
Local: Wed, Dec 7 2011 7:14 am
Subject: Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase
On Dec 7, 5:53 am, Ian Clelland <clell...@gmail.com> wrote:

> On Tuesday, December 6, 2011, Ian Kelly <ian.g.ke...@gmail.com> wrote:
> > itertools.izip_longest was added in Python 2.6, though, so a
> > compatibility function is needed for Python 2.5.

> Ahh, that's a good catch. I'll have to make use of your solution, then.

I've already pulled Ian Kelly's changes from his BitBucket repo. Which
MySQL driver are you using for Python 3? I started looking at

git://github.com/davispuh/MySQL-for-Python-3.git

but it appears to expect queries formatted with {} rather than %s, so
it doesn't seem that I can use it.

Regards,

Vinay Sajip


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 42   Newer >
« Back to Discussions « Newer topic     Older topic »