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.
But I'm not positive if something like this is what you're trying to do. You mentioned multiple files: can you show us a small, simple example with two files? An example like this will help clarify the problem, and help us know if we're really answering your question.
yes, you're right, this solution is somewhat unsmart: since "append" uses a big deal of knowledge of how the rest of the script works, you will often need to reflects changes in the core part of your script within "append". Many errors and hard maintance might be a result.
Dear Tutor, I got this script to permute a list off a website. It works, but when I added the append function, it returns a list that is non-permuted.