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
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Introducing RAI Audit Kit: Evidence-Grade Responsible AI Audits in Python
  • I Was Tired of Flying Blind With AI Agents, So I Built AgentDog
  • Prompt Injection Is Real, So I Built a Python Firewall for LLM Pipelines
  • Building Threat Intelligence Pipelines Using Python, APIs, and Elasticsearch

Trending

  • GenAI Isn't Solving the Problem Most Development Teams Actually Have
  • When Valid SQL Was Still the Wrong Answer
  • How to Set MX Records via API: Automate Email Routing Programmatically
  • The Breach Was Never at the Door
  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.1K 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

  • Introducing RAI Audit Kit: Evidence-Grade Responsible AI Audits in Python
  • I Was Tired of Flying Blind With AI Agents, So I Built AgentDog
  • Prompt Injection Is Real, So I Built a Python Firewall for LLM Pipelines
  • Building Threat Intelligence Pipelines Using Python, APIs, and Elasticsearch

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