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.

Title: Missing import for sys in _abcoll
Type: Stage:
Components: Library (Lib), Tests Versions: Python 3.0, Python 2.6
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: hodgestar, rhettinger
Priority: normal Keywords: patch

Created on 2008-06-21 15:55 by hodgestar, last changed 2022-04-11 14:56 by admin. This issue is now closed.

File name Uploaded Description Edit
abcoll-hash.diff hodgestar, 2008-06-21 15:55
Messages (3)
msg68504 - (view) Author: Simon Cross (hodgestar) Date: 2008-06-21 15:55
The _hash method of the Set ABC uses sys.maxsize but doesn't import sys.
The attached patch (against trunk) imports sys and adds a test to show
the problem. There are also still some other cleanups waiting
in issue 2226.
msg68506 - (view) Author: Simon Cross (hodgestar) Date: 2008-06-21 15:57
One could also make a case for simply removing the _hash method since it
doesn't look like anything is using it? And anything that was using it
would already be broken?
msg68605 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2008-06-23 03:30
Applied in r64475 .
Thanks for the patch.
Date User Action Args
2022-04-11 14:56:35adminsetgithub: 47411
2008-06-23 03:30:09rhettingersetstatus: open -> closed
resolution: accepted
messages: + msg68605
2008-06-23 00:46:45benjamin.petersonsetassignee: rhettinger
nosy: + rhettinger
2008-06-21 15:57:59hodgestarsetmessages: + msg68506
2008-06-21 15:55:54hodgestarcreate