Skip to content

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

Open
gemoe100 wants to merge 6 commits into
andreif:masterfrom
gemoe100:master
Open

Bugfixes: del-, try-except-, and import-as-syntax#3
gemoe100 wants to merge 6 commits into
andreif:masterfrom
gemoe100:master

Conversation

@gemoe100

Copy link
Copy Markdown

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 1dell[0]
# example 2delobj.x# example 3try:
'#'[2]
exceptIndexError:
print'What did you expect?!'# example 4try:
l= []
l[1]
exceptIndexError, index_error:
printindex_error# example 5importintertoolsasiterators# example 6frommathimportfloorasfl, ceilascl

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

@andreif

Copy link
Copy Markdown
Owner

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 freeto 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

@gemoe100@andreif