Extending python postfix completition

I want to extend the python postfix templates (in the plugin Custom Postfix Templates).

Thereto I need to find some code to do the following things:

1. Get the PyType of a fully qualified class name.

2. Check whether a PyType A can be cast to a PyType B.

Does anyone know how to do one of these things?

Please sign in to leave a comment.