go-python / go-python/gpython

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

Ouverte
#73 3 commentaires 0 réactions 1 personne assignée Réclamée par @parkchansoo Voir sur GitHub
Contributhon2019 good first issue
Langage dominant
Go
Étoiles
1k
Forks
105
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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'"
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.