Re: object has no attribute 'ecrire'

2014-12-24 Thread fulgar36
yes very clear. thnk you for your help -- https://mail.python.org/mailman/listinfo/python-list

Re: object has no attribute 'ecrire'

2014-12-24 Thread fulgar36
Thank for your answer Chris. I'm a newbie and I just start to learn what is a class and attributes. But when I read your tex I restart the shell and I create a new object and it works. Your message helps me and I think I create the object tab with self surface and then I modified my TableauNoir

object has no attribute 'ecrire'

2014-12-23 Thread fulgar36
Hello, I wrote this code (it was on a book) class TableauNoir: def __init__(self): self.surface="" def ecrire(self, message_a_ecrire): if self.surface != "": self.surface += "\n" self.surface+=message_a_ecrire