News for hackers. Stuff that matters.
Re:Python idioms by Lycanthrope on Sunday June 12, 2011 @08:53PM (#2647773)
There is functools.partial:

  from functools import partial
  def add(x,y): return x+y
  add3 = partial(add, 3)
  add3(2) # returns 5
Re:Python idioms by skimbrel on Monday June 13, 2011 @12:21AM (#2648120)
Ah! I didn't know about that. It'd be nice to have the syntactic sugar à la Haskell, but oh well. Close enough.