Torgil Svensson wrote:
> Have you specific insights in Python 3k regarding this? I assume 3k
> is the next millenium. Maybe they can accept patches before that.
Work on Python 3.0 is going on now. An alpha should be out this year. The
deadline for proposing major changes requiring a PEP has passe
On 6/21/07, David M. Cooke <[EMAIL PROTECTED]> wrote:
> On Jun 20, 2007, at 04:35 , Torgil Svensson wrote:
>
> > Hi
> >
> > Is there a reason for numpy.float not to convert it's own string
> > representation correctly?
>
> numpy.float is the Python float type, so there's nothing we can do. I
> am w
Have you specific insights in Python 3k regarding this? I assume 3k
is the next millenium. Maybe they can accept patches before that.
//Torgil
On 6/20/07, Matthieu Brucher <[EMAIL PROTECTED]> wrote:
> Hi,
>
> This was discussed some time ago (I started it because I had exactly the
> same proble
On Jun 20, 2007, at 04:35 , Torgil Svensson wrote:
Hi
Is there a reason for numpy.float not to convert it's own string
representation correctly?
numpy.float is the Python float type, so there's nothing we can do. I
am working on adding NaN and Inf support for numpy dtypes, though, so
that
El dj 21 de 06 del 2007 a les 06:24 -0700, en/na Michael McNeil Forbes
va escriure:
> >> key_array = empty(len(keys),dtype=tuple)
> >> key_array[:] = keys[:]
> >
> > the later two statements can also be written as:
> >
> > key_array = array(keys, dtype=tuple)
>
> These are not equivalent:
>
> >>
>> key_array = empty(len(keys),dtype=tuple)
>> key_array[:] = keys[:]
>
> the later two statements can also be written as:
>
> key_array = array(keys, dtype=tuple)
These are not equivalent:
>>> keys = [('a',1),('b',2)]
>>> key_array = array(keys, dtype=tuple)
>>> key_array
array([[a, 1],
El dc 20 de 06 del 2007 a les 12:43 -0700, en/na Michael McNeil Forbes
va escriure:
> Hi,
>
> That is a little more complicated than I want, but it shows me the
> solution: Construct the array of the desired shape first, then fill it.
>
> data = [1.0, 3,0]
> keys = [('a',1),('b',2)]
>
> # Conv