while I can invoke methods of empty string '' right in typing
(''.join(), etc.) I can't do the same with empty list
example:
[1,2,3]
I would not use b = a since I don't want changes on 'b' to apply on
'a'
do you think this should be available on lists to invoke method
directly?
(''.join(), etc.) I can't do the same with empty list
example:
>>a = [1,2,3]
>>b = [].extend(a)
>>b
>>b = []
>>b.extend(a)
>>b
>>b = [].extend(a)
>>b
>>b = []
>>b.extend(a)
>>b
I would not use b = a since I don't want changes on 'b' to apply on
'a'
do you think this should be available on lists to invoke method
directly?
Comment