On 1/29/19 10:12 PM, Rugxulo wrote:
I know Python 3 is heavily recommended, but I don't think 2.x is
horribly useless. (Similarly, we formerly had DJGPP support for Ruby
1.8.x, which actually was "mostly" standardized in ISO 30170, but no
1.9.x or newer builds.)
Python is the language, that is used for gentoo linux's package
management system (called portage). I am using gentoo now for >15 years
and this was still the time when Python 2 was the most recent version.
Python 2 is still very powerful, not useless at all.
For example this script was written using Python2:
http://wikigentoo.ksiezyc.pl/TIP_Getting_total_merge_time.htm
It needed just a few modifications to work with Python3, I just had to
remove the colored console output, as this is done in a different way in
Python3.
On 1/29/19 10:56 PM, Pär Moberg wrote:
I am looking for Python 3 since then I only need to learn python 3 to
program on Raspberry Pi (with GPIO and GUI), My desktop (with GUI),
CircuitPython (with GPIO) and DOS (with ?).
So that is why I want Python 3/CircuitPython.
There are differences between Python 2 and Python 3, but for learning
the basics Python 2 is still sufficient and these basics can be applied
to python 3. (Structured programming (functions), how to handle
variables/strings/user input+output/etc...)
If you have a DOS computer with a LPT and a COM port, maybe there is a
way to do port IO in python (I am not sure about this) and control
LEDs+buttons+etc. from python2 on DOS.
I think rather than not doing python on DOS at all, it is better to have
python2.
The learning curve may be more steep, but since python2 is still
supported for ~11 months and there is so many python2 software and
tutorials are out there, it won't be counterproductive to "learn both".
"learn both" is in " ", because in fact it is the same language, just an
older version that has not all recent functionality.
My best wishes to you for having success and getting to a result quickly,
Nils
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel