I would like to pass some keyword with special character to a foo(**kwargs) function, but it doesn't work

def foo(**kwargs):
  print kwargs


This doesn't work:

foo(a-special-keyword=5)

How do I tell Python to treat '-' as a normal character but not part of an _expression_?

Thanks,
Khoa
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to