Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Dead? No excuse for laying off work.


computers / comp.os.linux.advocacy / Re: Tabs As Syntax

SubjectAuthor
* Tabs As SyntaxNuxxie
+* Re: Tabs As SyntaxChris Ahlstrom
|+* Re: Tabs As SyntaxDFS
||+- Re: The more spastic the code, the greater the whitespace & comments.DFS
||+- Re: Tabs As SyntaxLawrence D'Oliveiro
||`* Re: Tabs As Syntaxrbowman
|| +* Re: Tabs As SyntaxLawrence D'Oliveiro
|| |`* Re: Tabs As Syntaxrbowman
|| | `- Re: Tabs As SyntaxLawrence D'Oliveiro
|| +* Re: Tabs As SyntaxDFS
|| |`* Re: Tabs As Syntaxrbowman
|| | +- Re: Tabs As SyntaxLawrence D'Oliveiro
|| | +* Re: Tabs As Syntaxcandycanearter07
|| | |`* Re: Tabs As SyntaxChris Ahlstrom
|| | | `- Re: Tabs As Syntaxrbowman
|| | `- Re: Tabs As SyntaxDFS
|| `* Re: Tabs As SyntaxChris Ahlstrom
||  +* Re: Tabs As Syntaxrbowman
||  |+* Re: Tabs As SyntaxChris Ahlstrom
||  ||+* Re: Tabs As Syntaxcandycanearter07
||  |||`- Re: Tabs As SyntaxChris Ahlstrom
||  ||`* Re: Tabs As SyntaxLawrence D'Oliveiro
||  || `* Re: Tabs As SyntaxChris Ahlstrom
||  ||  +* Re: Tabs As SyntaxDFS
||  ||  |+- Re: Tabs As Syntaxrbowman
||  ||  |+- Re: Tabs As SyntaxLawrence D'Oliveiro
||  ||  |`* Re: Tabs As SyntaxChris Ahlstrom
||  ||  | `- Re: Tabs As SyntaxPhysfitfreak
||  ||  `- Re: Tabs As Syntaxrbowman
||  |`* Re: Tabs As SyntaxDFS
||  | `- Re: Tabs As Syntaxrbowman
||  `* Re: Tabs As SyntaxLawrence D'Oliveiro
||   `- Re: Tabs As SyntaxChris Ahlstrom
|`* Re: Tabs As SyntaxLawrence D'Oliveiro
| `* Re: Tabs As SyntaxDFS
|  `* Re: Tabs As SyntaxLawrence D'Oliveiro
|   `* Re: Tabs As SyntaxDFS
|    `* Re: Tabs As SyntaxLawrence D'Oliveiro
|     +* Re: Tabs As SyntaxDFS
|     |`* Re: Tabs As SyntaxLawrence D'Oliveiro
|     | `* Re: Tabs As SyntaxDFS
|     |  `* Re: Tabs As SyntaxLawrence D'Oliveiro
|     |   `* Re: Tabs As SyntaxDFS
|     |    `- Re: Tabs As SyntaxLawrence D'Oliveiro
|     `* Re: Tabs As SyntaxChris Ahlstrom
|      `* Re: Tabs As Syntaxcandycanearter07
|       `* Re: Tabs As SyntaxChris Ahlstrom
|        `- Re: Tabs As Syntaxcandycanearter07
+- Re: Tabs As SyntaxDFS
`- Re: Tabs As SyntaxLawrence D'Oliveiro

Pages:12
Re: Tabs As Syntax

<utl4m5$3700q$6@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12486&group=comp.os.linux.advocacy#12486

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Fri, 22 Mar 2024 23:36:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 64
Message-ID: <utl4m5$3700q$6@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me>
<l624u3Fn16lU13@mid.individual.net> <uthf4s$28e7g$1@dont-email.me>
<l64bi6F2m1hU17@mid.individual.net> <utjt1t$2tns5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Mar 2024 23:36:38 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="50afb5c9c454d4fc23edeea8f731b72c";
logging-data="3375130"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+RcR+x5aL6IB1QTZmlnwGG"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:lmYTsYey4qPuf/ZFxXA3TxKfY6c=
 by: Lawrence D'Oliv - Fri, 22 Mar 2024 23:36 UTC

On Fri, 22 Mar 2024 08:20:11 -0400, Chris Ahlstrom wrote:

> operator << is useful with std::ostringstream when you want to avoid
> having deal with allocating enough output space. Still, I use this a
> lot:
>
> char temp[32];
> snprintf(temp, sizeof temp, "We have %d idiots here", idcount);
>
> Sometime a printf specification is just easier to read.

I wrote this a long time ago, for use in some projects in C++. You can
tell it was a long time ago, from the checking for glibc versions:

std::string string_printf
(
const char * Format,
...
)
/* does an sprintf of its remaining arguments according to Format,
returning the formatted result. */
{
std::string Result;
char * TempBuf;
ulong TempBufSize;
TempBuf = nil;
TempBufSize = 128; /* something reasonable to begin with */
for (;;)
{
TempBuf = (char *)malloc(TempBufSize);
if (TempBuf == nil)
break;
va_list Args;
va_start(Args, Format);
const long BufSizeNeeded = vsnprintf(TempBuf, TempBufSize, Format, Args);
/* not including trailing null */
va_end(Args);
if (BufSizeNeeded >= 0 and BufSizeNeeded < TempBufSize)
{
/* the whole thing did fit */
TempBufSize = BufSizeNeeded; /* not including trailing null */
break;
} /*if*/
free(TempBuf);
if (BufSizeNeeded < 0)
{
/* glibc < 2.1 */
TempBufSize *= 2; /* try something bigger */
}
else
{
/* glibc >= 2.1 */
TempBufSize = BufSizeNeeded + 1;
/* now I know how much I need, including trailing null */
} /*if*/
} /*for*/
if (TempBuf != nil)
{
Result.append(TempBuf, TempBufSize);
free(TempBuf);
} /*if*/
return
Result;
} /*string_printf*/

Re: Tabs As Syntax

<l66j6uFe9t7U4@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12487&group=comp.os.linux.advocacy#12487

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: 22 Mar 2024 23:40:14 GMT
Lines: 13
Message-ID: <l66j6uFe9t7U4@mid.individual.net>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me>
<l624u3Fn16lU13@mid.individual.net> <uthc9v$27npc$1@dont-email.me>
<l64bbaF2m1hU16@mid.individual.net> <utk70k$305bf$3@dont-email.me>
<utkhbc$32kac$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net elC0pqh+O2dId/kMM6dscAZx1702Rx2C5bpOVBH0Yvf3YykjqO
Cancel-Lock: sha1:V/uh/X8oBaUSrz2X50GsN6h5BCo= sha256:lWkgfl3bEKbZ1GyutTu9xETsFuq7Y1J04qI2LMPaYuQ=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Fri, 22 Mar 2024 23:40 UTC

On Fri, 22 Mar 2024 14:06:36 -0400, Chris Ahlstrom wrote:

>> f-strings are so nice, especially since you can use it as arguments for
>> other functions and don't have to rely on a temporary string var.
>
> Those sound like the formatting available for C# String.

I think they were introduced in 3.9. It really smells like a case of 'Duh,
why didn't we think of that?' I think C# got there first from the older

("The {0} blivits were shipped to {1}", "useless", "washington")'

style.

Re: Tabs As Syntax

<utmgt6$3k6u5$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12530&group=comp.os.linux.advocacy#12530

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Sat, 23 Mar 2024 08:11:18 -0400
Organization: None
Lines: 93
Message-ID: <utmgt6$3k6u5$3@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me>
<l624u3Fn16lU13@mid.individual.net> <uthf4s$28e7g$1@dont-email.me>
<l64bi6F2m1hU17@mid.individual.net> <utjt1t$2tns5$1@dont-email.me>
<utl4m5$3700q$6@dont-email.me>
Reply-To: OFeem1987@teleworm.us
Injection-Date: Sat, 23 Mar 2024 12:11:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a6417b6dd3018b971d95f91d5199bdde";
logging-data="3808197"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18k2LlBXngEnDPf0V2XFGQO"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:ufuw9OnRITJhyPVImpFaz3iMeEw=
X-Slrn: Why use anything else?
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Mutt: The most widely-used MUA
 by: Chris Ahlstrom - Sat, 23 Mar 2024 12:11 UTC

Lawrence D'Oliveiro wrote this copyrighted missive and expects royalties:

> On Fri, 22 Mar 2024 08:20:11 -0400, Chris Ahlstrom wrote:
>
>> operator << is useful with std::ostringstream when you want to avoid
>> having deal with allocating enough output space. Still, I use this a
>> lot:
>>
>> char temp[32];
>> snprintf(temp, sizeof temp, "We have %d idiots here", idcount);
>>
>> Sometime a printf specification is just easier to read.
>
> I wrote this a long time ago, for use in some projects in C++. You can
> tell it was a long time ago, from the checking for glibc versions:
>
> std::string string_printf
> (
> const char * Format,
> ...
> )
> /* does an sprintf of its remaining arguments according to Format,
> returning the formatted result. */
> {
> std::string Result;
> char * TempBuf;
> ulong TempBufSize;
> TempBuf = nil;
> TempBufSize = 128; /* something reasonable to begin with */
> for (;;)
> {
> TempBuf = (char *)malloc(TempBufSize);
> if (TempBuf == nil)
> break;
> va_list Args;
> va_start(Args, Format);
> const long BufSizeNeeded = vsnprintf(TempBuf, TempBufSize, Format, Args);
> /* not including trailing null */
> va_end(Args);
> if (BufSizeNeeded >= 0 and BufSizeNeeded < TempBufSize)
> {
> /* the whole thing did fit */
> TempBufSize = BufSizeNeeded; /* not including trailing null */
> break;
> } /*if*/
> free(TempBuf);
> if (BufSizeNeeded < 0)
> {
> /* glibc < 2.1 */
> TempBufSize *= 2; /* try something bigger */
> }
> else
> {
> /* glibc >= 2.1 */
> TempBufSize = BufSizeNeeded + 1;
> /* now I know how much I need, including trailing null */
> } /*if*/
> } /*for*/
> if (TempBuf != nil)
> {
> Result.append(TempBuf, TempBufSize);
> free(TempBuf);
> } /*if*/
> return
> Result;
> } /*string_printf*/

You showed me yours. Let me show you mine. :-D

te<typename ... Args>
std::string string_format (const std::string & format, Args ... args)
{ std::string result;
size_t sz = std::snprintf(nullptr, 0, format.c_str(), args ...);
if (sz > 0)
{
std::unique_ptr<char []> buf(new char[sz + 1]);
std::snprintf(buf.get(), sz + 1, format.c_str(), args ...);
result = std::string(buf.get(), buf.get() + sz);
}
return result;
}

Note the variadic template.

In C++20 you can apparently write

#include <format>
std::string result = std::format("{} {}!", "Hello", "world");

--
You seek to shield those you love and you like the role of the provider.

Re: Tabs As Syntax

<utmo8b$3m8el$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12544&group=comp.os.linux.advocacy#12544

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Sat, 23 Mar 2024 10:16:46 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <utmo8b$3m8el$1@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me>
<l624u3Fn16lU13@mid.individual.net> <uthf4s$28e7g$1@dont-email.me>
<l64bi6F2m1hU17@mid.individual.net> <utjt1t$2tns5$1@dont-email.me>
<utl4m5$3700q$6@dont-email.me> <utmgt6$3k6u5$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 23 Mar 2024 14:16:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0f26139fa1f569a69bed5a06a43fb65b";
logging-data="3875285"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Umgtr3QOuMFzeKEj1r0Bw"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:XGwogZ9gN0eGxlHOb3T+0uG236g=
In-Reply-To: <utmgt6$3k6u5$3@dont-email.me>
Content-Language: en-US
 by: DFS - Sat, 23 Mar 2024 14:16 UTC

On 3/23/2024 8:11 AM, Chris Ahlstrom wrote:

> te<typename ... Args>
> std::string string_format (const std::string & format, Args ... args)
> {
> std::string result;
> size_t sz = std::snprintf(nullptr, 0, format.c_str(), args ...);
> if (sz > 0)
> {
> std::unique_ptr<char []> buf(new char[sz + 1]);
> std::snprintf(buf.get(), sz + 1, format.c_str(), args ...);
> result = std::string(buf.get(), buf.get() + sz);
> }
> return result;
> }
>
> Note the variadic template.

I note the two thousand uses of std::.

Couldn't you just use 'using namespace std;' inside this function (or
whatever this 'te' thing is?)

Re: Tabs As Syntax

<l68vu8Foi1bU14@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12585&group=comp.os.linux.advocacy#12585

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: 23 Mar 2024 21:29:45 GMT
Lines: 13
Message-ID: <l68vu8Foi1bU14@mid.individual.net>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me>
<l624u3Fn16lU13@mid.individual.net> <uthf4s$28e7g$1@dont-email.me>
<l64bi6F2m1hU17@mid.individual.net> <utjt1t$2tns5$1@dont-email.me>
<utl4m5$3700q$6@dont-email.me> <utmgt6$3k6u5$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net VSqZ0dFrGBPNOomGC4haDwb4d3Bm8ujU6DRrYtSnF2VHf7LUCu
Cancel-Lock: sha1:93yijpnRB4TYsck7lM8dg9u/gow= sha256:QhVcvHqxtGEaPjKXzNcGZQeBMMHcoeAv6yUOdU5VyHk=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Sat, 23 Mar 2024 21:29 UTC

On Sat, 23 Mar 2024 08:11:18 -0400, Chris Ahlstrom wrote:

> In C++20 you can apparently write
>
> #include <format>
> std::string result = std::format("{} {}!", "Hello", "world");

Strictly positional? If you're perverted

string result = string.Format("{1} {0}!", "Hello", "world");

will give you "world Hello" in C#. There are legitimate uses where you
might want to repeat an object I guess.

Re: Tabs As Syntax

<l690uvFq8gpU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12588&group=comp.os.linux.advocacy#12588

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: 23 Mar 2024 21:47:11 GMT
Lines: 18
Message-ID: <l690uvFq8gpU1@mid.individual.net>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me>
<l624u3Fn16lU13@mid.individual.net> <uthf4s$28e7g$1@dont-email.me>
<l64bi6F2m1hU17@mid.individual.net> <utjt1t$2tns5$1@dont-email.me>
<utl4m5$3700q$6@dont-email.me> <utmgt6$3k6u5$3@dont-email.me>
<utmo8b$3m8el$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net qF+wTGY6fVpQuJfCRjtKFQS3QfoBPO+YNrffqWR4EOq08OkZoF
Cancel-Lock: sha1:U0f8vw4vWIZlkxs64s/aohmg2Y0= sha256:X9snXn/1byZwz5F/68Z02BS/FULbsNEkdNbFT/vpiSQ=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Sat, 23 Mar 2024 21:47 UTC

On Sat, 23 Mar 2024 10:16:46 -0400, DFS wrote:

> I note the two thousand uses of std::.
>
> Couldn't you just use 'using namespace std;' inside this function (or
> whatever this 'te' thing is?)

Evil! Evil! Don't you realize there is a 1 in 23 million chance someone
has defined cout locally? I suppose you're one of those people in Python
that have

import KitchenSink

rather than

from KitchenSink import stopper

Re: Tabs As Syntax

<utnk24$3sqhf$5@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12594&group=comp.os.linux.advocacy#12594

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Sat, 23 Mar 2024 22:11:16 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <utnk24$3sqhf$5@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me>
<l624u3Fn16lU13@mid.individual.net> <uthf4s$28e7g$1@dont-email.me>
<l64bi6F2m1hU17@mid.individual.net> <utjt1t$2tns5$1@dont-email.me>
<utl4m5$3700q$6@dont-email.me> <utmgt6$3k6u5$3@dont-email.me>
<utmo8b$3m8el$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 23 Mar 2024 22:11:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8288a6795704a6fce0c976674ad0a261";
logging-data="4090415"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/jtbvY3QUXahFF/g15/LRc"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:cjRRRpMwBdQ5wD4VgiR/m7+qvTk=
 by: Lawrence D'Oliv - Sat, 23 Mar 2024 22:11 UTC

On Sat, 23 Mar 2024 10:16:46 -0400, DFS wrote:

> I note the two thousand uses of std::.

using-clauses are fine inside .cpp files. Not so good in .h files, because
then they contaminate the namespace of every source file that includes
them.

In C++, it seems quite common to write header-only code (using inlines
etc), so there are no additional object files to link against.

Re: Tabs As Syntax

<utp755$c5vq$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12652&group=comp.os.linux.advocacy#12652

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Sun, 24 Mar 2024 08:43:15 -0400
Organization: None
Lines: 59
Message-ID: <utp755$c5vq$1@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me>
<l624u3Fn16lU13@mid.individual.net> <uthf4s$28e7g$1@dont-email.me>
<l64bi6F2m1hU17@mid.individual.net> <utjt1t$2tns5$1@dont-email.me>
<utl4m5$3700q$6@dont-email.me> <utmgt6$3k6u5$3@dont-email.me>
<utmo8b$3m8el$1@dont-email.me>
Reply-To: OFeem1987@teleworm.us
Injection-Date: Sun, 24 Mar 2024 12:43:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="aee499f110845a23424a36b92b1eaf78";
logging-data="399354"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18YixoowZtg+rjvRjA1O7rH"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:lppn5wizHDYAV5xfa4AselvCO8E=
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Mutt: The most widely-used MUA
X-Slrn: Why use anything else?
 by: Chris Ahlstrom - Sun, 24 Mar 2024 12:43 UTC

DFS wrote this copyrighted missive and expects royalties:

> On 3/23/2024 8:11 AM, Chris Ahlstrom wrote:
>
>> te<typename ... Args>
>> std::string string_format (const std::string & format, Args ... args)
>> {
>> std::string result;
>> size_t sz = std::snprintf(nullptr, 0, format.c_str(), args ...);
>> if (sz > 0)
>> {
>> std::unique_ptr<char []> buf(new char[sz + 1]);
>> std::snprintf(buf.get(), sz + 1, format.c_str(), args ...);
>> result = std::string(buf.get(), buf.get() + sz);
>> }
>> return result;
>> }
>>
>> Note the variadic template.

Heh, didn't notice that "template" got chopped to "te". Fumble-fingers!

> I note the two thousand uses of std::.

Actually, I left out one for the size_t declaration: std::size_t.

> Couldn't you just use 'using namespace std;' inside this function (or
> whatever this 'te' thing is?)
^ template DOH!

Like Larry said about using them in headers. But I will use them in headers in
this manner:

namespace foo
{ using container = std::vector<std::byte>;

class bar
{
using container = std::map<std::string, std::string>;
. . .
};
}

So the caller can choose to use foo::container or foo::bar::container.

If all those namespace bug you, you will surely hate the Boost libraries.
As I recall, it has nested namespaces galore.

One other note: I never use "using namespace std", even in the cpp file.
Also the same with namespaces used in other libraries, including my own
libraries. Better to show them upfront to avoid puzzlement.

And I don't do that in main(), either... always specify the namespace.
Adds clarity (and clutter, I will admit).

--
Q: What do Winnie the Pooh and John the Baptist have in common?
A: The same middle name.

Re: Tabs As Syntax

<utpk8s$1ovte$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12679&group=comp.os.linux.advocacy#12679

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Sun, 24 Mar 2024 11:27:09 -0500
Message-ID: <utpk8s$1ovte$1@solani.org>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me>
<l624u3Fn16lU13@mid.individual.net> <uthf4s$28e7g$1@dont-email.me>
<l64bi6F2m1hU17@mid.individual.net> <utjt1t$2tns5$1@dont-email.me>
<utl4m5$3700q$6@dont-email.me> <utmgt6$3k6u5$3@dont-email.me>
<utmo8b$3m8el$1@dont-email.me> <utp755$c5vq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 24 Mar 2024 16:27:08 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1867694"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:3jxEs+cCoGMKlu6VfCWAMNjo91c=
X-Antivirus-Status: Clean
Content-Language: en-US
In-Reply-To: <utp755$c5vq$1@dont-email.me>
X-User-ID: eJwNy8kRACAIBLCWxGURy1GO/kvQb2ZCmFgsNZqy2bYy+kwgU+kb6oKZpth1P2h1CX34ZPnoCvmn7u4Bv5ZxHkYIFao=
X-Antivirus: Avast (VPS 240324-6, 3/24/2024), Outbound message
 by: Physfitfreak - Sun, 24 Mar 2024 16:27 UTC

On 3/24/2024 7:43 AM, Chris Ahlstrom wrote:
> Heh, didn't notice that "template" got chopped to "te". Fumble-fingers!

No. Ignorance in how to toggle "typing replaces selected text".

--
This email has been checked for viruses by Avast antivirus software.
www.avast.com

Re: Tabs As Syntax

<utumm9$1s41o$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12781&group=comp.os.linux.advocacy#12781

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Tue, 26 Mar 2024 10:39:07 -0400
Organization: A noiseless patient Spider
Lines: 55
Message-ID: <utumm9$1s41o$2@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <utfstp$1pfg9$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 26 Mar 2024 15:39:05 +0100 (CET)
Injection-Info: dont-email.me; posting-host="31d28351982304b8d57cb7a4ee4f1c04";
logging-data="1970232"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/C80s6drY0+irErCvHGvzv"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:NFZMMv2s7TEnVNkltDRMpoNPFmE=
Content-Language: en-US
In-Reply-To: <utfstp$1pfg9$2@dont-email.me>
 by: DFS - Tue, 26 Mar 2024 14:39 UTC

On 3/20/2024 7:53 PM, Lawrence D'Oliveiro wrote:

> Python does away with that redundancy, by making the indentation serve
> as statement-bracketing as well. I think this is a mistake. However, I
> restore the redundancy by adding “#end” lines (which the compiler
> ignores). E.g.
>
> def parse_headers() :
> nonlocal content_type, content_type_opts
> for keyword, value in scope["headers"] :
> keyword = keyword.decode().lower()
> if keyword == "content-type" :
> content_type = value.decode()
> elif keyword == "cookie" :
> for item in value.decode().split(";") :
> name, val = item.strip().replace(" ", "").split("=", 1)
> cookies[name] = val
> #end for
> #end if
> #end for
> if content_type != None :
> content_type, content_type_opts = \
> multipart.multipart.parse_options_header(content_type)
> content_type = content_type.decode()
> content_type_opts = dict((k.decode(), v) for k, v in content_type_opts.items())
> #end if
> #end parse_headers

Let me fix that back for you:

def parse_headers() :
nonlocal content_type, content_type_opts
for keyword, value in scope["headers"] :
keyword = keyword.decode().lower()
if keyword == "content-type" :
content_type = value.decode()
elif keyword == "cookie" :
for item in value.decode().split(";") :
name, val = item.strip().replace(" ", "").split("=", 1)
cookies[name] = val
if content_type != None :
content_type, content_type_opts = \
multipart.multipart.parse_options_header(content_type)
content_type = content_type.decode()
content_type_opts = dict((k.decode(), v) for k, v in
content_type_opts.items())

much better

Re: Tabs As Syntax

<uu1o5o$30dhk$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12845&group=comp.os.linux.advocacy#12845

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Wed, 27 Mar 2024 14:22:46 -0400
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <uu1o5o$30dhk$1@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me>
<l624u3Fn16lU13@mid.individual.net> <uthf4s$28e7g$1@dont-email.me>
<l64bi6F2m1hU17@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 27 Mar 2024 18:22:49 +0100 (CET)
Injection-Info: dont-email.me; posting-host="026030a9c3920d5c68f7df1fee425d10";
logging-data="3159604"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GdBoAUDzsbYaR7CVv7U1m"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:1/3V7kalsgKUVCKcajKdsEtoL5U=
In-Reply-To: <l64bi6F2m1hU17@mid.individual.net>
Content-Language: en-US
 by: DFS - Wed, 27 Mar 2024 18:22 UTC

On 3/21/2024 11:17 PM, rbowman wrote:
> On Thu, 21 Mar 2024 10:10:33 -0400, Chris Ahlstrom wrote:
>
>> for (int n : { 2, 4, 6, 8 })
>> std::cout << n << ", ";
>>
>> std::cout << "who do we appreciate?" << std::endl
>>
>> (std::endl is \n with a flush.
>
> cout never did much for me either. That's one of the areas that seemed
> like a gratuitous departure from C.
>
> Then there is the Python
>
> print("Never again!", end="\r")

in a console that prints:
r again!

use end="\n", which flushes stdout

in a 'real' program:

import time
for i in range(5):
print(i+1,"Never again!",end='\r',flush=True)
time.sleep(0.5)

Re: Tabs As Syntax

<l6k4frFhatiU10@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=12863&group=comp.os.linux.advocacy#12863

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: 28 Mar 2024 02:54:52 GMT
Lines: 44
Message-ID: <l6k4frFhatiU10@mid.individual.net>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me>
<l624u3Fn16lU13@mid.individual.net> <uthf4s$28e7g$1@dont-email.me>
<l64bi6F2m1hU17@mid.individual.net> <uu1o5o$30dhk$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net lSZi5aoQbIoWzdAukDqwWwmgfR6yTlJdMaj7C5szT3uR9jjvqL
Cancel-Lock: sha1:ozSVOIPkqmVWkm0yJzZ4zAh171Q= sha256:HLH/9UVKNHX4ZRnU3l8Tgr/nIeysgBi+A3JPw873QEA=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Thu, 28 Mar 2024 02:54 UTC

On Wed, 27 Mar 2024 14:22:46 -0400, DFS wrote:

> import time for i in range(5):
> print(i+1,"Never again!",end='\r',flush=True)
> time.sleep(0.5)

Odd.

import time

print("start")
for i in range(5):
print("never again!",end='\r')
time.sleep(0.5)
print("\ndone")

You don't need the sleep either.

print(i, "never again!",end='\r')

without the sleep gives

$ python junk.py
start
4 never again!
done

Put the sleep back in and you can see it counting up. It must be a timing
thing in the console. My original use was reading a DHT11 with a Pico
using MicroPython

https://www.mouser.com/datasheet/2/758/DHT11-Technical-Data-Sheet-
Translated-Version-1143054.pdf

The print() output goes to the terminal in VS Code. I wanted the update to
be

temperature: 68.0 F humidity: 36%

and stay on the one line without scrolling each second. You can't read the
DHT11 faster than once a second so it worked fine. end='\n' is the
default for print() and exactly what I didn't want.

Re: Tabs As Syntax

<uuj10i$3phh2$4@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13182&group=comp.os.linux.advocacy#13182

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Wed, 3 Apr 2024 07:37:55 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <uuj10i$3phh2$4@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <utfstp$1pfg9$2@dont-email.me>
<utumm9$1s41o$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 03 Apr 2024 07:37:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="16e69d2ca1c4626c1f9269404c95150f";
logging-data="3982882"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18O8aN/z25K+z8QYA3SEYhD"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:f0q4TMibskHHEOokIKP/i3rnzHg=
 by: Lawrence D'Oliv - Wed, 3 Apr 2024 07:37 UTC

On Tue, 26 Mar 2024 10:39:07 -0400, DFS wrote:

> Let me fix that back for you:

You can see why I think this is a mistake.

Re: Tabs As Syntax

<uujvdj$19sa$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13197&group=comp.os.linux.advocacy#13197

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Wed, 3 Apr 2024 12:16:50 -0400
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <uujvdj$19sa$1@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <utfstp$1pfg9$2@dont-email.me>
<utumm9$1s41o$2@dont-email.me> <uuj10i$3phh2$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 03 Apr 2024 16:16:51 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a44ea2b6733e7c1152ba22014e8f1ae1";
logging-data="42890"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bobVFf5QbM/DctJ4krO3N"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:99feM7/ziuh6y5b9paj88CpvkHQ=
In-Reply-To: <uuj10i$3phh2$4@dont-email.me>
Content-Language: en-US
 by: DFS - Wed, 3 Apr 2024 16:16 UTC

On 4/3/2024 3:37 AM, Lawrence D'Oliveiro wrote:
> On Tue, 26 Mar 2024 10:39:07 -0400, DFS wrote:
>
>> Let me fix that back for you:
>
> You can see why I think this is a mistake.

I cannot.

def
if
for
if
if
for
if
break

calm

def() {
if () {
for () {
if() {
if() {
for() {
if() {
break
}
}
}
}
}
}
}
}

storm

Re: Tabs As Syntax

<uuni3g$vbtu$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13227&group=comp.os.linux.advocacy#13227

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Fri, 5 Apr 2024 00:54:09 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 87
Message-ID: <uuni3g$vbtu$3@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <utfstp$1pfg9$2@dont-email.me>
<utumm9$1s41o$2@dont-email.me> <uuj10i$3phh2$4@dont-email.me>
<uujvdj$19sa$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 05 Apr 2024 00:54:09 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f5e959706a1ab93774d71c78cd2d7e1b";
logging-data="1028030"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19o7zlZemm7IMr7HL6H0YxT"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:3uiG44kd2dok0PxIgEBUNJWGrdc=
 by: Lawrence D'Oliv - Fri, 5 Apr 2024 00:54 UTC

On Wed, 3 Apr 2024 12:16:50 -0400, DFS wrote:

> I cannot.

Here’s another example. First, without #end comments:

class xattr(ct.Structure) :
_fields_ = \
[
("fsx_xflags", ct.c_uint32),
("fsx_extsize", ct.c_uint32),
("fsx_nextents", ct.c_uint32),
("fsx_projid", ct.c_uint32),
("fsx_cowextsize", ct.c_uint32),
("fsx_pad", 8 * ct.c_ubyte),
]

def copy(self) :
celf = type(self)
res = celf()
for f in celf._fields_ :
setattr(res, f[0], getattr(self, f[0]))
return \
res

def __repr__(self) :
return \
(
"(%s)"
%
", ".join
(
"%%s = %s" % ("%d", "%#0.8x")[f == "fsx_xflags"]
%
(f, getattr(self, f))
for f in
("fsx_xflags", "fsx_extsize", "fsx_nextents", "fsx_projid", "fsx_cowextsize")
)
)

XFLAG_REALTIME = 0x00000001
XFLAG_PREALLOC = 0x00000002

Where does the “xattr” class end? Does it include those symbolic
parameters at the bottom? Can you see that clearly? Compare this way:

class xattr(ct.Structure) :
_fields_ = \
[
("fsx_xflags", ct.c_uint32),
("fsx_extsize", ct.c_uint32),
("fsx_nextents", ct.c_uint32),
("fsx_projid", ct.c_uint32),
("fsx_cowextsize", ct.c_uint32),
("fsx_pad", 8 * ct.c_ubyte),
]

def copy(self) :
celf = type(self)
res = celf()
for f in celf._fields_ :
setattr(res, f[0], getattr(self, f[0]))
#end for
return \
res
#end copy

def __repr__(self) :
return \
(
"(%s)"
%
", ".join
(
"%%s = %s" % ("%d", "%#0.8x")[f == "fsx_xflags"]
%
(f, getattr(self, f))
for f in
("fsx_xflags", "fsx_extsize", "fsx_nextents", "fsx_projid", "fsx_cowextsize")
)
)
#end __repr__

#end xattr

XFLAG_REALTIME = 0x00000001
XFLAG_PREALLOC = 0x00000002

Re: Tabs As Syntax

<uuntos$15o0k$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13241&group=comp.os.linux.advocacy#13241

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Fri, 5 Apr 2024 00:13:14 -0400
Organization: A noiseless patient Spider
Lines: 118
Message-ID: <uuntos$15o0k$1@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <utfstp$1pfg9$2@dont-email.me>
<utumm9$1s41o$2@dont-email.me> <uuj10i$3phh2$4@dont-email.me>
<uujvdj$19sa$1@dont-email.me> <uuni3g$vbtu$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 05 Apr 2024 04:13:16 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b0d848596cf862a6f355d05076c5be24";
logging-data="1237012"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gnd5WGgPm1xfLrp0jbR2L"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:i3K/MuWrFF1XI2+eBYwG/7q61bQ=
Content-Language: en-US
In-Reply-To: <uuni3g$vbtu$3@dont-email.me>
 by: DFS - Fri, 5 Apr 2024 04:13 UTC

On 4/4/2024 8:54 PM, Lawrence D'Oliveiro wrote:
> On Wed, 3 Apr 2024 12:16:50 -0400, DFS wrote:
>
>> I cannot.
>
> Here’s another example. First, without #end comments:
>
> class xattr(ct.Structure) :
> _fields_ = \
> [
> ("fsx_xflags", ct.c_uint32),
> ("fsx_extsize", ct.c_uint32),
> ("fsx_nextents", ct.c_uint32),
> ("fsx_projid", ct.c_uint32),
> ("fsx_cowextsize", ct.c_uint32),
> ("fsx_pad", 8 * ct.c_ubyte),
> ]
>
> def copy(self) :
> celf = type(self)
> res = celf()
> for f in celf._fields_ :
> setattr(res, f[0], getattr(self, f[0]))
> return \
> res
>
> def __repr__(self) :
> return \
> (
> "(%s)"
> %
> ", ".join
> (
> "%%s = %s" % ("%d", "%#0.8x")[f == "fsx_xflags"]
> %
> (f, getattr(self, f))
> for f in
> ("fsx_xflags", "fsx_extsize", "fsx_nextents", "fsx_projid", "fsx_cowextsize")
> )
> )
>
> XFLAG_REALTIME = 0x00000001
> XFLAG_PREALLOC = 0x00000002
>
> Where does the “xattr” class end?

At the XFLAG REALTIME line.

> Does it include those symbolic parameters at the bottom?

No.

> Can you see that clearly?

I can.

>Compare this way:
>
> class xattr(ct.Structure) :
> _fields_ = \
> [
> ("fsx_xflags", ct.c_uint32),
> ("fsx_extsize", ct.c_uint32),
> ("fsx_nextents", ct.c_uint32),
> ("fsx_projid", ct.c_uint32),
> ("fsx_cowextsize", ct.c_uint32),
> ("fsx_pad", 8 * ct.c_ubyte),
> ]
>
> def copy(self) :
> celf = type(self)
> res = celf()
> for f in celf._fields_ :
> setattr(res, f[0], getattr(self, f[0]))
> #end for
> return \
> res
> #end copy
>
> def __repr__(self) :
> return \
> (
> "(%s)"
> %
> ", ".join
> (
> "%%s = %s" % ("%d", "%#0.8x")[f == "fsx_xflags"]
> %
> (f, getattr(self, f))
> for f in
> ("fsx_xflags", "fsx_extsize", "fsx_nextents", "fsx_projid", "fsx_cowextsize")
> )
> )
> #end __repr__
>
> #end xattr
>
> XFLAG_REALTIME = 0x00000001
> XFLAG_PREALLOC = 0x00000002

I just don't have a problem following Python blocks. Of course if they
go more than one page it's tougher.

But go with what works for you.

My usual editor on Windows and WSL is Notepad++, and it has faint
vertical lines called indent guides, corresponding with the tab widths,
which makes the Python code (or any indented code, with or without
brackets) a touch easier to follow. They're on by default.

https://imgur.com/a/IqfufKA

Re: Tabs As Syntax

<uuo3sb$16u2p$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13248&group=comp.os.linux.advocacy#13248

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Fri, 5 Apr 2024 05:57:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <uuo3sb$16u2p$1@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <utfstp$1pfg9$2@dont-email.me>
<utumm9$1s41o$2@dont-email.me> <uuj10i$3phh2$4@dont-email.me>
<uujvdj$19sa$1@dont-email.me> <uuni3g$vbtu$3@dont-email.me>
<uuntos$15o0k$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 05 Apr 2024 05:57:32 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f5e959706a1ab93774d71c78cd2d7e1b";
logging-data="1275993"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/0+yRmiF/QyRPGiTob893"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:v5c63CBkiMMYVxZkmrBm5nReIt0=
 by: Lawrence D'Oliv - Fri, 5 Apr 2024 05:57 UTC

On Fri, 5 Apr 2024 00:13:14 -0400, DFS wrote:

> My usual editor on Windows and WSL is Notepad++, and it has faint
> vertical lines called indent guides, corresponding with the tab widths,
> which makes the Python code (or any indented code, with or without
> brackets) a touch easier to follow.

So you had to copy and paste the code into your editor before you could
make sense of it? You couldn’t do it unaided?

If that’s how you have to manage your code--whatever works for you, I
guess.

Re: Tabs As Syntax

<uuor5v$1cbiv$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13253&group=comp.os.linux.advocacy#13253

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Fri, 5 Apr 2024 08:35:11 -0400
Organization: None
Lines: 16
Message-ID: <uuor5v$1cbiv$2@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <utfstp$1pfg9$2@dont-email.me>
<utumm9$1s41o$2@dont-email.me> <uuj10i$3phh2$4@dont-email.me>
<uujvdj$19sa$1@dont-email.me> <uuni3g$vbtu$3@dont-email.me>
Reply-To: OFeem1987@teleworm.us
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 05 Apr 2024 12:35:11 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9fd3f55f2c63a8b96816feb8436fae07";
logging-data="1453663"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18FnNSgeLgOjFYLQUe+mUKi"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:PWYE9vlvEfRXAh2rZXgVZ4Ib0Yw=
X-Slrn: Why use anything else?
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Mutt: The most widely-used MUA
 by: Chris Ahlstrom - Fri, 5 Apr 2024 12:35 UTC

Lawrence D'Oliveiro wrote this copyrighted missive and expects royalties:

> On Wed, 3 Apr 2024 12:16:50 -0400, DFS wrote:
>
>> I cannot.
>
> Here’s another example. First, without #end comments:

Snipped because who wants to read Python code?

https://github.com/mathialo/bython

Python with braces.

--
Don't get stuck in a closet -- wear yourself out.

Re: Tabs As Syntax

<uuos1r$1cm97$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13257&group=comp.os.linux.advocacy#13257

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Fri, 5 Apr 2024 12:50:03 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 19
Message-ID: <uuos1r$1cm97$2@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <utfstp$1pfg9$2@dont-email.me>
<utumm9$1s41o$2@dont-email.me> <uuj10i$3phh2$4@dont-email.me>
<uujvdj$19sa$1@dont-email.me> <uuni3g$vbtu$3@dont-email.me>
<uuor5v$1cbiv$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 05 Apr 2024 12:50:03 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b2a32ba664ffdf88935a4461082c5c81";
logging-data="1464615"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IZCnDFcThZurmrtiaNhBG+BknbL9ZyLeDB8u9cYUspw=="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:CqgnMIeyg1uKZsKZ+5W6Ips8KOI=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
 by: candycanearter07 - Fri, 5 Apr 2024 12:50 UTC

Chris Ahlstrom <OFeem1987@teleworm.us> wrote at 12:35 this Friday (GMT):
> Lawrence D'Oliveiro wrote this copyrighted missive and expects royalties:
>
>> On Wed, 3 Apr 2024 12:16:50 -0400, DFS wrote:
>>
>>> I cannot.
>>
>> Here’s another example. First, without #end comments:
>
> Snipped because who wants to read Python code?
>
> https://github.com/mathialo/bython
>
> Python with braces.

I thought python already had braces.
--
user <candycane> is generated from /dev/urandom

Re: Tabs As Syntax

<661009cf$0$1129692$882e4bbb@reader.netnews.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13258&group=comp.os.linux.advocacy#13258

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!198.186.190.30.MISMATCH!news-out.netnews.com|netnews.com!postmaster.netnews.com!us8.netnews.com!not-for-mail
X-Trace: DXC=AG7g9DEIoFh9f6`g5fNY:hHWonT5<]0TmQ;nb^V>PUff5[gZBW6J?Ll>8J_kK>kdRiaSd1?7^mkEj=BeC^_lb1<cMba][>SC2Cgf;]EoU=id5f=R<hY6_C9Th
X-Complaints-To: support@blocknews.net
Date: Fri, 5 Apr 2024 10:25:20 -0400
MIME-Version: 1.0
User-Agent: Betterbird (Windows)
Subject: Re: Tabs As Syntax
Newsgroups: comp.os.linux.advocacy
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com> <utejt0$1fq95$1@dont-email.me> <utfstp$1pfg9$2@dont-email.me> <utumm9$1s41o$2@dont-email.me> <uuj10i$3phh2$4@dont-email.me> <uujvdj$19sa$1@dont-email.me> <uuni3g$vbtu$3@dont-email.me> <uuntos$15o0k$1@dont-email.me> <uuo3sb$16u2p$1@dont-email.me>
Content-Language: en-US
From: nospam@dfs.com (DFS)
In-Reply-To: <uuo3sb$16u2p$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 15
Message-ID: <661009cf$0$1129692$882e4bbb@reader.netnews.com>
NNTP-Posting-Host: 127.0.0.1
X-Trace: 1712327119 reader.netnews.com 1129692 127.0.0.1:43575
 by: DFS - Fri, 5 Apr 2024 14:25 UTC

On 4/5/2024 1:57 AM, Lawrence D'Oliveiro wrote:
> On Fri, 5 Apr 2024 00:13:14 -0400, DFS wrote:
>
>> My usual editor on Windows and WSL is Notepad++, and it has faint
>> vertical lines called indent guides, corresponding with the tab widths,
>> which makes the Python code (or any indented code, with or without
>> brackets) a touch easier to follow.
>
> So you had to copy and paste the code into your editor before you could
> make sense of it?

Of course not.

bad strawman

Re: Tabs As Syntax

<uup9aq$1fq6p$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13259&group=comp.os.linux.advocacy#13259

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Fri, 5 Apr 2024 12:36:42 -0400
Organization: None
Lines: 25
Message-ID: <uup9aq$1fq6p$1@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <utfstp$1pfg9$2@dont-email.me>
<utumm9$1s41o$2@dont-email.me> <uuj10i$3phh2$4@dont-email.me>
<uujvdj$19sa$1@dont-email.me> <uuni3g$vbtu$3@dont-email.me>
<uuor5v$1cbiv$2@dont-email.me> <uuos1r$1cm97$2@dont-email.me>
Reply-To: OFeem1987@teleworm.us
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 05 Apr 2024 16:36:43 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9fd3f55f2c63a8b96816feb8436fae07";
logging-data="1566937"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Gh3dcMuC6JwndqX7yaB9e"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:XdnDwy1DfJxyWj98i5bBQhtGtZE=
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Mutt: The most widely-used MUA
X-Slrn: Why use anything else?
 by: Chris Ahlstrom - Fri, 5 Apr 2024 16:36 UTC

candycanearter07 wrote this copyrighted missive and expects royalties:

> Chris Ahlstrom <OFeem1987@teleworm.us> wrote at 12:35 this Friday (GMT):
>> Lawrence D'Oliveiro wrote this copyrighted missive and expects royalties:
>>
>>> On Wed, 3 Apr 2024 12:16:50 -0400, DFS wrote:
>>>
>>>> I cannot.
>>>
>>> Here’s another example. First, without #end comments:
>>
>> Snipped because who wants to read Python code?
>>
>> https://github.com/mathialo/bython
>>
>> Python with braces.
>
> I thought python already had braces.

Yes, but not for delimiting the statements in a function.

--
There are more things in heaven and earth,
Horatio, than are dreamt of in your philosophy.
-- Wm. Shakespeare, "Hamlet"

Re: Tabs As Syntax

<uuq0vc$1lcgf$5@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13275&group=comp.os.linux.advocacy#13275

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Fri, 5 Apr 2024 23:20:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uuq0vc$1lcgf$5@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <utfstp$1pfg9$2@dont-email.me>
<utumm9$1s41o$2@dont-email.me> <uuj10i$3phh2$4@dont-email.me>
<uujvdj$19sa$1@dont-email.me> <uuni3g$vbtu$3@dont-email.me>
<uuntos$15o0k$1@dont-email.me> <uuo3sb$16u2p$1@dont-email.me>
<661009cf$0$1129692$882e4bbb@reader.netnews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 05 Apr 2024 23:20:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9c4b8ade0cfa29f0e8cec442ac1d5e3b";
logging-data="1749519"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18l4EF2XjwV0rposTq8TuIZ"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:8OJHO4qqCTrLGjbCUNLR0BZ1Vy0=
 by: Lawrence D'Oliv - Fri, 5 Apr 2024 23:20 UTC

On Fri, 5 Apr 2024 10:25:20 -0400, DFS wrote:

> On 4/5/2024 1:57 AM, Lawrence D'Oliveiro wrote:
>
>> On Fri, 5 Apr 2024 00:13:14 -0400, DFS wrote:
>>
>>> My usual editor on Windows and WSL is Notepad++, and it has faint
>>> vertical lines called indent guides, corresponding with the tab
>>> widths, which makes the Python code (or any indented code, with or
>>> without brackets) a touch easier to follow.
>>
>> So you had to copy and paste the code into your editor before you could
>> make sense of it?
>
> Of course not.

Then why did you need to mention the help your editor gave?

Re: Tabs As Syntax

<66109064$0$1129693$882e4bbb@reader.netnews.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13277&group=comp.os.linux.advocacy#13277

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!198.186.190.30.MISMATCH!news-out.netnews.com|netnews.com!postmaster.netnews.com!us8.netnews.com!not-for-mail
X-Trace: DXC=ZFdf]iNoYO22Z65?TJZPK3HWonT5<]0T=Q;nb^V>PUf65[gZBW6J?L<>8J_kK>kdR9aSd1?7^mkE:=BeC^_lb1<3Mba][>SC2C7f;]EoU=id56=R<hY6_C9T8
X-Complaints-To: support@blocknews.net
Date: Fri, 5 Apr 2024 19:59:33 -0400
MIME-Version: 1.0
User-Agent: Betterbird (Windows)
Subject: Re: Tabs As Syntax
Newsgroups: comp.os.linux.advocacy
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com> <utejt0$1fq95$1@dont-email.me> <utfstp$1pfg9$2@dont-email.me> <utumm9$1s41o$2@dont-email.me> <uuj10i$3phh2$4@dont-email.me> <uujvdj$19sa$1@dont-email.me> <uuni3g$vbtu$3@dont-email.me> <uuntos$15o0k$1@dont-email.me> <uuo3sb$16u2p$1@dont-email.me> <661009cf$0$1129692$882e4bbb@reader.netnews.com> <uuq0vc$1lcgf$5@dont-email.me>
Content-Language: en-US
From: nospam@dfs.com (DFS)
In-Reply-To: <uuq0vc$1lcgf$5@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 25
Message-ID: <66109064$0$1129693$882e4bbb@reader.netnews.com>
NNTP-Posting-Host: 127.0.0.1
X-Trace: 1712361572 reader.netnews.com 1129693 127.0.0.1:32985
 by: DFS - Fri, 5 Apr 2024 23:59 UTC

On 4/5/2024 7:20 PM, Lawrence D'Oliveiro wrote:
> On Fri, 5 Apr 2024 10:25:20 -0400, DFS wrote:
>
>> On 4/5/2024 1:57 AM, Lawrence D'Oliveiro wrote:
>>
>>> On Fri, 5 Apr 2024 00:13:14 -0400, DFS wrote:
>>>
>>>> My usual editor on Windows and WSL is Notepad++, and it has faint
>>>> vertical lines called indent guides, corresponding with the tab
>>>> widths, which makes the Python code (or any indented code, with or
>>>> without brackets) a touch easier to follow.
>>>
>>> So you had to copy and paste the code into your editor before you could
>>> make sense of it?
>>
>> Of course not.
>
> Then why did you need to mention the help your editor gave?

informing and educating YOU.

Now let it go, wacko.

Re: Tabs As Syntax

<uuq7dc$1mrp3$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13281&group=comp.os.linux.advocacy#13281

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Sat, 6 Apr 2024 01:10:04 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 26
Message-ID: <uuq7dc$1mrp3$2@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <utfstp$1pfg9$2@dont-email.me>
<utumm9$1s41o$2@dont-email.me> <uuj10i$3phh2$4@dont-email.me>
<uujvdj$19sa$1@dont-email.me> <uuni3g$vbtu$3@dont-email.me>
<uuor5v$1cbiv$2@dont-email.me> <uuos1r$1cm97$2@dont-email.me>
<uup9aq$1fq6p$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 06 Apr 2024 01:10:05 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="bad612f9278d4822db42e3d039f9825f";
logging-data="1797923"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/EFGF2fh2Qx4bVzarcRgu7/3+Xmwxh0LZZeDA5bZ+4lA=="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:bmTR3qrR16F4S+TChWkdewFiXcc=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
 by: candycanearter07 - Sat, 6 Apr 2024 01:10 UTC

Chris Ahlstrom <OFeem1987@teleworm.us> wrote at 16:36 this Friday (GMT):
> candycanearter07 wrote this copyrighted missive and expects royalties:
>
>> Chris Ahlstrom <OFeem1987@teleworm.us> wrote at 12:35 this Friday (GMT):
>>> Lawrence D'Oliveiro wrote this copyrighted missive and expects royalties:
>>>
>>>> On Wed, 3 Apr 2024 12:16:50 -0400, DFS wrote:
>>>>
>>>>> I cannot.
>>>>
>>>> Here’s another example. First, without #end comments:
>>>
>>> Snipped because who wants to read Python code?
>>>
>>> https://github.com/mathialo/bython
>>>
>>> Python with braces.
>>
>> I thought python already had braces.
>
> Yes, but not for delimiting the statements in a function.

Oh, right.
--
user <candycane> is generated from /dev/urandom

Re: Tabs As Syntax

<uuqk00$1t1kj$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13283&group=comp.os.linux.advocacy#13283

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Tabs As Syntax
Date: Sat, 6 Apr 2024 04:44:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <uuqk00$1t1kj$1@dont-email.me>
References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com>
<utejt0$1fq95$1@dont-email.me> <utfstp$1pfg9$2@dont-email.me>
<utumm9$1s41o$2@dont-email.me> <uuj10i$3phh2$4@dont-email.me>
<uujvdj$19sa$1@dont-email.me> <uuni3g$vbtu$3@dont-email.me>
<uuntos$15o0k$1@dont-email.me> <uuo3sb$16u2p$1@dont-email.me>
<661009cf$0$1129692$882e4bbb@reader.netnews.com>
<uuq0vc$1lcgf$5@dont-email.me>
<66109064$0$1129693$882e4bbb@reader.netnews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 06 Apr 2024 04:44:49 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9c4b8ade0cfa29f0e8cec442ac1d5e3b";
logging-data="2000531"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ivli8WsGTX0HL1N3nisxg"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:JIu1gWmYuZgfGCcEjXUWTaAcTcI=
 by: Lawrence D'Oliv - Sat, 6 Apr 2024 04:44 UTC

On Fri, 5 Apr 2024 19:59:33 -0400, DFS wrote:

> On 4/5/2024 7:20 PM, Lawrence D'Oliveiro wrote:
>> On Fri, 5 Apr 2024 10:25:20 -0400, DFS wrote:
>>
>>> On 4/5/2024 1:57 AM, Lawrence D'Oliveiro wrote:
>>>
>>>> On Fri, 5 Apr 2024 00:13:14 -0400, DFS wrote:
>>>>
>>>>> My usual editor on Windows and WSL is Notepad++, and it has faint
>>>>> vertical lines called indent guides, corresponding with the tab
>>>>> widths, which makes the Python code (or any indented code, with or
>>>>> without brackets) a touch easier to follow.
>>>>
>>>> So you had to copy and paste the code into your editor before you
>>>> could make sense of it?
>>>
>>> Of course not.
>>
>> Then why did you need to mention the help your editor gave?
>
> informing and educating YOU.

That you needed help to understand your version of the code? As opposed to
my version, which didn’t need such help?

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor