yes very clear.
thnk you for your help
--
https://mail.python.org/mailman/listinfo/python-list
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
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