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/2006-October/069616.html below:

Adding data-type objects to Python

[Python-Dev] PEP: Adding data-type objects to PythonTravis E. Oliphant oliphant.travis at ieee.org
Sat Oct 28 11:32:09 CEST 2006
M.-A. Lemburg wrote:
> Travis E. Oliphant wrote:
>>
>> ------------------------------------------------------------------------
>>
>> PEP: <unassigned>
>> Title: Adding data-type objects to the standard library
>>   Attributes
>>
>>      kind      --  returns the basic "kind" of the data-type. The basic kinds
>>                      are:
>>                        't' - bit, 
>>                        'b' - bool, 
>>                        'i' - signed integer, 
>>                        'u' - unsigned integer,
>>                        'f' - floating point,                  
>>                        'c' - complex floating point, 
>>                        'S' - string (fixed-length sequence of char),
>>                        'U' - fixed length sequence of UCS4,
> 
> Shouldn't this read "fixed length sequence of Unicode" ?!
> The underlying code unit format (UCS2 and UCS4) depends on the
> Python version.

Well, in NumPy 'U' always means UCS4.  So, I just copied that over.  See 
my questions at the bottom which talk about how to handle this.  A 
data-format does not necessarily have to correspond to something Python 
represents with an Object.

-Travis

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