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


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

Python stringformatierung: alt zu neu

From Оlе Ѕtrеісhеr <ole-usenet-spam@gmx.net>
Newsgroups de.comp.lang.python
Subject Python stringformatierung: alt zu neu
Date 2021-08-11 09:06 +0200
Message-ID <87pmukwjda.fsf@burgos> (permalink)

Show all headers | 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