🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #1099

Re: Back To CS Basics. Fuck AI

#1099
From: rbowman
Date: Sun, 18 Oct 2026 20:01
36 lines
2458 bytes
On Sun, 18 Oct 2026 12:11:06 +0200, John Bokma wrote:

> On 18/10/2026 03:54, rbowman wrote:
>> On Sat, 17 Oct 2026 20:42:04 -0000 (UTC), Lawrence D’Oliveiro wrote:
>> 
>>> Who says you need to “declare dictionaries”?
>>>
>>>      ldo@hypatia:~> python3 Python 3.14.7 (main, Sep 13 2026,
>>>      08:30:29)
>>>      [GCC 16.2.0] on linux Type "help", "copyright", "credits" or
>>>      "license"
>>>      for more information.
>>>      >>> a = "some text" print(a)
>>>      some text
>>>      >>> a = {"colour" : "green"}
>>>      >>> print(a)
>>>      {'colour': 'green'}
>> 
>> Python 3.14.4 (main, Aug 20 2026, 10:41:58) [GCC 15.2.0] on linux Type
>> "help", "copyright", "credits" or "license" for more information.
>>>>> a = {"coluor" : "green"}
>>>>> print(a)
>> {'coluor': 'green'}
>>>>> a["color"] = "purple" print(a)
>> {'coluor': 'green', 'color': 'purple'}
>> 
>> 
>> I've seen bugs introduced either by typos or a programmer who couldn't
>> spell. It's either a very handy feature or a potential problem to add
>> ad hoc fields.
> 
> If that's the case use a dataclass with frozen=True (and perhaps
> kw_only=True).

Yes, the language has been improving but iirc dataclass appeared in 3.7.
Technical Details
Message-ID: <njkmthFei39U34@mid.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com> <11atgth$3e59h$1@dont-email.me> <18df0ea174d534e0$1613$2650862$802601b3@news.usenetexpress.com> <11atlpr$3g55c$1@dont-email.me> <11au66n$3m5co$6@dont-email.me> <11aucit$3o8ih$3@dont-email.me> <6ad34325$0$3147$426a74cc@news.free.fr> <wwv33u4o26s.fsf@LkoBDZeT.terraraq.uk> <6ad3a65d$0$31896$426a74cc@news.free.fr> <11b0mis$iems$7@dont-email.me> <njin6fFei39U19@mid.individual.net> <11b25vq$11csg$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: rbowman <bowman@montana.com>
Newsgroups: comp.os.linux.misc,comp.lang.python
Subject: Re: Back To CS Basics. Fuck AI
Date: 18 Oct 2026 20:01:54 GMT
Lines: 36
Message-ID: <njkmthFei39U34@mid.individual.net>
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com>
	<11atgth$3e59h$1@dont-email.me>
	<18df0ea174d534e0$1613$2650862$802601b3@news.usenetexpress.com>
	<11atlpr$3g55c$1@dont-email.me> <11au66n$3m5co$6@dont-email.me>
	<11aucit$3o8ih$3@dont-email.me> <6ad34325$0$3147$426a74cc@news.free.fr>
	<wwv33u4o26s.fsf@LkoBDZeT.terraraq.uk>
	<6ad3a65d$0$31896$426a74cc@news.free.fr> <11b0mis$iems$7@dont-email.me>
	<njin6fFei39U19@mid.individual.net> <11b25vq$11csg$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net /TIwkno0rZAvGf5UJRjEkgEdbjROGJZqSgMXdzYremRvRUUwmo
Cancel-Lock: sha1:AgZ/TbUdZCUU26fzoGN7ErE3XfA= sha256:7mCcGm64S1PastUjGO2ScaW0N2i1rYpdXEeEZq/IvOo=
User-Agent: Pan/0.165 (Kostiantynivka)