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

Implicit multiplication parsing is inconsistent between negative and postive numbers #727

Closed
tetslee opened this Issue Oct 18, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@tetslee
Contributor

tetslee commented Oct 18, 2016

math.parse('2 2') throws a SyntaxError.
math.parse('-2 2') parses to -2 * 2.

It would be better if '-2 2' threw a SyntaxError.

@josdejong

This comment has been minimized.

Owner

josdejong commented Oct 19, 2016

Thanks for reporting, math.parse(-2 2) should indeed return a syntax error too.

@josdejong josdejong closed this Oct 19, 2016

@josdejong josdejong reopened this Oct 19, 2016

@josdejong josdejong added the bug label Oct 19, 2016

@josdejong

This comment has been minimized.

Owner

josdejong commented Oct 21, 2016

This has been fixed in v3.6.0.

@josdejong josdejong closed this Oct 21, 2016

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