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

Method __new__

Lib/ast.py:582–583  ·  view source on GitHub ↗
(cls, value, **kwargs)

Source from the content-addressed store, hash-verified

580class Index(slice):
581 """Deprecated AST node class. Use the index value directly instead."""
582 def __new__(cls, value, **kwargs):
583 return value
584
585class ExtSlice(slice):
586 """Deprecated AST node class. Use ast.Tuple instead."""

Callers 9

_reconstructorFunction · 0.45
__newobj__Function · 0.45
__newobj_ex__Function · 0.45
_instantiateMethod · 0.45
load_newobjMethod · 0.45
load_newobj_exMethod · 0.45
_makeMethod · 0.45
copyMethod · 0.45
_from_intMethod · 0.45

Implementers 3

lib.rscrates/wtf8/src/lib.rs
ir.rscrates/codegen/src/ir.rs
bytecode.rscrates/compiler-core/src/bytecode.rs

Calls

no outgoing calls

Tested by

no test coverage detected