go-python / go-python/gpython

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

Open
#73 3 comments 0 reactions 1 assignee Claimed by @parkchansoo View on GitHub
Contributhon2019 good first issue
Dominant language
Go
Stars
1k
Forks
105
PR merge metrics
No merged PRs in 30d

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.