On 8/13/07, Ori <[EMAIL PROTECTED]> wrote:
>
>
> OK I got the point. I have to use several statements in a single line.
>
> For exmpale, something like:
> i = 1; if (i >=1): i = 0
>
> is there a way to do it? Is there a replacement to the newline char?
Why does it have to be in a single line? Ju
x27;"; exec(mycommand)
Test passed
>>>
May the Python gods have mercy!
--Thane
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ori
Sent: Monday, August 13, 2007 5:23 PM
To: users@lists.ironpython.com
Subject: Re: [IronPython] Using blocks separ
5:23 PM
To: users@lists.ironpython.com
Subject: Re: [IronPython] Using blocks separators instead of indentation
Thanks but I did not ask if it is ugly or not. I just need it.
Is there a way to do it?
Curt Hagenlocher wrote:
>
> On 8/13/07, Ori <[EMAIL PROTECTED]> wrote:
>>
&
On 8/13/07, Ori <[EMAIL PROTECTED]> wrote:
>
>
> Thanks but I did not ask if it is ugly or not. I just need it.
> Is there a way to do it?
In my email, I also gave two examples of legal Python code with more than
one statement per line.
In general, you can put any number of commands on the same
Thanks but I did not ask if it is ugly or not. I just need it.
Is there a way to do it?
Curt Hagenlocher wrote:
>
> On 8/13/07, Ori <[EMAIL PROTECTED]> wrote:
>>
>>
>> OK I got the point. I have to use several statements in a single line.
>>
>> For exmpale, something like:
>> i = 1; if (i >=1):
On 8/13/07, Ori <[EMAIL PROTECTED]> wrote:
>
>
> OK I got the point. I have to use several statements in a single line.
>
> For exmpale, something like:
> i = 1; if (i >=1): i = 0
>
> is there a way to do it? Is there a replacement to the newline char?
This is legal Python:
a = 1; b = 2
if a !=
OK I got the point. I have to use several statements in a single line.
For exmpale, something like:
i = 1; if (i >=1): i = 0
is there a way to do it? Is there a replacement to the newline char?
Thanks.
Ori wrote:
>
> Hello,
>
> Is there a way to use code blocks (like { and } in other lang
nt: Monday, August 13, 2007 7:54 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Using blocks separators instead of indentation
Ori,
I'm pretty sure there isn't - that's a basic 'feature' of Python itself:
code blocks are defined by whitespace.
(one of many bug-re
sers@lists.ironpython.com
Subject: [IronPython] Using blocks separators instead of indentation
Hello,
Is there a way to use code blocks (like { and } in other languages)
instead
of indentation?
Thanks,
Ori
--
View this message in context:
http://www.nabble.com/Using-blocks-separators-instead-of-i
o. Why do you need to?
Cheers,
-- Matt
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ori
Sent: Monday, August 13, 2007 12:34 AM
To: users@lists.ironpython.com
Subject: [IronPython] Using blocks separators instead of indentation
Hello,
Is there a way t
2007/8/13, Ori <[EMAIL PROTECTED]>:
> Is there a way to use code blocks (like { and } in other languages) instead
> of indentation?
>>> from __future__ import braces
SyntaxError: not a chance
--
Seo Sanghyeon
___
Users mailing list
Users@lists.ironpyth
Hello,
Is there a way to use code blocks (like { and } in other languages) instead
of indentation?
Thanks,
Ori
--
View this message in context:
http://www.nabble.com/Using-blocks-separators-instead-of-indentation-tf4259431.html#a12121490
Sent from the IronPython mailing list archive at Nabble.
12 matches
Mail list logo