示例#1
0
文件: fermion.py 项目: sympsi/sympsi
 def __new__(cls, n):
     if n not in [0, 1]:
         raise ValueError("n must be 0 or 1")
     return Bra.__new__(cls, n)
示例#2
0
文件: boson.py 项目: ajgpitch/sympsi
 def __new__(cls):
     return Bra.__new__(cls)
示例#3
0
文件: boson.py 项目: ajgpitch/sympsi
 def __new__(cls, alpha):
     return Bra.__new__(cls, alpha)
示例#4
0
 def __new__(cls, n):
     if n not in [0, 1]:
         raise ValueError("n must be 0 or 1")
     return Bra.__new__(cls, n)
示例#5
0
 def __new__(cls):
     return Bra.__new__(cls)
示例#6
0
 def __new__(cls, alpha):
     return Bra.__new__(cls, alpha)