| Deutsch English Français Italiano |
|
<875xrn0wj8.fsf@nightsong.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin <no.email@nospam.invalid> Newsgroups: comp.lang.python Subject: Re: Triggered By Mediocre Code (Posting On Python-List Prohibited) Date: Mon, 26 Aug 2024 15:06:03 -0700 Organization: A noiseless patient Spider Lines: 16 Message-ID: <875xrn0wj8.fsf@nightsong.com> References: <vag94r$23hhf$2@dont-email.me> <878qwk9rym.fsf@nightsong.com> <vagfus$24uu6$5@dont-email.me> <87a5gz116b.fsf@nightsong.com> <vaitf9$2k7o6$7@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 27 Aug 2024 00:06:04 +0200 (CEST) Injection-Info: dont-email.me; posting-host="da6d3cb9477a291295cd7535639797df"; logging-data="2767672"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+D+RdEKIRwMsYK6fX4Nm4v" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:qr6E6jlZZm0/gX1rDA/j4HRRjWw= sha1:N3OLsLT8sNNJIaBE88T8Po9z+tY= Bytes: 1937 Lawrence D'Oliveiro <ldo@nz.invalid> writes: > Note that “04d” is not quite the same as “0.4d”. For non-negative numbers, I think 04d does what the original verbose code did. 0.4d for an integer isn't valid in an f-string. With old-style formatting and negative numbers, 0.4d pads differently than 04d, and the original verbose code appears to be plain wrong, formatting -1 as "00-1" if I'm not mistaken. > Python has ASGI, which offers your choice of Web frameworks founded on > async/await and asyncio. Instead of running as an addon module in the Web > server, the Python code runs in a separate process, with its own > independent flow of control. This is much more versatile. Yes, and the separate processes use more machine resources which is why low end hosting places prefer PHP.