go-python / go-python/gpython

Implement Hash of object

Aperta
#120 1 commento 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

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.

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.