go-python / go-python/gpython

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

Offen
#224 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
1k
Forks
105
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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'""

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.