Python Forum
Thread Rating:
  • 2 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Indentations
#1
Im on Mac in VSCode.

When I try to import function from another file and do from x import y all I get is red underline under import and error saying:
Quote:Cannot import 'loginServices' due to syntax error 'unindent does not match any outer indentation level (<unknown>
. Well, seems fair. At first glance

After doing heavy research, I found that, in accordance with this one cannot mix tabs and spaces.

My question is whats the difference? Tabs are simply group of spaces (4) right? Why is this introduced?


Messages In This Thread
Indentations - by macfanpl - Apr-27-2020, 08:59 AM
RE: Indentations - by buran - Apr-27-2020, 09:14 AM
RE: Indentations - by macfanpl - Apr-27-2020, 09:35 AM
RE: Indentations - by pyzyx3qwerty - Apr-27-2020, 10:35 AM
RE: Indentations - by buran - Apr-27-2020, 09:40 AM
RE: Indentations - by macfanpl - Apr-27-2020, 10:25 AM
RE: Indentations - by macfanpl - Apr-27-2020, 10:47 AM
RE: Indentations - by pyzyx3qwerty - Apr-27-2020, 10:51 AM
RE: Indentations - by buran - Apr-27-2020, 10:55 AM
RE: Indentations - by macfanpl - Apr-27-2020, 02:25 PM
RE: Indentations - by buran - Apr-27-2020, 02:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  comment indentations Skaperen 12 9,225 Jan-29-2017, 06:56 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020