Cheryl Sabella added the comment:
I've retested this under 3.8 and the caret is now positioned at the first
character in the line, therefore I'm closing this issue as resolved.
--
nosy: +cheryl.sabella
resolution: -> works for me
stage: -> resolved
status: open -> closed
versions:
Martin Panter added the comment:
Some relevant info I wrote in Issue 25677:
‘The caret points to the character _before_ offset. . . . In some cases (e.g.
the line “1 +”), the offset is the string index _after_ the error. But in the
case of “1;1 + 1 = 2”, offset is the index where the error
New submission from daniel hahler:
Given the following file `t-expected-indent.py`:
```
if 1:
foo
```
python t-expected-indent.py reports:
```
File "t-expected-indent.py", line 2
foo
^
IndentationError: expected an indented block
```
However, it should get reported fo
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 key should add
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('/var/www/html/mydomain.com
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 because the code that the error refers to *is* indented
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
I'm perplexed because the code that the error refers
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 because the code that the error refers to *is* indented:
with open
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
--
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 the real
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
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 troll to get your
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
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.html
2)how can i overcome
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.
1)what does this mean?
It'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 know. I just find it silly that a
[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
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
messed a
[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 known it but just was reminded
Haha. How can I fix this!
--
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
21 matches
Mail list logo