Message401582
currently this works correctly:
```
>>> '%8s %8s' % (None, 1)
' None 1'
```
but conversion to f-string fails:
```
>>> f'{None:>8} {1:>8}'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported format string passed to NoneType.__format__
```
my proposal is to implement alignment `__format__` for `None` following the same as for `str` for alignment specifiers |
|
Date |
User |
Action |
Args |
2021-09-10 15:10:56 | Anthony Sottile | set | recipients:
+ Anthony Sottile |
2021-09-10 15:10:56 | Anthony Sottile | set | messageid: <1631286656.15.0.899331692277.issue45165@roundup.psfhosted.org> |
2021-09-10 15:10:56 | Anthony Sottile | link | issue45165 messages |
2021-09-10 15:10:56 | Anthony Sottile | create | |
|