[pypy-issue] [issue874] importing multiple __future__ features in one statement doesn't work in pypy 1.6

rian tracker at bugs.pypy.org
Tue Sep 20 19:12:02 CEST 2011


New submission from rian <rian at alum.mit.edu>:

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

----------
messages: 3154
nosy: pypy-issue, rian
priority: bug
status: unread
title: importing multiple __future__ features in one statement doesn't work in pypy 1.6

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue874>
________________________________________


More information about the pypy-issue mailing list