[Python-Dev] Is it useful to update cgitb module?
Hello, I wonder if it's useful to update the cgitb module, in particular the html output. I see some possible improvements: 1. In both text and html versions: When a module is called, there are no parameters (displayed as '()'). I think they are unnecessary. Perhaps the parentheses should be removed? Perhaps it's better to keep them for backward compatibility? ### example for the text version ### $ python3 demo.py [...] /home/stephane/src/cgitest/demo.py in () 7 def func1(a, b): [...] ### end of example ### 2. In html version only: a. If the executed code is in : in this case, it is not shown in the html version because the square brackets are interpreted as a html tag (see the picture in attachement). b. Update the style of the html or/and using html5. It would be prettier but it will be a big change for probably too few benefits. What do you think about them? I can report bugs and send pull-requests for them but I would prefer to get feedbacks before. Regards, Stéphane signature.asc Description: OpenPGP digital signature ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Process to remove a Python feature
Le 02/05/2018 à 11:11, Victor Stinner a écrit : > * Communicate on python-dev, Twitter, Python Insider blog, etc. > * Collaborate with major Python projects to help them to migrate the > alternative I wonder if it would be interesting to have a package available by pypi.org which would provide the removed features. In your example, the developers would have to update their source code: # giving 'obsolete' as name for this package platform.linux_distribution() -> obsolete.platform.linux_distribution() The code in 'obsolete' package could come from the removed code from cpython or a wrapper around a third-party package ('distro' package in the example). Plus: - quick temporary fix for users -> the removal is less painful - the name of the import is a hint that something has to be fixed -> useful for new comers on the user source code Cons: - it pushes the question to how many times the previous behavior should be maintained from python language to 'obsolete' package. So it's not completely solved. - it adds a step to removal procedure. - I guess there are some features not movable into a package. -- Stéphane signature.asc Description: OpenPGP digital signature ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com