Deutsch English Français Italiano |
<ldtnaaFjju7U1@mid.individual.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman <bowman@montana.com> 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: <ldtnaaFjju7U1@mid.individual.net> References: <17d716103c089ab3$7951$675878$802601b3@news.usenetexpress.com> <ej496jd0tb59u2l0nqtghq3u9ahhmann3s@4ax.com> <lcjnnuF896hU5@mid.individual.net> <kma96j1no1tp926ctejldkdk2c19aeruft@4ax.com> <lcjvk1F9n7aU1@mid.individual.net> <2ej96j1mbvgiok4q5c57vdlo94itpfu5dt@4ax.com> <v42jjg$2nd7m$1@dont-email.me> <v42vg5$2u4lh$15@dont-email.me> <v5bcfo$7182$4@dont-email.me> 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.