[PyQt] 2+1//(-10) == 1 and 2-1//10 == 2 !
Florian Bruhin
me at the-compiler.org
Wed Feb 3 05:47:48 GMT 2016
* Miguel Alejandro Fernandez <alejandrogroso at hotmail.com> [2016-02-02 23:30:00 +0000]:
> Error python, not have the slightest sense!
>
> [...]
>
> pypy-2.4.0-win32 also returns the same results.
>
> any ideas?
I've not looked at the interpreter output, but from your subject:
2 + (1 // -10)
2 + -1
1
2 - (1 // 10)
2 - 0
2
I'm not sure what you were expecting, but this makes very much sense
to me.
Also how exactly is this related to PyQt (a GUI library for Python)
again? ;)
Florian
--
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160203/82f31076/attachment-0001.sig>
More information about the PyQt
mailing list