Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197753
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Lawrence D’Oliveiro <ldo@nz.invalid> |
| Newsgroups | comp.lang.python |
| Subject | Re: Lazy Imports -- I Like This Idea |
| Date | Mon, 30 Mar 2026 02:17:42 -0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 11 |
| Message-ID | <10qcmg5$238e1$1@dont-email.me> (permalink) |
| References | <10q22pv$2f060$2@dont-email.me> <p5ayR.164248$o4va.120026@fx17.ams4> <10qc9fp$1v9oe$1@dont-email.me> <87qzp2axb3.fsf@nightsong.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Mon, 30 Mar 2026 02:17:42 +0000 (UTC) |
| Injection-Info | dont-email.me; posting-host="7c7c337b0e3af8b280cfa6191f55fddc"; logging-data="2204097"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18r3zKoQHurXKrv3OaNVe4Y" |
| User-Agent | Pan/0.165 (Kostiantynivka) |
| Cancel-Lock | sha1:ub1RBvse086zT2Zz/hFp1ZR7duw= |
| Xref | csiph.com comp.lang.python:197753 |
Show key headers only | View raw
On Sun, 29 Mar 2026 19:03:12 -0700, Paul Rubin wrote: > Lawrence D’Oliveiro <ldo@nz.invalid> writes: >> >> I don’t think it will be needed for a great many modules. In my >> case, it was only ever an issue with matplotlib. > > I defer importing bs4 sometimes, depending on what I'm doing. That same script imports bs4, as it happens. It still manages an overall startup time of just a quarter second.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
Lazy Imports -- I Like This Idea Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-26 01:40 +0000
Re: Lazy Imports -- I Like This Idea Piergiorgio Sartor <piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de> - 2026-03-27 19:09 +0100
Re: Lazy Imports -- I Like This Idea DFS <nospam@dfs.com> - 2026-03-28 00:59 -0400
Re: Lazy Imports -- I Like This Idea Piergiorgio Sartor <piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de> - 2026-03-28 11:40 +0100
Re: Lazy Imports -- I Like This Idea Jason H <jason_hindle@yahoo.com> - 2026-04-14 22:16 +0000
Re: Lazy Imports -- I Like This Idea Gilmeh Serda <gilmeh.serda@nothing.here.invalid> - 2026-03-29 13:49 +0000
Re: Lazy Imports -- I Like This Idea Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-29 22:35 +0000
Re: Lazy Imports -- I Like This Idea Paul Rubin <no.email@nospam.invalid> - 2026-03-29 19:03 -0700
Re: Lazy Imports -- I Like This Idea Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-30 02:17 +0000
Re: Lazy Imports -- I Like This Idea Paul Rubin <no.email@nospam.invalid> - 2026-03-30 11:21 -0700
Re: Lazy Imports -- I Like This Idea Gilmeh Serda <gilmeh.serda@nothing.here.invalid> - 2026-04-03 11:12 +0000
Re: Lazy Imports -- I Like This Idea Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-04-03 22:45 +0000
Re: Lazy Imports -- I Like This Idea Piergiorgio Sartor <piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de> - 2026-04-03 13:33 +0200
csiph-web