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
-
atheist99292yI had a little mozy on Stack Overflow, this made me chuckle:
"Is there a way? Yes. There's always a way. Should you do it? Probably not."
https://stackoverflow.com/a/... -
Does the python to bytecode compiler preprocess math functions at compile time if no dependencies? I don't see anything about this anywhere for python itself. But you could technically do this with a module made with C.
-
atheist99292y@Demolishun it does "peephole optimization", restructuring loops, calculating constants, etc. So, yes
-
Made me think of the time a teacher told me to use switch statements as per her requirements. In Python. Whilst this is technically doable through functions, she later asked me if I was familiar with switch() {} as you see on most C style languages.
She just did not wanted to understand that Python did not have that construct. The Dean talked to her stupid ass for me so it was ok.
Related Rants
Student intern here. My boss recently asked me to replace several if-statements with preprocessor macros.
In Python.
And apparently, he didn‘t joke.
rant
boss
internship
python