PLAY PODCASTS
Was, wenn alles ein dict wäre?

Was, wenn alles ein dict wäre?

Was, wenn alles ein dict wäre?

Python Podcast · Jochen Wersdörfer / Dominik Geldmacher

November 24, 20211h 44mExplicit

Show Notes

<article class="post-detail"> <header> <h2 class="post-title"> <a href="https://python-podcast.de/show/dict/">Was, wenn alles ein dict wäre?</a> (click here to comment) </h2> <!-- link is on one line to avoid underlined whitespace --> <div class="post-card-meta"> <a href="https://python-podcast.de/show/dict/"><time datetime="2021-11-25T00:00:00+01:00">25. November 2021</time>,</a> <span class="author">Jochen</span> </div> </header> <div class="post-body"> <section class="block-overview"> <section class="block-paragraph"> Wir versuchen ja schon seit einiger Zeit, mal ein bisschen &uuml;ber die in Python eingebauten Datenstrukturen zu reden. Heute hat es dann endlich mal geklappt und&nbsp;<a href="https://twitter.com/shezoidic">Johannes</a>,&nbsp;<a href="https://twitter.com/oryon_dominik">Dominik</a>&nbsp;und&nbsp;<a href="https://twitter.com/ephes">Jochen</a>&nbsp;unterhalten sich dar&uuml;ber, was f&uuml;r eine Programmiersprache dabei herauskommen w&uuml;rde, wenn alles ein dict w&auml;re :).<br /> <br /> </section> <section class="block-audio"> </section> <section class="block-paragraph"> <br /> <br /> </section> </section> <section class="block-detail"> <section class="block-paragraph"> &nbsp;<br /> &nbsp; <h2>Shownotes</h2> <p>Unsere E-Mail f&uuml;r Fragen, Anregungen &amp; Kommentare: <a href="mailto:[email protected]">[email protected]</a></p> <h3>GitHub Copilot / Pi</h3> <ul> <li><a href="https://copilot.github.com/">GitHub Copilot</a></li> <li><a href="https://lexfridman.com/stephen-wolfram-3/">#234 &ndash; Stephen Wolfram: Complexity and the Fabric of Reality</a></li> <li><a href="https://de.wikipedia.org/wiki/Transzendente_Zahl">Transzendente Zahl</a>&nbsp;|&nbsp;<a href="https://de.wikibooks.org/wiki/Beweisarchiv:_Algebra:_K%C3%B6rper:_Transzendenz_von_e_und_%CF%80">Beweis</a></li> <li><a href="https://tauday.com/tau-manifesto">The Tau Manifesto</a></li> <li><a href="https://www.cantorsparadise.com/we-now-know-62-8-trillion-digits-of-pi-26b68847cb80">We Now Know 62.8 Trillion Digits of Pi</a></li> <li><a href="http://pi314.at/">Freunde der Zahl Pi</a></li> </ul> <h3>News aus der Szene</h3> <ul> <li><a href="https://www.djangoproject.com/weblog/2021/nov/22/django-40-rc1/">Django 4.0 release candidate</a></li> <li><a href="https://calpaterson.com/bank-python.html">An oral history of Bank Python</a></li> </ul> <h3>Dicts</h3> <ul> <li><a href="https://docs.python.org/3/tutorial/datastructures.html#dictionaries">Dictionaries</a></li> <li><a href="https://en.wikipedia.org/wiki/Big_O_notation">Big O notation</a></li> <li><a href="https://docs.python.org/3/library/collections.html#collections.defaultdict">defaultdict</a></li> <li>&bdquo;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:&ldquo;<br /> <br /> Auszug aus<br /> Effective Python: 90 Specific Ways to Write Better Python, Second Edition (Jochen Wersd&ouml;rfer&#39;s Library)<br /> Brett Slatkin<br /> Dieses Material ist m&ouml;glicherweise urheberrechtlich gesch&uuml;tzt.</li> <li><a href="https://docs.python.org/3/library/collections.html#collections.OrderedDict">OrderedDict</a>&nbsp;|&nbsp;<a href="https://docs.python.org/3/library/collections.html#userdict-objects">UserDict</a></li> <li><a href="https://www.python.org/dev/peps/pep-0584/">PEP 584 -- Add Union Operators To dict</a></li> <li><a href="https://docs.python.org/3/library/dataclasses.html">dataclasses</a>&nbsp;|&nbsp;<a href="https://docs.python.org/3/library/collections.html#collections.namedtuple">namedtuple</a>&nbsp;|&nbsp;<a href="https://www.attrs.org/en/stable/">attrs</a>&nbsp;|&nbsp;<a href="https://pydantic-docs.helpmanual.io/">pydantic</a></li> <li><a href="https://docs.python.org/3/reference/datamodel.html#slots">__slots__</a></li> <li><a href="https://docs.python.org/3/library/collections.html#collections.Counter">Counter</a></li> <li><a href="https://docs.python.org/3/library/collections.html#collections.ChainMap">ChainMap</a></li> <li><a href="https://www.youtube.com/c/caseymuratori/videos">Casey Muratori auf Youtube</a></li> <li><a href="https://en.wikipedia.org/wiki/The_Billion_Dollar_Code">The Billion Dollar Code</a></li> <li><a href="https://pavelmayer.de//covid/risks/">Covid Dashboard (Pavel Mayer)</a></li> <li><a href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Mapping">collections.abc &mdash; Abstract Base Classes for Containers</a></li> <li><a href="http://www.dabeaz.com/python-distilled/">Python Distilled</a></li> </ul> <h3>Picks</h3> <ul> <li><a href="https://docs.python.org/3/library/stdtypes.html#dict">builtins.dict</a></li> <li><a href="https://pydantic-docs.helpmanual.io/">pydantic</a></li> <li><a href="https://www.attrs.org/en/stable/">attrs</a></li> </ul> </section> </section> </div> </article>

Topics

pythondictionaryhashmappingpi