go-python / go-python/gpython

function not found with error AttributeError: "'module' has no attribute 'pre_save'"

Open
#224 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1k
Forks
105
PR merge metrics
No merged PRs in 30d

Description

I have the small script below that I try to test:

```python
import sys

def pre_save(value, numb):
if value == "value":
return("accepted by Python script " + sys.version)
else:
return("refused by Python script" + sys.version)
```

When I do a ` py.RunSrc(ctx, pythonCode, "", nil)`, I get "AttributeError: "'module' has no attribute 'pre_save'""

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.