We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e1f57c commit 483c495Copy full SHA for 483c495
patterns/behavioral/visitor.py
@@ -6,6 +6,14 @@
6
7
*TL;DR80
8
Separates an algorithm from an object structure on which it operates.
9
+
10
+An interesting recipe could be found in
11
+Brian Jones, David Beazley "Python Cookbook" (2013):
12
+- "8.21. Implementing the Visitor Pattern"
13
+- "8.22. Implementing the Visitor Pattern Without Recursion"
14
15
+*Examples in Python ecosystem:
16
+Python's ast.NodeVisitor: https://github.com/python/cpython/blob/master/Lib/ast.py#L250
17
"""
18
19
0 commit comments