Replies: 2 comments
|
Importing submodules in I would recommend using from guppylang.std import angles as ang
ang.pi |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
A lot of my files start with something like
at the top. Aside from the minor annoyance that the variable name
anglesis taken, I generally to be (at least a bit) more explicit with namespace. However, the following does not seem to work:Can we expose
std.angles(andstd.quantumetc.) by adding them toguppylang/std/__init__.py? Is there some other way to be explicit about namespace?The same goes for
guppyland.std.builtins, as I will definitely forget thatresultis taken as a variable name 🙃All reactions