def a((b,c,d),e):
AdSR
artur_spruce at yahoo.com
Mon Apr 18 16:05:57 EDT 2005
Fellow Pythonistas,
Please check out
http://spyced.blogspot.com/2005/04/how-well-do-you-know-python-part-3.html
if you haven't done so yet. It appears that you can specify a function
explicitly to take n-tuples as arguments. It actually works, checked
this myself. If you read the reference manual at
http://docs.python.org/ref/function.html
really carefully, you will find that it is indeed part of the language
spec, but it's a likely candidate for the least advertised Python
feature. Small wonder since it looks like one of those language
features that make committing atrocities an order of magnitude easier.
Has anyone actually used it in real code?
Cheers,
AdSR
More information about the Python-list
mailing list