Structural Pattern Matching

  • Chapter
  • First Online:
Advanced Guide to Python 3 Programming

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

  • 1914 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now
Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2023 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics

Navigation