Message361128
repr(f2) is not 'non-deterministic'. If one runs it again for the same function object, one gets the same answer. It only changes when one starts over and creates a new function object with the same name but (usually) different id.
I think it appropriate that the default object representation include the object id. It may help with debugging or other operations.
I agree that pydoc output with run-dependent ids may not be suitable for storage in version control. Either remove or normalize them yourself or ask the pydoc developers to add an option to improve its output.
Reclosing. |
|
Date |
User |
Action |
Args |
2020-01-31 19:57:52 | terry.reedy | set | recipients:
+ terry.reedy, asvetlov, docs@python, serhiy.storchaka, ammar2, peteroupc |
2020-01-31 19:57:51 | terry.reedy | set | messageid: <1580500671.94.0.242866240385.issue39391@roundup.psfhosted.org> |
2020-01-31 19:57:51 | terry.reedy | link | issue39391 messages |
2020-01-31 19:57:51 | terry.reedy | create | |
|