Emanuel Barry added the comment:

Nobody seems to have asked this, so I'll be that guy. In which circumstances 
does comparing two code objects (at function creation time, what's more) make 
any sense? I mean, I'm fine with being able to compare two code objects, but I 
don't think that's something that should be automated.

Is there any particular reason why this is so? The only reason I could think of 
was that small, identical functions could use the same code object -- but then 
Raymond proved that different files will not share the code object, and 
identical functions on different lines will not, either.

As functions grow in size and complexity, having two virtually identical 
functions is probably bad design to begin with. So, seeing as this causes more 
harm than good (and I doubt it's of any use nowadays - it might have been back 
then, I don't know), I suggest we simply drop the implcit code objects 
compare-and-replace that's happening here.

----------
nosy: +ebarry

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

Reply via email to