Deutsch English Français Italiano |
<87a5gz116b.fsf@nightsong.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!2.eu.feeder.erje.net!feeder.erje.net!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 13:25:48 -0700 Organization: A noiseless patient Spider Lines: 12 Message-ID: <87a5gz116b.fsf@nightsong.com> References: <vag94r$23hhf$2@dont-email.me> <878qwk9rym.fsf@nightsong.com> <vagfus$24uu6$5@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Mon, 26 Aug 2024 22:25:49 +0200 (CEST) Injection-Info: dont-email.me; posting-host="3ca1bbb217a9387df8cc22ea31765c9f"; logging-data="2741894"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19XxSYyIqSkBKR7xl2tWuYj" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:XwBUv9ZzV3QOCn0KEWAt4lRlIIg= sha1:a0YYaRKpkMlTp2w92hPE7FPR53c= Bytes: 1486 Lawrence D'Oliveiro <ldo@nz.invalid> writes: > Printf style makes it explicit that it is an integer, and nothing else > will do: > bufferedNumber = "%0.4d" % doc.GetTime().GetFrame(docFps) bufferedNumber = f'{doc.GetTime().GetFrame(docFps):04d}' seems to handle it too. Regarding PHP, many shared hosting vendors offer it without offering Python. It's easier with PHP to serve many customers with a single PHP instantiation