A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-October/039853.html below:

[Python-Dev] Deprecate the buffer object?

[Python-Dev] Deprecate the buffer object? [Python-Dev] Deprecate the buffer object?Greg Ewing greg at cosc.canterbury.ac.nz
Thu Oct 30 22:37:51 EST 2003
Neil Schemenauer <nas-python at python.ca>:

> I don't think the buffer hash method can depend on the data being
> pointed to.  There is nothing in the buffer interface that tells
> you if the data is immutable.  The hash method could return the id
> of the buffer object but I'm not sure how useful that would be.

How about just having it call the hash method of the base
object? If the base object is hashable, this will do something
reasonable, and if not, it will fail in the expected way.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4