Activestate python installation
hi this is a question regarding installing Activestate python whenever i try to install the latest Activestate Python on WinXP SP2, it gives me error saying "The wizard was interrupted before Activestate 2.4.2 could be completely installed. Your system has not been modified ." any ideas why this is going on? thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: a good explanation
wow!...thanks for both replies..and yes you are right, he comes from a world of C and java...i have successfully "brainwashed" him to try out coding in python...haha. So he has written his first program in python and i have roughly toook a glance at it and saw what he did.. i pointed out his "mistakes" but couldn't convince him otherwise. Anyway , i am going to show him your replies.. thanks again. -- http://mail.python.org/mailman/listinfo/python-list
Re: Regex help needed!
On Dec 21, 7:38 pm, Oltmans wrote:
> Hello,. everyone.
>
> I've a string that looks something like
>
> lksjdfls kdjff lsdfs sdjfls = "amazon_35343433">sdfsdwelcome
>
>
> From above string I need the digits within the ID attribute. For
> example, required output from above string is
> - 35343433
> - 345343
> - 8898
>
> I've written this regex that's kind of working
> re.findall("\w+\s*\W+amazon_(\d+)",str)
>
> but I was just wondering that there might be a better RegEx to do that
> same thing. Can you kindly suggest a better/improved Regex. Thank you
> in advance.
don't need regular expression. just do a split on amazon
>>> s="""lksjdfls kdjff lsdfs sdjfls >> = "amazon_35343433">sdfsdwelcome"""
>>> for item in s.split("amazon_")[1:]:
... print item
...
345343'> kdjff lsdfs sdjfls sdfsdwelcome
then find ' or " indices and do index slicing.
--
http://mail.python.org/mailman/listinfo/python-list
