help() not implemented in unix/windows builds
help() not implemented in unix/windows builds
Is there a reason help() was not implemented in the Unix and Windows builds? I added it to my windows build and it seems to work OK.
End of line...
Re: help() not implemented in unix/windows builds
Probably just an oversight?
Since you added it already, you could create a pull request to get it get merged into the master branch.
Since you added it already, you could create a pull request to get it get merged into the master branch.
Re: help() not implemented in unix/windows builds
I seem to recall that its omission from the unix build was deliberate, as not in keeping with the 'micro' philosophy. Perhaps it was seen to be more necessary for the pyboard, a sort of online 'Quick Start' for new users. Also, the specific details of the hardware API aren't a standard part of python and it isn't a given that the user will have source code or documentation readily at hand.
-Bryan
-Bryan
Re: help() not implemented in unix/windows builds
Yes, that's it (and it's a FAQ). If you want help(), just run python3 and get it. PyBoard implements it, because on PyBoard there's no other online reference to use, plus it offers extensions to Python stdlib for hardware access.
Alternatively, you can implement help() for MicroPython in Python code, make it a module, post on PyPI. Those few who need it will be able to install it from there. Note that it won't work too good so far, because of https://github.com/micropython/micropython/issues/959 . And that issue is really worth being solved, patches welcome!
Alternatively, you can implement help() for MicroPython in Python code, make it a module, post on PyPI. Those few who need it will be able to install it from there. Note that it won't work too good so far, because of https://github.com/micropython/micropython/issues/959 . And that issue is really worth being solved, patches welcome!
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/
Re: help() not implemented in unix/windows builds
Ok, I'll just keep the changes locally then because I like having the help, limited as it may be.
End of line...
Re: help() not implemented in unix/windows builds
Sounds good. Others can keep using dir() for that.
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/