This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ammar2, docs@python, peteroupc, serhiy.storchaka
Date 2020-01-24.09:24:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579857899.14.0.406289223806.issue39391@roundup.psfhosted.org>
In-reply-to
Content
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...>
History
Date User Action Args
2020-01-24 09:24:59serhiy.storchakasetrecipients: + serhiy.storchaka, docs@python, ammar2, peteroupc
2020-01-24 09:24:59serhiy.storchakasetmessageid: <1579857899.14.0.406289223806.issue39391@roundup.psfhosted.org>
2020-01-24 09:24:59serhiy.storchakalinkissue39391 messages
2020-01-24 09:24:59serhiy.storchakacreate