[Python-Dev] Bring new features to older python versions

Michael Foord fuzzyman at voidspace.org.uk
Tue Oct 11 17:41:33 CEST 2011


On 11/10/2011 16:39, Toshio Kuratomi wrote:
> On Tue, Oct 11, 2011 at 12:22:12AM -0400, Terry Reedy wrote:
>> On 10/10/2011 4:21 PM, Giampaolo Rodolà wrote:
>>> Thanks everybody for your feedback.
>>> I created a gcode project here:
>>> http://code.google.com/p/pycompat/
>> This project will be easier if the test suite for a particular
>> function/class/module is up to par. If you find any gaping holes, you
>> might file an issue on the tracker.
>>
> About testsuites... one issue that you'll run into is that while some stdlib
> modules are written with backporting to older versions in mind, their
> testsuites are not.  For instance, subprocess from python-2.7 runs fine on
> python-2.3+.  The testsuite for subprocess in python-2.7 makes use of the
> with statement, though, so it has to be ported.

Some of the tests will use newer features of unittest as well. These can 
of course be run with unittest2 which has been backported to Python 2.4 
(although use of the with statements in the tests themselves will have 
to be changed still).

All the best,

Michael Foord

>
> -Toshio
>
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk


-- 
http://www.voidspace.org.uk/

May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20111011/30110169/attachment-0001.html>


More information about the Python-Dev mailing list