Avatar

twoframesperminute

twoframesperminute@mastodon.social
Joined
0 posts • 23 comments
Direct message

@SpaceTurtle224 you’re “looking for” and easy answer to a question you can answer yourself easily. Your “question” did not even specify what your looking for.

permalink
report
parent
reply

@SpaceTurtle224 Why not just Google? You’ll find plenty of what you’re looking for, and much quicker than waiting for that one person willing to answer your lazy “question” (which isn’t even a question).

permalink
report
reply

@ericjmorey Except it’s outdated. Here, I’ll write a new paragraph for you: “When you start to learn Python, start with Python 3.10. If you at some point come across an codebase using older versions, you’ll have learned enough to get to grips with the differences outlined in Python documentation.” There, that’s all you need to know.

permalink
report
parent
reply

@ericjmorey Why are you copying part of an article you’ve already linked to? I’m not sure what your point is.

My point is very simple: don’t spend any time on even considering Python 2. The fact the author spent so much time on it shows it’s quite an old guide. (The dates in the git repo confirms this.)

permalink
report
parent
reply

@jeremyparker As for myself: I use Python as a scientist on an almost daily basis. I’ve never learned anything about Python 2, have never touched it and never required it. Maybe if you work in a field with tons of legacy code it’s useful, but I and all my colleagues are working with Python 3.7 or newer (mostly 3.10 and newer) only. There is no single argument you could make that would convince me I or any of my colleagues should know *anything* about Python 2.

permalink
report
parent
reply

@jeremyparker Note that for people new to a language it’s much harder to distinguish between old and new than someone already familiar with the old. Don’t push old on people starting out.

This is starting to feel like arguing kids should learn Latin because it might help them understand medical terms better. Sure, that’s true, but a) it’s only useful for a small subset of learners and b) is it worth the effort to learn an entire language just for some minor details?

permalink
report
parent
reply

@jeremyparker Those are all valid. But not in a starter guide for someone looking to learn a language. If and when you get submerged into a legacy project you have all the time to find out what’s what. But teaching someone outdated syntax and features just because they *might* come accross them maybe is a terrible way to teach.

permalink
report
parent
reply

@ericjmorey any guide that even mentions Python 2 is probably outdated and should be met with caution.

permalink
report
reply

@Chais from module import \* should almost never be used anyway, so…

permalink
report
parent
reply