go-python / go-python/gpython

[Question] How to implement object methods?

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

Descrizione

I want to try to implement `hashlib` (PR will follow).

For now I have implemented `Type`, `module`, module method and some "magic methods", but I cannot figure out how to implement object methods such as `update`, `hexdigest` etc.

Here is my WIP [implementation](https://github.com/bbrodriges/gpython/compare/master...stdlib_hashlib).

Thanks in advance.

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.