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 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 err
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* i
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_val+sgi_val
^
Inden
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 behaviour you're
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 "./cont-mcs", line 264
>> mcs1 = ht_val+cck_val+green_val
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_val+sgi_val
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: unindent do
> 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/
> Note: for your indentation problem, try to use an editor allowing to
> display tab and spaces and then identify the problem location, or replace
> all tabs by 4 spaces and configure the editor to only use spaces.
It would be very helpful when Python would warn you when there are tabs in
your
"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
desktop a écrit :
> I have this class:
>
> class case(blop.case):
> def __init__(self, n, a, b):
> blop.case.__init__(self)
> print 'Monty Python's Flying Circus has a ' within it...'
> ...
> ...
>
> But I get an error when I run the .py script from shell saying:
>
> print
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
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
"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
23 matches
Mail list logo