Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-10-28 Thread M.-A. Lemburg
Travis E. Oliphant wrote: > M.-A. Lemburg wrote: >> Travis E. Oliphant wrote: >>> >>> >>> PEP: >>> Title: Adding data-type objects to the standard library >>> Attributes >>> >>> kind -- returns the basic "kind" o

Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-10-28 Thread Armin Rigo
Hi Travis, On Fri, Oct 27, 2006 at 02:05:31PM -0600, Travis E. Oliphant wrote: > This PEP proposes adapting the data-type objects from NumPy for > inclusion in standard Python, to provide a consistent and standard > way to discuss the format of binary data. How does this compare with

Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-10-28 Thread Travis E. Oliphant
M.-A. Lemburg wrote: > Travis E. Oliphant wrote: >> >> >> >> PEP: >> Title: Adding data-type objects to the standard library >> Attributes >> >> kind -- returns the basic "kind" of the data-type. The basic kinds

Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-10-28 Thread M.-A. Lemburg
Travis E. Oliphant wrote: > > > > > PEP: > Title: Adding data-type objects to the standard library > Attributes > > kind -- returns the basic "kind" of the data-type. The basic kinds > ar

Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-10-27 Thread Travis E. Oliphant
Greg Ewing wrote: > Travis E. Oliphant wrote: >> PEP: >> Title: Adding data-type objects to the standard library > > Not sure about having 3 different ways to specify > the structure -- it smacks of Too Many Ways To Do > It to me. You might be right, but they all have use-cases. I've actually r

Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-10-27 Thread Travis E. Oliphant
Martin v. Löwis wrote: > Travis E. Oliphant schrieb: >> The datatype is an object that specifies how a certain block of >> memory should be interpreted as a basic data-type. >> >> >>> datatype(float) >> datatype('float64') > > I can't speak on the specific merits of this propo

Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-10-27 Thread Nick Coghlan
Martin v. Löwis wrote: > Travis E. Oliphant schrieb: >> The datatype is an object that specifies how a certain block of >> memory should be interpreted as a basic data-type. >> >> >>> datatype(float) >> datatype('float64') > > I can't speak on the specific merits of this propo

Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-10-27 Thread Nick Coghlan
Nick Coghlan wrote: > There are actually 5 ways, but the different mechanisms all have different > use > case (and I'm going to suggest getting rid of the dictionary form). D'oh, I though I deleted that parenthetical comment... obviously, I changed my mind on this point :) Cheers, Nick. -- N

Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-10-27 Thread Nick Coghlan
Greg Ewing wrote: > Travis E. Oliphant wrote: >> PEP: >> Title: Adding data-type objects to the standard library I've used 'datatype' below for consistency, but can we please call them something other than data types? Data layouts? Data formats? Binary layouts? Binary formats? 'type' is already

Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-10-27 Thread Greg Ewing
Travis E. Oliphant wrote: > PEP: > Title: Adding data-type objects to the standard library Not sure about having 3 different ways to specify the structure -- it smacks of Too Many Ways To Do It to me. Also, what if I want to refer to fields by name but don't want to have to work out all the offs

Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-10-27 Thread Martin v. Löwis
Travis E. Oliphant schrieb: > The datatype is an object that specifies how a certain block of > memory should be interpreted as a basic data-type. > > >>> datatype(float) > datatype('float64') I can't speak on the specific merits of this proposal, or whether this kind of func

[Python-Dev] PEP: Adding data-type objects to Python

2006-10-27 Thread Travis E. Oliphant
PEP: Title: Adding data-type objects to the standard library Version: $Revision: $ Last-Modified: $Date: $ Author: Travis Oliphant <[EMAIL PROTECTED]> Status: Draft Type: Standards Track Created: 05-Sep-2006 Python-Version: 2.6 Abstract This PEP proposes adapting the data-type objects fro

<    1   2