Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Love sometimes expresses itself in sacrifice. -- Kirk, "Metamorphosis", stardate 3220.3


devel / comp.lang.python / Re: Weired behaviour - The slice of empty string not return an error

SubjectAuthor
o Re: Weired behaviour - The slice of empty string not return an errorYassine Nasri

1
Re: Weired behaviour - The slice of empty string not return an error

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.niel.me!aioe.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: yassine....@gmail.com (Yassine Nasri)
Newsgroups: comp.lang.python
Subject: Re: Weired behaviour - The slice of empty string not return an error
Date: Sun, 30 Oct 2022 15:59:41 +0100
Lines: 24
Message-ID: <mailman.838.1667166366.20444.python-list@python.org>
References: <CAMXb-5m_HPyTzeb0P=VmAUmTEE5ZjV9097N43eWOCK=3=kFwKA@mail.gmail.com>
<CAMXb-5ngFYTgo=Y8CW3HbAt+xBTkJAi=4KN3-c0-jMAEUrn4Xg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de Crs0zHppSnTB37ba7tAcHwo0GVg46jUXK/+K85GBhn6A==
Return-Path: <yassine.naasri@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=EjUnJCKU;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.135
X-Spam-Level: *
X-Spam-Evidence: '*H*': 0.75; '*S*': 0.02; '2022': 0.05;
'subject:error': 0.07; '8bit%:3': 0.09; 'subject:not': 0.09;
'syntax': 0.15; 'skip:s 110': 0.16; 'skip:s 230': 0.16;
'subject:string': 0.16; 'to:addr:python-list': 0.20; 'returns':
0.22; 'error': 0.29; 'message-id:@mail.gmail.com': 0.32; 'header
:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; "skip:' 10": 0.37; 'received:209.85':
0.37; 'received:209': 0.39; 'skip:u 20': 0.39; 'hello,': 0.40;
'should': 0.40; '8bit%:29': 0.60; 'best': 0.61; 'skip:o 10': 0.61;
'skip:i 20': 0.62; 'skip:t 20': 0.66; 'end,': 0.69; 'ps:': 0.69;
'8bit%:18': 0.69; 'subject:The': 0.70; 'skip:s 260': 0.84;
'\xc3\xa9crit\xc2\xa0:': 0.84; '=&gt;': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=UmHNrifdMdpTnDpTVDq5PEq//mvHCxCpPVZa/pkJ7ag=;
b=EjUnJCKUWYYFd81JzKT26j+mXkqk8Xo0WggCvSX/Nz8oWRkgA2YATlmgOd7l8mKXgZ
RfaGP9n9YpUOJ4nTiQ56FFRhtkGxQuIsjHxphVOH/AF/8IPHh/ROBIQD96VtnTPtq9My
J9IrLfADz2qLF9mJP/oTKLemRcPvR9bHTP4ytRkndLJI9TLWm01XvyZwnaQvzkvA+iwz
8nUFk4Hv/fuHmWF3EUEX/XdImfE9nujOhFphi6dy9LjmqdDfgSq2SYHSQkLO1+6o6hQs
oDwb401iBCciRNMhnxj984ckETJ9D3sgi9zgiUQlFbEu1zk7/66TlM/CmlCOrcM17Sny
l7RQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=UmHNrifdMdpTnDpTVDq5PEq//mvHCxCpPVZa/pkJ7ag=;
b=wC319y7DMfPSmg4f7oPAnsNd6RQzSeC8a6ntjU4AjXXhl7PsMc1+MimhozAVj4t/4c
SLjxumy1TGj9m6xFQcVTqMkG5p2ODAY3UqTpL/TNXo8lziOPR7F7FdpjllYLpkkun9P6
aya6/DKLWk3n/9xSsD/bqNudPh0HsV+gwcSRXLE/wW3gV5UFMweGSjehz2d9Sqk8M0I2
QfEuwM1D7iCHFgPMG1eYo6nTTdLgu2A0W+v9kK42KKmP3DvLxENSG+EvkEF/04ENIZEs
WK9cJ0amjXtgxvjPX/H+OHBroQniLoS18OUZOvjFTzd4M7kmmaLJucjdavZBHSfuHkNa
+DmA==
X-Gm-Message-State: ACrzQf21hz3/6EvauCL0Gvd5Cb1fLqJ8Ag2VIZg4+p1EEpo6YatnZWVH
iJJXbxPnHk4jrMUj1jKRvpRG0p0Z67GgtN4QxvEwiNnbiWTOcA==
X-Google-Smtp-Source: AMsMyM5GDQcEGD78jkKfyAsh0LJa24KL2+Na1dUvRf/d/PLZT1AKYyCHdLcwDxj1LF0DE2Tb5W76D47FVmXchoIEVb0=
X-Received: by 2002:a05:6808:1288:b0:355:1a5c:e6d4 with SMTP id
a8-20020a056808128800b003551a5ce6d4mr13004078oiw.162.1667141992215; Sun, 30
Oct 2022 07:59:52 -0700 (PDT)
In-Reply-To: <CAMXb-5m_HPyTzeb0P=VmAUmTEE5ZjV9097N43eWOCK=3=kFwKA@mail.gmail.com>
X-Mailman-Approved-At: Sun, 30 Oct 2022 17:46:04 -0400
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
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: <CAMXb-5ngFYTgo=Y8CW3HbAt+xBTkJAi=4KN3-c0-jMAEUrn4Xg@mail.gmail.com>
X-Mailman-Original-References: <CAMXb-5m_HPyTzeb0P=VmAUmTEE5ZjV9097N43eWOCK=3=kFwKA@mail.gmail.com>
 by: Yassine Nasri - Sun, 30 Oct 2022 14:59 UTC

PS: The ''[::] should return an error logically.

Le dim. 30 oct. 2022 à 15:57, Yassine Nasri <yassine.naasri@gmail.com> a
écrit :

> Hello,
>
> len('') # => 0''[0] # => error''[::] # => ''''[::] # <=> ''[0:len(''):1]
>
> the syntax of slice:
>
> slice(start, end, step)
>
> The start in ''[::] equivalent at index 0 of the ''
>
> Since the index 0 of '' returns an error.
>
> The ''[::] should not return an error logically.
>
>
> Best regards
>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor