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/026079.html below:

[Python-Dev] Silent Deprecation Candidate -- buffer()

[Python-Dev] Silent Deprecation Candidate -- buffer() [Python-Dev] Silent Deprecation Candidate -- buffer()Fredrik Lundh fredrik@pythonware.com
Mon, 1 Jul 2002 16:57:00 +0200
mal wrote:

> > does anyone have any real-life use cases?  I've never been
> > able to use it for anything, and cannot recall ever seeing it
> > being used by anyone else...
 
> I use it in real-life applications to wrap binary data.

can you elaborate?  how do you use it?  could it be replaced
by something simpler, and still work in your application?

would something like this work?

    class buffer(object):
        def __len__(...)
        def __getitem__(...)
        def __getslice__(...)

    class basestring(buffer):
        ...

    class string(basestring):
        ...

    class unicode(basestring):
        ...

</F>





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