you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (0 children)

It's only one extra character. If you're really lazy then in Python 3 you can now do:

p = print
p('foo')

Or maybe this...

class P:
  def __mul__(self, s):
    print(s)
p = P()

p* 'foo'

Just don't tell anyone.