Chris Barker wrote:
> Sure -- but I'm afraid that there will be a lot of code that does an
> isinstance() check where it it absolutely unnecessary. If you really need
> to know if something is a sequence or a mapping, I suppose it's required,
> but how often is that?
I must say I don't understan
On Sat, Mar 1, 2014 at 6:09 PM, Alexander Belopolsky wrote:
> On Fri, Feb 28, 2014 at 10:34 AM, Chris Barker - NOAA Federal <
> chris.bar...@noaa.gov> wrote:
>
>>
>> Whatever happened to duck typing?
>>
>
> http://legacy.python.org/dev/peps/pep-3119/#abcs-vs-duck-typing
>
Sure -- but I'm afraid t
On Fr, 2014-02-28 at 09:10 -0600, Anthony Scopatz wrote:
> Thanks All,
>
>
> I am sorry I missed the issue. (I still can't seem to find it,
> actually.) I agree that there would be minimal overhead here and I
> bet that would be easy to show. I really look forward to seeing this
> get in!
>
On Fri, Feb 28, 2014 at 10:34 AM, Chris Barker - NOAA Federal <
chris.bar...@noaa.gov> wrote:
>
>
> Whatever happened to duck typing?
>
http://legacy.python.org/dev/peps/pep-3119/#abcs-vs-duck-typing
___
NumPy-Discussion mailing list
NumPy-Discussion@sci
On Feb 28, 2014, at 1:04 AM, Sebastian Berg wrote:
>
> because the sequence check like that seems standard in python 3.
Whatever happened to duck typing?
Sigh.
-Chris
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/
On Fri, Feb 28, 2014 at 3:10 PM, Anthony Scopatz wrote:
> Thanks All,
>
> I am sorry I missed the issue. (I still can't seem to find it, actually.)
https://github.com/numpy/numpy/issues/2776
> I agree that there would be minimal overhead here and I bet that would be
> easy to show. I really lo
Thanks All,
I am sorry I missed the issue. (I still can't seem to find it, actually.)
I agree that there would be minimal overhead here and I bet that would be
easy to show. I really look forward to seeing this get in!
Be Well
Anthony
On Fri, Feb 28, 2014 at 4:59 AM, Robert Kern wrote:
> O
On Fri, Feb 28, 2014 at 9:03 AM, Sebastian Berg
wrote:
> On Fr, 2014-02-28 at 08:47 +, Sturla Molden wrote:
>> Anthony Scopatz wrote:
>> > Hello All,
>> >
>> > The semantics of this seem quite insane to me:
>> >
>> > In [1]: import numpy as np
>> >
>> > In [2]: import collections
>> >
>> > In
On Fr, 2014-02-28 at 08:47 +, Sturla Molden wrote:
> Anthony Scopatz wrote:
> > Hello All,
> >
> > The semantics of this seem quite insane to me:
> >
> > In [1]: import numpy as np
> >
> > In [2]: import collections
> >
> > In [4]: isinstance(np.arange(5), collections.Sequence) Out[4]: Fal
Anthony Scopatz wrote:
> Hello All,
>
> The semantics of this seem quite insane to me:
>
> In [1]: import numpy as np
>
> In [2]: import collections
>
> In [4]: isinstance(np.arange(5), collections.Sequence) Out[4]: False
>
> In [6]: np.version.full_version
> Out[6]: '1.9.0.dev-eb40f65'
>
>
Hello All,
The semantics of this seem quite insane to me:
In [1]: import numpy as np
In [2]: import collections
In [4]: isinstance(np.arange(5), collections.Sequence)
Out[4]: False
In [6]: np.version.full_version
Out[6]: '1.9.0.dev-eb40f65'
Is there any possibility that ndarray could inherit
11 matches
Mail list logo