Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda expression generates error #162

Closed
gratefulfrog opened this issue May 13, 2016 · 2 comments
Closed

Lambda expression generates error #162

gratefulfrog opened this issue May 13, 2016 · 2 comments

Comments

@gratefulfrog
Copy link

I have come across this strange bug:

def setup():
    f = lambda x: print(x)
    f(12)

results in this error referring to the line with the lambda
processing.app.SketchException: Maybe there's an unclosed paren or quote mark somewhere before this line?

But this work-around runs ok:

def setup():
    f = lambda x: p(x)
    f(12)

def p(x):
    print(x)

Both work in python3.

As you can see, I'm working in processing.py all day every day!
Ciao,
Bob

@jdf
Copy link
Owner

jdf commented May 13, 2016

Python Mode is Python 2.7, not Python 3.

@jdf jdf closed this as completed May 13, 2016
@gratefulfrog
Copy link
Author

oh, sorry...

On Fri, May 13, 2016 at 3:45 PM, Jonathan Feinberg <notifications@github.com

wrote:

Closed #162 #162.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#162 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants