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

Handle generic iterables #89

Merged
merged 5 commits into from
Dec 20, 2017
Merged

Handle generic iterables #89

merged 5 commits into from
Dec 20, 2017

Conversation

lelit
Copy link
Contributor

@lelit lelit commented Dec 18, 2017

This targets issue #84, automatically dumping generic iterables as arrays.

To overcome the inefficiency in handling generic iterables with the previous stack-based
implementation of the dumps_internal() function, this replaces it with plain recursion so
there's no need to build a temporary list consuming the iterable and then pushing each
item in reverse order.

This targets issue python-rapidjson#84, automatically dumping generic iterables as arrays.

To overcome the inefficiency in handling generic iterables with the previous stack-based
implementation of the dumps_internal() function, this replaces it with plain recursion so
there's no need to build a temporary list consuming the iterable and then pushing each
item in reverse order.
@lelit
Copy link
Contributor Author

lelit commented Dec 18, 2017

Sorry @kenrobbins, hit the wrong link... :)

@lelit lelit merged commit fbd3ee1 into python-rapidjson:master Dec 20, 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

Successfully merging this pull request may close these issues.

1 participant