Mojo Auto-completion in vs-code
MOJO Auto-completion and suggestions not working in vs-code.
Os: Kali Linux under WSL
8 Replies
How I can convert from object python for example int to Int in MOJO
You can use
to_float64()
(https://docs.modular.com/mojo/stdlib/python/object.html#pythonobject) and then to_int()
to convert that SIMD value to an Int
.
Example:
PythonObject
also has to_string()
, which functions as you'd expect.thanks a lot
The value is expected from input in python and want to use in Mojo.
Is there equivalent of input in mojo?
@Elaid Tebabkha try updating to
0.3.1
and autocomplete should work nowThanks 🙏
Congrats @Elaid Tebabkha, you just advanced to level 1!
Not working.
What's the specific issue?