How do you code in Python ???

Andrei Kulakov ak at silmarill.org
Fri May 17 16:01:25 EDT 2002


In article <409a56e2.0205170047.429beb44 at posting.google.com>, Shagshag wrote:
> Hello,
> 
> Newbie to python, i was wondering how *skilled* guys code with it :
> 
> By now to write a function i write it in a text editor (with coloured
> syntax), copy and paste it in idle try it, then go back to text
> editor to debug it and so on until i've tuned it like i want, then
> next function and so on until i complete module... And that's really
> boring theses permanent back and forth...
> 
> So how do you do it ? Which tools do you use ?
> 
> (i'm on window, freeware if possible or not to expensive...)
> 
> Another one is which are "standard" coding in Python ? 
> 
> (thing like initCap, postfix private atribute with "_" and so on)
> 
> Thanks in advance,
> 
> S13.
>

I think this wasn't mentioned yet: with a good editor, you can
execute code right from it. For example, in vim you can put a
line in .vimrc:

map ,p :!python % <cr>

When you hit ,p in command mode, it'll run current file through
python interpreter.

 - Andrei

-- 
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org



More information about the Python-list mailing list