[Zope-dev] ZTK Porting Status

Leonardo Rochael Almeida leorochael at gmail.com
Thu Feb 28 18:24:16 UTC 2013


Hi,

On Thu, Feb 28, 2013 at 1:30 PM, Stephan Richter
<stephan.richter at gmail.com> wrote:
> [...]
> # XXX: Where is this needed?
> unittest2 = 0.5.1

You probably already know all this, but for those that simply copied
what was done in other packages for cargo-cult programming reasons:

unittest2 is a backport of Python 2.7+ unittest for previous Python versions.

Some packages import unittest2 if they depend on Python 2.7+ unittest
features, but don't make an effort of trying to check if the standard
unittest already supports those features.

If ZTK 2 drops compat with Python 2.6 then this package is not needed,
and any packages that break because of it should just do conditional
imports, and they'll keep working.

IMO, if the ZTK pins a version of something that exists solely to
allow forward compatibility with later Python versions, then this
something is not required to work with all Python versions.

Chees,

Leo


More information about the Zope-Dev mailing list