Does not work with SWIG-generated classes

Bug #179253 reported by Jelmer Vernooij
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pydoctor
Confirmed
Low
Michael Hudson-Doyle

Bug Description

  affects pydoctor

Pydoctor does not generate documentation for classes wrapped by SWIG
(www.swig.org). SWIG creates classes like this:

class event(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v:
x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    def __init__(self, *args, **kwargs):
        _events.event_swiginit(self,_events.new_event(*args, **kwargs))
    __swig_destroy__ = _events.delete_event
event.loop_once = new_instancemethod(_events.event_loop_once,None,event)
event.loop_wait = new_instancemethod(_events.event_loop_wait,None,event)
event_swigregister = _events.event_swigregister
event_swigregister(event)

pydoctor will in this case only document event.__init__(). It would be
nice if it would also document event.loop_once and event.loop_wait.
--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Yuck :)

Something can probably be done, though.

Changed in pydoctor:
assignee: nobody → mwhudson
status: New → Confirmed
Changed in pydoctor:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.