Article View: comp.os.linux.misc
Article #1036Re: Back To CS Basics. Fuck AI
From: John Bokma
Date: Sun, 18 Oct 2026 10:11
Date: Sun, 18 Oct 2026 10:11
35 lines
2866 bytes
2866 bytes
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).
--
Static tumblelog generator: https://github.com/john-bokma/tumblelog/
Available as Python or Perl. Example tumblelog: https://plurrrr.com/
Technical Details
Message-ID:
<11b25vq$11csg$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: John Bokma <contact@johnbokma.com> Newsgroups: comp.os.linux.misc,comp.lang.python Subject: Re: Back To CS Basics. Fuck AI Date: Sun, 18 Oct 2026 12:11:06 +0200 Organization: A noiseless patient Spider Lines: 35 Message-ID: <11b25vq$11csg$1@dont-email.me> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 18 Oct 2026 10:11:08 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1094544"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18v8vWRd9tdIioHM64wiRysbXqIZPK+ZAI="; posting-host="a7811059ec1df9ebdcae1c8192555339" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:35BO3JlyLZ8Jcmfbimw031tARj0= sha256:e/6IIjmENXLnHMUynKfbP1SI27M9h8CWcEhNROzHhB0= sha1:EnfnadY4mxY1UWbZeKxUnSl81kI= sha256:e46E9vOUb8V25xCA2y1dQAEAsTlNwiPDHbVRNQV3Q2M= In-Reply-To: <njin6fFei39U19@mid.individual.net> Content-Language: en-US