Am 2006-11-02 um 17:03 schrieb Ed Leafe:

I agree with the sentiment against using different indentation for different Python projects. Whenever I try to help people on wxPython-users or python-list, I have to remember not to press tab in their source code because 99.5% of Python users seem to use spaces instead of tabs.

Most good editors for Python (I use SPE) convert a tab key press to four spaces, so no need to think...

I myself would never decide to make spaces the default, but while we use Python by Guido, we should use Guido's preference, and
that's 4 spaces.
But I won't continue to discuss this.

I guess it wouldn't be too hard to have AppWizard convert leading tabs to spaces as one of the final steps when writing out a generated file. I guess we'd also have to allow the user to specify the number of spaces, since some people like 3, others 8, etc.
Maybe have a small checkbox tucked away at the bottom of the next- to-last page with small type that says "Use spaces instead of tabs". If they check that, show another page that allows them to set the spaces-per-indentation value. You might also add a witty remark about the inferiority of spaces for indentation, but I'll understand if you don't. ;-)

I'd be glad if you could add that checkbox, but I don't think you'll need anything other that tabs or 4 spaces.

Is this a worthwhile endeavor? If we do it in AppWizard we'll probably be asked to do it elsewhere too, such as in the class designer, report designer, etc. etc.
We aren't generating code anywhere else. The Class Designer creates a .py file; users can type whatever code they like in the editor, using spaces or tabs.

I never used the IDE parts yet; I thought you would provide skeletons or snippets, so I related to "generated code" and not only AppWizard.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
http://www.cacert.org (I'm an assurer)



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to