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 Chris Angelico
On Wed, Dec 24, 2014 at 7:49 PM, wrote: > 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 w

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

Re: object has no attribute 'ecrire'

2014-12-23 Thread Chris Angelico
On Wed, Dec 24, 2014 at 11:42 AM, wrote: > 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 += "

Re: object has no attribute 'ecrire'

2014-12-23 Thread MRAB
On 2014-12-24 00:42, fulga...@gmail.com wrote: 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