Stephen McInerney wrote:
Two questions about complex numbers: I must be missing something. There operators work for me: >>> a=1+2j >>> b=2+3j >>> a+b, a-b, a*b, a/b ((3+5j), (-1-1j), (-4+7j), (0.61538461538461542+0.076923076923076913j))
[[complex(lx).real for lx in ll] [lx.real for lx in ll] fails because only complex numbers have a 'real' Frankly I'd enjoy reading your posts if you would be less critical of the implementation. It is what it is and it does not meet some of your needs and that is not the fault of the langauage. Unless I write the not-so-readable: FWIW I'd like to see all numbers have real and imag attributes. Regarding "worthiness" - the language grows as suggestions are offered. I'd say write and submit one. It seems simple but overlooked. -- Bob Gailer Chapel Hill NC 919-636-4239 When we take the time to be aware of our feelings and needs we have more satisfying interatctions with others. Nonviolent Communication provides tools for this awareness. As a coach and trainer I can assist you in learning this process. What is YOUR biggest relationship challenge? |
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor