MCPcopy Index your code
hub / github.com/go-python/gopy / isValidPythonName

Function isValidPythonName

bind/utils.go:291–296  ·  view source on GitHub ↗

isValidPythonName returns true if the string is a valid python identifier name

(name string)

Source from the content-addressed store, hash-verified

289// isValidPythonName returns true if the string is a valid
290// python identifier name
291func isValidPythonName(name string) bool {
292 if name == "" {
293 return false
294 }
295 return rxValidPythonName.MatchString(name)
296}
297
298var (
299 rxMatchFirstCap = regexp.MustCompile("([A-Z])([A-Z][a-z])")

Callers 2

extractPythonNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected