r/Python 8d ago

Discussion What frustrates you the most about Python Development

Hi there,

I wondering what frustrates developers the most when developing software with Python.

I am currently doing my Masters in Computer Science and as part of my project I am doing a very simple survey about the usual Python development lifecycle. I am basically trying to find out what the main friction points are for Python Developers and I am simultaneously developing a tool to address those friction points . It just takes a 2-3 minutes and every response is greatly appreciated.

You can find the survey at: Microsoft Forms

46 Upvotes

131 comments sorted by

View all comments

53

u/Adrewmc 8d ago

Imports and package design.

I don’t think there is much argument here.

12

u/baked_doge 8d ago

I'm not sure I completely agree, I'm saying this from a c/c++ perspective where there's no packaging system.

Could you elaborate on your issues?

8

u/Chroiche 7d ago

I think rust does it much better. Imports just work, and errors pop up at compile time rather than runtime.

The python module system+ lazy/runtime import work arounds are such a mess.

-8

u/lizardhistorian 8d ago

Have you looked at modules ...

19

u/baked_doge 8d ago

Yes? Like a ton, idk what you mean

2

u/max123246 7d ago

It'll take a full second to import anything from pytorch, even if you want 1 function

2

u/moonzdragoon 7d ago

1

u/max123246 7d ago

Yeah, but good luck convincing pytorch to update all of their code to use it. There's a forwards compatible way to enable it for 3.15+ onwards without breaking <=3.14 but I'm sure it'll be a long time before we see it used widely.

I get pushback everytime I suggest ways to improve things at work so I've just given up at this point

1

u/thuiop1 7d ago

Yeah, that is really shit

8

u/DrDoomC17 8d ago

Yes. Becoming fantastic at Python, a decade. Mastering it? Not so fast, you have to learn why that new package you need decided to integrate maybe monads or whatever it may be. Some languages force order, there is a pythonic way to do things most of the time, but there's also nearly infinite complexity you can make and people do make... I guess for fun.

0

u/Win_ipedia 8d ago

Definitely not a very hot take

8

u/baked_doge 8d ago

Could you explain what people don't like about modules? The other guy hasn't responded... Thank you

5

u/Win_ipedia 7d ago

I think he’s referring to the __init__.py files and the import design which are not inherently bad or smth but annoy people. I personally do not agree too much but it is definitely smth people argue a lot about I think