Message260157
[First-time contributor, feedback appreciated.]
Found and fixed some unexpected behavior in inspect.BoundArguments.apply_defaults. Simplest explanation is the following test that I added:
# Make sure a no-args binding still acquires proper defaults.
def foo(a='spam'): pass
sig = inspect.signature(foo)
ba = sig.bind()
ba.apply_defaults()
self.assertEqual(list(ba.arguments.items()), [('a', 'spam')])
I've included the patch file; is there anything else I can do? |
|
Date |
User |
Action |
Args |
2016-02-12 03:33:09 | Frederick Wagner | set | recipients:
+ Frederick Wagner |
2016-02-12 03:33:09 | Frederick Wagner | set | messageid: <1455247989.9.0.159596346531.issue26347@psf.upfronthosting.co.za> |
2016-02-12 03:33:09 | Frederick Wagner | link | issue26347 messages |
2016-02-12 03:33:09 | Frederick Wagner | create | |
|