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

make the pass keyword optional #2

Open
obayemi opened this issue Apr 9, 2018 · 3 comments
Open

make the pass keyword optional #2

obayemi opened this issue Apr 9, 2018 · 3 comments

Comments

@obayemi
Copy link

obayemi commented Apr 9, 2018

Since the syntax now provides a way to signal that a block is finished, could you consider making the "pass" keyword optional in empty blocks ?
it would be extremely usefull for notably exceptions declarations

class MyCustomException(Exception):
end
@nya3jp
Copy link
Owner

nya3jp commented Apr 9, 2018

Since this module does not affect Python syntax parser, it would very hard to make the above example work.

BTW just in case you missed this message in README: please avoid using this module in serious business :)

@obayemi
Copy link
Author

obayemi commented Apr 9, 2018

I know, I won't ever use it in any serious thing, but I was wondering because of the custom exception written in the beggining of the end.py file

@nya3jp
Copy link
Owner

nya3jp commented Apr 9, 2018

I see. Yes, if we ever seriously think of use cases we may want to support this :)

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

No branches or pull requests

2 participants