[Tutor] apply() vs. the extended call syntax

Tim Johnson tim at akwebsoft.com
Sat Aug 3 04:06:30 CEST 2013


* Tim Johnson <tim at akwebsoft.com> [130802 15:41]:
<...> Is there a cleaner way to do this? using apply()
> looks so much simpler, but I understand it is not even available in
> py 3 ....
  def apl(funcall): funcall[0](*funcall[1])
  k = "key2"
  >>> apl(func_D[k])
  I don't have an argument!
  ## ??? :)

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com


More information about the Tutor mailing list