[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-05-21 Thread zachrahan
zachrahan <zpin...@gmail.com> added the comment: Well, "wontfix" would be appropriate in the context of deprecating the sort_keys option (over the course of however many releases) and documenting that the new procedure for getting JSON output in a specific order is to ensure

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2017-06-28 Thread zachrahan
zachrahan added the comment: This one just bit me too. It seems that if JSON serialization accepts non-string dict keys, it should make sure to accept them in all circumstances. Currently, there is an error *only* with mixed-type dicts, *only* when sort_keys=True. In addition, the error

[issue29298] argparse fails with required subparsers, un-named dest, and empty argv

2017-01-17 Thread zachrahan
New submission from zachrahan: In python 3.6 (and several versions back), using argparse with required subparsers will cause an unhelpful TypeError if the 'dest' parameter is not explicitly specified, and no arguments are provided. Test case: import argparse parser = argparse.ArgumentParser