Nick Coghlan writes:
> To suggest yet another colour for the bikeshed, maybe we should ditch
> both unindexable and unsubscriptable and go with "'int' is not a
> sequence or mapping".
I like this best.
___
Python-Dev mailing list
Python-Dev@python.
Nick Coghlan wrote:
[...]>
> To suggest yet another colour for the bikeshed, maybe we should ditch
> both unindexable and unsubscriptable and go with "'int' is not a
> sequence or mapping". Any object which supports subscript notation will
> be one or the other.
>
All the object needs to to to
Stephen J. Turnbull wrote:
> Steven writes:
> > On Sat, 19 Apr 2008 22:13:19 +1000
> > Nick Coghlan <[EMAIL PROTECTED]> wrote:
> >
> > > Being indexable is subtly different from being subscriptable - the
> > > former has stronger connotations of numeric indices and sequence-like
> > > beha
Nick Coghlan wrote:
> Being indexable is subtly different from being subscriptable - the
> former has stronger connotations of numeric indices and sequence-like
> behaviour (particularly since the introduction of operator.index), while
> the latter merely states that the container provides some
Georg Brandl wrote:
> There is currently no misspelling.
We should at least make the set object match the others.
-Scott
--
Scott Dial
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman
Steven writes:
> On Sat, 19 Apr 2008 22:13:19 +1000
> Nick Coghlan <[EMAIL PROTECTED]> wrote:
>
> > Being indexable is subtly different from being subscriptable - the
> > former has stronger connotations of numeric indices and sequence-like
> > behaviour
> With my maths background, I wo
> I dispute this. Indices aren't necessarily numeric
> (think of an A-Z file),
Python has recently added an __index__ slot which means "as an
integer, and I really am an integer, I'm not just rounding like
int(3.4) would do"
So in the context of python, an index is numeric, whereas "subscript"
ha
Since a few days, checkin notifications for the 3k branch seem to be sent
to both the python-checkins and the python-3000-checkins lists. Was that a
deliberate decision or has some bug crept into the SVN hook?
Georg
--
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Fo
Steven schrieb:
> On Sat, 19 Apr 2008 22:13:19 +1000
> Nick Coghlan <[EMAIL PROTECTED]> wrote:
>
>> Being indexable is subtly different from being subscriptable - the
>> former has stronger connotations of numeric indices and sequence-like
>> behaviour
>
> I dispute this. Indices aren't necess
[EMAIL PROTECTED] schrieb:
> test_subprocess failed in Neal's regression test overnight. My guess for
> the culprit would be Christian's checkin on Friday:
>
> r62386 | christian.heimes | 2008-04-18 21:23:57 -0500 (Fri, 18 Apr 2008) |
> 2 lines
>
> Added kill, terminate and send_signal to s
On Sat, Apr 19, 2008 at 9:12 AM, Georg Brandl <[EMAIL PROTECTED]> wrote:
> Christian Heimes schrieb:
> >
> > How do you like a macro or function PyErr_Warn3k(msg) that does all the
> > dirty work?
>
> Which additional dirty work would it do? It should never have to do more than
> check a simpl
Christian Heimes schrieb:
> Benjamin Peterson schrieb:
>> I currently have a patch to make it possible to change py3k warnings
>> in Python through new functions in sys: issue 2458. I realize the
>> functions are rather ugly, but I don't think there is another
>> practical way to do it unless you w
On Sat, 19 Apr 2008 22:13:19 +1000
Nick Coghlan <[EMAIL PROTECTED]> wrote:
> Being indexable is subtly different from being subscriptable - the
> former has stronger connotations of numeric indices and sequence-like
> behaviour
I dispute this. Indices aren't necessarily numeric (think of an A-
Benjamin Peterson wrote:
> On Fri, Apr 18, 2008 at 5:43 PM, Benjamin Peterson
> <[EMAIL PROTECTED]> wrote:
>> Consider this error:
>> >>> 3["something"]
>> Traceback (most recent call last):
>> File "", line 1, in
>> TypeError: 'int' object is unsubscriptable
>>
>> "unscriptable" seems rathe
test_subprocess failed in Neal's regression test overnight. My guess for
the culprit would be Christian's checkin on Friday:
r62386 | christian.heimes | 2008-04-18 21:23:57 -0500 (Fri, 18 Apr 2008) | 2
lines
Added kill, terminate and send_signal to subprocess.Popen. The bits and
pieces f
15 matches
Mail list logo