Re: Converting a varargs tuple to a list - a definite pitfall for new comers to Python

2006-09-15 Thread metaperl
John Machin wrote: > [EMAIL PROTECTED] wrote: > > The following program does not work if you uncomment #lis = > > ["xmms2"] + list(args) > > > > Evidently Python is opting for the nullary constructor list() as > > opposed to the other one which takes a sequence. But no newcomer would know > >

Re: Converting a varargs tuple to a list - a definite pitfall for new comers to Python

2006-09-15 Thread metaperl
Georg Brandl wrote: > [EMAIL PROTECTED] wrote: > > The following program does not work if you uncomment #lis = > > ["xmms2"] + list(args) > > > > Evidently Python is opting for the nullary constructor list() as > > opposed to the other one which takes a sequence. But no newcomer would > > know

Re: Converting a varargs tuple to a list - a definite pitfall for new comers to Python

2006-09-14 Thread John Machin
[EMAIL PROTECTED] wrote: > The following program does not work if you uncomment #lis = > ["xmms2"] + list(args) > > Evidently Python is opting for the nullary constructor list() as > opposed to the other one which takes a sequence. But no newcomer would know > this. Are you using "the nullar

Re: Converting a varargs tuple to a list - a definite pitfall for new comers to Python

2006-09-14 Thread Georg Brandl
[EMAIL PROTECTED] wrote: > The following program does not work if you uncomment #lis = > ["xmms2"] + list(args) > > Evidently Python is opting for the nullary constructor list() as > opposed to the other one which takes a sequence. But no newcomer would > know this. And the Python docs dont gi

Re: Converting a varargs tuple to a list - a definite pitfall for new comers to Python

2006-09-14 Thread Simon Forman
[EMAIL PROTECTED] wrote: > The following program does not work if you uncomment #lis = > ["xmms2"] + list(args) > > Evidently Python is opting for the nullary constructor list() as > opposed to the other one which takes a sequence. But no newcomer would > know this. And the Python docs dont gi