On Wed, May 29, 2013 at 2:53 AM, Peter Otten <__pete...@web.de> wrote:
> Chris Angelico wrote:
>
>> On Wed, May 29, 2013 at 2:19 AM, Peter Otten <__pete...@web.de> wrote:
>>> Solution: configure your editor to use four spaces for indentation.
>>
>> ITYM eight spaces.
>
> I meant: one hit of the Tab
Chris Angelico wrote:
> On Wed, May 29, 2013 at 2:19 AM, Peter Otten <__pete...@web.de> wrote:
>> Solution: configure your editor to use four spaces for indentation.
>
> ITYM eight spaces.
I meant: one hit of the Tab key should add spaces up to the next multiple of
four. Which implies
> But t
On Wed, May 29, 2013 at 2:19 AM, Peter Otten <__pete...@web.de> wrote:
> Solution: configure your editor to use four spaces for indentation.
ITYM eight spaces. But the real solution is to not mix tabs and
spaces. Stick to one or the other and you're safe.
ChrisA
--
http://mail.python.org/mailman
JackM wrote:
> Having a problem getting a py script to execute. Got this error:
>
> File "/scripts/blockIPv4.py", line 19
> ip = line.split(';')[0]
> ^
> IndentationError: expected an indented block
>
>
> I'm perplexed bec
On Tue, 28 May 2013 11:32:06 -0400, JackM wrote:
> Having a problem getting a py script to execute. Got this error:
>
> File "/scripts/blockIPv4.py", line 19
> ip = line.split(';')[0]
> ^
> IndentationError: expected an indented block
>
>
On 05/28/2013 09:32 AM, JackM wrote:
> Having a problem getting a py script to execute. Got this error:
>
> File "/scripts/blockIPv4.py", line 19
> ip = line.split(';')[0]
> ^
> IndentationError: expected an indented block
> I'm perplexed
Having a problem getting a py script to execute. Got this error:
File "/scripts/blockIPv4.py", line 19
ip = line.split(';')[0]
^
IndentationError: expected an indented block
I'm perplexed because the code that the error refers to *is* indented:
with open(
On 12/10/2009 6:32 AM, hong zhang wrote:
List,
I got error says IndentationError in end of line.
I could not figure out why. See following:
$ ./cont-mcs
File "./cont-mcs", line 264
mcs1 = ht_val+cck_val+green_val+fat_v
hong zhang writes:
> I got error says IndentationError in end of line.
> I could not figure out why.
Nor can we, without seeing the code to compare indentation levels.
> Thanks for help.
Please construct a minimal example (not a whole huge program), that we
can run to show the
On Fri, 11 Dec 2009 12:57:15 +1100, Lie Ryan wrote:
> On 12/10/2009 6:32 AM, hong zhang wrote:
>> List,
>>
>> I got error says IndentationError in end of line.
>> I could not figure out why. See following:
>>
>> $ ./cont-mcs
>>File ".
En Wed, 09 Dec 2009 16:32:18 -0300, hong zhang
escribió:
I got error says IndentationError in end of line.
I could not figure out why. See following:
$ ./cont-mcs
File "./cont-mcs", line 264
mcs1 = ht_val+cck_val+green_val+fat_v
hong zhang wrote:
List,
I got error says IndentationError in end of line.
I could not figure out why. See following:
$ ./cont-mcs
File "./cont-mcs", line 264
mcs1 = ht_val+cck_val+green_val+fat_val+sgi_val
^
IndentationError
List,
I got error says IndentationError in end of line.
I could not figure out why. See following:
$ ./cont-mcs
File "./cont-mcs", line 264
mcs1 = ht_val+cck_val+green_val+fat_val+sgi_val
^
IndentationError: unindent does not
> It would be very helpful when Python would warn you when there are tabs in
> your source.
invoke python with the -t option for warnings about tabs or -tt for errors.
-Dave
--
http://mail.python.org/mailman/listinfo/python-list
> How is he supposed to run MS notepad on X11? :)
>
I am saying MS notepad, but any software (running on Linux) showing you
clearly the tabs will help.
It would also be very convenient when python would deal with tabs in a human
friendly way.
Wim Vogelaar, http://home.wanadoo.nl/w.h.vogelaar/
in
your source.
So instead of only saying: "IndentationError: unexpected indent"
there could be an additional message saying: "there are tab characters in
that line, please remove them".
Wim Vogelaar, http://home.wanadoo.nl/w.h.vogelaar/
--
http://mail.python.org/mailman/listinfo/python-list
"Wim Vogelaar" wrote:
> You have possibly unvisible tab characters in your file.
> Just copy your lines to the simple MS notepad and try again.
How is he supposed to run MS notepad on X11? :)
Regards,
Björn
P.S.: YES, I know there is wine.
--
BOFH excuse #126:
it has Intel Inside
--
htt
n the .py script from shell saying:
>
> print 'Monty Python's Flying Circus has a ' within it...'
> ^
> IndentationError: unexpected indent
>
> I have tried to indent the print statement 8 blanks but that does not
> help. Any hints?
You have
You have possibly unvisible tab characters in your file.
Just copy your lines to the simple MS notepad and try again.
Wim Vogelaar, http://home.wanadoo.nl/w.h.vogelaar/
--
http://mail.python.org/mailman/listinfo/python-list
hon's Flying Circus has a ' within it...'
^
IndentationError: unexpected indent
I have tried to indent the print statement 8 blanks but that does not
help. Any hints?
--
http://mail.python.org/mailman/listinfo/python-list
Antonios Katsikadamos wrote:
> hi all. I am using python 2.4. I have to run an older python code and
> when i run it i get the following message
>
> IndentationError: expected an indented block.
>
> 1)what does this mean?
Just what it did the first time you asked. This is a
hi all. I am using python 2.4. I have to run an older python code and when i run it i get the following messageIndentationError: expected an indented block.1)what does this mean?2)how can i overcome this problemThanks for any advice.kind regards,Antonios
Sponsored LinkMortgage rates near his
Please don't post HTML message bodies to a public forum.
Antonios Katsikadamos <[EMAIL PROTECTED]> writes:
> hi all. I am using python 2.4. I have to run an older python code
> and when i run it i get the following message
> IndentationError: expected an indented block.
>
Antonios Katsikadamos пишет:
> hi all. I am using python 2.4. I have to run an older python code and when i
> run it i get the following message
>
> IndentationError: expected an indented block.
>
> 1)what does this mean?
http://www.python.org/doc/2.4.3/ref/indentation.h
hi all. I am using python 2.4. I have to run an older python code and when i run it i get the following messageIndentationError: expected an indented block.1)what does this mean?2)how can i overcome this problemThanks for any advice.kind regards,Antonios
Sponsored Link
Free Uniden 5.8GHz Phone S
"Georg Brandl" <[EMAIL PROTECTED]> Wrote:
| [EMAIL PROTECTED] wrote:
| > Hendrik van Rooyen wrote:
| >> <[EMAIL PROTECTED]> Wrote:
| >>
| >>
| >> |
| >> | Haha. How can I fix this!
| >> |
| >> |
| >> |
| >>
| >> Use either tabs, or spaces, but not both
| >>
| >> - Hendrik
| >
| > Haha. I kn
[EMAIL PROTECTED] wrote:
> Hendrik van Rooyen wrote:
>> <[EMAIL PROTECTED]> Wrote:
>>
>>
>> |
>> | Haha. How can I fix this!
>> |
>> |
>> |
>>
>> Use either tabs, or spaces, but not both
>>
>> - Hendrik
>
> Haha. I know. I just find it silly that a language insists on
> indentation. I'd long k
Hendrik van Rooyen wrote:
> <[EMAIL PROTECTED]> Wrote:
>
>
> |
> | Haha. How can I fix this!
> |
> |
> |
>
> Use either tabs, or spaces, but not both
>
> - Hendrik
Haha. I know. I just find it silly that a language insists on
indentation. I'd long known it but just was reminded of it when I
m
<[EMAIL PROTECTED]> Wrote:
|
| Haha. How can I fix this!
|
|
|
Use either tabs, or spaces, but not both
- Hendrik
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Haha. How can I fix this!
Haha to you too. Position your cursor at the scene of the crime. Hit
the space-bar 4 times. Hit Ctrl-s. Try running it again.
If you would prefer a more sensible answer, you might like to ask a
more sensible question, which would include a cop
Haha. How can I fix this!
--
http://mail.python.org/mailman/listinfo/python-list
Why does py_compile print IndentationError in a different format than
SyntaxError? It makes it harder to parse the output in a non-python
program.
Sorry: IndentationError: ('unindent does not match any outer indentation
level', ('foo.py', 19, 17, '\t\t\t return 0.0 \n
32 matches
Mail list logo