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 ba...@python.org

 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 only critical security
 issues are being fixed.  It also means that no installers for Windows or
 Mac
 OS X will be provided.  The last binary release of Python 2.6 was 2.6.6.

 Python 2.6.9 final is currently scheduled for Monday, October 28, 2013.
  Five
 years after the original release of Python 2.6, the 2.6.9 final release
 will
 be the last release of the Python 2.6 series.  After this, all official
 maintenance of any kind for Python 2.6 will cease and the series will be
 retired.

 For ongoing maintenance, please see Python 2.7.

 Since 2.6.9 will be the last Python 2.6 release ever, I ask that you please
 download Python 2.6.9rc1, build it on your favorite platforms, and test it
 with your favorite code.  You can report bugs to the Python bug tracker:

 http://bugs.python.org

 The source can be download from:

 http://www.python.org/download/releases/2.6.9/

 You can also see what's changed since Python 2.6.8:

 http://www.python.org/download/releases/2.6.9/NEWS.txt

 Many thanks go out to the entire Python community for their contributions
 and
 help in making Python 2.6.9 available, especially Jyrki Pulliainen for his
 patch contributions.

 Enjoy,
 -Barry
 (on behalf of the Python development community)

 ___
 Python-Dev mailing list
 python-...@python.org
 https://mail.python.org/mailman/listinfo/python-dev
 Unsubscribe:
 https://mail.python.org/mailman/options/python-dev/yanxiaopei199%40gmail.com


-- 
https://mail.python.org/mailman/listinfo/python-list


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 file, I have set default_flow_style=False

Can the dumped file the same as original file?

ths.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Hello Everyone! A simple questions!

2013-07-26 Thread Thanatos xiao
Thanks
I just surprised by three dot


2013/7/26 Florian Baumgartner bflori...@gmail.com

 As alex23 already indicated you created a recursive data-structure (by
 inserting a reference to the list into the second place of the list) and
 the interpreter handles this gracefully by showing [...].

 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 yanxiaopei...@gmail.com

  values = [0, 1, 2] values[1] = values values[0, [...], 2]

 why??


 --
 http://mail.python.org/mailman/listinfo/python-list



-- 
http://mail.python.org/mailman/listinfo/python-list


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!
-- 
http://mail.python.org/mailman/listinfo/python-list


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