Visitar URL original
Implement bool.real, bool.imag bool.conjugate() · Issue #73 · go-python/gpython · GitHub
The Wayback Machine - https://web.archive.org/web/20200910210630/https://github.com/go-python/gpython/issues/73
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

Comments

@corona10
Copy link
Member

@corona10 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
Member Author

@corona10 corona10 commented Sep 9, 2019

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

@parkchansoo
Copy link

@parkchansoo parkchansoo commented Sep 9, 2019

I want to take a look at this issue 🙌

@corona10
Copy link
Member Author

@corona10 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.