Skip to content

Commit 4866a19

Browse files
committed
feat(builtins): slice
1 parent 4aea40e commit 4866a19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Python/bltinmodule.nim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import strformat
22
{.used.} # this module contains toplevel code, so never `importButNotUsed`
33
import neval
44
import builtindict
5-
import ../Objects/[bundle, typeobject, methodobject, descrobject, funcobject, notimplementedobject]
5+
import ../Objects/[bundle, typeobject, methodobject, descrobject, funcobject,
6+
notimplementedobject, sliceobjectImpl]
67
import ../Utils/[utils, macroutils, compat]
78

89

@@ -111,6 +112,7 @@ registerBltinObject("Ellipsis", pyEllipsis)
111112
registerBltinObject("None", pyNone)
112113
registerBltinObject("type", pyTypeObjectType)
113114
registerBltinObject("range", pyRangeObjectType)
115+
registerBltinObject("slice", pySliceObjectType)
114116
registerBltinObject("list", pyListObjectType)
115117
registerBltinObject("tuple", pyTupleObjectType)
116118
registerBltinObject("dict", pyDictObjectType)

0 commit comments

Comments
 (0)