[Python-Dev] buffer('abc') == 'abc' is False ?! (original) (raw)
Guido van Rossum guido@python.org
Wed, 16 Oct 2002 12:01:47 -0400
- Previous message: [Python-Dev] buffer('abc') == 'abc' is False ?!
- Next message: [Python-Dev] buffer('abc') == 'abc' is False ?!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> So, apart from the Python 2.1 requirement, subclassing str does the > trick, right?
Right. Would be nice if there were a standard builtin, e.g. binary(), for this and maybe some support code to go with it in C (e.g. the type object would be nice to have at C level).
I disagree. There are a thousand different applications, and yours seems rather unusual to me.
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] buffer('abc') == 'abc' is False ?!
- Next message: [Python-Dev] buffer('abc') == 'abc' is False ?!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]