few fixes here and there and multi-core processing for dictionary based hash attack

This commit is contained in:
Miroslav Stampar
2011-07-04 19:58:41 +00:00
parent da049110df
commit b8ffcf9495
8 changed files with 225 additions and 101 deletions

View File

@@ -33,7 +33,7 @@ if INTP_VER < (2, 2):
import types, warnings
class OrderedDict(dict):
class _OrderedDict(dict):
"""
A class of dictionary that keeps the insertion order of keys.
@@ -869,6 +869,11 @@ class OrderedDict(dict):
"""
self._sequence.sort(*args, **kwargs)
if INTP_VER >= (2, 7):
from collections import OrderedDict
else:
OrderedDict = _OrderedDict
class Keys(object):
# FIXME: should this object be a subclass of list?
"""