Skip to content

PyPy now handles reverse ASTs #977

Closed
@refi64

Description

Basically, I tried removing the code in hy/compiler.py that sets the line and column numbers of all the AST nodes on PyPy to 1. And...guess what?

It works.

The tests pass for me. Even more interesting, the issue in #742 where lines go crazy doesn't happen, so PyPy actually works better with Hy than CPython! (This is leading me to believe that the line issue is a CPython bug!)

My idea is to figure out which version of PyPy it is that fixed this and not clear the position data on the newer versions. Thoughts?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions