Skip to content

Implement slice object#98

@HyeockJinKim

Description

@HyeockJinKim

Currently the slice object is not fully implemented.
Many features, including instance creation, are not fully implemented and must be implemented.

// "slice": py.SliceType,

gpython/py/slice.go

Lines 16 to 18 in 8c361a8

varSliceType=NewType("slice", `slice(stop) -> slice object
"slice(stop)
slice(start, stop[, step])

Expected result (cpython)

>>>slice(10) slice(None, 10, None) >>>slice(10).indices(0) (0, 0, 1)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions