| От | Shaw Terwilliger |
|---|---|
| Тема | Re: Re: pgsql for Python |
| Дата | |
| Msg-id | 20010302134544.B6653@lister.sourcegear.com обсуждение исходный текст |
| Ответ на | Re: pgsql for Python (Joel Burton <jburton@scw.org>) |
| Список | pgsql-general |
Joel Burton wrote: > PyGreSQL is more commonly used, and has (IMHO) a simpler, more dict-like > interface, but isn't (AFAIK) thread-safe, nor DB API compliant. I wrote a small web application server in python (www.lloop.com) using Python and PyGreSQL. PyGreSQL was (mostly) thread safe, in practice, when I started using it. I did a little bit of concurrency testing, found a few uninitialized variables in the PyGreSQL module that caused crashes, but these were easily fixed. If by thread-safe you mean a connection can be safely shared between multiple concurrent threads, I don't know what to say (never tried that). Pooling PyGreSQL connections and checking them in and out to Python threads seemed to work well. I haven't done much Python work lately, so I haven't tried PoPy (it sounds nice). -- Shaw Terwilliger <sterwill@sourcegear.com> SourceGear Corporation 217.356.0105 x 641
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера