muenchen.social ist Teil des dezentralen sozialen Netzwerks, das von Mastodon betrieben wird.
Hallo auf muenchen.social Dies ist eine deutschsprachige Mastodon Instanz für München zum tröten, neue Leute kennenlernen, sich auszutauschen und Spass zu haben.

Verwaltet von:

Serverstatistiken:

1,3 Tsd
aktive Profile

Mehr erfahren

Wenn jemand von "alter weißer Mann" spricht, geht es nicht etwa um Alter, Hautfarbe oder Geschlecht. Man teilt Euch einfach mit, dass Euer Verhalten an Statler und Waldorf aus der Muppet-Show erinnert: Grantig, immer am Meckern, uneinsichtig.

Seid nicht wie Statler und Waldorf, also wie die beiden in ihren Rollen. Im echten Leben sind die beiden sicherlich recht nett. 😉

en.wikipedia.org/wiki/Statler_

#ServiceToot #OldWhiteMen #MuppetShow

Die Grünen vergeudeten 3 Jahre Regierungszeit mit Sonderzeichen in Wörtern, Männer im Frauensport und Drogenlegalisierung.

Wenn die Grünen mit der AfD gegen die Gelder für Verteidigung und Infrastruktur stimmen, dann werden diese woanders eingespart, zB Soziales.

#ServiceToot

Today I went a bit into the #python #import rabbit hole. Turns out you *can* do cyclic imports (as long as you don't try to access things that have not been created, yet).

Essentially, these are the rules:
* when attempting to load a module, and the module exists in sys.modules, return that module
* otherwise, create a new empty module (without any of the module's content) and insert it into sys.modules
* execute the module's/file's body (which may run other import statements, returning module objects already in sys.modules or inserting new ones)
* when reaching the end of the module/file, take all the defined names and add them to the module as attributes.

(Obviously, this is heavily simplified, there is a ton of other complexity.)

Edit: Forgot to mention:
* before loading the module that you asked to import (using the process described above), Python will load all parent modules (using the same process)

#servicetoot