[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: iptables gui



On Fri, 2004-02-20 at 11:52, Shannon --jj Behrens wrote:
>
> Once again, I'm backseat driving, without even knowing exactly what you
> guys are doing:  I'm guessing if you have a method named "as_string",
> you might want to name it __str__ so that str(myInstace) works. :)

When I was first writing the code, I started using __str__.  But then I 
needed to pass arguments to modify the output so I switched to something
else.

Jeff





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]