Python stringformatierung: alt zu neu
Aug. 12, 2021
7:26 p.m.
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
August 2021
8:52 p.m.
Am 11.08.21 um 09:06 schrieb Оlе Ѕtrеісhеr:
, die ich gerne auf die moderne Form
"Unknown parameter `{:s}'".format(name)
umgestellt hätte. Gibt es da was automatisches?
https://github.com/asottile/pyupgrade#printf-style-string-formatting Hdh, Chris
1761
Age (days ago)
1762
Last active (days ago)
1 comments
2 participants
participants (2)
-
Christopher Arndt -
Оlе Ѕtrеісhеr