For normal stuff, yes. For things that are implemented in C and just interfaced with in Python, so the majority of data analyis and ML libraries, no.
Python
Welcome to the Python community on the programming.dev Lemmy instance!
π Events
Past
November 2023
- PyCon Ireland 2023, 11-12th
- PyData Tel Aviv 2023 14th
October 2023
- PyConES Canarias 2023, 6-8th
- DjangoCon US 2023, 16-20th (!django π¬)
July 2023
- PyDelhi Meetup, 2nd
- PyCon Israel, 4-5th
- DFW Pythoneers, 6th
- Django Girls Abraka, 6-7th
- SciPy 2023 10-16th, Austin
- IndyPy, 11th
- Leipzig Python User Group, 11th
- Austin Python, 12th
- EuroPython 2023, 17-23rd
- Austin Python: Evening of Coding, 18th
- PyHEP.dev 2023 - "Python in HEP" Developer's Workshop, 25th
August 2023
- PyLadies Dublin, 15th
- EuroSciPy 2023, 14-18th
September 2023
- PyData Amsterdam, 14-16th
- PyCon UK, 22nd - 25th
π Python project:
- Python
- Documentation
- News & Blog
- Python Planet blog aggregator
π Python Community:
- #python IRC for general questions
- #python-dev IRC for CPython developers
- PySlackers Slack channel
- Python Discord server
- Python Weekly newsletters
- Mailing lists
- Forum
β¨ Python Ecosystem:
π Fediverse
Communities
- #python on Mastodon
- c/django on programming.dev
- c/pythorhead on lemmy.dbzer0.com
Projects
- PythΓΆrhead: a Python library for interacting with Lemmy
- Plemmy: a Python package for accessing the Lemmy API
- pylemmy pylemmy enables simple access to Lemmy's API with Python
- mastodon.py, a Python wrapper for the Mastodon API
Feeds
Python is by far the fastest to write, cleanest, more maintainable programming language I know
Maintainable? I have not ever had to work with any large Python projects, but from what I have heard, maintenance is a large pain point.
Yup. Part of what makes python so easy and fast is the lack of things built into languages so they are maintainable in a large project.
Take duck typing. It's so easy when you have a small project that can fully understood by a developer. Get into a big project with 10000 classes and you need explicit classes and interfaces just to understand what is going on.
Python is by far one of the worst languages I've ever seen in relation to maintainability, second only to Javascript (due to missing types, which are fixed by Typescript).
Seriously, it's rare for a Python project with more than 1,000 lines to not turn into an absolute mess thanks to the layers upon layers of meta programming, weird edge cases and so on. There are whole bad patterns I've never seen beyond Python codebases.
Things are improving slowly thanks to type hints and so on, but they are still far from where they need to be. Python is used in even more dynamic ways than JS, so the type system needs to be more expressive than TS. You can't even define a function that appends two tuples with proper type hints!
There's one key qualifier in this sentence: I know. One's skill set matters, I guess...
Let me guess: The author knows Python, C, C++, Java and maybe PHP.
My work uses python and it hasn't been bad for new code that has tests and types. Old code we inherited from contractors and "yolo startup" types is less good, but we've generally be improving that as we touch it.
Also fastest to write? I'd say JS or Ruby are just as fast or barley slower.
What most people mean is that Python has great Libraries which do the thing you want without much fuss. But thats more on the libraries than on the language.
iβm proficient in all 3, and i can say with great certainty that generally python is far faster to write
certainly when youβre talking about JS rather than TS, and achiving a usable outcome rather than bashing together bug-ridden trash
I do not know Ruby, but Python has a lot of syntactic sugar that, if one becomes used to and proficient with it, makes writing much faster than other languages I know (including JavaScript).
Ruby has enough syntactic sugar to give you type 2 diabetes honestly.
It's not too bad if you strictly enforce Pyright, Pylint and Black.
But I have yet to work with Python code other than my own that does that. So in practice you are right.
There are dozens of us. Dozens!
i had the misfortune once of having to try to understand a >400kLoC python codebase in a critical position and let me tell you that maintainability is a Problem. the system was older than most of the best practices of today and had a structure i can only describe as "a duolith of sqlalchemy soup".
Yes.
It seems "vanilla" Python is slow, but a JIT implementation like PyPy can speed things up significantly. The major downside seems to be that PyPy does not support Python code that relies on some CPython libraries.
But it's fast enough for us.
Oh man, it's only from reading this that I've realised that 'pypy' isn't the same as 'pypi'
Python is a great language for folks who occasionally have to do a little bit of programming, but if you have to go into any depth with it you hit shit like that.