Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
corona10 opened this issue Sep 9, 2019 · 3 comments
Open

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

corona10 opened this issue Sep 9, 2019 · 3 comments
Assignees
Labels

Comments

@corona10
Copy link
Collaborator

corona10 commented Sep 9, 2019

There are some attributes that should be implemented for gpython.

Expected

>>> a = True
>>> a.imag
0
>>> a.real
1
>>> a.conjugate()
1

Actual

>>> a = True
>>> a.image
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
    FIXME line of source goes here
AttributeError: "'bool' has no attribute 'image'"
>>> a.real
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
    FIXME line of source goes here
AttributeError: "'bool' has no attribute 'real'"
>>> a.conjugate()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
    FIXME line of source goes here
AttributeError: "'bool' has no attribute 'conjugate'"
@corona10
Copy link
Collaborator Author

corona10 commented Sep 9, 2019

@ncw I am going to assign this issue to the contributhon 2019 participants

@parkchansoo
Copy link

I want to take a look at this issue 🙌

@corona10
Copy link
Collaborator Author

corona10 commented Sep 9, 2019

@parkchansoo
Please go ahead.
Here is a similar code you have to look at.

ComplexType.Dict["real"] = &Property{

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants