how about
sorted(["a", "b"]*3)
['a', 'a', 'a', 'b', 'b', 'b']
--
https://mail.python.org/mailman/listinfo/python-list
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
"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):
>
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
"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.
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
"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