Python 3.8 - alpha release
Pages: 1 2 3 4 5 6 7 8 9 10 11 ... 14
Chris Johns (8262) 242 posts |
Hi all For anyone who’s interested, I have built an alpha release of Python 3.8, which can be downloaded from here.. http://www.mediafire.com/file/m0vxr49pmphzyy6/Python3.zip/file (it’s a RISC OS zip file) It’s an elf program and uses shared objects, so you will need !SharedLibs installed. Please be aware that this really is alpha quality software. I am releasing it to get feedback, comments, bugs and suggestions. You can comment here, send an email to the address in the ReadMe file or on the issue tracker at https://github.com/c-jo/cpython/issues Happy pythoning! Chris |
mikko (3145) 123 posts |
Good work, Chris! |
Michael Gerbracht (180) 104 posts |
Yes, very good news. I will get into Python at work soon so once I get used to it I would like to try it on RISC OS as well. Good to see the current version ported. Unfortunately I don’t have enough experience with it now to test it. |
Matthew Hambley (3084) 17 posts |
This seems in pretty good shape for an alpha release. There doesn’t seem to be support for <Python$Path> as an equivalent to PYTHONPATH on Posix and Posix-like systems. Is this something you plan to implement? Or is there another way to get that functionality? I’m getting failures in pathlib, I guess you just haven’t got to it yet. Do you have plans for a RiscOsPath (And RiscOsPurePath) implementation for that package? It could be a tidy way to handle file types, use the MimeMap module to convert them to extensions, then return them from .suffix(). And vice-versa of course. |
Norman Lawrence (3005) 172 posts |
Thanks Chris, early tests on my PineBook are very positive. Many thanks for bringing the current version of Python to RISC OS. |
Chris Johns (8262) 242 posts |
Thanks for the feedback.
Ah.. yes… I cut a fair bit of the path searching stuff out to concentrate on getting the basic system working first, so now need to put the missing bits back :)
Thanks for pointing that one out. I’ve started to add the RISC OS ‘versions’ of Path and PurePath. As you might’ve guessed, so far it’s really been a case of ‘enough to get to the >>> prompt’, getting the extensions working and trying to use a more RISC OS-like way of handling files (which is still not fully complete).
The PineBook is my main development platform for it now. :) |
Norman Lawrence (3005) 172 posts |
At the moment I am working my way through the Python Primary School examples that featured in DragNDrop a few years ago. So far the example programs work. StrongEd makes a great RISC OS version of IDLE. I am sure you already knew that but just in case someone else is starting to use Python. |
Rob Andrews (112) 164 posts |
No working here i get system is a Titanium running ver 5.27 19/12/19 Current thread 0×00291d94 (most recent call first): |
Andrew Rawnsley (492) 1443 posts |
The error makes it sound like it doesn’t care for your machine’s ADFS or perhaps something about the disc/folder paths. Have you tried running it from another FS such as SDFS, RAM or SCSIFS? |
Rob Andrews (112) 164 posts |
the same error with scsi set as the filesystem and the python directory on a second drive Python path configuration: Current thread 0×00291d88 (most recent call first): |
Chris Johns (8262) 242 posts |
I am wondering if it’s the \xa0 (non-breaking space) that’s causing some part in the chain to get upset. Can you try renaming SCSI::Panda.$.Python 3 to SCSI::Panda.$.Python3 (or Python_3) and see if that works? Thanks Chris |
Rob Andrews (112) 164 posts |
well done chris you hit the ball right out of the park well spotted that fixed it, now i can move on and check other programs. |
Steve Pampling (1551) 8155 posts |
I do have big questions about what a space (non-breaking or otherwise) is doing in a filename or path. To quote a colleague “spaces are delimiters” |
Rob Andrews (112) 164 posts |
The space was all down to me I’m afraid I like to make me workspace more readable so if I have version 2 I would write Python 2 so it follows that I would write Python 3 one of my little quirks. |
Steve Pampling (1551) 8155 posts |
Smacked wrist :) |
Clive Semmens (2335) 3276 posts |
All that said, spaces in file and directory names are (sadly) common on other platforms nowadays, and it’s nice when one can share them (relatively) seamlessly between platforms. Not that I use spaces on the Mac, but then not all the files I handle are named by me. |
Steve Pampling (1551) 8155 posts |
I refrained from mentioning the cretins1 at Redmond previously. 1 I’m normally far more expressive, but I’m in a chilled holiday mood and there may be delicate persons about. |
Clive Semmens (2335) 3276 posts |
It’s not just Microsoft who do it. The Mac comes full of spaced out filenames as well. Lots of hyphenated or underscored ones too, seems utterly random. |
Steve Pampling (1551) 8155 posts |
Off to Aldershot |
Rebecca Shalfield (2257) 18 posts |
Have just got Python 3.8 alpha up and running on my Titanium machine. Absolutely brilliant work Chris! I look forward to future releases. From my limited experimentations, I have only encountered three issues. The first is in the hello script, where the line print(“Hello {} World”.format(os.name)) could be better written as print(f"Hello {os.name} World"). In the Windows World, I longed to move my huge Python program to Python 3.6 just so I could use f-strings! I love f-strings! The second is in executing the python3 command where I get the “Wimpslot not big enough to run ELF program”. Executing a suitable Wimpslot command beforehand resolved this though as will changing the relevant line in !Boot from ’’’set Alias$python3 Run <Python$Dir>.python3 %0’’’ to ’’’set Alias$python3 Wimpslot -min 16M |M /<Python$Dir>.python3 %0’’’. The third is that I am unable to import ctypes as the _ctypes module is missing. |
Chris Johns (8262) 242 posts |
Thanks for the feedback everyone. I have had some time over the past few days to progress things. I’ve now added Python$Path which seems to be working, and (finally) tracked down and fixed the problem with the spaces in the filenames (if anyone is interested, it was because passing the utf-8 string to the SWI to get the file type, so that failed so python didn’t try to load it). I have got pathlib to import, but I need to test it. I had a look at ctypes, which looks like it needs libffi. As I was on a train at the time, I wasn’t able to do a lot of searching online about it. I’ll stick it on the to-do list :)
Good call. It was kinda just thrown in to test that double-clicking on a python file does what it should :) |
Chris Johns (8262) 242 posts |
While I’m here – what are people’s views on the naming? At the moment it’s called !Python, but so it Python 2, and they also use the same file type. Is there merit to changing the name to !Python3, using a different type (and Python3$Path) to allow both Python 3 and Python 2 to work at the same time? I know on linux you can have both installed, not sure about Windows. |
Matthew Hambley (3084) 17 posts |
As far as issues of identity go I can see arguments both ways. My initial reaction is to say that Python 3 is intended to replace Python 2 and we are now past the point where Python 2 is officially deprecated. In which case I don’t see a compelling reason to support both working side by side. Afterall they can still both be installed but only one can be active at a time. On the other hand there may well be people out there who are going to get into a position where they want to use both at the same time. While we should be doing everything we can to encourage them to migrate to the supported platform it may be out of their hands. One factor which should feed into this is pressure on resources. Filetypes are limited in number, what percentage have been used? |
Steffen Huber (91) 1949 posts |
Python 2 and Python 3 are separate things, so keep them separate. Python 3 is (intentionally) breaking backward compatibility. |
Chris Johns (8262) 242 posts |
Alpha 2 now available from here https://github.com/c-jo/cpython/releases/tag/riscos-3.8.0-a2 Still no ctypes but some of the other stuff should now be working. |
Pages: 1 2 3 4 5 6 7 8 9 10 11 ... 14