2017-02-27 2 views
3

でmultiprocessing.sharedctypes.Valueとmultiprocessing.Valueの違い私はmultiprocessing.Value のドキュメントhttps://docs.python.org/2/library/multiprocessing.html#multiprocessing.Valueパイソン

とmultiprocessing.sharedctypes.Value https://docs.python.org/2/library/multiprocessing.html#multiprocessing.sharedctypes.Value

が、できなかったのドキュメントを読みますそれらの違いは何ですか? 誰も知っていますか?感謝! ありがとう! python2.7で

答えて

2

あなたは奇妙な型チェックのいくつかの並べ替えを行っている場合は、唯一の違いがわかりますように、少なくとも、Valueは、単にsharedctypes.Value周りa wrapper functionです。

python3.6では、Valueはまだsharedctypes.Valueのラッパーですが、it takes care of passing an appropriate contextのようです。