Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Conversation

@dosmoc
Copy link

@dosmoc dosmoc commented Sep 9, 2015

Accumulate and add compiler flags to calls to the compile function for eval/exec code in handleEval when features that alter syntax are imported from the future module. The problem was first reported in issue LightTable/Python/#23. More details are in LightTable/Python/#33. Allows the following code to be executed using Python2 without a syntax error:

from __future__ import print_function
import sys

print('spam', file=sys.stderr)

Does not resolve all of the problems with printing to sys.stderr mentioned in LightTable/Python/#23, just the SyntaxError.

@kenny-evitt
Copy link

@hayd @UnknownProgrammer Mind reviewing this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.