Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Deliver yesterday, code today, think tomorrow.


devel / comp.lang.python / Re: Behavior of the for-else construct

SubjectAuthor
* Re: Behavior of the for-else constructTim Chase
`- Re: Behavior of the for-else construct2QdxY4RzWzUUiLuE

1
Re: Behavior of the for-else construct

<mailman.161.1646406063.2329.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17343&group=comp.lang.python#17343

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: python.l...@tim.thechases.com (Tim Chase)
Newsgroups: comp.lang.python
Subject: Re: Behavior of the for-else construct
Date: Fri, 4 Mar 2022 08:38:52 -0600
Lines: 37
Message-ID: <mailman.161.1646406063.2329.python-list@python.org>
References: <CALq4Z0-fJk-HOu0ka2kPrOioPYAh3e3zbziwetUDmAAx1U1LMw@mail.gmail.com>
<YiFCPlGC+2aRIR0K@shallowsky.com>
<21739669.459456.1646348879560@mail.yahoo.com>
<e3544242-cd54-05d3-2101-5b9fedc1c13e@btinternet.com>
<621325684.471007.1646354302946@mail.yahoo.com>
<CAPTjJmpNT4TTRiYRD2G73EsDp3O+_Tg_sF2vp3Tf0vC-EJWqAA@mail.gmail.com>
<20220304083852.28142cce@bigbox.attlocal.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de rJrrQIu6oo+rEMILK1bUFgIzZOu7TFtDx2Qs5tKL4f8w==
Return-Path: <python.list@tim.thechases.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(which': 0.04; 'bunch':
0.05; 'random': 0.05; ';-)': 0.07; 'spaces': 0.07; 'angelico':
0.09; 'labs': 0.09; 'received:sbcglobal.net': 0.09;
'\xe2\x86\x92': 0.09; '-tkc': 0.16; 'bits': 0.16; 'filenames':
0.16; 'filesystem': 0.16; 'from:addr:python.list': 0.16;
'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16;
'received:174.136.13': 0.16; 'received:174.136.13.174': 0.16;
'received:76': 0.16; 'received:accountservergroup.com': 0.16;
'received:gateway4.unifiedlayer.com': 0.16;
'received:lightspeed.rcsntx.sbcglobal.net': 0.16;
'received:rcsntx.sbcglobal.net': 0.16;
'received:unifiedlayer.com': 0.16;
'received:uscentral455.accountservergroup.com': 0.16;
'subject:else': 0.16; 'url-ip:104.215.148.63/32': 0.16; 'url-
ip:104.215.148/24': 0.16; 'url-ip:104.215/16': 0.16; 'url-
ip:13.77.161.179/32': 0.16; 'url-ip:13.77.161/24': 0.16; 'url-
ip:13.77/16': 0.16; 'url-ip:151.101.130.49/32': 0.16; 'url-
ip:151.101.194.49/32': 0.16; 'url-ip:151.101.2.49/32': 0.16; 'url-
ip:151.101.66.49/32': 0.16; 'url-ip:40.112.72.205/32': 0.16; 'url-
ip:40.112.72/24': 0.16; 'url-ip:40.113.200.201/32': 0.16; 'url-
ip:40.113.200/24': 0.16; 'url-ip:40.113/16': 0.16; 'url-
ip:40.76.4.15/32': 0.16; 'url-ip:40.76.4/24': 0.16; 'url-
ip:40.76/16': 0.16; 'urls': 0.16; 'wrote:': 0.16; 'to:addr:python-
list': 0.20; 'school': 0.24; 'space': 0.26; 'bit': 0.27; 'done':
0.28; 'chris': 0.28; 'computer': 0.29; 'error': 0.29; 'unless':
0.32; 'subject:for': 0.33; 'windows': 0.34; 'same': 0.34;
"didn't": 0.34; 'header:In-Reply-To:1': 0.34; 'change': 0.36;
'those': 0.36; 'couple': 0.37; 'this.': 0.37; 'file': 0.38;
'could': 0.38; '8bit%:14': 0.38; 'use': 0.39; 'place.': 0.40;
'both': 0.40; 'day,': 0.62; '8bit%:17': 0.63; 'your': 0.64;
'perfectly': 0.69; 'received:192.185': 0.69; 'skip:\xe2 20': 0.69;
'receive': 0.71; 'skip:\xe2 10': 0.71; "you'll": 0.73; 'hacked':
0.76; 'characters': 0.84; 'dos': 0.84; 'received:70': 0.84;
'caused': 0.86
X-Authority-Reason: nr=8
In-Reply-To: <CAPTjJmpNT4TTRiYRD2G73EsDp3O+_Tg_sF2vp3Tf0vC-EJWqAA@mail.gmail.com>
X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0)
Importance: low
X-Priority: 4 (Low)
X-AntiAbuse: This header was added to track abuse,
please include it with any abuse report
X-AntiAbuse: Primary Hostname - uscentral455.accountservergroup.com
X-AntiAbuse: Original Domain - python.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - tim.thechases.com
X-BWhitelist: no
X-Source-IP: 76.222.220.222
X-Source-L: No
X-Exim-ID: 1nQ954-000fVe-5g
X-Source:
X-Source-Args:
X-Source-Dir:
X-Source-Sender: 76-222-220-222.lightspeed.rcsntx.sbcglobal.net
(bigbox.attlocal.net) [76.222.220.222]:22644
X-Source-Auth: tim@thechases.com
X-Email-Count: 1
X-Source-Cap: dGhlY2hhc2U7dGhlY2hhc2U7dXNjZW50cmFsNDU1LmFjY291bnRzZXJ2ZXJncm91cC5jb20=
X-Local-Domain: yes
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <20220304083852.28142cce@bigbox.attlocal.net>
X-Mailman-Original-References: <CALq4Z0-fJk-HOu0ka2kPrOioPYAh3e3zbziwetUDmAAx1U1LMw@mail.gmail.com>
<YiFCPlGC+2aRIR0K@shallowsky.com>
<21739669.459456.1646348879560@mail.yahoo.com>
<e3544242-cd54-05d3-2101-5b9fedc1c13e@btinternet.com>
<621325684.471007.1646354302946@mail.yahoo.com>
<CAPTjJmpNT4TTRiYRD2G73EsDp3O+_Tg_sF2vp3Tf0vC-EJWqAA@mail.gmail.com>
 by: Tim Chase - Fri, 4 Mar 2022 14:38 UTC

On 2022-03-04 11:55, Chris Angelico wrote:
> In MS-DOS, it was perfectly possible to have spaces in file names

DOS didn't allow space (0x20) in filenames unless you hacked it by
hex-editing your filesystem (which I may have done a couple times).
However it did allow you to use 0xFF in filenames which *appeared* as
a space in most character-sets.

I may have caused a mild bit of consternation in school computer labs
doing this. ;-)

> Windows forbade a bunch of characters in file names

Both DOS and Windows also had certain reserved filenames

https://www.howtogeek.com/fyi/windows-10-still-wont-let-you-use-these-file-names-reserved-in-1974/

that could cause issues if passed to programs.

To this day, if you poke around on microsoft.com and change random
bits of URLs to include one of those reserved filenames in the GET
path, you'll often trigger a 5xx error rather than a 404 that you
receive with random jibberish in the same place.

https://microsoft.com/…/asdfjkl → 404
https://microsoft.com/…/lpt1 → 5xx
https://microsoft.com/…/asdfjkl/some/path → 404
https://microsoft.com/…/lpt1/some/path → 5xx

Just in case you aspire to stir up some trouble.

-tkc

Re: Behavior of the for-else construct

<mailman.168.1646425948.2329.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17354&group=comp.lang.python#17354

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: 2QdxY4Rz...@potatochowder.com
Newsgroups: comp.lang.python
Subject: Re: Behavior of the for-else construct
Date: Fri, 4 Mar 2022 14:32:17 -0600
Lines: 12
Message-ID: <mailman.168.1646425948.2329.python-list@python.org>
References: <CALq4Z0-fJk-HOu0ka2kPrOioPYAh3e3zbziwetUDmAAx1U1LMw@mail.gmail.com>
<YiFCPlGC+2aRIR0K@shallowsky.com>
<21739669.459456.1646348879560@mail.yahoo.com>
<e3544242-cd54-05d3-2101-5b9fedc1c13e@btinternet.com>
<621325684.471007.1646354302946@mail.yahoo.com>
<CAPTjJmpNT4TTRiYRD2G73EsDp3O+_Tg_sF2vp3Tf0vC-EJWqAA@mail.gmail.com>
<20220304083852.28142cce@bigbox.attlocal.net>
<mailman.161.1646406063.2329.python-list@python.org>
<pee42hp55c2dqf0mchcn82g4akqitgeph2@4ax.com>
<YiJ3UWPS6R1D+EDd@scrozzle>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.uni-berlin.de 1cAM5CmHXr1Tm1mH6b62BwREoJXgvz7TD6sxZCt/M/GA==
Return-Path: <2QdxY4RzWzUUiLuE@potatochowder.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.036
X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; ';-)': 0.07; 'log': 0.12;
'from:addr:2qdxy4rzwzuuilue': 0.16; 'from:addr:potatochowder.com':
0.16; 'message-id:@scrozzle': 0.16; 'received:136.243': 0.16;
'received:www458.your-server.de': 0.16; 'received:your-server.de':
0.16; 'subject:else': 0.16; 'wrote:': 0.16; 'to:addr:python-list':
0.20; 'received:de': 0.23; 'received:136': 0.32; 'subject:for':
0.33; 'header:In-Reply-To:1': 0.34; 'directory': 0.37; '110':
0.40; 'try': 0.40; 'tell': 0.60; 'between': 0.63; 'characters':
0.84; 'received:70': 0.84; 'received:88': 0.84
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <pee42hp55c2dqf0mchcn82g4akqitgeph2@4ax.com>
X-Authenticated-Sender: 2QdxY4RzWzUUiLuE@potatochowder.com
X-Virus-Scanned: Clear (ClamAV 0.103.5/26471/Fri Mar 4 10:24:47 2022)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <YiJ3UWPS6R1D+EDd@scrozzle>
X-Mailman-Original-References: <CALq4Z0-fJk-HOu0ka2kPrOioPYAh3e3zbziwetUDmAAx1U1LMw@mail.gmail.com>
<YiFCPlGC+2aRIR0K@shallowsky.com>
<21739669.459456.1646348879560@mail.yahoo.com>
<e3544242-cd54-05d3-2101-5b9fedc1c13e@btinternet.com>
<621325684.471007.1646354302946@mail.yahoo.com>
<CAPTjJmpNT4TTRiYRD2G73EsDp3O+_Tg_sF2vp3Tf0vC-EJWqAA@mail.gmail.com>
<20220304083852.28142cce@bigbox.attlocal.net>
<mailman.161.1646406063.2329.python-list@python.org>
<pee42hp55c2dqf0mchcn82g4akqitgeph2@4ax.com>
 by: 2QdxY4Rz...@potatochowder.com - Fri, 4 Mar 2022 20:32 UTC

On 2022-03-04 at 11:14:29 -0500,
Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:

> Try to tell the difference between
>
> a<BEL>file and
> afi<BEL>le
>
> when doing a directory listing.

Easy: log in over a 110 baud modem, where the characters take almost as
much time as the beep. ;-)

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor