Message184826
Updated patch attached. The complexity grew a bit, as it turned out to be useful for the converter functions to be able to tell the difference between top level conversions and recursive invocations. I also realised that:
- the complex number conversion currently allows arbitrarily deep nesting of addition and subtraction
- handling this properly made an exception based "Failed to convert" API far more sensible
The docstrings are updated, but ast.convert_node is tested only indirectly through the ast.literal_eval tests and the main docs haven't been updated at all.
At this point, I'm most interested in feedback from Larry as to whether or not this is helpful to him in implementing argument clinic. |
|
Date |
User |
Action |
Args |
2013-03-21 01:44:04 | ncoghlan | set | recipients:
+ ncoghlan, larry, benjamin.peterson |
2013-03-21 01:44:04 | ncoghlan | set | messageid: <1363830244.29.0.269960742525.issue17490@psf.upfronthosting.co.za> |
2013-03-21 01:44:04 | ncoghlan | link | issue17490 messages |
2013-03-21 01:44:04 | ncoghlan | create | |
|