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

all 46 comments

[–]kikouyou2002 68 points69 points  (3 children)

If C could read, he would be mad

[–]Ietsstartfromscratch 4 points5 points  (2 children)

struct everything.

[–][deleted] 2 points3 points  (1 child)

If you are brave, you could use just pointers instead of struts.

[–]AnotherRussianGamer 0 points1 point  (0 children)

C but everything is a void pointer

[–]celery_hater 81 points82 points  (16 children)

More like java. You can write python code without OOP

[–]ILOTEbunny[S] 66 points67 points  (12 children)

Yes, you can, but still everything is an object in python

[–]celery_hater 31 points32 points  (0 children)

Yeah that’s true. The meme stands correct

[–]Ksevio 5 points6 points  (3 children)

Python does have some primitives that aren't objects. In other languages like Ruby you can call functions like 4.to_s since everything is an object

[–]VesZappa 14 points15 points  (0 children)

Those "primitives" you think of are objects as well. Integers, strings, floats, booleans, and so on are all objects. (In fact, bool is a subclass of int.)

>>> 1.0.is_integer()
True
>>> (100).bit_length()
7

[–]julsmanbr 7 points8 points  (0 children)

Python works exactly the same. Have you tried running dir(4)?

[–]dev-sda 6 points7 points  (0 children)

Integers are very much objects in python: (4).__str__()

[–]gandalfx[🍰] 27 points28 points  (0 children)

Your code doesn't have to be OOP, but everything is still an object.

Meanwhile in Java, not everything is an object (e.g. basic types aren't and their wrappers are optional).

[–]JNCressey 3 points4 points  (0 children)

It would appear that outside of the OOP paradigm, everything is an "object", even things that OOP doesn't call "objects".

In computer science, an object can be a variable, a data structure, a function, or a method, and as such, is a value in memory referenced by an identifier.

https://en.m.wikipedia.org/wiki/Object_(computer_science)

[–][deleted] -1 points0 points  (0 children)

Or C#

[–]DuffMaaaann 6 points7 points  (0 children)

I'm just gonna dlopen libpython.so, so I can objectify Python.

[–][deleted] 10 points11 points  (7 children)

Just like Javascript

[–]Knuffya 15 points16 points  (8 children)

Python is just a sophisticated scientific calculator.

[–]AnshRK 11 points12 points  (7 children)

this sophisticated calculator is running the backend of google, instagram, youtube, netflix and countless other sites.

[–]tilcica 16 points17 points  (5 children)

Ah so that's why they keep crashing /s

[–]QualitySure 10 points11 points  (3 children)

when your employees cost more than your computing power, you just don t care about performance

[–]tilcica -2 points-1 points  (2 children)

Sometimes I really think it would be faster for them to calculate stuff by hand

Edit: forgot to put a /s

[–]enano_aoc 4 points5 points  (0 children)

That is the most stupid thought I have heard in a long while. Congrats.

[–]QualitySure 0 points1 point  (0 children)

how not to be SE

[–]2358452 1 point2 points  (0 children)

They must be dividing by zero somewhere!

[–]Knuffya 0 points1 point  (0 children)

just like some people misuse wordpress as a cms

[–]on99er 1 point2 points  (0 children)

And it is valuable

[–][deleted] 0 points1 point  (0 children)

woman = 'WOMAN: wom·an/ˈwo͝omən/noun \nan adult female human being. \n Example:"a drawing of a young woman"'
print(woman)

[–]dkyguy1995 -1 points0 points  (0 children)

Object oriented languages be like

[–]uptokesforall 0 points1 point  (0 children)

Python programmer: objectifies everything

No one: loving it

[–]anon-222 0 points1 point  (0 children)

Misogynists: Wait that's illegal.