No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi, I am trying to create a programe like this: n1 = NAttrib() n2 = NAttrib() out = NAttrib() NAttrib class can be considered as general purpose attribute. f1 = FloatAttrib(1.0) f2 = FloatAttrib(2.0) FloatAttribute class is like float type but with some extra spices. It has operator overloading functions … |
|
[code=python] class a(object): pass b = a() print id(b) 20441744 [/code] Is it possible to get the instance from this number/address? |
|
Hi, I am trying to create a cutom 'Float' type using built in 'float' type. Here is the code: [code=python] class Attribute(object): """ Common attributes and methods for custom types """ def __init__(self, name=None, type=None, range=None): self.__name = name self.__type = type self.__range = range #Read only attributes name = … |