Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

No amount of genius can overcome a preoccupation with detail.


devel / comp.lang.python / Re: imaplib: is this really so unwieldy?

SubjectAuthor
o Re: imaplib: is this really so unwieldy?Chris Angelico

1
Re: imaplib: is this really so unwieldy?

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: imaplib: is this really so unwieldy?
Date: Wed, 26 May 2021 16:35:51 +1000
Lines: 24
Message-ID: <mailman.355.1622010964.3087.python-list@python.org>
References: <21fb6c5f-97a4-654b-887f-2c31a549bcbe@adminart.net>
<YKzFm7gR+5eKzov7@cskk.homeip.net>
<d4d433ff-5de6-31df-4234-e93feea454fc@adminart.net>
<14hqag1k3ujs43uij6rig68vckqo97j386@4ax.com> <s8kneo$17eq$1@ciao.gmane.io>
<CAPTjJmqaOK=vnS23ytp-xkY4-a_QXy_kGZYz16sn3YN3RPyqzw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de Ma0wLbwfFJh5y7mAxoCinQCmXm6ybz5WZwfQdYmfjIkg==
Return-Path: <rosuav@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=vc7oVa7w;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.005
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '26,': 0.07; 'exit': 0.07;
'apparently': 0.09; 'ok,': 0.09; 'import': 0.14; '4:21': 0.16;
'builtin': 0.16; 'chrisa': 0.16; 'from:addr:rosuav': 0.16;
'from:name:chris angelico': 0.16; 'ideal.': 0.16; 'skip:> 10':
0.16; 'things,': 0.16; 'wrote:': 0.16; 'grant': 0.17; "aren't":
0.20; "i've": 0.22; 'to:addr:python-list': 0.23; '>>>': 0.26;
'library': 0.27; 'difference': 0.32; 'fine.': 0.32; 'same,': 0.32;
'to:name:python': 0.32; 'message-id:@mail.gmail.com': 0.33;
'program': 0.33; 'received:209.85.166': 0.33; 'header:In-Reply-
To:1': 0.33; 'received:google.com': 0.34; 'from:addr:gmail.com':
0.35; 'way': 0.37; 'received:209.85': 0.38; 'received:209': 0.38;
'use': 0.38; 'among': 0.61; 'subject:this': 0.63; 'right': 0.66;
'2021': 0.84; 'subject:really': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=78ScDmfHcyj5ZToJcQ8fP5dg4bgY/8h3jkplzfDcFEI=;
b=vc7oVa7wLHwHYMbAvovVbnfxvjKigpr3LTRVmQ2OeDShYbm7G2gtSAyVI2cbOZlbdz
Bc/PUKIpNgoPp363jptUjsB/RABizwjs4poRpxa5/GNdA6KcL3qUCbkPRCEAQ0fZ6zcU
/+ccy/XlX7vELl4ZAE3Dcr21w0eqb/qKYEhH1b05tXtSXMJTl/6QCIWs13LXk+eo64Dq
2eX+cuvMTXRafQL1K4iGmxJtWMRks2NiXiSzbKButSLUndfxMKzIDzDatbv/hs+WkZ+R
tcwWEFyl291QHf20ec8PWKDbr+3gfoj10I7PtPi0laAK4fgfqIBTND5ux8NcYDuErC1l
7xpg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=78ScDmfHcyj5ZToJcQ8fP5dg4bgY/8h3jkplzfDcFEI=;
b=hqUbeqa6nzH83dBe0A1FqV8SMw73dI7A2jBellVBOHnNbkwHr7OcSZFD+7PNgGzEkz
G308arqhep0cHsVqghAmicBI9nWfroIicRHmPHGGUzElVJ6mrU6lrMh7HklcevaOhDTT
lsoEZHqWdU137a9YV2uSffnYCgOpRudbD7fjDoHXX+SY55M0HS9ahemDkPJCbKoMWVbk
khTqgi+uExGfmTX+HAYbUqoLkTGeLxSVFkBBeAEDjXRPhcpuu1xS358tK873S0eBaFD9
N0aPC8R/6BVbGtfjdp3I4jJGGfKfMjXHWhFSHCfhQl1ukEmDe2aUOqT239+aKpzrrOjd
+gdA==
X-Gm-Message-State: AOAM532pdQRUj4e8gOtrcckxKT1l3DpgYHbM8V4P5PsDGvq2BuZHrWhz
FuOubafLZ1VOotOekWD5CcSat7Zjb1d4HoD1Exq4yfTUrXXWlA==
X-Google-Smtp-Source: ABdhPJzv29Y+ATFumCrevkGOgjgHdP6hiTfkzc86Rm6BmMc5TZDdhThbxmlPXC5/tIAaZ6olgj/VWt68SYeTDigrprI=
X-Received: by 2002:a02:294d:: with SMTP id p74mr1571598jap.132.1622010962130;
Tue, 25 May 2021 23:36:02 -0700 (PDT)
In-Reply-To: <s8kneo$17eq$1@ciao.gmane.io>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
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: <CAPTjJmqaOK=vnS23ytp-xkY4-a_QXy_kGZYz16sn3YN3RPyqzw@mail.gmail.com>
X-Mailman-Original-References: <21fb6c5f-97a4-654b-887f-2c31a549bcbe@adminart.net>
<YKzFm7gR+5eKzov7@cskk.homeip.net>
<d4d433ff-5de6-31df-4234-e93feea454fc@adminart.net>
<14hqag1k3ujs43uij6rig68vckqo97j386@4ax.com> <s8kneo$17eq$1@ciao.gmane.io>
 by: Chris Angelico - Wed, 26 May 2021 06:35 UTC

On Wed, May 26, 2021 at 4:21 PM Grant Edwards <grant.b.edwards@gmail.com> wrote:
>
> On 2021-05-25, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
>
> >>Oh ok, it seemed to be fine. Would it be the right way to do it with
> >>sys.exit()? Having to import another library just to end a program
> >>might not be ideal.
> >
> > I've never had to use sys. for exit...
>
> I would have sworn you used to have to import sys to use exit(). Am I
> misremembering?
>
> Apparently exit() and sys.exit() aren't the same, so what is the
> difference between the builtin exit and sys.exit?
>

exit() is designed to be used interactively, so, among other things,
it also has a helpful repr:

>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit

ChrisA

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor