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

Bugfixes: del-, try-except-, and import-as-syntax #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

gemoe100
Copy link

@gemoe100 gemoe100 commented Apr 4, 2013

While using codegen I noticed that the following code examples could not be parsed to an ast and then translated back again to source code with codegen:

# example 1
del l[0]
# example 2
del obj.x
# example 3
try:
    '#'[2]
except IndexError:
    print 'What did you expect?!'
# example 4
try:
      l = []
      l[1]
  except IndexError, index_error:
      print index_error
# example 5
import intertools as iterators
# example 6
from math import floor as fl, ceil as cl

So I forked the code, fixed these issues and now I'd like to contribute my fixes to the actual repository.

@andreif
Copy link
Owner

andreif commented Apr 5, 2013

Thanks, @gemoe100 ! Although, I haven't decide yet whether to improve the original code or not. I use it for inlines only myself. If you need something better, please have a look at https://github.com/pmaupin/astor

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

Successfully merging this pull request may close these issues.

2 participants