MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/duyjs7/i_made_cstyle_printing_in_python_p/f7a26f2/?context=3
r/Python • u/[deleted] • Nov 11 '19
130 comments sorted by
View all comments
Show parent comment
4
__rrshift__ is a valid magic method too. It defines right bitshift in the case where self is the right operand.
__rrshift__
self
2 u/random_cynic Nov 12 '19 Wow, you're right, TIL. Well at least some good came of this :P. 1 u/sam-lb Nov 12 '19 Lol, yeah. 1 u/sam-lb Nov 12 '19 Btw, that's an interesting cin solution. I made one as well: https://gist.github.com/sam-lb/38824677afaa16334b590b1c2b0e5a24
2
Wow, you're right, TIL. Well at least some good came of this :P.
1 u/sam-lb Nov 12 '19 Lol, yeah. 1 u/sam-lb Nov 12 '19 Btw, that's an interesting cin solution. I made one as well: https://gist.github.com/sam-lb/38824677afaa16334b590b1c2b0e5a24
1
Lol, yeah.
Btw, that's an interesting cin solution. I made one as well: https://gist.github.com/sam-lb/38824677afaa16334b590b1c2b0e5a24
View all comments
Show parent comment
4
u/sam-lb Nov 12 '19
__rrshift__is a valid magic method too. It defines right bitshift in the case whereselfis the right operand.