imaplib: is this really so unwieldy?
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue May 25 18:35:39 EDT 2021
On 26/05/21 5:21 am, hw wrote:
> On 5/25/21 11:38 AM, Cameron Simpson wrote:
>> You'll need to import "sys".
>
> aving to import another library just to end a program
> might not be ideal.
The sys module is built-in, so the import isn't really
loading anything, it's just giving you access to a
namespace.
But if you prefer, you can get the same result without
needing an import using
raise SystemExit(1)
--
Greg
More information about the Python-list
mailing list