# Was, wenn alles ein dict wäre?

> Episode of [Python Podcast](https://podistic.com/podcast/python-podcast.md) · Published November 24, 2021 · Duration 1:44:55 · Explicit

- **Listen on Podistic:** https://podistic.com/episode/was-wenn-alles-ein-dict-ware
- **Audio:** https://d2mmy4gxasde9x.cloudfront.net/cast_audio/pp_37.m4a (audio/mp4)

## About this episode

# [Was, wenn alles ein dict wäre?](https://python-podcast.de/show/dict/) (hier klicken, um zu kommentieren)

[25\. November 2021,](https://python-podcast.de/show/dict/) Jochen Wir versuchen ja schon seit einiger Zeit, mal ein bisschen über die in Python eingebauten Datenstrukturen zu reden. Heute hat es dann endlich mal geklappt und [Johannes](https://twitter.com/shezoidic), [Dominik](https://twitter.com/oryon_dominik) und [Jochen](https://twitter.com/ephes) unterhalten sich darüber, was für eine Programmiersprache dabei herauskommen würde, wenn alles ein dict wäre :).  
  
  
  
    
  

## Shownotes

Unsere E-Mail für Fragen, Anregungen \& Kommentare: [hallo@python-podcast.de](mailto:hallo@python-podcast.de)

### GitHub Copilot / Pi

*   [GitHub Copilot](https://copilot.github.com/)
*   [#234 – Stephen Wolfram: Complexity and the Fabric of Reality](https://lexfridman.com/stephen-wolfram-3/)
*   [Transzendente Zahl](https://de.wikipedia.org/wiki/Transzendente_Zahl) | [Beweis](https://de.wikibooks.org/wiki/Beweisarchiv:_Algebra:_K%C3%B6rper:_Transzendenz_von_e_und_%CF%80)
*   [The Tau Manifesto](https://tauday.com/tau-manifesto)
*   [We Now Know 62.8 Trillion Digits of Pi](https://www.cantorsparadise.com/we-now-know-62-8-trillion-digits-of-pi-26b68847cb80)
*   [Freunde der Zahl Pi](http://pi314.at/)

### News aus der Szene

*   [Django 4.0 release candidate](https://www.djangoproject.com/weblog/2021/nov/22/django-40-rc1/)
*   [An oral history of Bank Python](https://calpaterson.com/bank-python.html)

### Dicts

*   [Dictionaries](https://docs.python.org/3/tutorial/datastructures.html#dictionaries)
*   [Big O notation](https://en.wikipedia.org/wiki/Big_O_notation)
*   [defaultdict](https://docs.python.org/3/library/collections.html#collections.defaultdict)
*   „Fortunately, this situation is common enough that Python has another built-in solution. You can subclass the dict type and implement the \_\_missing\_\_ special method to add custom logic for handling missing keys. Here, I do this by defining a new class that takes advantage of the same open\_picture helper method defined above:“

     Auszug aus
     Effective Python: 90 Specific Ways to Write Better Python, Second Edition (Jochen Wersdörfer's Library)
     Brett Slatkin
     Dieses Material ist möglicherweise urheberrechtlich geschützt.
*   [OrderedDict](https://docs.python.org/3/library/collections.html#collections.OrderedDict) | [UserDict](https://docs.python.org/3/library/collections.html#userdict-objects)
*   [PEP 584 -- Add Union Operators To dict](https://www.python.org/dev/peps/pep-0584/)
*   [dataclasses](https://docs.python.org/3/library/dataclasses.html) | [namedtuple](https://docs.python.org/3/library/collections.html#collections.namedtuple) | [attrs](https://www.attrs.org/en/stable/) | [pydantic](https://pydantic-docs.helpmanual.io/)
*   [\_\_slots\_\_](https://docs.python.org/3/reference/datamodel.html#slots)
*   [Counter](https://docs.python.org/3/library/collections.html#collections.Counter)
*   [ChainMap](https://docs.python.org/3/library/collections.html#collections.ChainMap)
*   [Casey Muratori auf Youtube](https://www.youtube.com/c/caseymuratori/videos)
*   [The Billion Dollar Code](https://en.wikipedia.org/wiki/The_Billion_Dollar_Code)
*   [Covid Dashboard (Pavel Mayer)](https://pavelmayer.de//covid/risks/)
*   [collections.abc — Abstract Base Classes for Containers](https://docs.python.org/3/library/collections.abc.html#collections.abc.Mapping)
*   [Python Distilled](http://www.dabeaz.com/python-distilled/)

### Picks

*   [builtins.dict](https://docs.python.org/3/library/stdtypes.html#dict)
*   [pydantic](https://pydantic-docs.helpmanual.io/)
*   [attrs](https://www.attrs.org/en/stable/)
