Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你这个Queue是通过什么实现的啊? #2

Open
Light-- opened this issue Mar 27, 2020 · 2 comments
Open

你这个Queue是通过什么实现的啊? #2

Light-- opened this issue Mar 27, 2020 · 2 comments

Comments

@Light--
Copy link

Light-- commented Mar 27, 2020

看你提到“队列只支持浅拷贝,不支持深拷贝,如果想用深拷贝的话可以使用 heapq
”,请教一下,有能支持深拷贝的能在进程间传递的队列吗? 类似于manager.queue 这种。。。。。。。。manager.queue不支持深拷贝,所以我想找能支持的。。。。或者有别的东西能在进程间方便的传递大量数据(图像数组那种)的也行

@windard
Copy link
Owner

windard commented Mar 29, 2020

Queue 是标准库的吖。在 python2 中是 Queue,在 python3 中是 queue

官方文档 Queue

然后深拷贝的话,可以试下 copy.deepcopy

@Light--
Copy link
Author

Light-- commented Mar 30, 2020

然后深拷贝的话,可以试下 copy.deepcopy

copy.deepcopy不行。。拷贝不了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants