r/Python • • Nov 11 '19

I made c++-style printing in Python :P

Post image
1.7k Upvotes

130 comments sorted by

View all comments

101

u/[deleted] Nov 11 '19

Yikes. Technically, endl should flush the buffer rather than just print a newline. You could make this more accurate by including a flush=True argument in your print statement.

But convoluted aliases are... fun I guess?

0

u/[deleted] Nov 11 '19

[deleted]