On Aug 11, 2:52 pm, Paul Rubin wrote:
> EW writes:
> > Well I cared because I thought garbage collection would only happen
> > when the script ended - the entire script. Since I plan on running
> > this as a service it'll run for months at a time without ending. So I
On Aug 11, 2:16 pm, Paul Rubin wrote:
> EW writes:
> > I thought about doing it that way and I could do it that way but it
> > still seems like there should be a way to clean up Queues on my own.
> > If I did it this way then I guess I'd be relying on garbage collection
On Aug 11, 1:55 pm, MRAB wrote:
> EW wrote:
>
> [snip]
>
>
>
> > So here the P2 thread has ended and gone away but I still have his
> > Queue lingering.
>
> > So on a thread I can use is_alive() to check status and use join() to
> > clean up but I don
On Aug 11, 1:18 pm, Paul Rubin wrote:
> EW writes:
> > I also might have different consumer threads do
> > different tasks (for example one might write to a log and one might
> > write to SQL) so that again means I can't plan for a set ratio of
> > consumers t
On Aug 11, 12:55 pm, EW wrote:
> Hi
>
> I'm writing a multithreaded app that relies on Queues to move data
> between the threads. I'm trying to write my objects in a general way
> so that I can reuse them in the future so I need to write them in such
> a way that I
On Aug 11, 12:39 pm, fuglyducky wrote:
> On Aug 11, 9:31 am, Pinku Surana wrote:
>
>
>
>
>
> > On Aug 11, 12:07 pm, fuglyducky wrote:
>
> > > I am a complete newbie to Python (and programming in general) and I
> > > have no idea what I'm missing. Below is a script that I am trying to
> > > work
Hi
I'm writing a multithreaded app that relies on Queues to move data
between the threads. I'm trying to write my objects in a general way
so that I can reuse them in the future so I need to write them in such
a way that I don't know how many producer and how many consumer
threads I might need.
This will work:
sample_string=""
def gen_header(sample_string=""):
HEADER = """
mymultilinestringhere
"""
sample_string+= HEADER
return sample_string
def gen_nia(sample_string=""):
NIA = """
ano
Hi All,
I'm looking for some guidance on a better way to read eventlogs
from windows servers. I've written a handy little app that relies on
WMI to pull the logs an in all my testing it worked great. When I
deployed it, however, WMI choked on servers with a lot of logs. I've
tried pulling t
This does exactly what I needed! Thanks! Not sure what Windows
Management Instrumentation is, but I'll look into it now.
Eric
--
http://mail.python.org/mailman/listinfo/python-list
I believe that would shutdown the computer you were physically at, but
it wouldn't shutdown the computer down the hall over the LAN like this
script was meant to do.
--
http://mail.python.org/mailman/listinfo/python-list
I have a problem when using the python script found here:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/360649
It is a script to remotely shutdown a windows computer. When I use it,
the computer shuts down, but doesn't power off like with a regular
shutdown. It stays on the "Safe to po
12 matches
Mail list logo