Bugs item #1775388, was opened at 2007-08-16 15:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1775388&group_id=5470

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: IDLE
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Noam Raphael (noamr)
Assigned to: Nobody/Anonymous (nobody)
Summary: Display CallTips for classes using metaclasses.

Initial Comment:
Hello,

Currently, if you write something like this:

class MyType(type):
    pass

class MyClass(object):
    __metaclass__ = MyType
    def __init__(self, a):
        pass

And write in the shell:

>>> MyClass(

a calltip won't be displayed.

To fix this, replace this line in CallTups.py:

if type(ob) in (types.ClassType, types.TypeType):

with this one:

if issubclass(type(ob), (types.ClassType, types.TypeType)):

and now it works.

Thanks,
Noam

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1775388&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to