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

Wrap tokenlist in list if self.resultsName is present #324

Merged
merged 2 commits into from Oct 29, 2021

Conversation

busunkim96
Copy link
Contributor

@busunkim96 busunkim96 commented Oct 28, 2021

There seems to have been a small behavior change to class Dict() when asdict was added. This restores the branch that was lost (self.resultsName is present).

3c495db#diff-651b49e05968bd7f42614f05b7e9d94b30f52db27eb692ce20ef87e9799c624f

@busunkim96
Copy link
Contributor Author

I am not at familiar with this library, so the commit message is a bad attempt at me trying to explain the change. 😅 If you end up using this PR please edit the title to something that makes more sense.

@ptmcg
Copy link
Member

ptmcg commented Oct 28, 2021

Looking at this now, thanks so much for doing this research!!!

@ptmcg
Copy link
Member

ptmcg commented Oct 28, 2021

Ok, I would really like to use your PR so you get your contributor credits. But the change needs to work with and without results names, and with and without asPythonDict=True. I'm testing the different permutations, and will send you a fix to correct your PR.

@ptmcg ptmcg merged commit 8bbc83e into pyparsing:master Oct 29, 2021
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.

None yet

2 participants