[email protected] wrote: > Is there a way to give a class extra functions whidout editing the .py > file where the class is located?
A clean way is subclassing:
import vehicles
class FlyingCar(vehicles.Car):
def lift_off(self):
pass
flying_car = FlyingCar()
flying_car.lift_off()
--
https://mail.python.org/mailman/listinfo/python-list
