Thanks to all!!! Now it works!
--
http://mail.python.org/mailman/listinfo/python-list
Alejandro wrote:
> I have created a class:
>
> class document:
>
> titre = ''
> haveWords = set()
>
> def __init__(self, string):
>
> self.titre = string
>
> #
>
> doc1 = document('doc1')
> doc2 = document('doc2')
>
> doc1.haveWords.add(1)
> doc2.haveWords.add(2)
On Mar 20, 11:08 am, "Alejandro" <[EMAIL PROTECTED]> wrote:
> I have created a class:
>
> class document:
>
> titre = ''
> haveWords = set()
>
> def __init__(self, string):
>
> self.titre = string
>
> #
>
> doc1 = document('doc1')
> doc2 = document('doc2')
>
> doc1.haveW
Alejandro wrote:
> I have created a class:
>
> class document:
>
> titre = ''
> haveWords = set()
>
> def __init__(self, string):
>
> self.titre = string
>
> #
>
> doc1 = document('doc1')
> doc2 = document('doc2')
>
> doc1.haveWords.add(1)
> doc2.haveWords.add(2)
>
>
> p