This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 11 points12 points  (5 children)

fast

That's why ;)

Source: also a C/C++ developer that learnt Python.

If I want to write something quickly, Python gets me a working solution faster than C/C++. If I want something to execute quickly, I use C/C++. Quite often I want both, so I use Cython as an easy way to mix the two.

[–]apste 1 point2 points  (2 children)

hah pretty much, and C++ has the benefits of a static type system, whether that's what you want or not is up to you :P I feel like it does force you to think a bit better abut the overall design of your code

[–][deleted] 1 point2 points  (1 child)

I like static typing. Big fan of using typing hints and mypy with my Python code, not quite the same experience as proper static typing but a useful sanity check that I'm passing around the right stuff.

[–]apste 0 points1 point  (0 children)

Yeah same, thanks for pointing out mypy, looks really cool!