Re: repeat items in a list

2016-03-27 Thread larudwer
how about sorted(["a", "b"]*3) ['a', 'a', 'a', 'b', 'b', 'b'] -- https://mail.python.org/mailman/listinfo/python-list

Re: repeat items in a list

2016-03-28 Thread larudwer
Am 27.03.2016 um 13:13 schrieb Antonio Caminero Garcia: On Sunday, March 27, 2016 at 11:52:22 AM UTC+2, larudwer wrote: how about >>>> sorted(["a", "b"]*3) ['a', 'a', 'a', 'b', 'b', 'b'] that&#x

Re: multiprocessing deadlock

2009-10-24 Thread larudwer
"Brian Quinlan" schrieb im Newsbeitrag news:mailman.1895.1256264717.2807.python-l...@python.org... > > Any ideas why this is happening? > > Cheers, > Brian IMHO your code is buggy. You run in an typical race condition. consider following part in your code: > def _make_some_processes(q): >

Re: Multiprocessing problem

2010-03-03 Thread larudwer
Hello Matt I think the problem is here: for n in xrange(10): outqueue.put(str(n))<-- fill the queue with 10 elements try: r = inqueue.get_nowait() <-- queue is still empty because processes need some time to start r

Re: Problem with multithreading

2009-06-25 Thread larudwer
"Jeffrey Barish" schrieb im Newsbeitrag news:mailman.2091.1245902997.8015.python-l...@python.org... > Jeffrey Barish wrote: > >> I have a program that uses multithreading to monitor two loops. When >> something happens in loop1, it sends a message to loop2 to have it >> execute >> a command.

psyco V2 beta2 benchmark

2009-07-04 Thread larudwer
just out of curiosity i've downloaded the latest Version of Psyco V2 Beta 2 and run the benchmarks against the old Version of psyco 1.6 Because it might be of common interest, i am posting the results here. My machine is a Pentium D 3.2 Ghz running Windows XP SP 3 and Python 2.6.2. Psyco V2 was

Re: weak reference callback

2009-08-30 Thread larudwer
"Paul Pogonyshev" schrieb im Newsbeitrag news:mailman.658.1251577954.2854.python-l...@python.org... > Hi, > > Is weak reference callback called immediately after the referenced > object is deleted or at arbitrary point in time after that? I.e. is > it possible to see a dead reference before the