8 ms·
Why Is Python So Popular in 2025?
- bgwalter 1y agoMost people don't run any Python programs on their machines except for OS package managers. Google and others moved to Go, and the Python job market does not reflect these statistics at all. Python is well marketed, with dissenting voices silenced, de-platformed and defamed with PSF involvement. That way many users think the Python ruling class are nice people. It is therefore popular among scientists (who buy expensive training courses) and students (who are force fed Python at university). It has a good C-API, which is the main reason for its popularity in machine learning. Fortunately for Python, other languages do not take note and insist on FFIs etc. EDIT: The downvotes are ironic given that Python needs to be marketed every three day here with a a statistic to retain its popularity. If it is so popular, why the booster articles?
- ASalazarMX 1y agoYeah brother, down with Big Python!
- dalke 1y agoI work in a chemistry research field. Most people I know run Python programs for their research. No one I know uses Go. I only know a handful who use Java. Rust and Julia are oddities that appear occasionally. Sure, we have very different experiences. But that also means that unless you can present strong survey data, it's hard to know if your "Most people" is limited to the people you associate with, or is something more broadly true. The PSF overlap with my field is essentially zero. I mean, I was that overlap, but I stopped being involved with the PSF about 8 years ago when my youngest was born and I had no free time or money. In the meanwhile, meaningful PSF involvement became less something a hobbyist project and something more corporatized .. and corporate friendly. > scientists (who buy expensive training courses) ROFL!! What scientists are paying for expensive training courses?! I tried selling training courses to computational chemists. It wasn't worth the time needed to develop and maintain the materials. The people who attended the courses liked them, but the general attitude is "I spent 5 years studying <OBSCURE TOPIC> for my PhD, I can figure out Python on my own." > who are force fed Python at university shrug I was force fed Pascal, and have no idea if Wirth was a nice person. > main reason for its popularity in machine learning I started using Python in the 1990s both because of the language and because of the ease of writing C extensions, including reference counting gc, since the C libraries I used had hidden data dependencies that simple FFI couldn't handle. I still use the C API -- direct, through Cython, and through FFI -- and I don't do machine learning. > If it is so popular, why the booster articles? It's an article about a company which sells a Python IDE. They do it to boost their own product. With so many people clearly using Python, why would they spend time boosting something else?
- internetter 1y agoI continue to believe that python is only still popular for the ecosystem effect. Students are taught it, a bunch of libraries were written for it, now everyone keeps using it. But its syntactically weak? Python itself is slow? pip is awful (although uv is pretty good). Sometimes I am forced to write python because the packages I need are written for it but I always hate it.
- paulddraper 1y agoIt's syntactically strong. AFAIK, it's the preferred language for lots of leetcode, e.g. Advent of Code. The practical expressivity and speed of dev is strong.
- gloxkiqcza 1y agoWell it’s as close to executable pseudocode as it gets, which I would say is both a positive and a negative.
- internetter 1y agoJust for example, the lack of explicit variable defs. I create a variable and update it later. I rename the variable but forget to change it where it is updated. No errors produced in the IDE because the place where it is updated is now just creating the variable instead so all the references still work. `let` is a good keyword. It drives me crazy how everything just... blocks. Parallelization is a disaster. I won't comment much on indentation. All the string formatting syntaxes is crazy. Private names managed by `_`. The type system still mostly sucks. Ect ect. In my experience it is alright to write short scripts but complexity very quickly balloons and python projects are very often unwieldy. I would write a script in python, but only if I was positive I would never need to run or edit it again. Which is very rarely the case.
- BeetleB 1y ago> No errors produced in the IDE because the place where it is updated is now just creating the variable instead so all the references still work. `let` is a good keyword. I too would prefer let. But the number of times what you mentioned has bitten me in almost 20 years of programming Python can be counted on in one hand. And these days, just use the "rename" feature in your IDE!
- larrik 1y agoI'm surprised at the negative comments about Python here. Python has been my favorite language since I learned it, and nothing else has come close to it. I'm currently on pure JS project (node and vue) and I'm constantly fighting with things that would be trivial in python or django. Also getting into .NET world and not impressed with that at all. I know folks like Go, but in decades of being a software consultant I've come across zero companies using it or hiring for it.
- nawgz 1y agoCare to give some examples of those trivial things you’re fighting?
- larrik 1y agoWell Here's one: In NodeJS the most popular ORM is Sequelize. Sequelize struggles with TypeScript, the code to use is extremely verbose (vs Django), and the migrations are simplistic at best. There are other ORMs, but you usually gain TypeScript support at the expense of good migrations (which range from rough SQL-script-only support to literally nothing). Schema migrations are one thing, but if you want to do a data migration that uses business logic, in Django you can potentially just bring in your business code directly into a migration, and you can also explicitly set pre-requisites rather than having to order the filenames (which is what everything else seems to use). Also in NodeJS if you miss an `await` in your controller, the entire server can crash if that call fails. That's Node vs Django, though, which isn't completely JS vs Python, but it also really is. Coming from Python, JS has constant surprises, where code works in one place and not another (in the same project!) due to reasons I don't always understand around ES version and configuration. Everything in JS feels like a hack job, built on a pile of someone else's hackjobs. Likewise, if I want to know how something in Python works, I just look at the source. I rarely even look at official documentation because the code is right there. That's not a reasonable thing in JS, frankly. But really the worst part is that I do a ton of "try and test" development, where debugging is hit or miss and console.log is everywhere. In Python, I can just write the code live in the shell/iPython, and then past the working code back into my IDE. This ends up being a huge timesaver.
- mg 1y agoBecause: 1: Simple is better than complex. 2: Beautiful is better than ugly. 3: Readability counts. Winners across many markets seem to get the importance of simplicity. Compare the Google homepage to the Bing homepage. The dashboard of a Tesla to that of a Volkswagen. Remember how hardcore lean Facebook's UI was compared to MySpace?
- maleldil 1y agoTesla's dashboard is not simple. Having a touchscreen for everything instead of physical buttons is a travesty.
- leephillips 1y agoThe main reason I don’t like Python very much (besides performance) is that it makes what should be simple tasks complex due to the expression problem, arising from its use of class-based object orientation. You can avoid some of the issues in your own programs (but can’t escape insanity such as ",".join(["a", "b"])), but as soon as you delve into a library of any complexity to make alterations, you’re mired in a morass of methods encased in classes inheriting from other classes, and nothing is straightforward. Discovering Julia, which solves the expression problem¹, was enlightening. Even if it were as slow as Python, I would still prefer it: it is simpler, more beautiful, and more readable. https://arstechnica.com/science/2020/10/the-unreasonable-effectiveness-of-the-julia-programming-language/ https://arstechnica.com/science/2020/10/the-unreasonable-eff...
- zahlman 1y ago> the expression problem I assume you're referring to https://en.wikipedia.org/wiki/Expression_problem https://en.wikipedia.org/wiki/Expression_problem . The Ars article rambles on for many paragraphs about a barely-sensible analogy that actually makes the concept harder to understand. But given that your apparent purpose is to proselytize for Julia I suppose it's adequate. But really, you could have just said that Julia implements multiple dispatch. And people have been making do without in many different languages for decades. > arising from its use of class-based object orientation The language uses nothing of the sort. Unlike Java, you can write any number of globally-accessible classes in a source code file (including zero). Blame the authors. Also, you don't even need classes to get polymorphic dispatch in Python. Check out `@functools.singledispatch` from the standard library. > (but can’t escape insanity such as ",".join(["a", "b"])) This is perfectly sane. As has been rehashed countless times, the method is on the "joiner" string because that way it automatically works for every iterable without duplicating code.
- lonelyasacloud 1y agoPerl 6
- actionfromafar 1y agoIt's easy to forget how big Perl was before the 10 Year Stall happened. (I.e. when development on Perl 5 was stalled in wait for Perl 6 which never happened. By the time Perl 6 was renamed to Raku, it was too late for Perl 5. It now lives on, but it lost a lot of momentum.)
- zahlman 1y agoI first used Python for anything serious in around 2005. From that moment forward I couldn't fathom ever touching Perl again. This was without even considering what changes were planned for 6 at the time; I knew there was a plan but the base of Perl seemed fundamentally unfixable to me.
- ryandrake 1y agoI never really took Python seriously, but lately I've been programming almost all of my personal projects in Python. The way I see it: For any kind of project I might take on, Python is never the best language to do it in, but is almost always the second-best language to do it in. This makes it a great default, especially if it's just a little one-off tool or experiment.
- gopalv 1y ago> Python is never the best language to do it in, but is almost always the second-best language to do it in. I've been writing python from the last century and this year is the first time I'm writing production quality python code, everything up to this point has been first cut prototypes or utility scripts. The real reason why it has stuck to me while others came and went is because of the REPL-first attitude. A question like >>> 0.2 + 0.1 > 0.3 True is much harder to demonstrate in other languages. The REPL isn't just for the code you typed out, it does allow you to import and run your lib functions locally to verify a question you have. It is not without its craziness with decorators, fancy inheritance[1] or operator precedence[2], but you don't have to use it if you don't want to. [1] - __subclasshook__ is crazy, right? [2] - you can abuse __ror__ like this https://notmysock.org/blog/hacks/pypes https://notmysock.org/blog/hacks/pypes
- librasteve 1y agolol, here it is in the https://raku.org https://raku.org repl… Welcome to Rakudo™ v2025.06.1. Implementing the Raku® Programming Language v6.d. Built on MoarVM version 2025.06. To exit type 'exit' or '^D' [0] > 0.1 + 0.2 > 0.3 False
- mbrameld 1y agoI might be wrong, but I was under the impression that result is platform-dependent? https://docs.python.org/3/tutorial/floatingpoint.html#floating-point-arithmetic-issues-and-limitations https://docs.python.org/3/tutorial/floatingpoint.html#floati...
- callc 1y agoRegardless of the reasons why, the fact is python works well enough. There are many things I wish python, or a language like python, could improve on. Yet despite all my wishes, and choosing Rust/Go more often recently, Python still works. I’m in a love/hate relationship with python. I think it’s becoming more of acceptance now haha.
- vpShane 1y agoAgreed. But python is tried and true and battle tested. I like hobby coding and tried wasm python for the first time the other day, needed JS to load the wasm on the front end. Front end python socket io to python backend? Forget about it. That was my first trial I'm sure there's getting things to work. I've moved straight to python for flask, and web front end stuff being VUE. Tried pythons GTK and app development and could only get my test app to only look slightly better than a 1990s website; BUT, it isn't electron. For sys level things even TUIs, parsing data, it's a joy. Edit: QT not GTK
- j45 1y agoSomething like uv has been long, long over due.
- YouWhy 1y agoI think Python's centrality is a consequence of its original purpose as a language intended for instruction. Yeah, some of its design decisions required immense cost and time to overcome to make for viable production solutions. However as it turns out, however suboptimal it is a language, this is quite made up by the presence of a huge workforce that's decently qualified to wield it.
- eesmith 1y agoPython original purpose was as a scripting language for Amoeba. Yes, it was strongly influenced by ABC, an introduction programming language which van Rossum helped implement, but that was a different language. https://docs.python.org/3/faq/general.html#why-was-python-created-in-the-first-place https://docs.python.org/3/faq/general.html#why-was-python-cr... ""I was working in the Amoeba distributed operating system group at CWI. We needed a better way to do system administration than by writing either C programs or Bourne shell scripts, since Amoeba had its own system call interface which wasn't easily accessible from the Bourne shell. My experience with error handling in Amoeba made me acutely aware of the importance of exceptions as a programming language feature. It occurred to me that a scripting language with a syntax like ABC but with access to the Amoeba system calls would fill the need."""
- jmyeet 1y agoPython’s popularity seems to me driven by ML and data science. Personally, I can’t take seriously any language without a good type system and, no, optional type hints don’t count. Such a type system should express nullability and collection parameterization (ie genetics). I simply won’t write a lot of code in any language where a typo or misspelling is a runtime error.
- ASalazarMX 1y agoI think you got it backwards: Python was used in ML and data science because it was already one of the preferred languages. A single line can do the work of whole functions in other languages, while remaining clear. Also, the tooling is abundant and of great quality, it made it the logical choice.
- vizzier 1y agoI've been working with python professionally for just over a year now and the main difference from having come from a .net background seems to be that tests are far easier to write and more prevalent in our codebase. I'm sure some of that is cultural, but "runtime" errors are quickly found by any reasonable test suite. That said, it always saddens me that ML (as in oCaml and F#) don't get more love. They basically can hit all the same bases with ease of readability, multi paradigm, module first programming that python can but just never got the same love.
- fghorow 1y agoFor me, a python user since the late '90s, the answer has always been simple: Guido has taste.
- rlpb 1y agoHe stepped back and now we have the walrus operator. At least we don't have to use it.
- 0cf8612b2e1e 1y agoGuido approved the walrus. It was the negative response which he said led to him quitting.
- reddit_clone 1y agoCasual python user here. I wasn't aware of this controversy. Why was there a backlash for this operator? (looks kinda neat). Was it breaking things?
- 0cf8612b2e1e 1y agoI am not a keyboard warrior who got caught up in the nonsense, but I think some people were simply annoyed at adding syntactic sugar for very marginal benefit. “There should be one way to do things” mantra. I have a long list of grievances with Python, but the walrus situation would never crack my top ten. Put effort into removing cruft from the standard library, make typing better, have the PSF take a stance on packaging. Anything else feels a better use of time. Whatever, it won. I will never use it, but when I see it will have to scratch my head and lookup the syntax rules.
- zahlman 1y agoIt was against many people's aesthetic sense. Including mine. But in theory it can be ignored completely, and in practice it is barely ever used (and indeed nobody forces you to add more uses). You may be interested in https://learning-python.com/python-changes-2014-plus.html https://learning-python.com/python-changes-2014-plus.html for a sense of what some old-timers' aesthetic sense is like. (I agree with many of these complaints and disagree with many others.)
- janalsncm 1y agoMaybe one factor is its versatility in leetcode, which to a first approximation every SWE has to do. Declare sets, lists, and maps in one line. Don’t need to worry about overflow or underflow. Slicing is extremely convenient and expressive. Types not necessary, but that’s rarely confusing in short code blocks. Compare to js, you’re immediately dealing with var/let/const decisions using up unnecessary mental energy.
- jinushaun 1y agoPython is popular in education too. I guess people like to continue with the language that they did their homework with. Combine that with its prevalence in coding interviews because “python basically pseudocode”, it makes sense why it’s popular.
- drnick1 1y agoMy use case is scientific computing and for that Python is excellent thanks to Numpy, IPython and Numba. It's often possible to write code that is nearly as fast as C, but it's far easier to write and debug, since you can just inspect and run code snippets in the shell. In that regard, it's similar to MATLAB, but it's FOSS and faster with the right libraries.
- inglor_cz 1y agoI have written code in Pascal, C, C++, Java, TypeScript, PHP and Python in my life. Of this entire pack, Python seems to have the widest ecosystem of libraries. I don't think I ever ran into a "have to reinvent the wheel" problem. Need to run four test operations in parallel? asyncio.gather(). Need to run something every five minutes? schedule.every(). In most cases, it is a one-liner, or at most two-liner, no sophisticated setup necessary, and your actual business logic isn't diluted by tons of technical code. Performance-critical parts can be always programmed in C and invoked from the Python code proper.
- deleted 1y ago[deleted]
- elzbardico 1y agoPython is the new Pascal. It is probably the first language for 99% of the computer science students who didn't know any programming before college. And even for those who knew programming, chances are that a lot of them have at least dabbled a little with it.
- zeitlupe 1y agoFrom time to time I am peeking over from VS Code to PyCharm and recently I have been surprised how much it seems to fall behind. No (official) ruff integration, you have to use 'External Tools', which is not part of the backup&sync feature. Seriously?
- nickpsecurity 1y agoI've been programming only in Python for a while now. I got a certificate that required digging into the language enough to do the code in your head. I code projects in VS Code. I've enjoyed it, esp library availability. I do warn people that it's not as easy or intuitive as advertized. I've often been bitten by unexpected errors. I think a survey of these might be worthwhile. One was typing or conversion errors. Some conversions, like int-to-str in a string concantenation, seem pretty obvious. That isnumeric() didn't consider negative numbers as numbers was a surprise. Sometimes it's consistency. I've often alternated between lists and sets in applications. I prefer to keep most data as a list but use sets for uniqueness checks or redundancy filtering. Despite being collections, one uses .append() and one uses .add(). Little differences not only add confusion: I have to modify my codebase if mixing or switching them which can become a type error later in another spot. Another were common operations usually in one place were split across two. That happened with time vs datetime and filesystem operations which might take two modules. I've considered making a wrapper that turns all those into one thing with internal redundancy removed. There might be a reason others haven't done that, though. Another issue was distribution. I can do straightforward building of console apps for two platforms. That's reliable. If worried about reliable, Python apps seemed easier to deliver as a Flask site than distribute my utilities as standalone. Nikita was really impressive, though, in terms of the work that must have went into it. In my case, I also missed the ability to easily make linked lists in C to build trees. I wanted to build a C-like tree in Python but it couldnt do self-referential structures IIRC. Since that app requirements were C-like, and performance was no issue, I actually simulated a C-like heap in Python, ported a C tree to it, and build the tool on that. I also got a use-after-free in Python of all things lol. Anyway, I was surprised there was a data structure C could do but a high-level, GC, reflective language couldn't. There might be a trick for this others know about but I figure they just wrap C code for those things. On the positive side, the debugging experience with Python was so much better than some beginner languages. I'm grateful for the work people put into that. I also love that there are easy to use accelerators, from JIT's to the C++ generator. I was wanting an acceleratable subset with metaprogramming when Mojo appeared. I might try it for toy problems. I gotta try to stay in idiomatic-ish Python for now, though, since it's for career use.
- Zee2 1y agoThis is almost certainly LLM generated. Six flowery “from-to”s in one article: >from beginners to seasoned professionals >from seasoned backend engineers to first-time data analysts >from GPU acceleration and distributed training to model export >from data preprocessing with pandas and NumPy to model serving via FastAPI >from individual learners to enterprise teams >from frontend interfaces to backend logic And more annoyingly, at least four “not just X, but Y”. >it doesn’t just serve as a first step; it continues adding value >that clarity isn’t just beginner-friendly; it also lowers maintenance costs >the community isn’t just helpful, it’s fast-moving and inclusive >this network doesn’t just solve problems; it also shapes the language’s evolution And I won’t mention the em-dashes out of respect to the human em-dash-users… This stuff is so tiring to read.
- scoofy 1y agoMy background is in philosophy and formal logic. The idea that python isn’t the #1 language used is insane to me. Yea, I’m sure there is a lot of technical reasons to use other languages, but with python, you can just read it. I remember buying “learn python the hard way” about 15 year ago, and just looking through the book thinking… wait, I can already read this. Natural language parallels are huge.
- zahlman 1y agoIt speaks to Python's readability that people can successfully learn it in spite of LPTHW's bizarrely out-of-order curriculum, belabouring of simple points while glossing over more difficult ones, etc.
- ivansavz 1y agoIf anyone is looking for an introduction to Python for absolute beginners, you can check out the Python tutorial I just prepared: https://nobsstats.com/tutorials/python_tutorial.html https://nobsstats.com/tutorials/python_tutorial.html It includes a section on "punctuation" symbols, which I haven't seen explained concisely anywhere else and might be helpful, even for non-beginners: https://nobsstats.com/tutorials/python_tutorial.html#python-punctuation https://nobsstats.com/tutorials/python_tutorial.html#python-...