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

A custom AST hierarchy for our own use #9

Open
lihaoyi opened this issue May 9, 2013 · 3 comments
Open

A custom AST hierarchy for our own use #9

lihaoyi opened this issue May 9, 2013 · 3 comments

Comments

@lihaoyi
Copy link
Owner

lihaoyi commented May 9, 2013

The default python AST objects are clunky and annoying:

  • They don't have nice __str__s or __repr__s
  • They don't have a constructor that will work with pattern matching
  • They don't have structural equality
  • Behave differently in CPython, PyPy and Jython and are probably the main reason why Jython doesn't work right now.

In general they are a pain to use. It would be great if we could have a different ast representation, either using astng or made ourselves using case classes.

@ceridwen
Copy link
Contributor

ceridwen commented Jun 2, 2015

I don't understand how the absence of infer_call_result has any relevance to MacroPy, it looks like it's there for checking function return/call sign signatures for Pylint.

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

No branches or pull requests

3 participants
@lihaoyi @ceridwen and others