Python Puzzle
John Rickman (71) 646 posts |
Can anyone exlain what is going on in this Python3 session in the first division? Python 3.8.0a3 (default, Jan 22 2020, 11:52:15) >>> 5*6 |
John Rickman (71) 646 posts |
And here is another. I am puzzzled by the result of 100%2.54. |
John WILLIAMS (8368) 495 posts |
Prompted by your query I sourced the Python port – and it Perhaps that may be relevant? |
John Rickman (71) 646 posts |
Thanks John – I restarted Python and cannot now reproduce the odd result: The second puzzle shows the correct result. I had misunderstood how the remainder function works. I note that I have a later version here: I will update today. |
John Rickman (71) 646 posts |
I note that I have a later version here: Where can it be found? The latest I can find is in the zip Python38a3 |
Andrew McCarthy (3688) 605 posts |
It’s probably worth checking out the following thread – Python 3.8 – alpha release |
John WILLIAMS (8368) 495 posts |
I followed the thread quoted immediately above to find the latest incarnation. |
Steve Pampling (1551) 8172 posts |
Or to save directing people to go to another thread and then scan all the way through to find this link (in full) https://github.com/c-jo/cpython/releases/tag/riscos-3.8.0-a4 From which a little logic gives you https://github.com/c-jo/cpython/releases Which will always have the link to the specific part of that github repository with the actual release as well as the link to the source for those who like to play. |
John WILLIAMS (8368) 495 posts |
A constant help in troubled times! |
Steve Pampling (1551) 8172 posts |
On my part it was a suggestion to look where the information will be, but, slightly obliquely, also to hint to the author that it would be less effort to point at the generic page rather than a specific version link |
John Rickman (71) 646 posts |
Thanks. I have added Python to my collection of RISC OS links. |