[Dan Sommers]
> Curious that in this lengthy discussion, a method name of "accumulate"
> never came up.  I'm not sure how to separate the two cases (accumulating
> scalars vs. accumulating a list), though.

Separating the two cases is essential.  Also, the wording should contain strong
cues that remind you of addition and of building a list.

For the first, how about addup():

    d = {}
    for word in text.split():
         d.addup(word)


Raymond


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to