Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions patterns/behavioral/visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@

*TL;DR80
Separates an algorithm from an object structure on which it operates.

An interesting recipe could be found in
Brian Jones, David Beazley "Python Cookbook" (2013):
- "8.21. Implementing the Visitor Pattern"
- "8.22. Implementing the Visitor Pattern Without Recursion"

*Examples in Python ecosystem:
Python's ast.NodeVisitor: https://github.com/python/cpython/blob/master/Lib/ast.py#L250
"""


Expand Down