From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on ip-172-31-91-241.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=none autolearn=unavailable autolearn_force=no version=4.0.1 Path: nntp.eternal-september.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Lawrence =?iso-8859-13?q?D=FFOliveiro?= Newsgroups: comp.lang.ada Subject: Re: In precision typing we trust Date: Tue, 26 Aug 2025 07:27:46 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: <108jnli$3tb4m$1@dont-email.me> References: <107uv9g$3019a$1@dont-email.me> <107v1ji$303of$1@dont-email.me> <336fbb5f-a279-ea8e-67fd-f62bb00d6a89@irrt.De> <107vfb9$34cpj$1@dont-email.me> <10855lq$gj8l$1@dont-email.me> <1088h1a$19635$1@dont-email.me> <1089p1i$1ig1d$1@dont-email.me> <108aq2p$1qo9o$1@dont-email.me> <108dh2l$2f5h3$1@dont-email.me> <108ej11$2mbr8$1@dont-email.me> <108g1fv$32gqg$3@dont-email.me> <108h6b7$3a75k$3@dont-email.me> <87plcjn5ru.fsf@nightsong.com> <108hek3$3c6u1$1@dont-email.me> <87ldn7mil5.fsf@nightsong.com> <108ift9$3kh0r$1@dont-email.me> <87h5xvm6qs.fsf@nightsong.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 26 Aug 2025 07:27:47 +0000 (UTC) Injection-Info: dont-email.me; posting-host="f622d090ed29a92d32394a3970dab3c3"; logging-data="4107414"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19I+lvlYSxL25+P6Qnwiwxj" User-Agent: Pan/0.163 (Kryvyi Rih) Cancel-Lock: sha1:yJedtti/KaWTPw75GFqdWAvpvGc= Xref: feeder.eternal-september.org comp.lang.ada:66924 List-Id: On Mon, 25 Aug 2025 14:27:55 -0700, Paul Rubin wrote: > It's not really useful to think of Python types as sets. Python isn't > that mathematical. Duck-typing, on the other hand, does make sense in terms of grouping Python objects into (possibly overlapping) sets. E.g. a function that wants to write to what is nominally an output text file might happily accept any object that has a “.write()” method that takes a string argument.