Select to view content in your preferred language

Using python match statement in custom Toolbox

48
0
4 hours ago
PaulPrevedoros1
Regular Contributor

I have found a strange effect and unsure if it is real or reflects another error elsewhere.

I used a

match xyzx:

       case SSSS:

 

and for some reason using match disables following sub routines and stops a tool cold.

In pycharm if match case is in def execute

def postExecute cannot be executed and is grayed out.

 

The same for any functions outside the tool class.

Can someone else confirm this?

 

Cheers

 

 

 

 

0 Kudos
0 Replies