go-python / go-python/gpython

Implement bool.real, bool.imag bool.conjugate()

Abierto
#73 3 comentarios 0 reacciones 1 asignado Reclamado por @parkchansoo Ver en GitHub
Contributhon2019 good first issue
Lenguaje dominante
Go
Estrellas
1k
Forks
105
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

There are some attributes that should be implemented for gpython.

## Expected
```python
>>> a = True
>>> a.imag
0
>>> a.real
1
>>> a.conjugate()
1
```

## Actual
```python
>>> a = True
>>> a.image
Traceback (most recent call last):
File "", line 1, in
FIXME line of source goes here
AttributeError: "'bool' has no attribute 'image'"
>>> a.real
Traceback (most recent call last):
File "", line 1, in
FIXME line of source goes here
AttributeError: "'bool' has no attribute 'real'"
>>> a.conjugate()
Traceback (most recent call last):
File "", line 1, in
FIXME line of source goes here
AttributeError: "'bool' has no attribute 'conjugate'"
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.