python mode indentation problem

M

M Jared Finder

Xah said:
does anyone know why the Python mode in emacs uses spaces for first
level indentation but one tab for second level?

i'm using emacs 21.3.50.1.

You probably have tab-width set to 8 spaces, but indentation in python
set to 4 spaces.

-- MJF
 
X

Xah Lee

© ok, here's the ordeal.
©
© for i in range(5):
© print i
© for i in range(2):
© print i, 'tt'
© for i in [3]:
© print i
© for i in [32]:
© print i
©
© # 1 level, 4 space
© # 2 level, 1 tab
© # 3 level, 1 tab, 4 spaces
© # 4 level, 2 tabs.
©
© who the **** coded the python mode in emacs? fuckhead please peruse:
© http://xahlee.org/UnixResource_dir/writ/responsible_license.html
©
© PS Thanks for the tip on (setq-default indent-tabs-mode nil).
©
© Xah
© (e-mail address removed)
© http://xahlee.org/PageTwo_dir/more.html
 
T

Tim Peters

B

Bob Smith

Xah said:
© ok, here's the ordeal.
©
© for i in range(5):
© print i
© for i in range(2):
© print i, 'tt'
© for i in [3]:
© print i
© for i in [32]:
© print i
©
© # 1 level, 4 space
© # 2 level, 1 tab
© # 3 level, 1 tab, 4 spaces
© # 4 level, 2 tabs.
©
© who the **** coded the python mode in emacs? fuckhead please peruse:
© http://xahlee.org/UnixResource_dir/writ/responsible_license.html

I hope you never need a favor or interview for a job with someone who
reads news groups. You're committing eSuicide by posting insulting rants
such as this. All you accomplish is to isolate yourself.

Try to be friendly. Ideas are only half the battle... presentation is
the other half. You have some good and valid ideas, but your
presentation is offensive and condescending. Your ideas are like golden
coins wrapped in horse shit. Personally, I've had enough of your horse
shit... perhaps I speak for others as well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,816
Latest member
nipsseyhussle

Latest Threads

Top