MCPcopy Index your code
hub / github.com/RustPython/RustPython / __new__

Method __new__

Lib/ast.py:587–588  ·  view source on GitHub ↗
(cls, dims=(), **kwargs)

Source from the content-addressed store, hash-verified

585class ExtSlice(slice):
586 """Deprecated AST node class. Use ast.Tuple instead."""
587 def __new__(cls, dims=(), **kwargs):
588 return Tuple(list(dims), Load(), **kwargs)
589
590# If the ast module is loaded more than once, only add deprecated methods once
591if not hasattr(Tuple, 'dims'):

Callers

nothing calls this directly

Calls 2

TupleClass · 0.85
listClass · 0.85

Tested by

no test coverage detected