Qtcore error problem

2017-01-31 Thread Xiao Zhang
tringENS_6ScriptE I searched the web and it looks like the problem has something to do with different versions. Any idea how to fix the problem ? I am using python 2.7 now. Really appreciate your ideas and best regards, Xiao -- https://mail.python.org/mailman/listinfo/python-list

HELP! about long polling!!!

2015-04-23 Thread Thanatos xiao
Hi all: Now I develop an ios app, which need use long polling. when server have data, the server push data to ios app. I use django to backend, Can give me some advice or example ? ths -- https://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] Released: Python 2.6.9 release candidate 1

2013-09-30 Thread Thanatos xiao
Ooh!ths! 2013/10/1 Barry Warsaw > Hello Pythoneers and Pythonistas, > > I'm happy to announce the availability of Python 2.6.9 release candidate 1. > > Python 2.6.9rc1 is a security-fix source-only release for Python 2.6. This > means that general bug maintenance has ended, and

about pyyaml questions!

2013-08-28 Thread Thanatos xiao
Hi Guys: Now I use pyyaml to load a yaml file, after I dump this load data,but I found an questions,before I load the yaml file,the file looks like: - -b -c - -e -x after I dump this data and write file, the file looks like: - -b -c - -e -x although when dump fil

Re: Hello Everyone! A simple questions!

2013-07-25 Thread Thanatos xiao
gt; In case you really want to insert the lists members into the second place > you can assign a copy of the list. > > values = [0,1,2] > values[1] = values[:] > > > > > > 2013/7/26 Thanatos xiao > >> >>> values = [0, 1, 2]>>> values[1] = values&

Hello Everyone! A simple questions!

2013-07-25 Thread Thanatos xiao
>>> values = [0, 1, 2]>>> values[1] = values>>> values[0, [...], 2] why?? -- http://mail.python.org/mailman/listinfo/python-list

About GIL Questions!

2013-06-19 Thread Thanatos xiao
Hey everyone! Recently I see the python source code, but i still not understand about gil. first, why single core quicker multi-core ? who can explan this in bottom layery ? second, what the different between the mult-core and the single core to schecule threads? thanks! Forgive me bad english! -

python call golang

2013-05-09 Thread Thanatos xiao
Hey ! Now! I have written a python script . I want to call a golang script in python script. Who can give me some advices? thanks! -- http://mail.python.org/mailman/listinfo/python-list

Wholesale Sports Shoes Clear Air Force One AAA++quality(www.cnnshoe.com)

2010-05-10 Thread xiao wu
supply sports shoes. The brand Sports shoes basketball shoes, Boot, walling shoes, Athletic shoes, Jogging shoes, running shoes, leather shoes, football, shoe sports shoe Footwear Sneaker, Shox Max Rift T- shirts, womens t-shirts, Clothing womens clothing, wear hats Caps Jersey jeans Sock Jacks,

PIL build error on Snow Leopard

2009-11-30 Thread Xiao
Hello, I haven't fully understood the nuances in the difference between Apple's system Python and MacPython. But I have just installed Python 2.6.4 from python.org. Now I'm trying to install a fresh downloaded PIL 1.1.6 but couldn't. python setup.py install gives: lipo: can't open input file: /var

Still wrong architecture on Snow Leopard

2009-10-13 Thread Xiao Yu
es/PyQt4/QtGui.so: mach-o, but wrong architecture What am I still doing wrong? Is there a specific way I have to run Python etc? Regards, Xiao -- http://mail.python.org/mailman/listinfo/python-list

Please recommend library for multithread download

2007-02-10 Thread David Xiao
Hello there, I am looking for library (small better) that can fetch URL and download to local file in multi-threads. urllib2 is not thread safe as I tested. What will be? -- http://mail.python.org/mailman/listinfo/python-list

genetic algorithms package for python ?

2006-08-31 Thread Xiao Jianfeng
Hi all, I am looking for a genetic algorithms package for Python. I have googled the web before posting and found some links. The link of pygene(http://www.freenet.org.nz/python/pygene) cannot be opened. I also tried the recipe on ASPN, but it is too simple for my application, and the ga mode

Re: How can I do this with python ?

2006-05-08 Thread Xiao Jianfeng
Tim N. van der Leeuw wrote: > Your question is insufficiently clear for me to answer. > > Do you want to know how to read from standard-input in a Python > program? > > Do you want to know how to start an external program from Python, and > then connect something to that programs standard input? >

How can I do this with python ?

2006-05-07 Thread Xiao Jianfeng
Dear all, In a shell script, I can run a command which need interactive input like this, #!/bin/sh A_Command<<-EOF a b c EOF But, how can I do this with python ? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

The difference between "import package.module" and "from package import module"(about pymol)

2005-12-15 Thread Xiao Jianfeng
Hello, In pymol I can use "from chempy import Atom" but "import chempy.Atom" doesn't work. It says,"ImportError: No module named Atom". What is going wrong ? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Has this problem been fiexed ?

2005-11-27 Thread Xiao Jianfeng
Hello, I'm trying to build python2.4.2 on IRIX6.5(cc version MIPSpro Compilers: Version 7.3.1.3m). But the socket module failed to compile. I found this in ./Modules/socketmodule.c, line 193: /* XXX Using _SGIAPI is the wrong thing, 194 but

python2.4.2 test_fpformat and test_locale failed on IRIX6.5

2005-11-23 Thread Xiao Jianfeng
Hello, I am trying to install python2.4.2 on IRIX6.5, but test_fpformat and test_locale failed when I ran "smake test". The following is the detailed error message: prompt:\> ./python ./Lib/t

How to install python2.4.2 on IRIX6.5 ?

2005-11-20 Thread Xiao Jianfeng
Hello, I am trying to install python2.4.2 on a SGI origin3200 machine running IRIX6.5. The native c compiler was used to compile python. "./configure --prefix=/my/path/to/install" runs ok, then, "smake OPT= " runs ok but "smake test" gets errors, here is the output: --

Re: what happens when the file begin read is too big for all lines to be read with "readlines()"

2005-11-20 Thread Xiao Jianfeng
[EMAIL PROTECTED] wrote: >Xiao Jianfeng wrote: > > >> I have compared the two methods, >> (1). "for x in fh:" >> (2). read all the file into memory firstly. >> >> I have tested the two methods on two files, one is 80M and the second >&g

Re: what happens when the file begin read is too big for all lines to be read with "readlines()"

2005-11-20 Thread Xiao Jianfeng
[EMAIL PROTECTED] wrote: >Xiao Jianfeng wrote: > > >> First, I must say thanks to all of you. And I'm really sorry that I >>didn't >> describe my problem clearly. >> >> There are many tokens in the file, every time I find a token, I have &

Re: what happens when the file begin read is too big for all lines to be read with "readlines()"

2005-11-20 Thread Xiao Jianfeng
Steve Holden wrote: >Xiao Jianfeng wrote: > > >>Steven D'Aprano wrote: >> >> >> >> >>>On Sun, 20 Nov 2005 11:05:53 +0800, Xiao Jianfeng wrote: >>> >>> >>> >>> >>> >>> &g

Re: what happens when the file begin read is too big for all lines to be read with "readlines()"

2005-11-19 Thread Xiao Jianfeng
Steven D'Aprano wrote: >On Sun, 20 Nov 2005 11:05:53 +0800, Xiao Jianfeng wrote: > > > >> I have some other questions: >> >> when "fh" will be closed? >> >> > >When all references to the file are no longer in scope: > >

Re: what happens when the file begin read is too big for all lines to be read with "readlines()"

2005-11-19 Thread Xiao Jianfeng
[EMAIL PROTECTED] wrote: >newer python should use "for x in fh:", according to the doc : > >fh = open("your file") >for x in fh: print x > >which would only read one line at a time. > > > I have some other questions: when "fh" will be closed? And what shoud I do if I want to explicitly clos

Re: install python2.4 on FreeBSD and keep using python2.3

2005-11-17 Thread Xiao Jianfeng
Andrew MacIntyre wrote: >[posted & mailed] >Ksenia Marasanova wrote: > > > >>I have python2.3, installed from port /lang/python long time ago. The >>current version is 2.4, but I'd rather have two python versions, >>instead of upgrading. >>Is there maybe a way to somehow link installed python to

Re: Hot to split string literals that will across two or more lines ?

2005-11-17 Thread Xiao Jianfeng
Lars Kellogg-Stedman wrote: >>print "a string whcih is very very looo\ >>ng." >> >> > >print "a string which is very loo" \ > + "ong." > >-- Lars > > > Oh, Thank you! -- http://mail.python.org/mailman/listinfo/python-list

Re: Hot to split string literals that will across two or more lines ?

2005-11-17 Thread Xiao Jianfeng
[EMAIL PROTECTED] wrote: >Xiao Jianfeng wrote: > > >>Hi, >> >>I need to print a long sting, which is two long so it must expand two >>lines. >>I know that we can use backslash(\) to explicitly join two lines into a >>logical line, >>but th

Hot to split string literals that will across two or more lines ?

2005-11-17 Thread Xiao Jianfeng
Hi, I need to print a long sting, which is two long so it must expand two lines. I know that we can use backslash(\) to explicitly join two lines into a logical line, but this doesn't work for string literals :( my code:

Re: Proposal: add sys to __builtins__

2005-09-04 Thread Xiao Jianfeng
Paul Watson wrote: >This sounds pretty interesting. How about a switch to invoke this >handling for the one-liner crowd and those who wish to use it? > > > >Somehow, I never heard any C programmers suggest that the default >processing not include the need for: > >#include > > I think it

Are there free molecular libraries written in python ?

2005-09-01 Thread Xiao Jianfeng
Hi, Are there any free libraries for the analysis and manipulation of molecular structural models, implemented in the Python programming language ? Thanks. -- http://mail.python.org/mailman/listinfo/python-list