Hi,
I want to share dictionary between two distinct processes.
Something like this:
first.py
import magic_share_module
def create_dictionary():
return {"a": 1}
magic_share_module.share("shared_dictionary",
creator.create_dictionary)
while True:
pass
second.py
import magic_share_mod
On 23 сен, 12:48, Peter Otten <__pete...@web.de> wrote:
> blumenkraft wrote:
> > I have some list:
> > x = [8, 9, 1, 7]
> > and list of indices I want to delete from x:
> > indices_to_delete = [0, 3], so after deletion x must be equal to [9,
> > 1].
>
Hi,
I have some list:
x = [8, 9, 1, 7]
and list of indices I want to delete from x:
indices_to_delete = [0, 3], so after deletion x must be equal to [9,
1].
What is the fastest way to do this? Is there any builtin?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list