Closed gouravkadiankad closed 3 years ago
Processing uses the Jython interpreter (Python 2.7 syntax). Add (object)
to the Lens
line for new style classes, and a .
following the 6
for floating-point division:
class Lens(object):
def __init__(self, radiusofC):
self.radius = radiusofC
self.aperture = radiusofC*(6./5)
The super function showing an unexpected error
Error TypeError: super: argument 1 must be type