Porting 3.0 to 2.6 - from __future__ import super missing?

Benjamin Peterson benjamin at python.org
Sat Jan 24 14:39:52 CET 2009

andrew cooke <andrew <at> acooke.org> writes:

> Hi,
> I have some 3.0 code, which I would like to make work with 2.6.
> However, there does not seem to be support for the new super() (no
> args) via __future__.  Is that correct?  If so, what's the best way to
> handle this?

Just use the two argument super(): super(MyClass, instance) It's supported in
both versions.

More information about the Python-list mailing list