Any six, with_metaclass and DeviceMeta example
|
|
---|---|
Hi all; I'm porting some code to python 3 using six. One problem remain with de python devices trying to make use of six's "with_metaclass". I tried the following: but got this error:
Whats' wrong? I did the same with some of my own classes and it works perfectly. Thanks. |
|
|
---|---|
Hi Nicolas, In the pytango unit-tests, we've been successfully using six.add_metaclass:
Does that work for you? Also, defining the metaclass won't be necessary any more after PR #90 is merged. This change will become visible with pytango-9.2.1 release. |
|
|
---|---|
Hi Nicolas, I confirm what Vincent says. He helped me with this as described in this issue: https://github.com/tango-controls/pytango/issues/88 I used both methods for python3 successfully - and I am a beginner ! Andy |
|
|
---|---|
Hi guys,Vincent MIt does. Thanks for your replies. |