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 brandon-rhodes
Recipients brandon-rhodes
Date 2011-03-16.16:32:31
SpamBayes Score 9.3383105e-06
Marked as misclassified No
Message-id <1300293152.7.0.733550751317.issue11572@psf.upfronthosting.co.za>
In-reply-to
Content
The attached patch will bring Lib/copy.py to 100% test coverage.

A bug in "coverage" results in its only reporting 99% at the moment; see coverage issue #122 on bitbucket:

https://bitbucket.org/ned/coveragepy/issue/122/for-else-always-reports-missing-branch

This patch makes several minor improvements to "copy": when doing getattr lookups with a default of "None", it now uses an "is" comparison against None which is both faster and more correct; several special cases have been removed since Python 3 always has "CodeType" available; and an ancient obsolete test suite that had been appended to copy.py in ancient times has been removed.
History
Date User Action Args
2011-03-16 16:32:32brandon-rhodessetrecipients: + brandon-rhodes
2011-03-16 16:32:32brandon-rhodessetmessageid: <1300293152.7.0.733550751317.issue11572@psf.upfronthosting.co.za>
2011-03-16 16:32:32brandon-rhodeslinkissue11572 messages
2011-03-16 16:32:32brandon-rhodescreate