[Python-de] Re: Code Style Review
Enrik Berkhan <[email protected]>
| Newsgroups | gmane.comp.python.general.german |
|---|---|
| Organization | void |
| Message-ID | <[email protected]> |
[email protected] wrote: > Am 28.11.2022 21:52 schrieb Marc Haber: >> Gerade für die Konfiguration halte ich die globale Variable auch für >> den vernünftigen Weg, das wirklich überall bekannt zu machen. > > Nein, ist es nicht. Das ist nur eine "Abkürzung". Besser wäre hier eine > Art Singleton-Pattern anzuwenden. Ich mag das Borg Pattern: https://www.oreilly.com/library/view/python-cookbook/0596001673/ch05s23.html Gruß, Enrik _______________________________________________ python-de Mailingliste -- [email protected] Zur Abmeldung von dieser Mailingliste senden Sie eine Nachricht an [email protected] https://mail.python.org/mailman3/lists/python-de.python.org/ Mitgliedsadresse: [email protected]