On Nov 2, 2006, at 10:53 AM, Paul McNett wrote:

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.

I've run into a lot of people who use tabs but who convert to spaces for "public consumption" because of the pressure to use spaces.

There are certain things I miss about spaces, such as lining up continued lines so it "looks good",

Keep in mind that what "looks good" in your monospaced font looks terrible in my proportional font.

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. ;-)

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.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com



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

Reply via email to