Terry J. Reedy <tjre...@udel.edu> added the comment:

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.

----------
nosy: +terry.reedy
resolution:  -> third party
status: open -> closed
title: Nondeterministic Pydoc output on functions that have functions as 
default parameters -> Run-dependent Pydoc output for functions default 
parameters

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39391>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to