Modules or Package for my application

2012-11-27 Thread Stone
Dear developers, I am creating application (originally written in perl) which will take care about replication from one system to the another system over command rsync. It will simulate High-availability solution. The application will contains main module called like ha.py and another modules w

What's wrong with this code?

2012-07-23 Thread Stone Li
I'm totally confused by this code: Code: > a = None > b = None > c = None > d = None > x = [[a,b], > [c,d]] > e,f = x[1] > print e,f > c = 1 > d = 2 > print e,f > e = 1 > f = 2 > print c,d > > Output: None None > None None > 1 2 > I'm expecting the code as: > None None > 1 2 > 1 2 > > W

virtualenv and ubuntu

2018-08-28 Thread stone . zhong
o install virtualenv? Thanks, Stone -- https://mail.python.org/mailman/listinfo/python-list

Re: virtualenv and ubuntu

2018-08-28 Thread Stone Zhong
two ways to get virtualenv > > installed: > > > > 1) do "sudo apt-get install virtualenv" > > 2) do "pip3 install virtualenv" > > > > What is the preferred way to install virtualenv? > > > > Thanks, > > Stone > > Hi St

Shall I worry about python2/3 compatibility when using library?

2018-08-30 Thread Stone Zhong
all library developer are writing compatible code, is that a fair assumption? Thanks, Stone -- https://mail.python.org/mailman/listinfo/python-list

Re: Shall I worry about python2/3 compatibility when using library?

2018-08-30 Thread Stone Zhong
On Thursday, August 30, 2018 at 10:19:34 PM UTC-7, Terry Reedy wrote: > On 8/30/2018 10:27 PM, Stone Zhong wrote: > > Hi there, > > > > I think the fact is: > > - There are still considerable amount of people still using python2 > > - Python2 user will eventual

customer compare in assertEqual

2018-10-29 Thread Stone Zhong
d, is there a way to do that in python unit test? Thanks, Stone -- https://mail.python.org/mailman/listinfo/python-list

Re: customer compare in assertEqual

2018-10-29 Thread Stone Zhong
On Monday, October 29, 2018 at 5:29:11 PM UTC-7, Stone Zhong wrote: > Hi There, > > Now I want to make sure my code calls a function foo with an object t, > however, foo.assert_called_once_with(t) does not work, since t is a model > object and the code may load a different copy

Re: customer compare in assertEqual

2018-10-31 Thread Stone Zhong
On Monday, October 29, 2018 at 5:29:11 PM UTC-7, Stone Zhong wrote: > Hi There, > > Now I want to make sure my code calls a function foo with an object t, > however, foo.assert_called_once_with(t) does not work, since t is a model > object and the code may load a different copy

Installing Python 2.7 for all users on SLES 11

2016-08-04 Thread Bo Stone
I installed Python 2.7 on SLES 11 box that previously was running Python 2.6. To do so I used a script described in this post (http://stackoverflow.com/a/11371726/135946) and run it as a root user. Everything went well but when it was done I discovered few issues: 1. No symbolic links were crea

Re: Installing Python 2.7 for all users on SLES 11

2016-08-05 Thread Bo Stone
On Thursday, August 4, 2016 at 8:54:35 PM UTC-7, Bo Stone wrote: > I installed Python 2.7 on SLES 11 box that previously was running Python 2.6. > To do so I used a script described in this post > (http://stackoverflow.com/a/11371726/135946) and run it as a root user. > Everything w

ImportError: cannot import name certificate_transparency

2019-01-17 Thread Stone Zhong
uot; So my guess is, package with shared lib (.so files) cannot be put into zip file, is it a bug in python zipimport? The reason I have to use a zip file is, I need it in a spark job, I cannot do "virtualenv" in pyspark, have to use --py-files to pass the zip file for all depe

Re: ImportError: cannot import name certificate_transparency

2019-01-17 Thread Stone Zhong
On Thursday, January 17, 2019 at 12:10:51 AM UTC-8, Stone Zhong wrote: > Hi, > > My program depend on package oci, I am using the following command to install > it: > pip install oci > > Everything works perfect in virtualenv (I am still using python 2.7.x) > > N

Manipulating large blobs in Python

2005-04-21 Thread Tim Stone
files... do I need some version of visual studio ide to do the windows compile? It'd be great if there was some way to increase the heapsize without all that bother :) Tim Stone -- http://mail.python.org/mailman/listinfo/python-list

request for guidance

2013-12-12 Thread jennifer stone
greetings I am a novice who is really interested in contributing to Python projects. How and where do I begin? thanking you in anticipation -- https://mail.python.org/mailman/listinfo/python-list

Re: request for guidance

2013-12-13 Thread jennifer stone
hello! thanks a ton for your warm response. I know the basics of python with some modules like pickle, urllib, re. Its kind of basic I know. but it gotta start somewhere and I really want to have real world experience. thanks jennifer On Fri, Dec 13, 2013 at 10:45 AM, jennifer stone wrote

Re: bicycle repair man help

2007-06-26 Thread Kathryn Van Stone
substituted for the refactoring to work. I hope this helps, Kathy Van Stone [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: What was that web interaction library called again?

2007-06-26 Thread Kathryn Van Stone
So does anyone know of any equivalent library for testing RESTful web services. In particular it needs to be able to handle more than 'GET' or "POST" http calls. -Kathy Van Stone [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: unittest for threading function always failed...

2007-05-21 Thread Kathryn Van Stone
If all you are doing is testing that run() works correctly, you could probably also get away with just calling run() directly instead of also implicitly testing the Thread class as well. -Kathy -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating a multi-tier client/server application

2007-09-04 Thread Kathryn Van Stone
customers to use face time for additional communication usually needed beyond specs. I hope this helps. It sounds like a useful project. Kathy Van Stone [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list