[New-bugs-announce] [issue3161] Missing import for sys in _abcoll

Simon Cross report at bugs.python.org
Sat Jun 21 17:55:55 CEST 2008


New submission from Simon Cross <hodgestar at gmail.com>:

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 _abcoll.py cleanups waiting
in issue 2226.

----------
components: Library (Lib), Tests
files: abcoll-hash.diff
keywords: patch
messages: 68504
nosy: hodgestar
severity: normal
status: open
title: Missing import for sys in _abcoll
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file10682/abcoll-hash.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3161>
_______________________________________


More information about the New-bugs-announce mailing list