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.
you could for example use. for s in inputAnd if you store the split result in a local value before putting it into T you can use that variable in all the following appends to save indexing T... >
Note if you let the function replace_pix() create its own, new, corrected, HDU, and let it return it, that line and the two lines around it can become: hdulist_sk.append(replace_pix(hdu, mask)) Now, you'll need the .copy() method. But do check if the above code is what you're trying to achieve.
list.append problem? Bob Parnes rparnes at megalink.net Tue Oct 2 09:36:07 EDT 2001. Previous message (by thread): scripting windows apps.