Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: =?UTF-8?Q?Thomas_G=c3=bcttler?= Newsgroups: de.comp.lang.python Subject: [Python-de] classproperties ... nutzt ihr das? Date: Fri, 20 Apr 2018 13:25:32 +0200 Lines: 22 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de iC9YDUJ30hDYt8BDvmmEJQb76cIA17jdSB6AqMdYdxUQ== Return-Path: X-Original-To: python-de@python.org Delivered-To: python-de@mail.python.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 Content-Language: de-DE X-BeenThere: python-de@python.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Die Deutsche Python Mailingliste List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: Xref: csiph.com de.comp.lang.python:5150 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