make operators overloading less redundant in python? – stackoverflow.com

I'm writing a class overloading the list type. I just wrote this and I'm wondering if there exists any other way less redundant to do it : class Vector: def __mul__(self, other): #Vector([1, 2, ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "make operators overloading less redundant in python? – stackoverflow.com"