Re: How to run python script in emacs

2009-09-27 Thread devilkin
On 9月27日, 下午12时43分, Nobody nob...@nowhere.com wrote:
 On Sat, 26 Sep 2009 08:54:49 -0700, devilkin wrote:
  I'm just starting learning python, and coding in emacs. I usually
  split emacs window into two, coding in one, and run script in the
  other, which is not very convenient. anyone can help me with it? is
  there any tricks like emacs short cut?

 According to C-h m:

 M-C-x   py-execute-def-or-class
 C-c !   py-shell
 C-c |   py-execute-region
 C-c return  py-execute-import-or-reload
 C-c C-c py-execute-buffer
 C-c C-s py-execute-string

 Also, C-c ? from within a python-mode buffer provides an introductory
 tutorial on python-mode.

Thanks, I tried C-c C-c, it gives no output, perhaps because I'm using
emacs on Windows. I'll test it on Ubuntu later.
and does the python-mode support auto-complete?
-- 
http://mail.python.org/mailman/listinfo/python-list


How to run python script in emacs

2009-09-26 Thread devilkin
I'm just starting learning python, and coding in emacs. I usually
split emacs window into two, coding in one, and run script in the
other, which is not very convenient. anyone can help me with it? is
there any tricks like emacs short cut?

also please recommand some emacs plug-ins for python programming, i'm
also beginner in emacs.currently i'm only using python.el. Are any
plugins supply code folding and autocomplete?

BTW, I'm not a english native speaker, any grammer mistakes, please
correct them. :)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: easy question, how to double a variable

2009-09-24 Thread devilkin
On 9月22日, 上午4时49分, daggerdvm dagger...@yahoo.com wrote:
 you brain needs error checking!

this kid knows error checking...may be he know exceptions as well
-- 
http://mail.python.org/mailman/listinfo/python-list