Author Anthony Sottile
Recipients Anthony Sottile
Date 2021-09-10.15:10:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631286656.15.0.899331692277.issue45165@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-09-10 15:10:56Anthony Sottilesetrecipients: + Anthony Sottile
2021-09-10 15:10:56Anthony Sottilesetmessageid: <1631286656.15.0.899331692277.issue45165@roundup.psfhosted.org>
2021-09-10 15:10:56Anthony Sottilelinkissue45165 messages
2021-09-10 15:10:56Anthony Sottilecreate