Re: [gedit-list] python class browser updated
- From: Frederic Back <fredericback gmail com>
- To: Steve Frécinaux <nudrema gmail com>
- Cc: gedit-list gnome org
- Subject: Re: [gedit-list] python class browser updated
- Date: Sat, 08 Apr 2006 16:00:50 +0200
Hello Steve,
> A quick bug I noticed while looking at that file [1]: nested classes are
> not handled correctly. I didn't test for nested functions.
> Example:
>
> > class _ReadLine(object):
> > class History(object):
> > def __init__(self):
Yes, this is correct. At the moment only two levels are parsed: Toplevel
classes and functions, and class methods (ie. functions inside a class).
I thought this behaviour would satisfy most use cases. Personally, I
never use nested classes, but a lot of nested one-liner functions, which
I don't want to see in the overview. Anyway, I've put it on my to do
list, and will implement it eventually.
> Good luck, that plugin looks promising ! (are you planning to do the
> same for, say, C functions ? :D)
We should wait for code folding to be implemented, since I expect
folding at braces to be one folding method. A 'function browser' for C
would then be really easy to code (if Paolo provides python wrappers,
that is :-) )
Regards,
Fred
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]