Message187115
Passing a weakref.ref callback by keyword currently fails silently:
Python 3.4.0a0 (default:537c1f1ab53c, Apr 16 2013, 20:07:47)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import weakref
>>> weakref.ref({1, 2, 3}, callback=lambda ref:print("collected"))
<weakref at 0x1006189d8; dead>
For Python 3.4, I'd suggest that either (1) this should be an exception, or (2) it should be permissible to pass the callback by keyword. |
|
Date |
User |
Action |
Args |
2013-04-16 19:11:10 | mark.dickinson | set | recipients:
+ mark.dickinson |
2013-04-16 19:11:10 | mark.dickinson | set | messageid: <1366139470.36.0.39573405184.issue17765@psf.upfronthosting.co.za> |
2013-04-16 19:11:10 | mark.dickinson | link | issue17765 messages |
2013-04-16 19:11:09 | mark.dickinson | create | |
|