Message225364
Actually, that specific solution (using a helper method) will fail because there may be unhashable params (due to unhashable default values or annotations) among the keyword-only arguments, so it may not be possible to build a frozenset (rather, one should compare the {param.name: param if param.kind == KEYWORD_ONLY} dict). The frozenset approach still works for computing the hash as this requires all params to be hashable anyways. |
|
Date |
User |
Action |
Args |
2014-08-15 20:37:59 | Antony.Lee | set | recipients:
+ Antony.Lee, brett.cannon, ncoghlan, larry, python-dev, yselivanov |
2014-08-15 20:37:59 | Antony.Lee | set | messageid: <1408135079.17.0.0123265072466.issue20334@psf.upfronthosting.co.za> |
2014-08-15 20:37:59 | Antony.Lee | link | issue20334 messages |
2014-08-15 20:37:59 | Antony.Lee | create | |
|