Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion julia/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ def __dir__(self):
names = set()
else:
names = set(super(JuliaModule, self).__dir__())
names.update(self.__all__)

juliapath = remove_prefix(self.__name__, "julia.")
julianames = set(self._julia.eval("names({}; all=true)".format(juliapath)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

names({}; all=true) does not work with Julia 0.6.

julianames.discard(juliapath.rsplit('.', 1)[-1])
names.update(py_name(n) for n in julianames if is_accessible_name(n))

return list(names)
# Override __dir__ method so that completing member names work
# well in Python REPLs like IPython.
Expand Down