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

Pass by value #85

Merged
merged 5 commits into from
Feb 21, 2024
Merged

Pass by value #85

merged 5 commits into from
Feb 21, 2024

Conversation

sayanarijit
Copy link
Member

No description provided.

@sayanarijit sayanarijit requested a review from gauravr February 21, 2024 14:05
items = list(node.items())
for k, v in items:
esc_k = escape(k)
if k != esc_k:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sayanarijit what about this condition?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not required, as it's not updating the same dict anymore. Every key is escaped in new dict.

@gauravr gauravr merged commit b2fe1ba into master Feb 21, 2024
3 checks passed
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.

2 participants