On Wed, 25 Apr 2012, Prasad, Ramit wrote:
Useful to
know both though, since lots of people swear by % substitution.
And % formatting is slightly faster - if you end out doing tons of
formatting and you find your script isn't fast enough, it's worth taking a
look there.
-Wayne
_
In bash you can do this to see if a process is running:
[scarolan@kurobox:~/bin]$ kill -0 24275
[scarolan@kurobox:~/bin]$ echo $?
0
Is there a python equivalent? I tried using os.kill() but did not see
any way to capture the output.
___
Tutor maillist
On Thu, Apr 26, 2012 at 3:24 PM, Sean Carolan wrote:
> In bash you can do this to see if a process is running:
>
> [scarolan@kurobox:~/bin]$ kill -0 24275
> [scarolan@kurobox:~/bin]$ echo $?
> 0
>
> Is there a python equivalent? I tried using os.kill() but did not see
> any way to capture the out
On 04/26/2012 02:24 PM, Sean Carolan wrote:
> In bash you can do this to see if a process is running:
>
> [scarolan@kurobox:~/bin]$ kill -0 24275
> [scarolan@kurobox:~/bin]$ echo $?
> 0
>
> Is there a python equivalent? I tried using os.kill() but did not see
> any way to capture the output.
Yo
hi everyone,
I'm usting python 3.2 on windows, and I'm doing these GUI exercises using
tkinter.
I've created this simple window with two widgets (a label and a button) the
button is supposed to exit the root window, but the problem is it doesn't
seem to, for some reason. It looks like it is "try
Here is what I am trying to:
the application user chooses an image file. I want to store the image data in
a field in a sqlite database. My understanding from the reading I have done is
that I have to convert the image data into a string , which I can then store in
the database. Additionall
I recently asked the question how can I get graphic.py to work on my
edition of Python which is 2.7.2
The problem was identified by Python tutor from my error messages as:
"What that error is telling you is that you have a version
8.5.9 oftcl, but whatever you're trying to run is exp