Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5736

Python stringformatierung: alt zu neu

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Оlе Ѕtrеісhеr <ole-usenet-spam@gmx.net>
Newsgroups de.comp.lang.python
Subject Python stringformatierung: alt zu neu
Date Wed, 11 Aug 2021 09:06:25 +0200
Lines 14
Message-ID <87pmukwjda.fsf@burgos> (permalink)
Reply-To Оlе Ѕtrеісhеr <ole-usenet-10@gmx.net>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace individual.net 6y2zddytBUzNFgnqJ2KL/gaiob7nngaV3tuBwRYFUJQEbfV3r63aRnBw==
Cancel-Lock sha1:FKiLSf0JWu3vRjT7BL17Jqo3Q4E= sha1:o1CW4xY2awxgj3FVEJDpRpUASl4=
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Xref csiph.com de.comp.lang.python:5736

Show key headers only | View raw


Hallo,

ich bin gerade dabei, ein älteres Programmpaket etwas
aufzufrischen. Damals wurde eine Menge Formatierung wie

    "Unknown parameter `%s'" % name

verwendet, die ich gerne auf die moderne Form

    "Unknown parameter `{:s}'".format(name)

umgestellt hätte. Gibt es da was automatisches?

Ole

Back to de.comp.lang.python | Previous | NextNext in thread | Find similar


Thread

Python stringformatierung: alt zu neu Оlе Ѕtrеісhеr <ole-usenet-spam@gmx.net> - 2021-08-11 09:06 +0200
  [Python-de] Re: Python stringformatierung: alt zu neu Christopher Arndt <chris@chrisarndt.de> - 2021-08-13 22:52 +0200

csiph-web