Re: Dispatch table of methods with various return value types

2020-11-17 Thread dn via Python-list
On 17/11/2020 23:35, Loris Bennett wrote: dn writes: On 17/11/2020 22:01, Loris Bennett wrote: Hi, I have a method for manipulating the membership of groups such as: def execute(self, operation, users, group): """ Perform the given operation on the users with respe

Re: Unable to set up Python correctly

2020-11-17 Thread Zander Kraig
According to my understanding, when the "Select Interpreter" option is used, only the current session is affected. It does not change the path of the default interpreter that VS Code tries to use. My suggestion would be to try to change the path specified in "Python: Default Interpreter Path" se

Re: Dispatch table of methods with various return value types

2020-11-17 Thread Loris Bennett
dn writes: > On 17/11/2020 22:01, Loris Bennett wrote: >> Hi, >> >> I have a method for manipulating the membership of groups such as: >> >> def execute(self, operation, users, group): >> """ >> Perform the given operation on the users with respect to the >> group

Re: Dispatch table of methods with various return value types

2020-11-17 Thread dn via Python-list
On 17/11/2020 22:01, Loris Bennett wrote: Hi, I have a method for manipulating the membership of groups such as: def execute(self, operation, users, group): """ Perform the given operation on the users with respect to the group """ action = {

Dispatch table of methods with various return value types

2020-11-17 Thread Loris Bennett
Hi, I have a method for manipulating the membership of groups such as: def execute(self, operation, users, group): """ Perform the given operation on the users with respect to the group """ action = { 'get': self.get, 'add': sel