Re: Error when creating class

2008-10-26 Thread Walter Cruz
You forgot the self in minha_func. -- []' - Walter waltercruz.com -- http://mail.python.org/mailman/listinfo/python-list

Re: rss feed generation

2008-09-11 Thread Walter Cruz
On Tue, Sep 9, 2008 at 9:35 PM, alex23 <[EMAIL PROTECTED]> wrote: > On Sep 10, 7:30 am, "Blake Garner" <[EMAIL PROTECTED]> wrote: >> I'm looking for suggestions on how to approach generating rss feed >> .xml files using python. What modules to people recommend I start >> with? pylons webhelpers ma

Re: Extract Information from Tables in html

2008-09-05 Thread Walter Cruz
On Fri, Sep 5, 2008 at 11:29 AM, Jackie Wang <[EMAIL PROTECTED]> wrote: > Dear all, > > Here is a html code: > > > > Premier Community Bank of Southwest Florida > > Fort Myers, FL > > > > My question is how I can extract the strings and get the results: > Premier Communit

Re: shorten this: if char in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz":

2008-06-24 Thread Walter Cruz
another way: import string if char in string.ascii_letters: print('hello buddy!') []'s - Walter -- http://mail.python.org/mailman/listinfo/python-list

Re: regex \b behaviour in python

2008-06-20 Thread Walter Cruz
> I'm surprised that splitting on \b doesn't work as expected, so it > might be that re.split has been defined only to split on one or more > characters. Is it something that should it be 'fixed'? Thats's my main doubt: is this a bug or not? []'s - Walter -- http://mail.python.org/mailman/listinf

regex \b behaviour in python

2008-06-19 Thread Walter Cruz
Hi all! Just a simple question about the behaviour of a regex in python. (I discussed this on IRC, and they suggest me to post here). I tried to split the string "walter ' cruz" using \b . In ruby, it returns: irb(main):001:0>"walter ' cruz".split(/\b/) =&g