Path: ...!feeds.phibee-telecom.net!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: vallor Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Python (was Re: I did not inhale) Date: Fri, 30 Aug 2024 14:01:14 -0000 (UTC) Organization: A noiseless patient Spider Lines: 30 Message-ID: References: <20240826083330.00004760@gmail.com> <20240826155113.000005ba@gmail.com> <87y14hd4bk.fsf@nosuchdomain.example.com> <87ikvlcs7i.fsf@nosuchdomain.example.com> <87ttf4bdcx.fsf@nosuchdomain.example.com> <875xrkb2iq.fsf@nosuchdomain.example.com> <87zfou9926.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 30 Aug 2024 16:01:14 +0200 (CEST) Injection-Info: dont-email.me; posting-host="9be24c4b805c2be62372b2d3b9cd182b"; logging-data="218349"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+V9VjlmECTFxhoBhDFDejy" User-Agent: Pan/0.160 (Toresk; 7830f38; Linux-6.11.0-rc5) Cancel-Lock: sha1:LcxrSwkuTcbPP7Sncur7UDcRDSE= X-Face: \}2`P"_@pS86<'EM:'b.Ml}8IuMK"pV"?FReF$'c.S%u9 wrote in <87zfou9926.fsf@nosuchdomain.example.com>: > Lawrence D'Oliveiro writes: > [...] >> Think about why you bother to indent code in languages where the >> compiler ignores such indentation anyway: it means you are expressing >> the structure of code in two different ways, one via statement >> brackets, and the other via indentation. This redundancy aids in >> understanding that the code does what you think it does. >> >> Python gets rid of this redundancy, by having the compiler take notice >> of the whitespace and removing the statement bracketing symbols. So I >> put it back, by adding statement bracketing symbols that the compiler >> ignores. > > You might find Bython useful. > > https://github.com/mathialo/bython > > (I don't, but you might.) Thank you for the pointer. (Had been wondering if there was something like "ratfor for python", and here it is. :) ) -- -v