Abstract
Structural pattern matching was introduced into Python in version 3.10. Although the basic form of structural pattern matching looks very much like pattern matching in other languages, there are some specific features that relate to data classes. In this chapter we will look at how data classes can be used with structural pattern matching.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2023 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Hunt, J. (2023). Structural Pattern Matching. In: Advanced Guide to Python 3 Programming. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-031-40336-1_6
Download citation
DOI: https://doi.org/10.1007/978-3-031-40336-1_6
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-40335-4
Online ISBN: 978-3-031-40336-1
eBook Packages: Computer ScienceComputer Science (R0)