Re: [IronPython] Using blocks separators instead of indentation

2007-08-13 Thread Joe Mason
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

Re: [IronPython] Using blocks separators instead of indentation

2007-08-13 Thread Thane Plummer
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

Re: [IronPython] Using blocks separators instead of indentation

2007-08-13 Thread Thane Plummer
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: >> &

Re: [IronPython] Using blocks separators instead of indentation

2007-08-13 Thread Curt Hagenlocher
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

Re: [IronPython] Using blocks separators instead of indentation

2007-08-13 Thread Ori
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):

Re: [IronPython] Using blocks separators instead of indentation

2007-08-13 Thread Curt Hagenlocher
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 !=

Re: [IronPython] Using blocks separators instead of indentation

2007-08-13 Thread Ori
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

Re: [IronPython] Using blocks separators instead of indentation

2007-08-13 Thread Dino Viehland
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

Re: [IronPython] Using blocks separators instead of indentation

2007-08-13 Thread Mohammad Tayseer
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

Re: [IronPython] Using blocks separators instead of indentation

2007-08-13 Thread Matt Clinton
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

Re: [IronPython] Using blocks separators instead of indentation

2007-08-12 Thread Sanghyeon Seo
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

[IronPython] Using blocks separators instead of indentation

2007-08-12 Thread Ori
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.