Migrating to python 3: adding parenthesis to print calls and getting rid of printf style formatting
Posted by jpluimers on 2020/04/28
There is still so much Python 2.x stuff on the web, and I’m slowly moving what I have to Python 3.
These links are good starts for print calls and string formatting:
- [WayBack] What does “SyntaxError: Missing parentheses in call to ‘print'” mean in Python? – Stack Overflow
- [WayBack] python – what does print(s%%s) mean here? – Stack Overflow
- [WayBack] 4. Built-in Types — Python 3 documentation: printf style formatting
- [WayBack] 4. Built-in Types — Python 3 documentation: str.format(*args, **kwargs)
- [WayBack] 6.1. string — Common string operations — Python 3 documentation: 6.1.3. Format String Syntax
–jeroen
Leave a comment