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.
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.
Do you not know how to code some part? Are you getting an error? If so show us the full error text. WE are not mind readers, you need to tell us what you want to know. As for the code below, I've added a few remarks... > #Task: Create the empty data structure > grocery_item = {} > >.
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.