-- Original Message
>>>> From: jzakiya <[EMAIL PROTECTED]>
>>>> To: [EMAIL PROTECTED]
>>>> Sent: Thursday, November 13, 2008 5:06:53 PM
>>>> Subject: Python IF THEN chain equivalence
>
On Fri, 14 Nov 2008 01:24:32 +0100, M.-A. Lemburg wrote:
>> Apparently you haven't seen
>> any Forth, assembly, et al code. All you're doing is having the branch
>> point for each conditional be the end of the chain, otherwise it falls
>> through to the code after the conditional. This is done al
On 14 Nov, 00:19, jzakiya <[EMAIL PROTECTED]> wrote:
>
> It's interesting to see people think it's strange to have code that
> has multiple nested levels of IF THEN. Apparently you haven't seen
> any Forth, assembly, et al code.
[...]
> Just as a suggestion :-) a little humility would go a long
Grant Edwards wrote:
On 2008-11-14, Ethan Furman <[EMAIL PROTECTED]> wrote:
jzakiya wrote:
I'm translating a program in Python that has this IF Then chain
IF x1 < limit: --- do a ---
IF x2 < limit: --- do b ---
IF x3 < limit: --- do c ---
.-
On 2008-11-14, Ethan Furman <[EMAIL PROTECTED]> wrote:
> jzakiya wrote:
>> I'm translating a program in Python that has this IF Then chain
>>
>>
>> IF x1 < limit: --- do a ---
>> IF x2 < limit: --- do b ---
>> IF x3 < limit: --- do c ---
>>.-
>>
jzakiya wrote:
I'm translating a program in Python that has this IF Then chain
IF x1 < limit: --- do a ---
IF x2 < limit: --- do b ---
IF x3 < limit: --- do c ---
.-
--
IF x10 < limt: --- do j ---
On Nov 13, 4:39 pm, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2008-11-13, jzakiya <[EMAIL PROTECTED]> wrote:
>
> > I'm translating a program in Python that has this IF Then chain
>
> > IF x1 < limit: --- do a ---
> > IF x2 < limit: --- do b ---
> > IF x3 < limit: --- do c ---
jzakiya:
> I asked a very narrow question about a very specific language
> mechanism, and I know exactly what and why I'm doing what I'm doing.
You are of course free to use Python as you want. And probably some of
the answers weren't fully polite.
But it's interesting to see why they have given s
On 2008-11-14 00:19, jzakiya wrote:
> On Nov 13, 5:48 pm, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote:
>>>> From: jzakiya <[EMAIL PROTECTED]>
>>>> To: [EMAIL PROTECTED]
>>>> Sent: Thursday, November 13, 2008 5:06:53 PM
>>>> Su
akiya <[EMAIL PROTECTED]>
> >> To: [EMAIL PROTECTED]
> >> Sent: Thursday, November 13, 2008 5:06:53 PM
> >> Subject: Python IF THEN chain equivalence
>
> >> I'm translating a program
y language. In Python, you will end up with code indented 40+
>> characters if you keep going.
>>
>> - Original Message
>> From: jzakiya <[EMAIL PROTECTED]>
>> To: [EMAIL PROTECTED]
>> Sent: Thursday, November 13, 2008 5:06:53 PM
>> Subject:
On 2008-11-13, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2008-11-13, jzakiya <[EMAIL PROTECTED]> wrote:
>> I'm translating a program in Python that has this IF Then chain
>>
>>
>> IF x1 < limit: --- do a ---
>> IF x2 < limit: --- do b ---
>> IF x3 < limit: --- do c ---
>>
On 2008-11-13, jzakiya <[EMAIL PROTECTED]> wrote:
> I'm translating a program in Python that has this IF Then chain
>
>
> IF x1 < limit: --- do a ---
> IF x2 < limit: --- do b ---
> IF x3 < limit: --- do c ---
>.-
> --
>
ith code indented 40+
> characters if you keep going.
>
> - Original Message
> From: jzakiya <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Sent: Thursday, November 13, 2008 5:06:53 PM
> Subject: Python IF THEN chain equivalence
>
> I'm translating a program in Pytho
akiya <[EMAIL PROTECTED]>
To: python-list@python.org
Sent: Thursday, November 13, 2008 5:06:53 PM
Subject: Python IF THEN chain equivalence
I'm translating a program in Python that has this IF Then chain
IF x1 < limit: --- do a ---
IF x2 < limit: --- do b ---
IF
jzakiya schrieb:
I'm translating a program in Python that has this IF Then chain
IF x1 < limit: --- do a ---
IF x2 < limit: --- do b ---
IF x3 < limit: --- do c ---
.-
--
IF x10 < limt: --- do j ---
I'm translating a program in Python that has this IF Then chain
IF x1 < limit: --- do a ---
IF x2 < limit: --- do b ---
IF x3 < limit: --- do c ---
.-
--
IF x10 < limt: --- do j ---
T
17 matches
Mail list logo