Message360600
You will get the same problem for common idiom of using a singleton for optional parameters without default value.
_singleton = object()
def get(key, default=_signleton):
if default is _signleton:
...
And for other objects whos repr contains "at 0x...".
And even more complex problem with sets.
When test the pydoc output, ignore non-deterministic parts. For example, doctest allows you to use a placeholder.
>>> C() #doctest: +ELLIPSIS
<__main__.C instance at 0x...> |
|
Date |
User |
Action |
Args |
2020-01-24 09:24:59 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, docs@python, ammar2, peteroupc |
2020-01-24 09:24:59 | serhiy.storchaka | set | messageid: <1579857899.14.0.406289223806.issue39391@roundup.psfhosted.org> |
2020-01-24 09:24:59 | serhiy.storchaka | link | issue39391 messages |
2020-01-24 09:24:59 | serhiy.storchaka | create | |
|