Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: SourceForge.net <noreply@so...> - 2007-01-18 19:06:58
|
Bugs item #1638882, was opened at 2007-01-18 19:06 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1638882&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: leouser (leouserz) Assigned to: Nobody/Anonymous (nobody) Summary: subclasses of BuiltinFunction types not BuiltinMethodType Initial Comment: I ran into this will inspecting test_inspect and saw one of the errors thrown was this problem: import types bim = types.BuiltinMethodType print bim bim2 = types.BuiltinFunctionType print bim2 print bim == bim2 print type(list.append) a = type([].append) print a print a == bim assert a== bim, "not a BuiltinMethodType" running in python gives us this output: python testbuiltins.py <type 'builtin_function_or_method'> <type 'builtin_function_or_method'> 1 <type 'method_descriptor'> <type 'builtin_function_or_method'> 1 while in jython we get: jython testbuiltins.py <type 'method'> <type 'reflectedfunction'> 0 <type 'methoddescr'> <type 'list$1exposed_append'> 0 Traceback (innermost last): File "testbuiltins.py", line 15, in ? AssertionError: not a BuiltinMethodType leouser ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1638882&group_id=12867 |
From: SourceForge.net <noreply@so...> - 2007-01-18 20:32:22
|
Bugs item #1638882, was opened at 2007-01-18 19:06 Message generated for change (Comment added) made by leouserz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1638882&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: leouser (leouserz) Assigned to: Nobody/Anonymous (nobody) Summary: subclasses of BuiltinFunction types not BuiltinMethodType Initial Comment: I ran into this will inspecting test_inspect and saw one of the errors thrown was this problem: import types bim = types.BuiltinMethodType print bim bim2 = types.BuiltinFunctionType print bim2 print bim == bim2 print type(list.append) a = type([].append) print a print a == bim assert a== bim, "not a BuiltinMethodType" running in python gives us this output: python testbuiltins.py <type 'builtin_function_or_method'> <type 'builtin_function_or_method'> 1 <type 'method_descriptor'> <type 'builtin_function_or_method'> 1 while in jython we get: jython testbuiltins.py <type 'method'> <type 'reflectedfunction'> 0 <type 'methoddescr'> <type 'list$1exposed_append'> 0 Traceback (innermost last): File "testbuiltins.py", line 15, in ? AssertionError: not a BuiltinMethodType leouser ---------------------------------------------------------------------- >Comment By: leouser (leouserz) Date: 2007-01-18 20:32 Message: Logged In: YES user_id=1277399 Originator: YES wow, this bug gets weirder. types.BuiltinFunctionType types.BuiltinMethodType are == type(var) == type([].append) is true so this seems to become a bug in types and in PyBuiltinFunction. types needs to have the Builtin*Types be derived from the same class and PyBuiltinFunction needs to have that type. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1638882&group_id=12867 |
From: SourceForge.net <noreply@so...> - 2007-01-18 21:21:47
|
Bugs item #1638882, was opened at 2007-01-18 19:06 Message generated for change (Comment added) made by leouserz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1638882&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: leouser (leouserz) Assigned to: Nobody/Anonymous (nobody) Summary: subclasses of BuiltinFunction types not BuiltinMethodType Initial Comment: I ran into this will inspecting test_inspect and saw one of the errors thrown was this problem: import types bim = types.BuiltinMethodType print bim bim2 = types.BuiltinFunctionType print bim2 print bim == bim2 print type(list.append) a = type([].append) print a print a == bim assert a== bim, "not a BuiltinMethodType" running in python gives us this output: python testbuiltins.py <type 'builtin_function_or_method'> <type 'builtin_function_or_method'> 1 <type 'method_descriptor'> <type 'builtin_function_or_method'> 1 while in jython we get: jython testbuiltins.py <type 'method'> <type 'reflectedfunction'> 0 <type 'methoddescr'> <type 'list$1exposed_append'> 0 Traceback (innermost last): File "testbuiltins.py", line 15, in ? AssertionError: not a BuiltinMethodType leouser ---------------------------------------------------------------------- >Comment By: leouser (leouserz) Date: 2007-01-18 21:21 Message: Logged In: YES user_id=1277399 Originator: YES patches and further discusion for this is here: http://sourceforge.net/tracker/index.php?func=detail&aid=1638982&group_id=12867&atid=312867 leouser ---------------------------------------------------------------------- Comment By: leouser (leouserz) Date: 2007-01-18 20:32 Message: Logged In: YES user_id=1277399 Originator: YES wow, this bug gets weirder. types.BuiltinFunctionType types.BuiltinMethodType are == type(var) == type([].append) is true so this seems to become a bug in types and in PyBuiltinFunction. types needs to have the Builtin*Types be derived from the same class and PyBuiltinFunction needs to have that type. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1638882&group_id=12867 |
From: SourceForge.net <noreply@so...> - 2007-04-19 20:42:31
|
Bugs item #1638882, was opened at 2007-01-18 14:06 Message generated for change (Comment added) made by cgroves You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1638882&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: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: leouser (leouserz) Assigned to: Nobody/Anonymous (nobody) Summary: subclasses of BuiltinFunction types not BuiltinMethodType Initial Comment: I ran into this will inspecting test_inspect and saw one of the errors thrown was this problem: import types bim = types.BuiltinMethodType print bim bim2 = types.BuiltinFunctionType print bim2 print bim == bim2 print type(list.append) a = type([].append) print a print a == bim assert a== bim, "not a BuiltinMethodType" running in python gives us this output: python testbuiltins.py <type 'builtin_function_or_method'> <type 'builtin_function_or_method'> 1 <type 'method_descriptor'> <type 'builtin_function_or_method'> 1 while in jython we get: jython testbuiltins.py <type 'method'> <type 'reflectedfunction'> 0 <type 'methoddescr'> <type 'list$1exposed_append'> 0 Traceback (innermost last): File "testbuiltins.py", line 15, in ? AssertionError: not a BuiltinMethodType leouser ---------------------------------------------------------------------- >Comment By: Charles Groves (cgroves) Date: 2007-04-19 15:42 Message: Logged In: YES user_id=1174327 Originator: NO This was fixed by my unification of all the builtin function types. ---------------------------------------------------------------------- Comment By: leouser (leouserz) Date: 2007-01-18 16:21 Message: Logged In: YES user_id=1277399 Originator: YES patches and further discusion for this is here: http://sourceforge.net/tracker/index.php?func=detail&aid=1638982&group_id=12867&atid=312867 leouser ---------------------------------------------------------------------- Comment By: leouser (leouserz) Date: 2007-01-18 15:32 Message: Logged In: YES user_id=1277399 Originator: YES wow, this bug gets weirder. types.BuiltinFunctionType types.BuiltinMethodType are == type(var) == type([].append) is true so this seems to become a bug in types and in PyBuiltinFunction. types needs to have the Builtin*Types be derived from the same class and PyBuiltinFunction needs to have that type. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1638882&group_id=12867 |