Article View: comp.os.linux.misc
Article #1040Re: Back To CS Basics. Fuck AI
From: The Natural Philosopher
Date: Sun, 18 Oct 2026 11:07
Date: Sun, 18 Oct 2026 11:07
27 lines
2496 bytes
2496 bytes
On 17/10/2026 18:08, John Bokma wrote: > Examples: > > Explain as a professional Python programmer why 1+True yields 2 and is > valid > Thought for 3s > > In Python,  bool is a subclass of  int . The two Boolean values behave > numerically as  False == 0 and  True == 1 , so adding  True to  1 is > equivalent to  1 + 1 : > > 1 + True      # 2 > type(1 + True) # int > > It’s valid because Python’s numeric operations accept Boolean values as > integers. In application code, though, it’s usually clearer to convert > or count explicitly if you intend to use a Boolean as a number. With Booleans the + operator ought to be an OR function so TRUE + TRUE = TRUE -- “The urge to save humanity is almost always only a false face for the urge to rule it.” – H. L. Mencken
Technical Details
Message-ID:
<11b29a9$11pis$10@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> <11b09ko$dn7j$1@dont-email.me> <11b0a1q$du4m$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!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: The Natural Philosopher <tnp@invalid.invalid> Newsgroups: comp.os.linux.misc,comp.os.linux.advocacy Subject: Re: Back To CS Basics. Fuck AI Date: Sun, 18 Oct 2026 12:07:53 +0100 Organization: A little, after lunch Lines: 27 Message-ID: <11b29a9$11pis$10@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> <11b09ko$dn7j$1@dont-email.me> <11b0a1q$du4m$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 18 Oct 2026 11:07:54 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1107548"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QOWtuxS6/XXDedveD7UpV8WeYfq3tC5k="; posting-host="388f5d5811c76dfa74fd52a46663e97c" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:f0vAf5/Zf4hIO4COxPS9XtHGMbY= sha256:j0iI4uNd9eRGoSyCLQg5z948TajUF9XjPzkTiJ3O/po= sha1:tvCIVOUV420StlpUIlbICvfuSUE= sha256:2NK4Idkq/yJx5ucSjxgDD/aqXn87oWtVEXOyBRSIIxM= Content-Language: en-GB In-Reply-To: <11b0a1q$du4m$1@dont-email.me>