Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

-(0.0) gets parsed as -0.0 #40

Closed
kmod opened this issue Jul 20, 2015 · 1 comment
Closed

-(0.0) gets parsed as -0.0 #40

kmod opened this issue Jul 20, 2015 · 1 comment

Comments

@kmod
Copy link
Contributor

kmod commented Jul 20, 2015

I haven't looked into this so I'm not sure where there happens, but Pyston ends up getting the same ast for either text. the cpython parser says the first is a unaryop on 0.0, and the second is the float -0.0.

Doesn't seem like a big deal since it's probably only observable if you are doing direct ast manipulation.

@kmod
Copy link
Contributor Author

kmod commented Jul 23, 2015

thanks!

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

No branches or pull requests

1 participant