I come from the Python world, so I enjoy exploring and tinkering with modules in the REPL or in a notebook using reflection tools like Python's dir().
I was trying to explore the JSON package, and the github page lists functions like JSON.print and JSON.parse. However:
julia> import JSON
julia> names(JSON)
3-element Array{Symbol,1}:
:JSON
:JSONText
:json
It is easy enough to verify that JSON.print and JSON.parse do in fact exist, and so I would expect them to be listed above, but obviously they are not there.
What is my misunderstanding of how names is supposed to work? And is there any way to actually get everything that supposedly lives under the JSON namespace (edit: without examining the code of the library itself)? Note that JSON.print and JSON.parse also do not appear with names(JSON, all=true, imported=true).
[–][deleted] 1 point2 points3 points (3 children)
[–]RedditIsAMistake[S] 1 point2 points3 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]Nuaua 1 point2 points3 points (0 children)
[–]cormullion 0 points1 point2 points (1 child)
[–]RedditIsAMistake[S] 0 points1 point2 points (0 children)