Open Ralithune opened 7 years ago
Further details, when using python 2.7.10, the output is like above. However with python 3.6.2:
Len drive_list is 3
d is type <class '__main__.Drive'>, isinstace(d, Drive) is True
d is type <class '__main__.Drive'>, isinstace(d, Drive) is True
d is type <class '__main__.Drive'>, isinstace(d, Drive) is True
Len drive_list is 3
d is type <class '__main__.Drive'>, isinstace(d, Drive) is True
d is type <class '__main__.Drive'>, isinstace(d, Drive) is True
d is type <class '__main__.Drive'>, isinstace(d, Drive) is True
This is on MacOS 10.13 Beta 7
Added Python version to original post
Interestingly, this seems to be a moving target. Currently the code fails on: 3.73, 3.6.8, 3.5.7, 3.3.7, 3.2.6, 3.1.5, and 2.7.16... but passes on 3.4.10. I suspect it's related to dill
serializing the class object along with the class instance -- which sometimes results errors like __main__.Driver
and __main__.Driver
being different classes.
Hello! I am a self-taught python programmer (to frame things) and I just spent the last 2 hours or so troubleshooting a bug I was seeing that turned out to be Multiprocess.
I think the following code might better explain the issue than me typing it out. This is on CentOS 7.3's Python 2.7.5:
And the output is: