Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
real & imag part
#4
did you check my post?

Also note that this

def is_imag(self):
    a,b=self.real, self.imag
will return None which in turn in a boolean expression will always be evaluated to False
i.e.

if some_instance.is_imag():
will always be False
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
real & imag part - by mcgrim - May-10-2019, 09:52 AM
RE: real & imag part - by buran - May-10-2019, 10:24 AM
RE: real & imag part - by mcgrim - May-10-2019, 10:27 AM
RE: real & imag part - by buran - May-10-2019, 10:31 AM
RE: real & imag part - by mcgrim - May-10-2019, 10:39 AM
RE: real & imag part - by buran - May-10-2019, 10:47 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020