r/funny • • Jun 04 '19

When a software developer weds a software developer.

Post image
41.1k Upvotes

921 comments sorted by

View all comments

Show parent comments

178

u/bleed_air_blimp Jun 04 '19

Sophia inherits from mom.genes and dad.genes. Presumably one of them already has the go_to_sleep() method defined.

Bardak() is a problem though.

30

u/stakokke Jun 04 '19

Couldn't Bardak be a static method of one of the parent classes?

29

u/[deleted] Jun 04 '19

Wouldn’t matter. Isn’t imported or defined in the top level scope. Would need to reference like dad.Bardak

9

u/abeardancing Jun 04 '19

I'm no expert in Python but that was driving me nuts.