go-python / go-python/gpython

Implement Hash of object

Aberta
#120 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Go
Estrelas
1k
Forks
105
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.