[Zope-dev] manage_options in 2.3

Andy McKay andym@ActiveState.com
Thu, 8 Feb 2001 10:35:03 -0800


Yes you can:

ActivePython 2.0, build 202 (ActiveState Tool Corp.)
based on Python 2.0 (#8, Oct 19 2000, 11:30:05) [MSC
Type "copyright", "credits" or "license" for more in
>>> a = ('a','b','c','d')
>>> print type(a)
<type 'tuple'>
>>> b = a[1:]
>>> print b
('b', 'c', 'd')
>>> print type(b)
<type 'tuple'>
>>>

--
  Andy McKay.


----- Original Message -----
From: "Chris Withers" <chrisw@nipltd.com>
To: "Andy McKay" <andym@activestate.com>; "Brian Lloyd" <brian@digicool.com>
Cc: <zope-dev@zope.org>
Sent: Thursday, February 08, 2001 10:18 AM
Subject: Re: [Zope-dev] manage_options in 2.3


> > 2.3. The problem is the [2:] which for some reason doesnt want to work,
> when
> > I thought I was accesing a simple tuple.
>
> You can't slice tuples, IIRC, which would explain why that bit fails.
>
> cheers,
>
> Chris
>
>