Re: Identify and perform actions to data within stated limits

2005-03-02 Thread Peter Hansen
Mike Meyer wrote: Peter Hansen <[EMAIL PROTECTED]> writes: It may look like an array to you, but it's a list. Python doesn't have arrays Huh? guru% pydoc array ... You got me :-), although you did prune a somewhat relevant part of my above comment, which continued "unless you count something like

Re: Identify and perform actions to data within stated limits

2005-03-02 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I found the len(*) obscurely mentioned on someones webpage. *All* the built functions are prominently listed and described in Library Reference 2.1Built-in Functions. I urge you and any beginner to at least read the whole of chapte

Re: Identify and perform actions to data within stated limits

2005-03-01 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >> I found out that doing a re.findall will split up the results into an >> array, or rather something called a list (looks like an array to me). > > It may look like an array to you, but it's a list. Python > doesn't have arrays

Re: Identify and perform actions to data within stated limits

2005-03-01 Thread Peter Hansen
[EMAIL PROTECTED] wrote: I found out that doing a re.findall will split up the results into an array, or rather something called a list (looks like an array to me). It may look like an array to you, but it's a list. Python doesn't have arrays, unless you count something like the numarray/Numeric e

Re: Identify and perform actions to data within stated limits

2005-03-01 Thread M.E.Farmer
Your welcome for the help , be sure to pass it on ;) M.E.Farmer -- http://mail.python.org/mailman/listinfo/python-list

Re: Identify and perform actions to data within stated limits

2005-03-01 Thread [EMAIL PROTECTED]
dir(*) !!! That's beautiful! I was just wanting to know what was available to an object. I was thinking, if there was just something that quickly told me that info I could look through the documentation quicker :D I found the len(*) obscurely mentioned on someones webpage. Thanks for the dir(*) po

Re: Identify and perform actions to data within stated limits

2005-03-01 Thread Steve Holden
[EMAIL PROTECTED] wrote: I found out that doing a re.findall will split up the results into an array, or rather something called a list (looks like an array to me). I'd be set if i could just count the elements in the array but I can't seem to find anything in the documentation on how to : / ... $

Re: Identify and perform actions to data within stated limits

2005-03-01 Thread M.E.Farmer
[EMAIL PROTECTED] wrote: > I found out that doing a re.findall will split up the results into an > array, or rather something called a list (looks like an array to me). > I'd be set if i could just count the elements in the array but I can't > seem to find anything in the documentation on how to :

Re: Identify and perform actions to data within stated limits

2005-03-01 Thread [EMAIL PROTECTED]
I found out that doing a re.findall will split up the results into an array, or rather something called a list (looks like an array to me). I'd be set if i could just count the elements in the array but I can't seem to find anything in the documentation on how to : / ... -- http://mail.python.or

Identify and perform actions to data within stated limits

2005-03-01 Thread [EMAIL PROTECTED]
Hi, I've only been using python for two days now but I'm working on it. I have the following text: My question is how can I specify to only work with the first instance of ... via any sort of substitute. If that isn't possible this is what I was doing with bash script I seperated the items as f