DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Building a Product Recommendation Engine With Neo4j — No ML Library Required
  • 6 Techniques To Reduce LLM API Costs With the Python Library
  • How to Design a Multi-Agent AI Framework in Python for Enterprise LLM Workflows
  • Building a Python API Client That Doesn’t Fall Apart When the API Misbehaves

Trending

  • Building a Zero-Cost Daily Job Alert Pipeline on GitHub Actions
  • How to Prevent Retry Storms With Retry Budgets in Distributed Systems
  • Everybody Wants to Be a Dev!
  • Your Terraform Monolith Isn't Too Big. It's Tightly Coupled.
  1. DZone
  2. Data Engineering
  3. Data
  4. Just a Class Diagram for Python 3 Collections Abstract Base Classes

Just a Class Diagram for Python 3 Collections Abstract Base Classes

The class diagram depicts the main classes in Python’s collections.abs module and their relationship with built-in container types.

By 
Sangmoon Oh user avatar
Sangmoon Oh
·
Sep. 30, 20 · Presentation
Likes (2)
Comment
Save
Tweet
Share
3.2K Views

Join the DZone community and get the full member experience.

Join For Free

collections abstract base classes and built-in container types

Collections abstract base classes and built-in container types

Python’s built-in container types such as tuple, str, bytes, list, set, and dict show well why Python is so popular. They cover all the usage in view of mutability and item order, and the operations and behaviors are really intuitive, expressive, and concise. Especially slice notation and high-order functions on these container types are even beautiful.

In Python, these container types are generalized by abstract base classes mechanism to be extended easily. The above class diagram depicts the main classes in Python’s collections.abs module and their relationship with built-in container types.

The diagram is drawn using PlantUML and the source (in plain text) of it is here.

Class diagram Python (language) Diagram

Opinions expressed by DZone contributors are their own.

Related

  • Building a Product Recommendation Engine With Neo4j — No ML Library Required
  • 6 Techniques To Reduce LLM API Costs With the Python Library
  • How to Design a Multi-Agent AI Framework in Python for Enterprise LLM Workflows
  • Building a Python API Client That Doesn’t Fall Apart When the API Misbehaves

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook