How to use the pythonic.vector0.Vector function in Pythonic

To help you get started, we’ve selected a few Pythonic examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rg3915 / python-experience / pythonic / vector0.py View on Github external
def __mul__(self, scalar):
        if isinstance(scalar, numbers.Real):
            return Vector(n * scalar for n in self)
        else:
            return NotImplemented

Pythonic

Graphical automation tool

GPL-3.0
Latest version published 2 years ago

Package Health Score

39 / 100
Full package analysis