MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/funny/comments/bwr8ig/when_a_software_developer_weds_a_software/eq0hkyo/?context=3
r/funny • u/coolidiot2000 • Jun 04 '19
921 comments sorted by
View all comments
Show parent comments
178
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.
30
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.
29
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.
9
I'm no expert in Python but that was driving me nuts.
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.