Python and Schools

Steve Holden sholden at holdenweb.com
Wed Apr 16 15:13:30 EDT 2003


"Andrew Bennetts" <andrew-pythonlist at puzzling.org> wrote ...
> On Wed, Apr 16, 2003 at 02:22:02PM +0000, Steve Holden wrote:
> [...]
> >
> > For a real example, consider the contortions I have to go through when
> > writing VBScript ASP code for a client's project if I want a list
(array) of
> > strings. Where in Python I can write:
> >
> >     sarr = ['the', 'quick', 'brown', 'fox', 'jumps' 'over', 'the',
'lazy',
> > 'dog]
> >
> > in VBScript I must resort to one of [nontested code follows]:
> >
[...]
>
> Or, if my memory isn't failing me:
>
>     sarr = Array("the", "quick", ... "dog")
>

Indeed, though that's new to me (never used VB, just the scripting version).
Now let's create a dictionary-of-objects equivalent using the
DictionaryOfObjects() function ;-)

regards
--
Steve Holden                                  http://www.holdenweb.com/
How lucky am I?      http://www.google.com/search?q=Steve+Holden&btnI=1
Python Web Programming                 http://pydish.holdenweb.com/pwp/








More information about the Python-list mailing list