Patrick Maupin
Patrick Maupin
Sounds like an awesome idea to me!
Closing for now; anyone who really wants the comments is welcome to re-open and work on the pull.
I've added an example of how to do this in PR #75. So we should possibly document it, but I think the code is done.
Yeah, that function's pretty simple right now -- it only works on top-level functions. Having said that, you can have functions inside classes inside functions inside functions inside classes inside......
OK, @berkerpeksag I took your hint and removed the micro-optimizations. The code looks a lot better, and now I think it performs a lot better, too. Stdlib roundtrips aren't nearly...
In my local copy, I had made `to_source` a class method, and then backed it out, because I didn't think I had a use-case. Then I remembered the use-case that...
I think it was mergeable when made. Didn't want to do it because I thought a new release was imminent, and since it was a big change, wanted to do...
In general, I'm not a big fan of slowing down the general case for exceptions. I would support your proposal turned inside out; e.g. we wrap the top functions with...
Also, I don't have any time right now, but if someone is looking at this, we should probably merge my current PRs (or not) first...
Oh, and we still support Python 2.6, and I don't see any reason to change that just for a command line parser...