Hallo Pythonistas,
mit flynt https://github.com/ikamensh/flynt könntet ihr auch größere Projekte schmerzlos zum im Python 3.6 eingeführten f-strings konvertieren, z.B.:
e = '%.03f' % var wird zum e = f'{var:.03f}' , und
string += '{} = {}\n'.format(('.').join(listKeys), json.JSONEncoder().encode ...
Die Suche ergab 1 Treffer
- Montag 9. September 2019, 21:05
- Forum: Links und Tutorials
- Thema: flynt - große Projekte automatisch zum f-strings konvertieren
- Antworten: 1
- Zugriffe: 5457
