Re: function object.func_default off the console

2007-04-26 Thread Peter Otten
[EMAIL PROTECTED] wrote: > On Apr 25, 1:56 am, Peter Otten <[EMAIL PROTECTED]> wrote: >> Aaron Brady wrote: >> f.func_defaults[0] >> > [2, 3] >> f.func_defaults[0]+=[4] >> > Traceback (most recent call last): >> >File "", line 1, in >> > TypeError: 'tuple' object does not support it

Re: function object.func_default off the console

2007-04-26 Thread castironpi
On Apr 25, 1:56 am, Peter Otten <[EMAIL PROTECTED]> wrote: > Aaron Brady wrote: > f.func_defaults[0] > > [2, 3] > f.func_defaults[0]+=[4] > > Traceback (most recent call last): > >File "", line 1, in > > TypeError: 'tuple' object does not support item assignment > f.func_default

Re: function object.func_default off the console

2007-04-25 Thread Peter Otten
Aaron Brady wrote: f.func_defaults[0] > [2, 3] f.func_defaults[0]+=[4] > Traceback (most recent call last): >File "", line 1, in > TypeError: 'tuple' object does not support item assignment f.func_defaults[0] > [2, 3, 4] > > V. interesting. Operation succeeds but with a throw

function object.func_default off the console

2007-04-24 Thread Aaron Brady
>>> f.func_defaults[0] [2, 3] >>> f.func_defaults[0]+=[4] Traceback (most recent call last): File "", line 1, in TypeError: 'tuple' object does not support item assignment >>> f.func_defaults[0] [2, 3, 4] V. interesting. Operation succeeds but with a throw. Er, raise. -- http://mail.python.