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/2002-July/027160.html below:

[Python-Dev] pre-PEP: The Safe Buffer Interface

[Python-Dev] pre-PEP: The Safe Buffer Interface [Python-Dev] pre-PEP: The Safe Buffer InterfaceGuido van Rossum guido@python.org
Wed, 31 Jul 2002 12:06:13 -0400
> The consequence: mmap objects need a 'buffer lock counter',
> and cannot be closed while the count is >0. Which exception
> is raised then?

Pick one -- mmap.error (== EnvironmentError) seems fine to me.

Alternately, close() could set a "please close me" flag which causes
the mmap file to be closed when the last release is called.

Of course, the acquire method should raise an exception when it's
already closed.

> Or do you have something different in mind?
> The lock counter wouuld not be needed for strings and unicode...

And the array module could have one.

--Guido van Rossum (home page: http://www.python.org/~guido/)



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