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

Change all default=Nones to False or alternative #50

Open
seporaitis opened this issue Aug 10, 2017 · 0 comments
Open

Change all default=Nones to False or alternative #50

seporaitis opened this issue Aug 10, 2017 · 0 comments
Assignees

Comments

@seporaitis
Copy link
Owner

Turns out that setParseAction callback is unable to return None as a default:

A parse action can modify the result (the toks argument) by returning the modified list. If it returns None, the result is not changed.

Which means that when the callback returns None - the parse result is an empty pyparsing.ParseResults instance.

Quite an annoying issue.

@seporaitis seporaitis self-assigned this Aug 10, 2017
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

1 participant