def __init__(self,cls):
Steven D'Aprano
steve at pearwood.info
Fri Apr 29 20:35:57 EDT 2016
On Fri, 29 Apr 2016 07:47 pm, San wrote:
> Dear Group,
>
> Please explain the following in details.
>
> "
> def __init__(self,cls):
> self.cls = cls
The answer is the same as the answer you were given when you asked this
question on the tutor mailing list. Did you read the answers you were given
there?
Your question:
https://mail.python.org/pipermail/tutor/2016-April/108689.html
My answer then:
https://mail.python.org/pipermail/tutor/2016-April/108707.html
The difference here is that you take a single argument called "cls".
--
Steven
More information about the Python-list
mailing list