Re: Python 3.1 support

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Python 3.1 support
Дата
Msg-id 1258705605.28720.5.camel@fsopti579.F-Secure.com
обсуждение исходный текст
Ответ на Re: Python 3.1 support  (James Pye <lists@jwp.name>)
Ответы Re: Python 3.1 support
Список pgsql-hackers
On fre, 2009-11-20 at 01:20 -0700, James Pye wrote:
> On Nov 20, 2009, at 12:02 AM, Peter Eisentraut wrote:
> > Is there any precedent for the sort of behavior that you are
> > implementing, that is, automatic sharing of variables between
> > independent executions of the same source container?
> 
> import foo
> 
> # bar is a regular, def'd function.
> foo.bar()
> 
> ...
> 
> # even in another thread, doesn't matter..
> foo.bar()
> 
> 
> In either call, foo.bar()'s globals() is the same dictionary object(the foo module's dictionary).

That's not what I meant, because this is the same execution of the same
source container, with threads explicitly started somewhere.  You could
do the same in a plpython function (in theory, at least).

What I mean is more like, you execute the same source file twice in a
row, and the global variables are saved for the second run.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: James Pye
Дата:
Сообщение: Re: Python 3.1 support
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: enable-thread-safety defaults?