Path: ...!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail From: ram@zedat.fu-berlin.de (Stefan Ram) Newsgroups: comp.lang.python Subject: Re: Dynamically modifying "__setattr__" Date: 30 Sep 2023 12:20:16 GMT Organization: Stefan Ram Lines: 12 Expires: 1 Sep 2024 11:59:58 GMT Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de eCYt+DkohClDi+2stOfbTwOP0lRavHRhPbxkodhPUmsSbv Cancel-Lock: sha1:VOsbTFId2rpN9+4ibiDhjHJm3qc= sha256:zX2d8vaV4wAEU8zhs4Xszhu9omsWsVXBplDWzIsR8FA= X-Copyright: (C) Copyright 2023 Stefan Ram. All rights reserved. Distribution through any means other than regular usenet channels is forbidden. It is forbidden to publish this article in the Web, to change URIs of this article into links, and to transfer the body without this notice, but quotations of parts in other Usenet posts are allowed. X-No-Archive: Yes Archive: no X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some services to mirror the article in the web. But the article may be kept on a Usenet archive server with only NNTP access. X-No-Html: yes Content-Language: en-US Accept-Language: de-DE-1901, en-US, it, fr-FR Bytes: 1890 Greg Ewing writes: > def __setattr__(self, key, value): > self.setattr(key, value) |All problems in computer science can be solved by |adding another level of indirection. (The fundamental theorem of software engineering [FTSE] is a term originated by Andrew Koenig to describe a remark by Butler Lampson attributed to the late David J. Wheeler.)