Deutsch English Français Italiano |
<wwvzfowlknj.fsf@LkoBDZeT.terraraq.uk> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!2.eu.feeder.erje.net!feeder.erje.net!fdn.fr!usenet-fr.net!news.gegeweb.eu!gegeweb.org!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail From: Richard Kettlewell <invalid@invalid.invalid> Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Python (was Re: I did not inhale) Date: Wed, 28 Aug 2024 16:41:36 +0100 Organization: terraraq NNTP server Message-ID: <wwvzfowlknj.fsf@LkoBDZeT.terraraq.uk> References: <uu54la$3su5b$6@dont-email.me> <va44rh$3p1l6$1@dont-email.me> <va45eq$3pkt9$1@dont-email.me> <va4aut$3q4g0$1@dont-email.me> <va4fbr$3qvij$1@dont-email.me> <va5108$3tmmd$1@dont-email.me> <va51ok$3tqr9$1@dont-email.me> <va5ec2$3vluh$1@dont-email.me> <va6q4g$c1a7$1@dont-email.me> <va6rpa$c6bg$1@dont-email.me> <va6se9$cb8e$1@dont-email.me> <20240826083330.00004760@gmail.com> <vaises$2k7o6$2@dont-email.me> <20240826155113.000005ba@gmail.com> <wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vam36p$3avsi$1@dont-email.me> <20240828082521.00005968@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6"; logging-data="55938"; mail-complaints-to="usenet@innmantic.terraraq.uk" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cancel-Lock: sha1:nDXBFfYJdFMoeUyitKOB2cMpiD8= X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^ F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha +r0NzP?vnz:e/knOY)PI- X-Boydie: NO Bytes: 3015 Lines: 28 John Ames <commodorejohn@gmail.com> writes: > Sebastian <sebastian@here.com.invalid> wrote: > >> At my company, somebody tried to delete a method like method2() >> above, but forgot the last few lines (represented by call6()). This >> does not introduce a SyntaxError. Instead, call6() is now part of >> method1() because it's at the same level of indentation. In most >> programming languages, the beginning of method2() would be preceded >> by some delimiter marking the end of method1(), which would prevent >> an accidental merger of this type. > > (Waiting for the Python advocates to fire back with "well, don't do > that, then!" and completely miss the point that it's exactly the topic > of contention here that Python's scope-by-layout approach that makes it > easy to do that...) Earlier I wrote: | (In contrast C’s rules have occasionally been a practical problem, | contributing to at least one high-profile software vulnerability and | attracting compiler warnings to mitigate the risks.) The situation seems pretty similar. In any language if you delete the wrong thing then you probably won’t like the outcome. In both cases if it’s not quickly detected by unit tests or some other automation then it’s probably time to review your approach to quality. -- https://www.greenend.org.uk/rjk/