Re: Python 3.1 support

Поиск
Список
Период
Сортировка
От James Pye
Тема Re: Python 3.1 support
Дата
Msg-id 0B9FDD69-C43E-48B6-B7AA-2782939C1DDD@jwp.name
обсуждение исходный текст
Ответ на Re: Python 3.1 support  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Python 3.1 support
Список pgsql-hackers
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).

A plpython3 function *is* a Python module.

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: [COMMITTERS] pgsql: /home/peter/commit-msg
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Python 3.1 support