From: SourceForge.net <no...@so...> - 2007-03-07 16:57:50
|
Bugs item #1658647, was opened at 2007-02-13 01:33 Message generated for change (Comment added) made by kzuberi You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1658647&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: targeted for 2.2beta2 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Khalid Zuberi (kzuberi) Assigned to: Nobody/Anonymous (nobody) Summary: type(x) calls x.__class__.__init__ Initial Comment: but shouldn't. This is one of the failures in metaclass() in test_descr. The other metaclass related test failure i'm aware of seems to be due to attribute differences (in this case function objects not having __get__) which also show up in the checker22 output, so i assume that problem will get cleaned up as attribute differences are resolved. For the type(x) problem, i wonder if its more subtle than just special casing the arg signature in PyType.invoke_new_() and not calling dispatch__init__()? - kz ---------------------------------------------------------------------- >Comment By: Khalid Zuberi (kzuberi) Date: 2007-03-07 11:57 Message: Logged In: YES user_id=18288 Originator: YES I tried it out after posting the bug report, but it caused other regressions. I guess i could add some type checks in addition to the arg signature, but it feels a bit kludgy, and i'm wondering if there's a better approach. Suggestions welcome. - kz ---------------------------------------------------------------------- Comment By: Henrik Eriksson (h_eriksson) Date: 2007-03-05 15:07 Message: Logged In: YES user_id=1652173 Originator: NO I ran into this bug while trying to get CherryPy 3 running. Have you looked closer at the problem? Your simple solution sounds pretty good to me. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1658647&group_id=12867 |