Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)

Liste des GroupesRevenir à cl python 
Sujet : Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)
De : no.email (at) *nospam* nospam.invalid (Paul Rubin)
Groupes : comp.lang.python
Date : 26. Aug 2024, 22:25:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <87a5gz116b.fsf@nightsong.com>
References : 1 2 3
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
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

Date Sujet#  Auteur
25 Aug 24 * Triggered By Mediocre Code (Posting On Python-List Prohibited)13Lawrence D'Oliveiro
26 Aug 24 +* Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)11Paul Rubin
26 Aug 24 i`* Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)10Lawrence D'Oliveiro
26 Aug 24 i +- Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)1rbowman
26 Aug 24 i `* Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)8Paul Rubin
26 Aug 24 i  `* Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)7Lawrence D'Oliveiro
27 Aug 24 i   `* Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)6Paul Rubin
27 Aug 24 i    `* Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)5Lawrence D'Oliveiro
27 Aug 24 i     `* Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)4Paul Rubin
28 Aug 24 i      `* Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)3Lawrence D'Oliveiro
28 Aug 24 i       `* Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)2Paul Rubin
28 Aug 24 i        `- Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
27 Aug 24 `- Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)1Piergiorgio Sartor

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal