Skip to content

Hard-coding issues when determining Python element types #31

Description

@toaction

In the nunmpy library, there are a large number of C extension functions whose types are _ArrayFunctionDispatcher or ufunc. In order to extract the symbol information of these functions, we have to introduce hard coding when judging the symbol type:

var pyFuncTypes = map[string]bool{
	"ufunc":                      true,
	"method":                     true,
	"function":                   true,
	"method-wrapper":             true,
	"builtin_function_or_method": true,
	"_ArrayFunctionDispatcher":   true
}

How can I reduce this hardcoding in my code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions