Issues

Issue #874 resolved

importing multiple __future__ features in one statement doesn't work in pypy 1.6

rian
created an issue

From (bugs.pypy.org)

Comments (8)

  1. rian reporter

    let's say i have a module called socket in my package. if i do this in a sibling module:

    """ from future import (with_statement, absolute_import) import socket socket.TCP_NODELAY """

    that causes an attribute error in pypy 1.6 but doesn't in cpython, if i change it to:

    """ from future import with_statement from future import absolute_import import socket socket.TCP_NODELAY """

    it works in pypy and cpyhon

  2. Log in to comment