Message162382
I guess the answer was "no".
Attached is a new diff as you suggest. It isn't really any shorter--in fact it's about 20% longer. Though I freely admit it is more written-in-Python-y.
The test currently passes. If you add support for a new format unit (like add "case '8':" above "case 'H':" in convertsimple()) without adding the corresponding case to simpleitem(), it fails. If you perform the same operation on simpleitem() but not to convertsimple(), it again fails. So I assert the test is working 100% correctly. |
|
Date |
User |
Action |
Args |
2012-06-06 00:03:48 | larry | set | recipients:
+ larry, benjamin.peterson |
2012-06-06 00:03:47 | larry | set | messageid: <1338941027.91.0.431928620317.issue14769@psf.upfronthosting.co.za> |
2012-06-06 00:03:47 | larry | link | issue14769 messages |
2012-06-06 00:03:46 | larry | create | |
|