||| Help requested from newbie |||

dej (instructions in sig) dej at eastmail.com
Mon Jun 19 08:37:22 EDT 2000


On Mon, 19 Jun 2000 01:07:41 -0700, Richard Chamberlain
<richard_chamberlainNOriSPAM at ntlworld.com.invalid> wrote:

>Hi David,
>
>The problem is in the function Analyze, specifically groups =
>getCharGroups(infile).
>
>If you look at the function getCharGroups it has no return
>statement, in these cases Python actually returns none.
>
>So although you are using the global groups all the while and
>appending words to the end as soon as the function completes it
>just assigns none to groups.
>
>for item in wordList doesn't work because it's trying to iterate
>over none.
>
>Replace that line with
>
>getCharGroups(infile)
>
>And it should work.
>
>Richard
>
>Got questions?  Get answers over the phone at Keen.com.
>Up to 100 minutes free!
>http://www.keen.com


Thank you! I heard from the author as well and offered the same
solution.

David

Without the number 0041 in the subject line of the message, 
any messages sent to dej at eastmail.com are discarded by the server.



More information about the Python-list mailing list