On Jun 3, 12:59 pm, George Sakkis <[EMAIL PROTECTED]> wrote:
> On Jun 3, 6:11 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > Hello all,
>
> > I have come across this issue in Python and I cannot quite understand
> > what is going on.
>
> > class Param():
> > def __init__(self, data={}, condition=False)
Hello all,
I have come across this issue in Python and I cannot quite understand
what is going on.
class Param():
def __init__(self, data={}, condition=False):
if condition:
data['class']="Advanced"
print data
In the previous example, I expect the variable data to