Fix for collections.Callable removal on python >= 3.9#78
Fix for collections.Callable removal on python >= 3.9#78greyblue9 wants to merge 1 commit intopyreadline:masterfrom
Conversation
|
Looks like this project is not in active development. |
|
What are Windows python users doing these days to get functional readline editing? I am genuinely perplexed. Unless most have moved on from the built-in repl. It turns out this fix would be needed all the way back to 3.9 , too (that's when (Aside: I would be glad to take over from the maintainer if they're not interested anymore or just don't have time/energy to dedicate towards upkeep. I do find this a very helpful package. 😍)
Yeah, does look like it. And I believe that a similar package, Would you consider using a fork, just out of curiosity? 🤔 |
|
Consider using This is how I specified dependencies for Windows: pyreadline3 = {version = "^3.4.1", markers = "sys_platform == 'win32'"} |
Thanks for the tip! I didn't know about this one. |
|
Details |
On python 3.9 and later (tested with 3.11 alpha-3),
pyreadline's startup hook unfortunately fails due to some once-deprecated names being finally removed in the stdlib. The cause is thatCallablehas been removed from thecollectionsmodule since python 3.9 The location to use iscollections.abc. Slight tweak to the code so that it will work for both setups.Python Version: Python 3.11.0a3 (main, Dec 8 2021, 22:56:33) [MSC v.1929 64 bit (AMD64)] on win32
PyReadline Version: pyreadline-2.1 (from pypi
pyreadline-2.1.zip)Full traceback: