[Python-de] Python stringformatierung: alt zu neu

Оlе Ѕtrеісhеr <[email protected]>
Newsgroups gmane.comp.python.general.german
Message-ID <87pmukwjda.fsf@burgos>
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
_______________________________________________
python-de Mailingliste -- [email protected]
Zur Abmeldung von dieser Mailingliste senden Sie eine Nachricht an [email protected]
https://mail.python.org/mailman3/lists/python-de.python.org/
Mitgliedsadresse: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.