Re: NumPy 1.0 release

2006-10-26 Thread George Sakkis
Travis E. Oliphant wrote: > We are very pleased to announce the release of NumPy 1.0 available for > download at http://www.numpy.org Congratulations for this great package and the tremendous effort that was put on it! Hopefully with this release, the 'array wars' are over; we may not be able to a

Re: To Stop a Process that is Waiting on socket.accept()

2006-10-26 Thread Steve Holden
mumebuhi wrote: > I am having problem to kill the following script completely. The script > basically does the following. The main thread creates a new thread, > which does a completely useless thing, and then starts excepting for a > connection via socket. > > # start > import pickle > import sig

Re: doesnt seems to work can any help be provided

2006-10-26 Thread Fredrik Lundh
Ben Finney wrote: > Apparently that learning also didn't include the prohibitions against > colluding with others. Nevertheless, I'll bet they are still present. http://www.csu.edu.au/acad_sec/manuals/gcontm.htm Part G6 Collusion A student colludes when he or she works without

Re: NumPy 1.0 release

2006-10-26 Thread Robert Kern
George Sakkis wrote: > ImportError: > /usr/local/lib/python2.4/site-packages/numpy/linalg/lapack_lite.so: > undefined symbol: zheevd_ > > Googling for "undefined symbol: zheevd_" returned no hits, at which > point I gave up for now; hopefully someone will have a suggestion on > what to do next (ot

Re: How to Split Chinese Character with backslash representation?

2006-10-26 Thread Cameron Walsh
limodou wrote: > On 10/27/06, Wijaya Edward <[EMAIL PROTECTED]> wrote: >> >> Thanks but my intention is to strictly use regex. >> Since there are separator I need to include as delimiter >> Especially for the case like this: >> >> >>> str = '\xc5\xeb\xc7\xd5\xbc--FOO--BAR' >> >>> field = list(str)

Re: NumPy 1.0 release

2006-10-26 Thread Robert Kern
Robert Kern wrote: > George Sakkis wrote: >> By the way, it would be great if numpy's mailing list was mirrored to a >> google group; sourceforge and gmane are just horrible to use. > > Sorry, I don't think that Google Groups does mirroring like GMane does. Never mind. http://groups.google.c

Re: Cards deck problem

2006-10-26 Thread Cameron Walsh
[EMAIL PROTECTED] wrote: > Dennis Lee Bieber wrote: >> On Fri, 27 Oct 2006 03:48:25 GMT, Michael Naunton >> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: >> >>> This may seem pendantic, but CS is mostly about thinking about (and thus >> Someday I should arrange to do a lost

Re: Obtaining SSL certificate info from SSL object - BUG?

2006-10-26 Thread John Nagle
Michael Ströder wrote: > John Nagle wrote: > >>The Python SSL object offers two methods from obtaining >>the info from an SSL certificate, "server()" and "issuer()". >>The actual values in the certificate are a series of name/value >>pairs in ASN.1 binary format. But what "server()" and "issu

Re: How to Split Chinese Character with backslash representation?

2006-10-26 Thread Fredrik Lundh
Wijaya Edward wrote: > Since there are separator I need to include as delimiter > Especially for the case like this: > str = '\xc5\xeb\xc7\xd5\xbc--FOO--BAR' field = list(str) print field > ['\xc5', '\xeb', '\xc7', '\xd5', '\xbc', '-', '-', 'F', 'O', 'O', '-', '-', > 'B', 'A', 'R'

Re: To Stop a Process that is Waiting on socket.accept()

2006-10-26 Thread mumebuhi
Hi Steve, The output is as the following (excluding the "---start---" and "---end---"): ---start--- die now Traceback (most recent call last): File "../../../scratch/python/tmp.py", line 39, in ? channel, details = server.accept() File "/usr/lib/python2.4/socket.py", line 169, in accept

Re: my first software

2006-10-26 Thread Leo Kislov
[EMAIL PROTECTED] wrote: > I am a beginner of programming and started to learn Python a week ago. > last 3 days, i write this little tool for Renju.if you have any advice > on my code,please tell me > s = '' > > for i in range (0,len(done) - 1): > s = s +str(done[i][0]) + str(done

Re: subprocess cwd keyword.

2006-10-26 Thread Leo Kislov
Ivan Vinogradov wrote: > Dear All, > > I would greatly appreciate a nudge in the right direction concerning > the use of cwd argument in the call function from subprocess module. > > The setup is as follows: > > driver.py <- python script > core/ <- directory >

Re: How to Split Chinese Character with backslash representation?

2006-10-26 Thread limodou
On 10/27/06, Cameron Walsh <[EMAIL PROTECTED]> wrote: > limodou wrote: > > On 10/27/06, Wijaya Edward <[EMAIL PROTECTED]> wrote: > >> > >> Thanks but my intention is to strictly use regex. > >> Since there are separator I need to include as delimiter > >> Especially for the case like this: > >> > >

Re: NumPy 1.0 release

2006-10-26 Thread George Sakkis
Robert Kern wrote: > George Sakkis wrote: > > ImportError: > > /usr/local/lib/python2.4/site-packages/numpy/linalg/lapack_lite.so: > > undefined symbol: zheevd_ > > > > Googling for "undefined symbol: zheevd_" returned no hits, at which > > point I gave up for now; hopefully someone will have a su

Slurping All Content of a File into a Variable

2006-10-26 Thread Wijaya Edward
Hi, How can we slurp content of a single file into one variable? I tried this: >>> myfile_content = open('somefile.txt') >>> print myfile_content, >>> But it doesn't print the content of the file. Regards, -- Edward WIJAYA SINGAPORE Institute For Infocomm Research - Dis

RE: Slurping All Content of a File into a Variable

2006-10-26 Thread Wijaya Edward
From: [EMAIL PROTECTED] on behalf of Wijaya Edward Sent: Thu 10/26/2006 11:47 PM To: python-list@python.org Subject: Slurping All Content of a File into a Variable Hi, How can we slurp content of a single file into one variable? I tried this: >>> myfile_

<    1   2   3