r/learnpython • • Jan 03 '25

Are extensions like Cython really turn Python into a compiled language?

I was chatting with chatGPT the other day and he told me about compiled and interpreted languages. He’s also told me about extensions like Cython that aim to make your Python code compiled. So, I was wondering if they really give your code the benefits of compiled languages or they work in a different way

P.s. I apologize in advance if my question makes no sense. I’ve never dealt with compiled languages and I have vague knowledge about them

0 Upvotes

13 comments sorted by

View all comments

Show parent comments

-10

u/Dzhama_Omarov Jan 03 '25

Well, GPT at its current state already surpassing some people I know (unless you ask how many Rs in the strawberry😄), so it feels right to me to use he or she

Thank you for your reply! You’ve actually answered the question I didn’t know I had, whether it’s better to learn Cython or it’s better to learn an other language

-2

u/codypoker54321 Jan 03 '25

I'm surprised chatgpt gets such a basic question wrong, strawberry appears to have 3 R's actually.

I have no idea why this comment is downvoted, you seem like a very polite and fun young man.

-1

u/Dzhama_Omarov Jan 03 '25

Thank you for your kind words! Well, sometimes you can’t understand what stands behind actions of other people and we just have to live with that :)

As for GPTs answer, it’s very interesting to find what causes this „bug“. I call it a bug because when you ask GPT to spell the word he says „r“ three times and he is aware that there is one letter in the first part of the word and two at the second part

-1

u/codypoker54321 Jan 03 '25

yes, chatgpt spelled it out for me also. we all have choices, which is why I'm working on being a better person daily.

I really appreciate you speaking with me, do you have any other Python questions I can help with? I have 4 years experience, I can help

1

u/Dzhama_Omarov Jan 03 '25

Thank you for your offer! I don’t have any questions yet, but if I get any I know whom to ask :)

-1

u/codypoker54321 Jan 03 '25

thanks for being so nice. I know today is gonna be a great day now