E
Ed Schofield
Hi all,
This interested me:
Whereas ...
False
So how should one create a robust alias for a numeric type?
This bit me when I was trying to do the following in a class:
def __init__(self, data):
a = self.a = {}
b = self.b = {}
c = self.c = 0
# and increment them here ...
Best regards,
Ed Schofield
This interested me:
Truea1 = a2 = {}
a1['blah'] = 1
a2 {'blah': 1}
a1 == a2
Whereas ...
False
So how should one create a robust alias for a numeric type?
This bit me when I was trying to do the following in a class:
def __init__(self, data):
a = self.a = {}
b = self.b = {}
c = self.c = 0
# and increment them here ...
Best regards,
Ed Schofield