I'm new to Python and have been doing work converting a few apps from Perl
to Python. I can not figure out the comparable Python structures for
multi-variable for loop control.
Examples:
# In Perl
for($i = 0, j = 0; $i I_MAX $j J_MAX; $i+=5, $j += 10)
{
. do something
}
// In Java
On Fri, Jul 18, 2008 at 4:21 PM, mark floyd [EMAIL PROTECTED] wrote:
I'm new to Python and have been doing work converting a few apps from Perl
to Python. I can not figure out the comparable Python structures for
multi-variable for loop control.
Examples:
# In Perl
for($i = 0, j = 0; $i
On Fri, Jul 18, 2008 at 12:21:49PM -0700, mark floyd wrote:
I'm new to Python and have been doing work converting a few apps
from Perl to Python. I can not figure out the comparable Python
structures for multi-variable for loop control.
[...]
I spent a good part of yesterday looking for a way
On Fri, Jul 18, 2008 at 05:28:32PM -0400, Derek Martin wrote:
def control(i, j):
print i,j
if not (i 5 or j 10):
Rather, if not (i 5 and j 10):
return
else:
control(some_increment_function(i), other_increment_function(j))
--
Derek D. Martin
I have a little problem. I have a script that is in the scheduler
(win32). But every now and then I update this script and I dont want
to go to every computer and update it.
Can't you just put the script on a network share?
Tobiah
--
Posted via a free Usenet account from
On Mar 22, 1:11 am, MRAB [EMAIL PROTECTED] wrote:
On Mar 21, 11:48 am, fkallgren [EMAIL PROTECTED] wrote: Hi.
I have a little problem. I have a script that is in the scheduler
(win32). But every now and then I update this script and I dont want
to go to every computer and update it. So now
On Mar 21, 12:48 pm, fkallgren [EMAIL PROTECTED] wrote:
Hi.
I have a little problem. I have a script that is in the scheduler
(win32). But every now and then I update this script and I dont want
to go to every computer and update it. So now I want the program to 1)
check for new version of
Hi.
I have a little problem. I have a script that is in the scheduler
(win32). But every now and then I update this script and I dont want
to go to every computer and update it. So now I want the program to 1)
check for new version of the script, 2) if there is a new version,
copy that verision
On Mar 21, 6:48 am, fkallgren [EMAIL PROTECTED] wrote:
Hi.
I have a little problem. I have a script that is in the scheduler
(win32). But every now and then I update this script and I dont want
to go to every computer and update it. So now I want the program to 1)
check for new version of
On Mar 21, 11:48 am, fkallgren [EMAIL PROTECTED] wrote:
Hi.
I have a little problem. I have a script that is in the scheduler
(win32). But every now and then I update this script and I dont want
to go to every computer and update it. So now I want the program to 1)
check for new version of
On 21 mar, 15:11, MRAB [EMAIL PROTECTED] wrote:
On Mar 21, 11:48 am, fkallgren [EMAIL PROTECTED] wrote: Hi.
I have a little problem. I have a script that is in the scheduler
(win32). But every now and then I update this script and I dont want
to go to every computer and update it. So now I
On Mar 21, 4:48 am, fkallgren [EMAIL PROTECTED] wrote:
Hi.
I have a little problem. I have a script that is in the scheduler
(win32). But every now and then I update this script and I dont want
to go to every computer and update it. So now I want the program to 1)
check for new version of
12 matches
Mail list logo