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 xdegaye
Recipients chris.jerdonek, eric.araujo, ezio.melotti, xdegaye
Date 2012-09-28.19:52:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Note that using the module code object to find duplicates does not
allow for selecting among the different code types: function, nested
function, method or class.

Duplicates are extensively used within the std lib:

Running, the initial script from issue
16056, on the whole std lib instead of just Lib/test, after updating
the script to list all the duplicates (except <lambda>, <genexp>,
...) with:

    if not name[-1].startswith('<'):
        yield '.'.join(name)

prints 347 (on a total of 1368 std lib .py files) duplicate
functions, methods or classes.

To eliminate module level functions (but not nested functions), the
script is run now with the following change:

    if len(name) > 2 and not name[-1].startswith('<'):
        yield '.'.join(name)

and lists 188 duplicate nested functions, methods or classes.  In
this list there are 131 duplicates in .py files located in the
subdirectory of a "test" directory.
Date User Action Args
2012-09-28 19:52:51xdegayesetrecipients: + xdegaye, ezio.melotti, eric.araujo, chris.jerdonek
2012-09-28 19:52:51xdegayesetmessageid: <>
2012-09-28 19:52:51xdegayelinkissue16079 messages
2012-09-28 19:52:51xdegayecreate