Hello, Regarding tabs...
quoting http://www.python.org/dev/peps/pep-0008/ Tabs or Spaces? Never mix tabs and spaces. The most popular way of indenting Python is with spaces only. The second-most popular way is with tabs only. Code indented with a mixture of tabs and spaces should be converted to using spaces exclusively. When invoking the Python command line interpreter with the -t option, it issues warnings about code that illegally mixes tabs and spaces. When using -tt these warnings become errors. These options are highly recommended! For new projects, spaces-only are strongly recommended over tabs. Most editors have features that make this easy to do. ==End quote== Jeff Anderson almostvindiesel wrote:
Is it possible to change the python interpreter to treat a single tab character the same as 4 space characters (rather than 8)? On Jan 6, 7:40 pm, Darryl Ross <[EMAIL PROTECTED]> wrote:>> I was having problems with my text editor. For some reason Python >> didn't like the way it handled tabs/spaces. I stopped using tabs and >> started using spaces, and that seemed to fix the problem.Your solution of using spaces instead of tabs to indent worked perfectly!The python interpreter will treat a single tab character the same as 8 space characters, so if you indent using 4 spaces then a tab is the same as two indents. Regards Darryl signature.asc 1KDownload--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---
signature.asc
Description: OpenPGP digital signature