We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
default=None
False
Turns out that setParseAction callback is unable to return None as a default:
setParseAction
None
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.
pyparsing.ParseResults
Quite an annoying issue.
The text was updated successfully, but these errors were encountered:
seporaitis
No branches or pull requests
Turns out that
setParseAction
callback is unable to returnNone
as a default:Which means that when the callback returns
None
- the parse result is an emptypyparsing.ParseResults
instance.Quite an annoying issue.
The text was updated successfully, but these errors were encountered: