| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@markshannon: Would you mind to review this PR? |
Sorry, something went wrong.
|
@brandtbucher: Would you mind to review this PR? |
Sorry, something went wrong.
|
Removing the script seems fine. |
Sorry, something went wrong.
I just searched in the PyPI top 5000 projects: I found 0 projects using getdxp(). I cannot be 100% sure. But if a project uses getdxp(), it can be updated to use the new way to gather stats, no? Also, we can add back the function if someone comes with a use case for it. For me, it's mostly a tool to develop and optimize Python. So if no Python core dev uses it, I don't think that we should worry about removing this function. |
Sorry, something went wrong.
|
@smontanaro: I found a script using sys.getdxp() in "BitTorrent-master" . Are you still using it? # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
(...)
def report(email, appname):
"""
Send an RLE encoded version of sys.getdxp() off to our Top Men (tm)
for analysis.
"""
if hasattr(sys, 'getdxp') and appname:
dxp = xmlrpclib.ServerProxy("http://manatee.mojam.com:7304")
dxp.add_dx_info(appname, email, sys.version_info[:3], rle(sys.getdxp()))See twisted/python/dxprofile.py for the full source with the rle() function. This script was part of Twisted and was removed in Twisted Core 8.0.0 (2008-03-17) because it no longer worked (issue #2908). |
Sorry, something went wrong.
|
I found references to getdxp() by @smontanaro on python-dev mailing list in 2001-2003: |
Sorry, something went wrong.
|
Ah by the way, as you can see in this PR, sys.getdxp() is not documented and not tested at all. There is just a test on the script. |
Sorry, something went wrong.
|
@vstinner As you might have expected, I'm no longer using the dxp stuff, but thanks for checking. :-) |
Sorry, something went wrong.
Remove the sys.getdxp() function and the Tools/scripts/analyze_dxp.py script. DXP stands for "dynamic execution pairs". They were related to DYNAMIC_EXECUTION_PROFILE and DXPAIRS macros which have been removed in Python 3.11. Python can now be built with "./configure --enable-pystats" to gather statistics on Python opcodes.
|
Thanks for reviews. It's now removed. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Remove the sys.getdxp() function and the Tools/scripts/analyze_dxp.py script. DXP stands for "dynamic execution pairs". They were related to DYNAMIC_EXECUTION_PROFILE and DXPAIRS macros which have been removed in Python 3.11. Python can now be built with "./configure --enable-pystats" to gather statistics on Python opcodes.