[opensuse] python question
I am looking to get started on learning python. Any python programmers out there? My number 1 question is, what is your preferred IDE? I am looking at a medium sized project (for my experience) and I expect I will need some good troubleshooting tools that also give syntax help. I have read that Eclipse is a really good IDE for python, even though it is mostly used for java, and that PyDev adds lots of features to Eclipse. But there are other recommendations also. Anyone have any thoughts on what you have used and prefer? Advantages and disadvantages? -- George Box: 42.3 | KDE Plasma 5.8 | AMD Phenom IIX4 | 64 | 32GB Laptop #1: TW | Plasma 5.13 | AMD FX 7TH GEN | 64 | 32GB Laptop #2: 15.0 | KDE Plasma 5.8 | Core i5 | 64 | 8GB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Oct 31, 2018, at 17:14:22, George from the tribe <tech@reachthetribes.org> wrote:
I am looking to get started on learning python. Any python programmers out there?
I am, sort of kinda. I can get my way around fairly well if I have a good reference book, such as: https://www.amazon.com/Python-Essential-Reference-David-Beazley/dp/067232978...
My number 1 question is, what is your preferred IDE? I am looking at a medium sized project (for my experience) and I expect I will need some good troubleshooting tools that also give syntax help.
Not that this helps you, but emacs is my preferred editor for all sorts of programming languages. This IDE https://www.jetbrains.com/pycharm/?fromMenu is not free but Jet Brains makes some really nice IDEs. I know of a few people that are really liking eclipse. Active State has a paid IDE: https://www.activestate.com/komodo-ide I have never used it so I can't speak to whether it is good or bac. I know I have posted an awful lot about non-free editors. But keep in mind vim and emacs are highly extensible and you can get a lot of milage out of them, for free. One last note - learn Python 3, not Python2, as Python 2 is going to be EOL-ed in 2020. Tom -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 10/31/2018 05:14 PM, George from the tribe wrote:
I am looking to get started on learning python. Any python programmers out there?
My number 1 question is, what is your preferred IDE? I am looking at a medium sized project (for my experience) and I expect I will need some good troubleshooting tools that also give syntax help.
I have read that Eclipse is a really good IDE for python, even though it is mostly used for java, and that PyDev adds lots of features to Eclipse. But there are other recommendations also.
Anyone have any thoughts on what you have used and prefer? Advantages and disadvantages?
I started to look at Python, but I am turned off by the necessity to indent scrupulously. I am used to the original BASIC language and Turbo PASCAL, which I like better than BASIC, since it has the CASE statement. Is there a version of Python that doesn't require this nonsense, or is there a Linux Python editor that does this automatically? (I admit that it's a few years since I last looked, and also that I don't really need it for anything, since I've been retired for 15 years or so, but I'm still interested.) --doug -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 01/11/2018 à 05:37, Doug a écrit :
I started to look at Python, but I am turned off by the necessity to indent scrupulously.
yes, it's probably the thing most learner will notice, but as a non programmer, I never had any problem to patch python program after having learned that :-) jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/11/2018 05:37, Doug wrote:
I started to look at Python, but I am turned off by the necessity to indent scrupulously. I am used to the original BASIC language and Turbo PASCAL, which I like better than BASIC, since it has the CASE statement.
I hear you. I miss BASIC too, and am currently dabbling in Oberon, which is Pascal's grandchild or great-grandchild. (The family tree went Pascal → Modula (very obscure, quickly succeeded by) → Modula 2 (briefly very popular) → Oberon.
Is there a version of Python that doesn't require this nonsense,
No. It's not possible: the indentation marks the beginning and end of blocks of code, like FOR...NEXT or IF...ENDIF in BASIC. Or, more generally, Python indentation is Pascal's BEGIN...END statements. You can't do without it.
or is there a Linux Python editor that does this automatically?
No. The computer can't do it for you as it would need to read your mind, and _that_ means it would need a mind of its own to understand yours. I came to think that the indentation was a good thing. Everyone disagrees how code should be indented, and one person's clear simple logical indentation is another one's unreadable nightmare. E.g. this amusing (100% worksafe, but disturbing to C'ers) image: https://imgur.com/wG51k7v There is only one way to fix the indentation problem: *Force* everyone to use the same style. And the only way to _make_ everyone use compatible indentation is to make it meaningful, so they *have* to indent the same way as everyone else or their code won't work. Python fixes this. My suspicion is that the programmers who complain about Python indentation are the sort of people who use indentation styles that *I* find horrible and unreadable, because I find Python indentation clear and logical. But then, I don't really know Python.
(I admit that it's a few years since I last looked, and also that I don't really need it for anything, since I've been retired for 15 years or so, but I'm still interested.)
It's as good as anything today for getting back into it. But there is FreePascal, a good modern Pascal compiler for Linux and other OSes. If you have a Raspberry Pi, there's Ultibo, an embedded Pascal for fooling around with on-the-metal code. There's Oberon if you want to try something more modern -- it is both a language and an OS, and you can run the OS in a virtual machine, or as an app under Linux, or on bare metal, as you prefer. -- Liam Proven - Technical Writer, SUSE Linux s.r.o. Corso II, Křižíkova 148/34, 186-00 Praha 8 - Karlín, Czechia Email: lproven@suse.com - Office telephone: +420 284 241 084 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Nov 01, Doug wrote:
On 10/31/2018 05:14 PM, George from the tribe wrote:
I am looking to get started on learning python. Any python programmers out there?
My number 1 question is, what is your preferred IDE? I am looking at a medium sized project (for my experience) and I expect I will need some good troubleshooting tools that also give syntax help.
I have read that Eclipse is a really good IDE for python, even though it is mostly used for java, and that PyDev adds lots of features to Eclipse. But there are other recommendations also.
Anyone have any thoughts on what you have used and prefer? Advantages and disadvantages?
I started to look at Python, but I am turned off by the necessity to indent scrupulously. I am used to the original BASIC language and Turbo PASCAL, which I like better than BASIC, since it has
One gets used to it quite quickly. Sort of like folks do with "all the parentheses" in LISP.
the CASE statement. Is there a version of Python that doesn't require this nonsense, or is there a Linux Python editor that does this automatically?
No, python has no CASE statement. Install Python 3.{6,7}, pip-install ipython and open the tutorials. Michael -- Michael Fischer michael@visv.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 11/1/18 10:11 AM, Michael Fischer wrote:
On Thu, Nov 01, Doug wrote:
On 10/31/2018 05:14 PM, George from the tribe wrote:
I am looking to get started on learning python. Any python programmers out there?
My number 1 question is, what is your preferred IDE? I am looking at a medium sized project (for my experience) and I expect I will need some good troubleshooting tools that also give syntax help.
I have read that Eclipse is a really good IDE for python, even though it is mostly used for java, and that PyDev adds lots of features to Eclipse. But there are other recommendations also.
Anyone have any thoughts on what you have used and prefer? Advantages and disadvantages?
I started to look at Python, but I am turned off by the necessity to indent scrupulously. I am used to the original BASIC language and Turbo PASCAL, which I like better than BASIC, since it has
One gets used to it quite quickly. Sort of like folks do with "all the parentheses" in LISP.
the CASE statement. Is there a version of Python that doesn't require this nonsense, or is there a Linux Python editor that does this automatically?
No, python has no CASE statement.
Install Python 3.{6,7}, pip-install ipython and open the tutorials.
Michael
Are the tutorials you are talking about the tutorials available on the web? Or do you mean some specific python tutorials built into the packages that we install? I am running tumbleweed and python 3.6.5, which came as part of the standard tumbleweed packaging. -- George Box: 42.3 | KDE Plasma 5.8 | AMD Phenom IIX4 | 64 | 32GB Laptop #1: TW | Plasma 5.13 | AMD FX 7TH GEN | 64 | 32GB Laptop #2: 15.0 | KDE Plasma 5.8 | Core i5 | 64 | 8GB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/11/2018 21:28, George from the tribe wrote:
Are the tutorials you are talking about the tutorials available on the web? Or do you mean some specific python tutorials built into the packages that we install?
I am running tumbleweed and python 3.6.5, which came as part of the standard tumbleweed packaging.
Different learning methods work for different people. I have been trying and failing to learn Python for some years. Most of the tutorials and so on that I have tried did not work for me at all. Only 2 proved useful, one more than the other. It is this: https://learnpythonthehardway.org/ The other one is "Head First Python" from O'Reilly: https://learnpythonthehardway.org/ But it costs. "The Hard Way" can be read for free. -- Liam Proven - Technical Writer, SUSE Linux s.r.o. Corso II, Křižíkova 148/34, 186-00 Praha 8 - Karlín, Czechia Email: lproven@suse.com - Office telephone: +420 284 241 084 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Nov 01, George from the tribe wrote:
On 11/1/18 10:11 AM, Michael Fischer wrote:
Are the tutorials you are talking about the tutorials available on the web? Or do you mean some specific python tutorials built into the packages that we install?
I meant "available on the web" or a book, in whatever format.
I am running tumbleweed and python 3.6.5, which came as part of the standard tumbleweed packaging.
Good enough. Use ipython, which is very convenient for trying out simple statements (and can run scripts) to get a feel of the basics. For me, I use vim as my "ide", with syntastic, and I seem to have: $ ls ~/.vim/bundle/syntastic/syntax_checkers/python/ flake8.vim pyflakes.vim pylint.vim python.vim I forget which one is "on", but it yells at me if I hit save on something which is syntactically incorrect - saves a bit of time in the write-test-write-test loop. Michael -- Michael Fischer michael@visv.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, Nov 02, Michael Fischer wrote:
On Thu, Nov 01, George from the tribe wrote:
Good enough. Use ipython, which is very convenient for trying out simple statements (and can run scripts) to get a feel of the basics.
For me, I use vim as my "ide", with syntastic, and I seem to have:
$ ls ~/.vim/bundle/syntastic/syntax_checkers/python/ flake8.vim pyflakes.vim pylint.vim python.vim
I forget which one is "on", but it yells at me if I hit save on something which is syntactically incorrect - saves a bit of time in the write-test-write-test loop.
Actually, it springs to mind that many folks where I work like `pycharm` as an IDE. Michael -- Michael Fischer michael@visv.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Doug
-
George from the tribe
-
jdd@dodin.org
-
Liam Proven
-
Michael Fischer
-
Tom Kacvinsky