Re: [Python-Dev] unscriptable?

2008-04-19 Thread Stephen J. Turnbull
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.

Re: [Python-Dev] unscriptable?

2008-04-19 Thread Steve Holden
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

Re: [Python-Dev] unscriptable?

2008-04-19 Thread Nick Coghlan
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

Re: [Python-Dev] unscriptable?

2008-04-19 Thread Greg Ewing
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

Re: [Python-Dev] unscriptable?

2008-04-19 Thread Scott Dial
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

Re: [Python-Dev] unscriptable?

2008-04-19 Thread Stephen J. Turnbull
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

[Python-Dev] unscriptable?

2008-04-19 Thread Jim Jewett
> 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

[Python-Dev] 3k checkin mails to python-checkins

2008-04-19 Thread Georg Brandl
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

Re: [Python-Dev] unscriptable?

2008-04-19 Thread Georg Brandl
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

Re: [Python-Dev] test_subprocess failing

2008-04-19 Thread Christian Heimes
[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

Re: [Python-Dev] Interface to change Py3kWarning in Python

2008-04-19 Thread Benjamin Peterson
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

Re: [Python-Dev] Interface to change Py3kWarning in Python

2008-04-19 Thread Georg Brandl
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

Re: [Python-Dev] unscriptable?

2008-04-19 Thread Steven
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-

Re: [Python-Dev] unscriptable?

2008-04-19 Thread Nick Coghlan
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

[Python-Dev] test_subprocess failing

2008-04-19 Thread skip
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