AnObject

class AnObject(a, b)[source]

Bases: object

Defines an object

Parameters
  • a (bool) – This is param a description.

  • b (numpy.ndarray) – This is param b description.

a

An attribute.

Type

bool

b

Another attribute.

Type

numpy.ndarray

Notes

There’s a little of repeatability in paramaters and attributes. Nevertheless, the output is quite different (take a look).

Methods

__init__(a, b)

operate_on_attributes(operator)

Operates on attributes accordingly to passed method.

Methods

AnObject.__init__(a, b)[source]
AnObject.operate_on_attributes(operator)[source]

Operates on attributes accordingly to passed method.

Parameters

operator (callable) – A function that receives a and b.