コード例 #1
0
 def __new__(cls, *args, **kwds):
     if _geqv(cls, Deque):
         raise TypeError("Type Deque cannot be instantiated; "
                         "use deque() instead")
     return deque.__new__(cls, *args, **kwds)
コード例 #2
0
 def __new__(cls, *args):
     return deque.__new__(cls, *args)