Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <valgpu$34s18$1@dont-email.me>
Deutsch   English   Français   Italiano  
<valgpu$34s18$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Tue, 27 Aug 2024 21:34:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <valgpu$34s18$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <v9m4gd$14scu$1@dont-email.me>
	<20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me>
	<v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me>
	<va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@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>
	<vak9k9$2ujrs$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 27 Aug 2024 23:34:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2836e4fdb00ca78ddad73240b3d2d9a3";
	logging-data="3305512"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18c1vMvqET1cCjwQ3N3uSNd"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:ubOXZ62sJplFoGHgfhRQJIOX8Y0=
Bytes: 3090

On Tue, 27 Aug 2024 11:26:18 +0100, Bart wrote:

> (2) You want to temporarily comment out an 'if' line so that the
> following block is unconditional. You can't do that with also
> unindenting the block.

In Emacs, I have commands defined to adjust the indentation of the 
selected region. Surely any other decent editor would offer the same.

> And, also  the block then merges with the
> following one as it's at the same level, so when you want to change it
> back...

This is where my “#end” comments come in.

> (6a) And maybe there's big comment blocking in the middle of block;
> comments don't need nesting! If there are lots of comments and few
> statements, finding the end of the block (ie. the last statement of this
> block) can become quite an exercise.

Again, “#end” comments help with this.

> (7) You take some Python code you've seen online (eg. in a usenet post)
> and paste into your editor. Maybe you want to merge it with your own
> code.
> 
> But its tabbing is all spaces; yours is all tabs. Plus invariably, the
> whole thing has extra indentation (eg. the leftmost statement is already
> indented). Or you want to copy code from within a block to a different
> indent level.

Like I said, Emacs makes this easy. Also a quick application of “untabify” 
will turn all tabs in the selected region to spaces, to match with the 
rest of my code.