Update elliptic-generalized.py
This commit is contained in:
parent
7fc6fe0fb8
commit
74b905ccec
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ class Point(object):
|
||||||
|
|
||||||
|
|
||||||
def __mul__(self, n):
|
def __mul__(self, n):
|
||||||
if not isinstance(n, int):
|
if not (isinstance(n, int) or isinstance(n, long)):
|
||||||
raise Exception("Can't scale a point by something which isn't an int!")
|
raise Exception("Can't scale a point by something which isn't an int!")
|
||||||
else:
|
else:
|
||||||
if n < 0:
|
if n < 0:
|
||||||
|
|
Loading…
Reference in a new issue