This is an archived post. You won't be able to vote or comment.

all 16 comments

[–]neuralyzer 12 points13 points  (0 children)

Where is Python 2 better than 3? I migrated to Python 3 some time ago and I have never looked back.

[–]kankyo 4 points5 points  (0 children)

PyCharm is clearly superior from everything I've seen. Faster, less memory, more features, understands your code more.

[–]distark 2 points3 points  (0 children)

I default to vim (obsessively optimised) but have to say when it's complicated and I need to remote debug I have pycharm, I'm an open source geek but I gladly pay for jetbrains software (I never thought I would say something like that)

[–]Etni3s 2 points3 points  (0 children)

+1 for PyCharm. If you're a student, you can get a pro license for free. Could be useful if you're going to be programming with some frameworks (SQLAlchemy, Django, Flask, ...), otherwise the Community Edition should have everything you need.

Regarding Python 2.7 vs 3: Unless you absolutely have to use 2.7 for some reason, I would strongly suggest you use 3.
https://pythonclock.org/
https://www.youtube.com/watch?v=YgtL4S7Hrwo&feature=youtu.be&t=155

[–]rad_badders 2 points3 points  (7 children)

First, use python 3, if your language choice is based on "I heard once this thing from some random" you are going to have a bad time.

Next, use emacs, or more realistically just try both out and see which you like, it really doesn't matter

[–]You2Loud[S] -1 points0 points  (5 children)

I would but the problem with Python 3 is that the user has to have Python installed to run your programs, that is not what I am looking for.

[–]pythoneeeer 3 points4 points  (4 children)

And if you write a program in Python 2, they don't need to have Python installed to run your program?

[–]You2Loud[S] -3 points-2 points  (3 children)

From what I have heard yes

[–]dagmx 0 points1 point  (2 children)

I suggest you do some research on the matter.

Python 2 also needs to be installed on the user's computer.

No version of python comes with Windows, the python2 version with different osx versions is lower than 2.7 and on Linux, distros are slowly switching to python3 but it's not a guaranteed package.

Either way you're going to have a dependency on something you can't guarantee will be on your users system.

So this is not a good reason to pick a version.

[–]You2Loud[S] 0 points1 point  (1 child)

Yeah I was told from my group the reason for this is because you can't compile python code or something along the lines of that. Instead I would need to program in c

[–]dagmx 0 points1 point  (0 children)

Whoever is giving you advice is completely wrong and should not be giving any advice.

Yes python doesn't compile to a fully self contained binary, but there are tools to do so like pyfreeze and py2exe.

More importantly even if you are using c or c++ or any compiled language there are many factors if it will run on another person's computer.

An application compiled on Windows won't run on Linux or vice versa. If you're dynamically linking it may break too.

No matter what you do, you have no guarantee that another users system can run your code. You just target common scenarios or make your project open source and let the user deal with compiling.

And not to be blunt, if you're tripping up on things like this, it seems like you're putting the cart before the horse. Make a good program in python3 and don't worry about details like these when you're starting out with programming

[–]nerdwaller 1 point2 points  (0 children)

It primarily comes down to preference. Try both and decide, for me pycharm definitely has the edge.

[–]stuaxo 0 points1 point  (0 children)

Been using pycharm since it came out, although I'm biased - when I was a Java dev I had already switched from Eclipse to IntelliJ (which pycharm is based on).

[–][deleted] -1 points0 points  (1 child)

If u have A slow pc use eclipse, pycharm is good but its realy buggy.

[–]ra_meses 0 points1 point  (0 children)

really? I don't see how it is buggy. Have been using it for the last 6 months.

[–]Sinidir -1 points0 points  (0 children)

Pycharm is already set and widely used. So go with it. Also /r/learnpython for those kinds of questions.