I just added +'*' to select in re.search(select+'*', str(readfile[:])),
and it now shows the same in both.
But if you have any input on modifications let me know.
Thanks,
David
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscriptio
In the below function I'm trying to iterate over the lines in a textfile,
and try to match with a regex pattern that iterates over the lines in
a dictionary(not {}, but turns a text list of alphabetical words into a
list using readlines()).
def regexfiles(filename):
textfile = file(filenam
Michael Scharf-6 wrote:
>
>
> ImportError: No module named yaml
>
> So my question is: do I really not have what I need here? Or is it a
> question of something not finding something that's there? Maybe I'm
> using the wrong name somewhere? Or??
>
>
>
Mike, I've just gotten nltk to wo
On Wed, Sep 01, 2010 at 09:14:50AM +0100, Alan Gauld wrote:
> It is an abbreviation for class. The first parameter to new() must be a
> refernce to the class.
> It is similar to self in an instance method, where the first parameter
> is a reference
> to the instance.
Thanks a lot.
With warm re
Alan Gauld wrote:
> "Payal" wrote
>> b. What does type(_) mean?
>
> The _ refers to the last evaluated result, in this case the tuple
> (1,2).
> Its a shorthand trick, I think it only works in the interpreter, I
> don't like
> it and never use it, but many do. (FWIW Perl has a similar shortcut
>