Hello!

I have trouble understanding something in this code snippet:

class TextReader:
    """Print and number lines in a text file."""
    def __init__(self, file):
        self.file = file
        .
        .
        .


When would you do a thing like  self.file = file  ? I really don't
find an answer on this. Please help me understand this.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to