Skip to content

Commit

Permalink
[3.12] gh-106625 : Add missing code to tutorial 4.6 example (GH-106623)…
Browse files Browse the repository at this point in the history
… (#106636)

(cherry picked from commit d0b7e18)

Co-authored-by: RustyNail <[email protected]>
Co-authored-by: Terry Jan Reedy <[email protected]>
  • Loading branch information
3 people authored Jul 11, 2023
1 parent 58f9c88 commit 139e7ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Doc/tutorial/controlflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,9 @@ you can use the class name followed by an argument list resembling a
constructor, but with the ability to capture attributes into variables::

class Point:
x: int
y: int
def __init__(self, x, y):
self.x = x
self.y = y

def where_is(point):
match point:
Expand Down

0 comments on commit 139e7ac

Please sign in to comment.