Single string vs list of strings

2008-10-30 Thread Scott Sharkey
Hi All, I have a need to determine whether a passed variable is a single string, or a list of strings. What is the most pythonic way to do this? Thanks. -Scott -- http://mail.python.org/mailman/listinfo/python-list

Eggs, VirtualEnv, and Apt - best practices?

2008-09-25 Thread Scott Sharkey
Hello all, Our development group at work seems to be heading towards adopting python as one of our standard systems languages for internal application development (yeah!). One of the issues that's come up is the problem with apt (deb packages) vs eggs, vs virtual environments. We're

Re: Eggs, VirtualEnv, and Apt - best practices?

2008-09-25 Thread Scott Sharkey
Diez B. Roggisch wrote: Dmitry S. Makovey schrieb: Scott Sharkey wrote: Any insight into the best way to have a consistent, repeatable, controllable development and production environment would be much appreciated. you have just described OS package building ;) Except that we do need

naive packaging question

2008-03-26 Thread Scott Sharkey
Hello all, I've read a number of the python books, and several online tutorials about modules and packaging, but not one addresses this issue, so I thought I'd ask here... I am building a library for use in an internal project. This library is the client side interface to a REST-ful service

Persistent HTTP Connections with Python?

2008-01-10 Thread Scott Sharkey
Hello All, I am trying to write a python script to talk to an xml-based stock feed service. They are telling me that I must connect and login, and then issue refresh requests to fetch the data. This sounds a lot (to me) like HTTP 1.1 persistent connections. Can I do that with the urllib