[Zope-dev] manage_options in 2.3

Tres Seaver tseaver@digicool.com
Thu, 08 Feb 2001 20:29:22 -0500


"Chris Withers" <chrisw@nipltd.com> wrote:


> > 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')
> 
> Hmmm... does 'normal' python work like that too? Probably...

$ python
Python 1.5.2 (#1, Feb  1 2000, 16:32:16)  [GCC egcs-2.91.66 19990314/Linux
(egcs- on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> a = ( 1,2,3,4 )
>>> a
(1, 2, 3, 4)
>>> a[ 1:3 ]
(2, 3)

> Ah well, you learn something new every day :-)

Only on the good days -- the bad ones you spend in meetings. :)

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@digicool.com
Digital Creations     "Zope Dealers"       http://www.zope.org