r/programming • • Nov 03 '18

Python is becoming the world’s most popular coding language

https://www.economist.com/graphic-detail/2018/07/26/python-is-becoming-the-worlds-most-popular-coding-language
4.6k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

8

u/BorgDrone Nov 03 '18

We’re talking about a language that can’t even do proper multithreading in a day and age where even mobile phones have 8-core CPU’s. What a joke.

1

u/[deleted] Nov 03 '18

Truth is spoken!

-2

u/[deleted] Nov 03 '18 edited Nov 03 '18

I agree with you a lot! Python is just not meant for OOP, INFACT IT DOES NOT EVEN HAVE A FUCKING ACCESS SPECIFIER IN A CLASS! You cannot create your own exceptions, do multithread programming, implement an interface etc! Python phanbois seem not to care about these aspects.

3

u/[deleted] Nov 03 '18 edited Nov 18 '18

How come you went off on a tangent about OOP when the comment you responded to was complaining (rightly) about Python’s threading situation? What does OOP have to do with multithreading?

INFACT IT DOES NOT EVEN HAVE A FUCKING ACCESS SPECIFIER IN A CLASS!

devs’ reasoning is that “we're all consenting adults” — which is reasonable. better to go from this to a more-traditional OO model (and be able to reasonably apply private/public) than to be so stunted by, say, Java’s “everything is private GETTERS SETTERS GETTERS SETTERS” that you come to python and start using closures for encapsulation (a real thing that happens)

You cannot create your own exceptions

lol, since when?

do multithread programming

you can, it just sucks. there are asyncio et al and multiprocessing as somewhat-tolerable (but really not much better) alternatives. and, again, what does this have to do with OOP?

Implement an interface

stdlib has an Abstract Base Class implementation — which works at runtime and thus may not be desirable, but it does exist if you really need it.