go-python / go-python/gpython

Implement Hash of object

Offen
#120 1 Kommentar 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

We have to calculate the hash according to the type of Object and return a value.
There is currently `M__hash__` but it is not implemented in any Object.
```go
type I__hash__ interface {
M__hash__() (Object, error)
}
```

First, we have to implement `M__hash__` of numbers and strings(int, float, complex, string).
This is also necessary for the implementation of the dictionary.

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.