> I've read your code. Frankly I don't understand your problem. I also don't
see any occurrence of "health".
There isn't a reference to health here. My goal is to have this code act as
a checker for health, fatigue, time_remaining, or any other sort of
statistic you'd like to throw into it. My prob
hi,
thanks everyone. i tried sys.exit() inside one.py and it works to return to DOS
prompt.
thanks
tcl
From: tc...@hotmail.com
To: bgai...@gmail.com; tutor@python.org
Date: Mon, 4 Apr 2011 05:10:50 +
Subject: Re: [Tutor] Calling another script
hi,
i opened a cmd DOS prompt to e
hi,
i opened a cmd DOS prompt to execute one.py. it works to execute codes from
two.py and three.py. yes, you are fight it will not re-execute the module.
is there a way to do it? i want after the python script finishes execution will
return the control to the DOS prompt instead of leaving as
This may work:
from pprint import pprint
plan = """xo
xo
ox
oo
ox
ox
"""
width = plan.index("\n")
height = plan.count("\n")
a = [[w, h] for h in xrange(height) for w in xrange(width)]
for (xy, c) in zip(a, plan.replace("\n", "")):
xy.append(c)
pprint(a)
|46>%run tes
On 4/3/2011 11:58 PM, tee chwee liong wrote:
hi,
i want to read from a file which will indicate which operation to
execute. so i'm using configparser module. i want one.py to read a
configuration file and executes two.py and three.py. however, it only
executes two.py and not three.py codes. p
hi,
i want to read from a file which will indicate which operation to execute. so
i'm using configparser module. i want one.py to read a configuration file and
executes two.py and three.py. however, it only executes two.py and not three.py
codes. pls help advise.
thanks
tcl
+
On 4/3/2011 9:55 PM, Ryan Strunk wrote:
Hi list,
Hi
I've read your code. Frankly I don't understand your problem. I also
don't see any occurrence of "health".
Could you point to a specific line of code, explain what you want and
what you are getting.
Also your description of the program
On Sun, Apr 03, 2011 at 08:55:25PM -0500, Ryan Strunk wrote:
> I understand that python passes variables by value and not by reference
You understand wrongly. Python is neither pass-by-value nor pass-by-reference.
I've written thousands of words on this topic before, so excuse me if I'm a
littl
On Fri, Apr 1, 2011 at 2:04 AM, Peter Otten <__pete...@web.de> wrote:
> David Crisp wrote:
>
>> Hello,
>>
>> I have a very simple question / problem I need answered. The problem
>> is imnot entirely sure of the correct terminology and langauge to use
>> to describe it. (One of the reasons im usin
Hi list,
I am in the midst of trying to code a game based entirely on audio cues, and
I've run into a bit of a snag when trying to monitor certain variables. I'll
lay out the framework of what I'm going for in the hope that it makes sense
when written down.
In a standard video game I could have a
markri...@gsoftcon.com wrote:
Hello everyone. Is there any code examples out there to on how to use the
prologix GPIB to USB converter?
Probably. What does this have to do with learning Python?
This is not a general "ask any computer-related question" list. It's not
even a general "ask anyth
wrote in message
news:1301863224.23037191@192.168.4.58...
Hello everyone. Is there any code examples out there to
on how to use the prologix GPIB to USB converter?
Googling
prologix gpib to usb converter python code
Got me
Resources for GPIB Controllers || Prologix, LLC
Prologix GPIB Config
Hello,
2011/4/3 Mateusz Koryciński
>
> (2) You have a *mess* of unreadable variable names. You have:
>>
>> w.steps w.x w.y w.world data.c data.n data.e data.s data.w data.cc
>>
>> (yes, you have data.c AND data.cc!!!) plus loop variables z i j and r,
>> and z is never used! How is anyone sup
Hello everyone. Is there any code examples out there to on how to use the
prologix GPIB to USB converter?
Mark R Rivet, Genesis Software Consulting
ASCT(Computer Technologies), BSIT/SE(Software Engineering)
Electrical Engineering Technician
Member IEEE, Computer Society
Do or do not; there i
On 04/04/11 00:14, ranjan das wrote:
>
> I have a list which I want to sort based on ('a','b','c') first and then
> based on (1,2,3)
>
> How do i do these using itemgetter() since the list is nested
>
> A=[('k3', ['b', 3]), ('k2', ['a', 1]), ('k1', ['a', 3]), ('k4', ['c', 2])]
>
> The solution
Hugo Arts wrote:
> 2011/4/3 "Andrés Chandía" :
>>
>>
>> I continue working with RegExp, but I have reached a point for wich I
>> can't find documentation, maybe there is no possible way to do it, any
>> way I throw the question:
>>
>> This is my code:
>>
>> contents = re.sub(r'Á',
>> "A", contents
I have a list which I want to sort based on ('a','b','c') first and then
based on (1,2,3)
How do i do these using itemgetter() since the list is nested
A=[('k3', ['b', 3]), ('k2', ['a', 1]), ('k1', ['a', 3]), ('k4', ['c', 2])]
The solution I am looking for is
A_sorted=[ ('k2', ['a', 1]), ('k1
2011/4/3 "Andrés Chandía" :
>
>
> I continue working with RegExp, but I have reached a point for wich I can't
> find
> documentation, maybe there is no possible way to do it, any way I throw the
> question:
>
> This is my code:
>
> contents = re.sub(r'Á',
> "A", contents)
> contents = re.
I continue working with RegExp, but I have reached a point for wich I can't find
documentation, maybe there is no possible way to do it, any way I throw the
question:
This is my code:
contents = re.sub(r'Á',
"A", contents)
contents = re.sub(r'á', "a",
contents)
contents = re.sub(r'
Hi,
Thanks for all yout responses! I will answer below each one (I hope it
wouldn't be a problem).
>
>
> Message: 1
> Date: Sat, 2 Apr 2011 23:45:49 +0100
> From: "Alan Gauld"
> To: tutor@python.org
> Subject: Re: [Tutor] 'for' iteration stop problem
> Message-ID:
> Content-Type: text/plain; f
20 matches
Mail list logo