homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients mark.dickinson
Date 2013年04月16日.19:11:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366139470.36.0.39573405184.issue17765@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013年04月16日 19:11:10mark.dickinsonsetrecipients: + mark.dickinson
2013年04月16日 19:11:10mark.dickinsonsetmessageid: <1366139470.36.0.39573405184.issue17765@psf.upfronthosting.co.za>
2013年04月16日 19:11:10mark.dickinsonlinkissue17765 messages
2013年04月16日 19:11:09mark.dickinsoncreate

AltStyle によって変換されたページ (->オリジナル) /