Appending to []
a = [].append('x').append('y').append('z'). would be possible with a containing the resulting list ['. x', 'y', 'z']. That is the way I expect any append to behave.
a = [].append('x').append('y').append('z'). would be possible with a containing the resulting list ['. x', 'y', 'z']. That is the way I expect any append to behave.
This is syntactically wrong, so is there a function which appends a > value to a list and > returns the new value, so that I could write something like this: > > f(list(a).functional_append(4)). Sure there is, just not as a list method.
Previous message (by thread): [Python-Dev] About [].append == [].append.There is no specific problem I want to solve here. I just noticed an inconsistency and I wondered if it would be OK to change the implementation of comparisons of builtin_function_or_method instances.
Previous message (by thread): [Python-Dev] About [].append == [].append.There is no specific problem I want to solve here. I just noticed an > inconsistency and I wondered if it would be OK to change the > implementation of comparisons of builtin_function_or_method instances.