File tree Expand file tree Collapse file tree 4 files changed +14
-10
lines changed
Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 22export Py
33export ispy
44export PyException
5+ export pybuiltins
56export pyis
67export pyrepr
78export pyascii
Original file line number Diff line number Diff line change @@ -38,3 +38,13 @@ mutable struct PyException <: Exception
3838 _b:: Py
3939 _isnormalized:: Bool
4040end
41+
42+ """
43+ pybuiltins
44+
45+ An object whose fields are the Python builtins, of type [`Py`](@ref).
46+
47+ For example `pybuiltins.None`, `pybuiltins.int`, `pybuiltins.ValueError`.
48+ """
49+ baremodule pybuiltins
50+ end
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ using Markdown: Markdown
3333import .. PythonCall:
3434 Py,
3535 PyException,
36+ pybuiltins,
3637 pynew,
3738 pyisnull,
3839 pycopy!,
Original file line number Diff line number Diff line change @@ -168,18 +168,10 @@ const BUILTINS = Set([
168168 :ResourceWarning ,
169169])
170170
171- @eval baremodule pybuiltins
171+ # Populate the pybuiltins module imported from API
172+ @eval pybuiltins begin
172173$ ([:(const $ k = $ pynew ()) for k in BUILTINS]. .. )
173174end
174- """
175- pybuiltins
176-
177- An object whose fields are the Python builtins, of type [`Py`](@ref).
178-
179- For example `pybuiltins.None`, `pybuiltins.int`, `pybuiltins.ValueError`.
180- """
181- pybuiltins
182- export pybuiltins
183175
184176for k in BUILTINS
185177 if k == :help
You can’t perform that action at this time.
0 commit comments