Daniel Diniz <aja...@gmail.com> added the comment:

Mark, Virgil: Thanks for correcting my wrong assessment!

The lucky TypeError comes from rev 68120.

It looks like that error message in trunk is due to a "PyNumber_And(v,
pylong_ulong_mask)" when v isn't a PyNumber. I've added a "get_pylong(v)
== NULL" check in the attached patch, but my C is weak :)

----------
keywords: +patch
stage: test needed -> patch review
Added file: http://bugs.python.org/file13968/fail_pack_non_int.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1741130>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to