Re: [Python 2.6] print_function and unicode_literals cannot be used at the same time?

2008-10-27 Thread Terry Reedy
Gabriel Genellina wrote: En Sun, 26 Oct 2008 12:13:08 -0200, Christian Heimes <[EMAIL PROTECTED]> escribió: ?? wrote: Any ideas? Code 1: from __future__ import print_function, unicode_literals import sys print(type('HELLO, WORLD!'), file=sys.stderr) You have to do each future import i

Re: [Python 2.6] print_function and unicode_literals cannot be used at the same time?

2008-10-26 Thread Gabriel Genellina
En Sun, 26 Oct 2008 12:13:08 -0200, Christian Heimes <[EMAIL PROTECTED]> escribió: ?? wrote: Any ideas? Code 1: from __future__ import print_function, unicode_literals import sys print(type('HELLO, WORLD!'), file=sys.stderr) You have to do each future import in a separate line: >>>

Re: [Python 2.6] print_function and unicode_literals cannot be used at the same time?

2008-10-26 Thread Christian Heimes
?? wrote: Any ideas? Code 1: from __future__ import print_function, unicode_literals import sys print(type('HELLO, WORLD!'), file=sys.stderr) You have to do each future import in a separate line: >>> from __future__ import unicode_literals >>> from __future__ import print_function >>> pr

[Python 2.6] print_function and unicode_literals cannot be used at the same time?

2008-10-26 Thread 周济是母老鼠
Any ideas? Code 1: from __future__ import print_function, unicode_literals import sys print(type('HELLO, WORLD!'), file=sys.stderr) Result 1: Code 2: from __future__ import unicode_literals, print_function import sys print(type('HELLO, WORLD!'), file=sys.stderr) Result 2: File "tmp.py",