Function extend()

← Back to Module core



Module core → extend()

Description

Extend obj_1 to obj_2. All of attributes and functions of obj_2 will be inherited to obj_1

extend(obj_1, obj_2)


Parameters


Return Value


Usage Example

a = some_object()
b = another_object()
 
extend(a, b)