go-python / go-python/gpython

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

Aperta
#224 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
1k
Fork
105
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.