Pythonic list reordering

2010-04-08 Thread Ben Racine
I have a list... ['dir_0_error.dat', 'dir_120_error.dat', 'dir_30_error.dat', 'dir_330_error.dat'] I want to sort it based upon the numerical value only. Does someone have an elegant solution to this? Thanks, Ben R. -- http://mail.python.org/mailman/listinfo/python-list

nonunique string replacements

2010-03-02 Thread Ben Racine
you all recommend? Note the whitespace is equal between the existing substring and the replacement string. Many thanks, Ben Racine i3enha...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list