Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue6071] no longer possible to hash arrays

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jul 13, 2009, 12:45 AM

Post #1 of 2 (182 views)
Permalink
[issue6071] no longer possible to hash arrays

ivank <ivan [at] ludios> added the comment:

It no longer works with objects created with buffer() either:

>>> hashlib.sha1(buffer("x")).hexdigest()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: object supporting the buffer API required

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6071>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 13, 2009, 2:05 PM

Post #2 of 2 (155 views)
Permalink
[issue6071] no longer possible to hash arrays [In reply to]

Martin v. Löwis <martin [at] v> added the comment:

> It no longer works with objects created with buffer() either:

That's because the buffer objects don't implement the buffer protocol
(in particular, they don't define the Py_TPFLAGS_HAVE_NEWBUFFER flag,
and the bf_getbuffer/bf_releasebuffer operations that go with that flag.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6071>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.