You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's also an issue with importSideEffects, which generates from X import without any identifier following the import statement, which is invalid syntax.
Hello @dbrattli,
I am writing the documentation for Python on Fable website and found some strange behaviour.
I don't know if they are bugs or expected, as I am not a python expert.
I have a
hello.py
file with this content:Generates
So it means that it is stripping the
./
and.py
from the path. However, using a relative path for*
doesn't strip anythinggenerates
The same kind of problem occurs when trying to use:
[<ImportAll("./hello.py")>]
[<ImportDefault("./hello.py")>]
generates
I would have expected the generated code to be
generates
Should it be ?
generates
Should it strip the path?
Also, generated code doesn't work because it tries to execute the module instead of
hello.say_hello()
generates
The code will fail at runtime, but I don't know what is the expected output here.
but
generates
Is it normal to have a difference here? And the code will fails to, but I don't know what is the expected output here.
Related information
The text was updated successfully, but these errors were encountered: