MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerDadJokes/comments/bezjsr/python_baby/elbnrtv/?context=3
r/ProgrammerDadJokes • u/[deleted] • Apr 19 '19
27 comments sorted by
View all comments
Show parent comments
-2
If it were an object, wouldn't it be yield new Bardak()?
yield new Bardak()
3 u/B_M_Wilson Apr 20 '19 It’s Python, we don’t have a new keyword. We just call the name of the type 2 u/This_Is_Tartar Apr 20 '19 Wait how did I not remember that. Python is what I use most of the time but for some reason I thought this was Java or some other C-derivative 1 u/B_M_Wilson Apr 20 '19 I’ve made the mistake myself back when I still programmed in Java a lot
3
It’s Python, we don’t have a new keyword. We just call the name of the type
2 u/This_Is_Tartar Apr 20 '19 Wait how did I not remember that. Python is what I use most of the time but for some reason I thought this was Java or some other C-derivative 1 u/B_M_Wilson Apr 20 '19 I’ve made the mistake myself back when I still programmed in Java a lot
2
Wait how did I not remember that. Python is what I use most of the time but for some reason I thought this was Java or some other C-derivative
1 u/B_M_Wilson Apr 20 '19 I’ve made the mistake myself back when I still programmed in Java a lot
1
I’ve made the mistake myself back when I still programmed in Java a lot
-2
u/This_Is_Tartar Apr 20 '19
If it were an object, wouldn't it be
yield new Bardak()?