7 ms·
The Hitchhiker’s Guide to Python
- monkmartinez 10y agoNo Anaconda[1], porque? I am a big fan of the Anaconda distribution and workflow... am I alone? I would find that hard to believe. [1]https://www.continuum.io/downloads https://www.continuum.io/downloads
- analog31 10y agoYou're not alone. I appreciate Anaconda, though I happen to use WinPython right now. In fact I keep a WinPython installer in my pocket on a flash drive. The most important thing is that I can get a relatively vanilla Python program running on any computer that I bump into, without creating a potential future headache for the person who owns that computer. WinPython is almost like an isolated environment. But at the very least, if their instructions ensure that you can get an installation to the point of running the tutorial programs successfully, and learning Python rather than fussing with installers, I'm OK with it.
- voltagex_ 10y agoI don't think I've ever used any non python.org distributions - what's the difference between Anaconda and WinPython? Edit: Aha, Anaconda seems to be tailored towards data analytics and includes R.
- glaberficken 10y agoNot sure about the difference between Anaconda and WinPython, but I can tell you that Anaconda was what I found when I needed to install python on Windows at work without admin rights. It works really well and installs most packages you would need.
- analog31 10y agoOne thing about WinPython is that it doesn't "install" itself in the Windows sense, but just lives in a directory. So you can remove it completely by just deleting it, or have multiple installs on a computer that are isolated from one another. I find it's easy for me to port one of my apps to a new computer and get it running quickly. This is handy because I share my stuff with colleagues worldwide, and also am deploying things in our manufacturing plant. Note that I happen to be in the "scientific Python" camp, and also use Python for controlling scientific instrumentation and test equipment.
- lalaithion 10y agoIt's really annoying to see people still recommending Python 2.7 for new users/projects. If security updates really do stop in 2020, then we have 3.5 years until any deployed software written in Python 2.7 is useless, as it will be insecure.
- emptybits 10y agoThe doc does say this: "If you’re choosing a Python interpreter to use, and aren’t opinionated, then I recommend you use the newest Python 3.x, since every version brings new and improved standard library modules, security and bug fixes. Progress is progress."
- RubyPinch 10y agoWell that sounds like the kind of thing that should be recommended by default then its "grr, use python 2, unless, ugh, if you want to do what everyone recommends the average person do, use python 3 I suppose" which is just silly
- cgriswald 10y agoI'm not running an OS written in Python. I'm processing some data. I control the data and I'm doing it all locally. Security is very low on my list of concerns. And I'm using libraries that aren't and may never be updated to Python 3. Ideally they would be. If I get ambitious maybe I'll even be the one to do it. For other things, I use Python 3. The article is talking to me. To paraphrase: Use Python 3 unless you have a good reason to use Python 2. That advice is solid and not really a recommendation of Python 2.
- vegabook 10y agoI have exactly the same situation. But I have to admit to a slight preference for using Python 2 because it just feels more "fluid" somehow. Less demanding. Less "serious". And just as effective (I don't need async). However I have now submitted to the baying hounds of doom and moved to 3 on most stuff for the reasons of "having a future", security, etc. Was pushed. Didn't jump. One thing I will give 3 though is the stupidly simple thing that 3/2 = 1.5. Quite often I have to fire up python for a quick and dirty calc and it's much better not to have to remember the integer division quirk.
- eevilspock 10y agoOn Flask vs Django: > Flask is a “microframework” for Python, and is an excellent choice for building smaller applications, APIs, and web services. > Flask is default choice for any Python web application that isn’t a good fit for Django. Not very helpful. What is the threshold between "smaller" and larger applications? What makes an app not "a good fit for Django"? I've never found clear answers to these questions, mostly just vague opinion. This Hitchhiker's Guide, a self-proclaimed opinionated guide, could really take off if it got some opinion and backed it up with real rationale.
- yeukhon 10y agoI for one think Pyramid should be recommended over Flask. I would choose Pyramid over Django if I want to customize and do everything myself. Whereas if I want a very active and very mature community of plugins, I would stick with Django. When it comes to a secure framework out of the box, Django is definitely the winner out of all Python web framework.
- ianamartin 10y agoInteresting take on this. And I respectfully disagree. I would use Pyramid over Django any day of the week, and Flask for anything smaller. My reasoning is that any project that needs as much as Django has built-in is going to need the custom work you put into a Pyramid project anyway, so you might as well start off there and use a nicer API from the get-go. Anything less is Flask territory from my point of view.
- gshulegaard 10y agoAnother interesting point of view. So I thought I would throw in my two cents on this. I started web development using Django, then tried Pyramid, and finally moved on to Flask. And since picking up Flask, I haven't gone back...and I wouldn't go back to "heavier" frameworks...although I have considered taking a peak at a couple other micro-frameworks. I have a couple strong (personal) reasons for this (read: YMMV), but the biggest thing for me is I see web development moving towards a strict separation between front-end and back-end (SPA's, web assembly, microservices, etc.) as well as multi-model/multi-storage. Neither of which lend itself well to all-inclusive framework solutions IMO. At the end of the day I guess the take away is to remember that it's great to have so many strong frameworks each with its own strengths to choose from in the Python ecosystem.
- rcarmo 10y agoDoesn't even mention bottle, which is weird in this day and age. Opinionated... Check.
- voltagex_ 10y agoYou could add it: https://github.com/kennethreitz/python-guide/ https://github.com/kennethreitz/python-guide/
- RubyPinch 10y agoyou can add it only if kenneth wants it near his opinion https://github.com/kennethreitz/python-guide/pull/506 https://github.com/kennethreitz/python-guide/pull/506 https://github.com/kennethreitz/python-guide/pull/723 https://github.com/kennethreitz/python-guide/pull/723
- NetStrikeForce 10y agoGiven the name, I am disappointed it doesn't start with "don't panic" nor it seems to tell how to include your towel in your Python projects.
- BerislavLopac 10y agoYou don't want to overly combine two amazing pieces of British humour in one place. The universe might collapse. ;-)
- kenneth_reitz 10y agoSome speculate that it already has.
- david-given 10y agoI believe it's: from __future__ import towel HTH. HAND.
- canada_dry 10y agoA quick scan for "lambda" results in but a whisper. "Sigh"... Marvin.
- shiftoutbox 10y agoSo why not use pkgsrc for python ?