On 19-Jul-07, at 1:55 PM, Dave Hall wrote:
> On Thu, Jul 19, 2007 at 01:03:50PM -0600, Jim Meier wrote:
>>
>> On 19-Jul-07, at 12:22 PM, Steven Kurylo wrote:
>>
>>> And its not universally applied either:
>>>
>>> list = [ 'a','b' ]
>>> def foo():
>>> print list
>>> list.append('c')
>>> print list
>>> foo()
>>> print list
>
> A similar example to illustrate this would be:
>
> list = list + ['c']
>
> instead of:
>
> list.append('c')
After a pile of snipping...
You've also accidentally done something else that scares the crap out
of me about python. You've gone ahead and redefined the builtin type
"list" to be something else :)
Received on Thu Jul 19 18:08:02 2007
This archive was generated by hypermail 2.1.8 : Thu Jul 19 2007 - 18:08:08 CST