[Python-Dev] C-API status of Python 3?

M.-A. Lemburg mal at egenix.com
Mon Mar 3 00:26:15 CET 2008


On 2008年03月02日 23:11, Greg Ewing wrote:
> M.-A. Lemburg wrote:
>> Why not also make unicode() the default type constructor and only
>> keep str() as alias to simplify porting (perhaps with a warning) ?
>> -1 on making us type 7 characters instead of
> 3 all over the place.

Oh well... how about "text()" ?
>> The term "string" is just too overloaded with all kinds of
>> misinterpretations. The term "string" just refers to a string of
>> bytes - a variable length array so to speak.
>> I disagree -- "string" has come to mean "string of
> characters" unless otherwise qualified. Using one
> to hold non-characters is just an aberration that
> was necessary in Python 2 because there wasn't much
> alternative.

Buffer objects have been around for years and for exactly
this purpose.
-- 
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Mar 03 2008)
 >>> Python/Zope Consulting and Support ... http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::

 eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
 Registered at Amtsgericht Duesseldorf: HRB 46611


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /