hong Yu wrote:
> I am new to python.
> I was confused:
>
> >>> a = list('hello')
>
> >>> a
> ['h', 'e', 'l', 'l', 'o']
>
> I want to combine the items in the list into a string.
> So:
>
> >>> ''.join(a)
> 'hello'
>
> but:
>
> >>> str.join(a)
> Traceback (most recent call last):
> File "", line 1
On 10 Nov, 16:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> hii my friends;
> I want to create picture of security code.can i do it ?
> if yes,how , which module will help me?
> have you got a example that can create a picture whit my name
> pls help me
> thansk
> oruc
You may find the Pyt
On 10 Nov, 15:44, Johnston Jiaa <[EMAIL PROTECTED]> wrote:
> In my Python program (using Tkinter), I would like to have a window
> where the user will be able to draw a simple picture. I don't know
> where to begin.. can somehow give me a general idea how to do
> something like this?
>
> Also, I'd
On 10 Nov, 04:33, Bighead <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am currently working on a CGI deployed on an Apache server, which,
> given an arbitrary SQL, fetches raw data from a remote DB server and
> return them in a HTML page. This CGI works fine on quick SQLs.
>
> But when I try to run a slo
On Oct 23, 3:18 am, Brian Quinlan wrote:
> My test reduction:
>
> import multiprocessing
> import queue
>
> def _process_worker(q):
> while True:
> try:
> something = q.get(block=True, timeout=0.1)
> except queue.Empty:
> return
> else:
>
>
> Hey Paul,
>
> I guess I was unclear in my explanation - the deadlock only happens
> when I *don't* call join.
>
> Cheers,
> Brian
Whoops, my bad.
Have you tried replacing prints with writing a another output Queue?
I'm wondering if sys.stdout has a problem.
Regards, Paul C.
--
http://mail