Re: about special characters

2016-04-30 Thread Jianling Fan
Oh, it works! This is the simplest and best way! Thanks very much! On 30 April 2016 at 13:42, MRAB wrote: > On 2016-04-30 19:13, Jianling Fan wrote: >> >> Hello everyone, >> >> Thanks very much for all your replies and sorry for the inconvience. >> This is

Re: about special characters

2016-04-30 Thread Jianling Fan
print('- -b Sync file failure !!!') return if not os.path.exists(dest): os.makedirs(dest) dir_cmp = filecmp.dircmp(src, dest, ignore=IGNORE) sync(dir_cmp) print('^_^ Sync file finished!') if __name__ == '__main__': src, d

about special characters

2016-04-29 Thread Jianling Fan
Hello everyone, I am trying to use python 27 copying some of my folders and files to another directory. My code works good for other files but I have some problem to copy files that have some special characters in the filename. like filenames contain Greek "δ" or latin "š". it always gave a error

REMOVE ME

2016-04-09 Thread fan nie
-- https://mail.python.org/mailman/listinfo/python-list

Re: extract rar

2016-04-01 Thread Jianling Fan
t; >> I am wondering is there any way to extract rar files by python without >> WinRAR software? >> >> I tried Archive() and patool, but seems they required the WinRAR software. > > Perhaps 7-zip in a Python subprocess: > http://superuser.com/questions/458643/unzip-rar-fro

extract rar

2016-04-01 Thread Jianling Fan
Hello everyone, I am wondering is there any way to extract rar files by python without WinRAR software? I tried Archive() and patool, but seems they required the WinRAR software. Thanks, Regards, Jianling -- https://mail.python.org/mailman/listinfo/python-list

Re: python

2016-01-12 Thread Jianling Fan
It seems like that python was already installed in your computer. Please check . On 11 January 2016 at 14:45, Sean Melville wrote: > I don't believe it's xp, it's a new laptop > > > >> On 11 Jan 2016, at 20:33, Cameron Simpson wrote: >> >>> On 11Jan2016 19:17, Sean Melville wrote: >>> I've down

Re: python client call Java server by xmlrpc

2015-01-30 Thread fan . ding1
Thanks dieter, The issue is solved. I use SmartSniff to get the xml message send by java client, and python client, find the difference. Define a new class: class MyData(object): def __init__(self,myKey,myValue): self.Key = myKey self.Value = myValue and use this object as p

python client call Java server by xmlrpc

2015-01-22 Thread fan . ding1
Hi all I have xmlrpc server written in Java, and it has a method like Fun( vector, vector), the vector is array of user-defined object, which is a class extends HashMap. And I call it like: server = xmlrpclib.ServerProxy("http://myserver";) server.Fun( [ {"0.5":0.1}], [ ] ) It always fails

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Huhuai Fan
在 2014年11月2日星期日UTC+8上午8时31分39秒,Grant Edwards写道: > On 2014-11-01, alister wrote: > > "The IETF motto is 'rouch consesus and running code'" > > -- Scott Bradner (Open Sources, 1999 O'Reilly and Associates) > > I don't get it, and googling didn't help. What is "rouch" consensus? > > -- > Gran

Questions about os.waitpid(pid, options) on windows

2011-07-11 Thread Fan
It seems that waitpid take process handle instead of process id as the first parameter on Windows. On Unices platform, the first parameter is process id. This interface is a little bit confusing. What's the purpose for such a design? Thanks a lot, Fan -- http://mail.python.org/mailman/lis

Re: NoSQL Movement?

2010-03-03 Thread Avid Fan
Jonathan Gardner wrote: I see it as a sign of maturity with sufficiently scaled software that they no longer use an SQL database to manage their data. At some point in the project's lifetime, the data is understood well enough that the general nature of the SQL database is unnecessary. I am

Why threading.Thread has no detach method

2009-01-06 Thread Fan Kai
Does this mean terminated threads will automatically release all resouce? -- http://mail.python.org/mailman/listinfo/python-list

Re: Read an image from a URL and write it to the browser

2008-12-21 Thread McCoy Fan
On Dec 21, 7:25 am, Peter Otten <__pete...@web.de> wrote: > McCoy Fan wrote: > > I want to do something simple: read an image from an image URL and > > write the image to the browser in CGI style. > > > I wrote a CGI script to do this (I'm new to Pyth

Read an image from a URL and write it to the browser

2008-12-21 Thread McCoy Fan
I want to do something simple: read an image from an image URL and write the image to the browser in CGI style. I wrote a CGI script to do this (I'm new to Python) and got the following error: "FancyURLopener instance has no attribute 'tempcache'" in http://www.google.com/google_logo.jpg"; imgS

PyImport_Import() failed

2006-08-02 Thread Yang Fan
Hello,   I'm new to Python.I want to embed Python interpreter into my C++ application powered by Borland C++ Builder 2006.   I have written some C++ code in order to evaluate Python script file, but PyImport_Import() calls failed.I really don't know what's wrong with my cpp code.It always return a

Re: Detecting key presses

2006-06-17 Thread Fan Zhang
rg/mailman/listinfo/python-list The python.org site has a faq about getting keystroke. It uses termios and fcntl modules. Here's the link: http://www.python.org/doc/faq/library/#how-do-i-get-a-single-keypress-at-a-time Hope it can help you! - Fan Zhang -- http://mail.python.org/mailman/listinfo/python-list

Re: shuffling elements of a list

2006-05-30 Thread Zhang Fan
On 30 May 2006 20:18:19 -0700, greenflame <[EMAIL PROTECTED]> wrote: > Second of all, I would like to have > other methods of shuffling, prefererably riffle shuffling and just > plain randomly arranging the elements of the list. The random module has a `shuffle' method. It "Shuffle the sequence

How to dynamicly define function and call the function?

2005-09-08 Thread FAN
t): File "test.py", line 9, in ? d = test() File "test.py", line 4, in __init__ self.dfunc('Msg in init ...') AttributeError: test instance has no attribute 'dfunc' ## Is there any way I can solve this problem? Regards - FAN -- http://mail.python.org/mailman/listinfo/python-list