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

Deprecate functools.walk() #1422

Closed
bartfeenstra opened this issue Apr 27, 2024 · 0 comments · Fixed by #1459
Closed

Deprecate functools.walk() #1422

bartfeenstra opened this issue Apr 27, 2024 · 0 comments · Fixed by #1459
Labels
enhancement New feature or request python Pull requests that update Python code
Milestone

Comments

@bartfeenstra
Copy link
Owner

bartfeenstra commented Apr 27, 2024

functools.walk() is hard to define and not specific enough. If similar functionality is still needed, provide it in the form of traversing a single attribute of a single expected type. Do not mix plain attribute and iterator access.

Proposals

  • add Person.ancestors and Person.descendants?
@bartfeenstra bartfeenstra added enhancement New feature or request python Pull requests that update Python code labels Apr 27, 2024
@bartfeenstra bartfeenstra added this to the 0.3.x milestone Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python Pull requests that update Python code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant