On Oct 17, 11:11 pm, iain duncan <[EMAIL PROTECTED]> wrote:
> On Wed, 2007-17-10 at 13:18 -0700, Wu-Man wrote:
> > Hi all,
>
> > I'm new to TurboGears. I was wondering if there is a preferred Python
> > source code editor or some sort of IDE environment for development in
> > TurboGears that anyone can recommend.
>
> I don't think there is any clear Gears specific winner. I personally
> like using GVIM for web dev with python because:
>
> - I find in web dev, especially templates and javascript, there is a lot
> of repetitive typing and editing, so making vim macros and functions is
> very useful
> - you can run python code on your text and evaluate python from within
> the editor
> - filtering the buffers through external perl one liners is very useful
> - I like using the same editor for everything and making html specific
> rules is easy
> - I *don't* find that remembering parameters or function signatures is
> ever a problem, so the lack of code completion doesn't bother me
>
Not quite true. Using CTRL+P (previous) or CTRL+N (next), you actually
get some sort of code completion. It's actually only looking for words
in any open buffers. But for me that's Good Enough. Context-sensitive
code completion would be nice, but with Python being such a dynamic
language that's very hard to implement. Say, you use __setattr__ on
some object. How is the editor to know that attribute without doing
some parsing. Which would be slow. Or a memory killer ;)
Btw: There is also a way to tell python to look inside additional
files for code-completion. Add this to your vimrc to automaticll load
the syntax-file of the loaded file to the completion list:
autocmd BufEnter * exec('setlocal complete+=k$VIMRUNTIME/
syntax/'.&ft.'.vim')
>
> YMMV!
> Iain
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---