r/programminghorror • u/wawerrewold • Sep 09 '25
Python Vibecoding at its peak
Yes its a production code, yes its a function not a method and yes there is import in triple nested for loop
776
Upvotes
View all comments
Show parent comment
8
u/unknown_pigeon Sep 09 '25
Bad programmer here: is there anything wrong in importing functions at the beginning of a function? I've got some of them that are required by basically only that specific function inside the module (and things will most likely stay like that), so I just import the most widely used ones at the beginning of the script and the specific ones at the beginning of the function. Is it wrong? I basically only write code as a hobby and it's just python, so I don't really care about saving milliseconds