tools: flash_writer.py fix Python 3.13 compatibility#18414
tools: flash_writer.py fix Python 3.13 compatibility#18414Biancaa-R wants to merge 1 commit intoapache:masterfrom
Conversation
Signed-off-by: Biancaa Ramesh <biancaa2210329@ssn.edu.in>
|
Hi @Biancaa-R How can we use the telnet protocol with versions higher than Python 3.12? https://docs.python.org/3/library/telnetlib.html It is necessary to use the following alternatives: |
linguini1
left a comment
There was a problem hiding this comment.
This does not fix the issue. The telnet module cannot just be removed.
cederom
left a comment
There was a problem hiding this comment.
Thank you @Biancaa-R :-)
- I am afraid this functionality is required for application operations thus cannot be just removed without alternative as @simbit18 and @linguini1 noticed. We need a working alternative please :-)
- Please take a look at https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md when proposing a fix log before and after change are required in order to provide initial proof the fix is working as expected :-)
Sure @cederom Ill fix it and get back. |
@cederom I need a small help , so the older version is fully synchronous , the newest version is predominantly asynchronous with the async library , but it can be made sync also ,so which one do I do ? asynchronous implementation is fine? |
The old implementation is synchronous, so we need to stick to synchronous. As you know in Python using ps/2: I really liked Python some time ago until it became self-incompatible nightmare changing language syntax, standard library components and API, changing ecosystem syntax and functionalities (i.e. pip). This makes Python not much trustworthy solution when you think in long term maintenance terms. There could be completely alternative solution here just to avoid Python and rewrite this tool in C that will not change in time. Maybe tool like this already exist? Or maybe Python developers provided a quick-fix information when introducing this breaking change of telnet module removal what alternatives / solutions do they offer instead? |
The deprecation was announced some time ago (2019!). The current telnetlib page gives us alternatives: |
Note: Please adhere to Contributing Guidelines.
Summary
Impact
Testing