Boost logo

Boost-Build :

Subject: Re: [Boost-build] jam/python function calling
From: Anthony Foglia (AFoglia_at_[hidden])
Date: 2010-07-14 14:42:19


Steven Watanabe wrote:
> Python supports tuples in the argument list, so you could use
>
> def feature((name,), values, attributes = []):
> print name
> print values
> print attributes

Not in Python 3. I'm not saying you should aim for Python 3, but you
should probably refrain from using features that are removed.

http://www.python.org/dev/peps/pep-3113/

(The appropriate code changes for this syntax are supposedly supported
by the 2to3.py conversion script though.)

-- 
Anthony Foglia
Princeton Consultants
(609) 987-8787 x233

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk