Message57327
| Author |
christian.heimes |
| Recipients |
christian.heimes, mykhal |
| Date |
2007年11月09日.20:46:27 |
| SpamBayes Score |
0.11527181 |
| Marked as misclassified |
No |
| Message-id |
<4734C722.5010503@cheimes.de> |
| In-reply-to |
<1194640390.16.0.239978675696.issue1413@psf.upfronthosting.co.za> |
| Content |
> I don't understand why 1.j is 1j .. because there's no int.j .. why then
> 1.L is not 1L ?
Complex numbers from the number domain |C which supersets |R. Complex
numbers are usually implemented and viewed as 2d vectors made from two
floating numbers real and img.
A long or long int however is from number domain |Z which doesn't allow
fraction and hence no '.', too.
It should explain why 1.L is illegal but 1.j is 1.0 * 1j.
> .. however, fixing this is not necessary - because no one would
> probably use it, it's just a syntax inconsistency
I don't if it's possible to fix the problem with Python's parser.
However the inconsistency should be documented. Is it explained in the
docs and do the docs also mention the (1).__attr__ trick? I wasn't aware
that it works.
Christian |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年11月09日 20:46:28 | christian.heimes | set | spambayes_score: 0.115272 -> 0.11527181 recipients:
+ christian.heimes, mykhal |
| 2007年11月09日 20:46:28 | christian.heimes | link | issue1413 messages |
| 2007年11月09日 20:46:27 | christian.heimes | create |
|