New submission from Daniel Eloff :
>>> class Foo(object):
... pass
...
>>> raise Foo()
Traceback (most recent call last):
File "", line 1, in
TypeError: exceptions must be classes or instances, not Foo
>>> class Foo(Exception):
... pass
...
Daniel Eloff added the comment:
I have indeed seen __get_builtin_constructor fail in practice, in the
python build in the Ubuntu repository if IIRC. I seem to recall the
problem was that python was using a version of openssl that didn't
include all of hash algorithms, probably beca
Daniel Eloff added the comment:
Yes, I prefer:
globals()[funcName] = __get_hash(funcName)
The exec was used in the original code, I'm not aware of the style of
the python stdlib programmers, so I tried to be as true to what I found
as possible.
I just wanted to blunt my words in the ori
Daniel Eloff added the comment:
If you're missing any hash algorithm from openssl (say sha224) and the
corresponding _sha224 module, hashlib will fail to import and no hash
algorithms will be available.
Additionally, if no (or only some) openssl algorithms are available, the
error b
New submission from Daniel Eloff :
The try statement at the end of hashlib.py is some of the worst python
code I've had the mispleasure of reading for a long time.
Secondly, it seems flawed in function as well as form.
__get_builtin_constructor can throw an ImportError, which seems
errone
New submission from Daniel Eloff :
This works:
r'([xy])(?:\1)+'
This won't compile, "error: nothing to repeat"
r'([xy])(?:\s*\1)+'
I can execute this under other regex engines, and it seems to me that it
really should work.
--
components: Librar
New submission from Daniel Eloff:
There seems to be no way to skip the build step when running "setup.py
install" The behavior in such a case should be to skip build and use the
existing binaries as created in a separate build step or else print an
error. That way you can do "