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 rhettinger
Recipients eryksun, rhettinger, theller
Date 2014-04-02.20:19:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396469949.18.0.147527406623.issue21130@psf.upfronthosting.co.za>
In-reply-to
Content
What is the use case?

What would be the criteria for comparing functions?  Would the func_name have to match?  Would the func_defaults have to match?  Would the f.__code__.co_names have to match (the internal variable names?  Do the function attributes in f.__dict__ have to match?  Does the func.__doc__ have to match?

The problem is that functions are complex objects and the equivalence criteria means different things to different people.  In the absence of a clear spec that makes sense to most people, object identity is the only sure definition of equivalence.
History
Date User Action Args
2014-04-02 20:51:27rhettingerunlinkissue21130 messages
2014-04-02 20:19:09rhettingersetrecipients: + rhettinger, theller, eryksun
2014-04-02 20:19:09rhettingersetmessageid: <1396469949.18.0.147527406623.issue21130@psf.upfronthosting.co.za>
2014-04-02 20:19:09rhettingerlinkissue21130 messages
2014-04-02 20:19:08rhettingercreate