go-python / go-python/gpython

[Question] How to implement object methods?

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

Beschreibung

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.

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.