(cls, dims=(), **kwargs)
| 585 | class 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 |
| 591 | if not hasattr(Tuple, 'dims'): |