Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I also curse python often for that very reason.
One thing I use with some software is pre-compiling my code before depolyment. Catches a good portion of errors that would'be been only caught when your file would'be been imported for execution.
There is a preinstalled module called py_compile. It basically creates the .pyc files you get in __pycache__ or whatever that tmp directory is usually called. Just run the function compile on your files to test them.
I even have a script that compiles all files with that and replaces all .py files with .pyc files. Sourcecode is kinda obfuscated, comments gone and you can run everything the same. -
thank you for the suggestions. i was unclear: i could not run the script to test it because lack of python on the computer. later at home the linter cried a bit.
Related Rants
i adore compiler based programmers. yesterday i changed a bit of python code without being able to run it only to find out later i wasn't even able to spell True and False correctly.
rant
interpreter
compiler
kudos2yall