コード例 #1
0
ファイル: type_a.py プロジェクト: AALEKH/sympy
 def __new__(cls, n):
     assert n >= 1
     return Standard_Cartan.__new__(cls, "A", n)
コード例 #2
0
 def __new__(cls, n):
     if n < 1:
         raise ValueError("n can not be less than 1")
     return Standard_Cartan.__new__(cls, "A", n)
コード例 #3
0
 def __new__(cls, n):
     assert n >= 1
     return Standard_Cartan.__new__(cls, "A", n)