Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5150
| From | Thomas Güttler <guettliml@thomas-guettler.de> |
|---|---|
| Newsgroups | de.comp.lang.python |
| Subject | [Python-de] classproperties ... nutzt ihr das? |
| Date | 2018-04-20 13:25 +0200 |
| Message-ID | <mailman.107.1524224031.6649.python-de@python.org> (permalink) |
| References | <c583b251-afcc-e0b7-107b-7a473426181d@thomas-guettler.de> |
Hallo, bisher nutze ich Properties nur für Objekte/Instanzen. Prinzipiell geht das auf für Klassen. Ich habe gehört, dass das Probleme machen kann wenn Introspection verwendet wird. Zum Beispiel wenn Tests eingesammelt werden, dann wird ggf Code ausgeführt obwohl man das gar nicht möchte. Nutzt ihr Properties auf Klassenebene? Sind die Bedenken berechtigt? Gruß, Thomas -- Thomas Guettler http://www.thomas-guettler.de/ I am looking for feedback: https://github.com/guettli/programming-guidelines
Back to de.comp.lang.python | Previous | Next | Find similar
[Python-de] classproperties ... nutzt ihr das? Thomas Güttler <guettliml@thomas-guettler.de> - 2018-04-20 13:25 +0200
csiph-web