Path: ...!news.mixmin.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.advocacy Subject: Re: Languages (was: Re: More Funny Stuff From The Joke Python) Date: 24 Jun 2024 17:05:15 GMT Lines: 10 Message-ID: References: <17d716103c089ab3$7951$675878$802601b3@news.usenetexpress.com> <2ej96j1mbvgiok4q5c57vdlo94itpfu5dt@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net KaW0oSBChHFPCEqMgVnQmwznDDHAdhMr//tjn75bh0z33hMsRN Cancel-Lock: sha1:eZEwK74QquypCyBRtflz4DDxfFg= sha256:MKVmxI9DQVZylHBVWTl5XPbYHirVPtaKFKpnG8xqM3Q= User-Agent: Pan/0.149 (Bellevue; 4c157ba) Bytes: 1526 On Mon, 24 Jun 2024 08:58:32 -0000 (UTC), Sebastian Wells wrote: > The thing that made foo.bar's actual value special was that its class > defined the magic methods __get__, __set__, and __delete__. > > I don't remember how I discovered the existence of this object. Even > Python's getattr() and setattr() functions are overridden. This > "feature" of Python is little known. The use of dunders is a well known feature of the language.