[Python-Dev] Summary of Python tracker Issues
ACTIVITY SUMMARY (2019-10-11 - 2019-10-18) Python tracker at https://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open7074 ( +6) closed 43195 (+61) total 50269 (+67) Open issues with patches: 2806 Issues opened (41) == #22347: mimetypes.guess_type("//example.com") misinterprets host name https://bugs.python.org/issue22347 reopened by maxking #32856: Optimize the `for y in [x]` idiom in comprehensions https://bugs.python.org/issue32856 reopened by serhiy.storchaka #33604: HMAC default to MD5 marked as to be removed in 3.6 https://bugs.python.org/issue33604 reopened by rhettinger #38453: ntpath.realpath() does not fully resolve relative paths https://bugs.python.org/issue38453 opened by steve.dower #38454: test_listdir is failing on ubuntu with WSL https://bugs.python.org/issue38454 opened by BTaskaya #38456: Reduce the time test_subprocess takes to complete. https://bugs.python.org/issue38456 opened by gregory.p.smith #38457: __package__ is None in __init__.py until an import is used https://bugs.python.org/issue38457 opened by Yuval S #38460: 3.8 Release Notes: document asyncio exception changes https://bugs.python.org/issue38460 opened by srittau #38465: The type of ob_exports in PyByteArrayObject become Py_ssize_t. https://bugs.python.org/issue38465 opened by shihai1991 #38466: [Easy doc] threading.excepthook doc talks about "object" https://bugs.python.org/issue38466 opened by srittau #38471: _ProactorDatagramTransport: If close() is called when write bu https://bugs.python.org/issue38471 opened by primal #38472: GCC detection in setup.py is broken https://bugs.python.org/issue38472 opened by Alex Grund #38473: AttributeError on asserting autospecced mock object added usin https://bugs.python.org/issue38473 opened by xtreak #38475: Break Statement https://bugs.python.org/issue38475 opened by dev40573 #38476: test_multiprocessing_fork.test_terminate() failed on AMD64 Deb https://bugs.python.org/issue38476 opened by vstinner #38480: resource.setrlimit() should raise PermissionError https://bugs.python.org/issue38480 opened by giampaolo.rodola #38482: BUG in codecs.BufferedIncrementalDecoder https://bugs.python.org/issue38482 opened by jamercee #38483: [venv] Add ~/.venvrc to change module defaults https://bugs.python.org/issue38483 opened by cooperlees #38484: HTMLParser.handle_starttag should mention that value can be No https://bugs.python.org/issue38484 opened by srittau #38485: BUG Modules/_io/texio.c https://bugs.python.org/issue38485 opened by jamercee #38486: Dead links in mailbox doc https://bugs.python.org/issue38486 opened by inada.naoki #38487: expat infinite loop https://bugs.python.org/issue38487 opened by StyXman #38488: Update bundled pip to 19.3 https://bugs.python.org/issue38488 opened by Xavier Fernandez #38490: statistics: add covariance and Pearson's correlation https://bugs.python.org/issue38490 opened by twolodzko #38493: os.CLD_KILLED and os.CLD_STOPPED should be implemented https://bugs.python.org/issue38493 opened by clintolsen #38494: Add assert_not_called_with https://bugs.python.org/issue38494 opened by valkheim #38495: print built-in function docs bug https://bugs.python.org/issue38495 opened by Alex Mashianov #38497: Wrong argument name in documentation for pipes.Template.open https://bugs.python.org/issue38497 opened by ilai #38500: Provide a way to get/set PyInterpreterState.frame_eval without https://bugs.python.org/issue38500 opened by fabioz #38501: multiprocessing.Pool hangs atexit (and garbage collection some https://bugs.python.org/issue38501 opened by Eric Larson #38502: regrtest: use process groups https://bugs.python.org/issue38502 opened by vstinner #38505: Mock.call_args and Mock.call_args_list not propagated to paren https://bugs.python.org/issue38505 opened by Caris Moses #38506: Launcher for Windows (py.exe) may rank Python 3.xx (in the fut https://bugs.python.org/issue38506 opened by ynyyn #38509: Insufficient description of relative imports in docs.python.or https://bugs.python.org/issue38509 opened by Aniruddha Bhattacharjee #38510: build python with --enable-shared with static linked python ag https://bugs.python.org/issue38510 opened by Chiu Speq #38511: Multiprocessing does not work properly when using the trace mo https://bugs.python.org/issue38511 opened by rls1004 #38512: bug of the v3.7 API document demo case code https://bugs.python.org/issue38512 opened by zr22122 #38514: pathlib's mkdir documentation improvement https://bugs.python.org/issue38514 opened by jlaurens #38515: regrtest main process timed out after 5 min on AMD64 FreeBSD C https://bugs.python.org/issue38515 opened by vstinner #38516: PEP 3132 -- Extended Iterable Unpacking inconsistent assignmen https://bugs.python.org/issue38516 opened by mjaquier #38517: functools.cac
[Python-Dev] Getting function arguments of PyCFunctionObject
Hi everyone, I have been working on some feature of a deterministic profiler( github.com/sumerc/yappi). The feature is about getting arguments for a given set of function names. For example: you can define something like foo 1,3,arg_name and when foo function is called, profiler will simply collect the first, third from *args and a named argument arg_name from *kwargs. For Python functions I am using following approach: Please note that the code below is executing in the PyTrace_CALL event of the profiler in C side: Look co_argcount and co_varnames to determine the names of arguments and then use these names to retrieve values from f_locals. It seems to be working fine for now. My first question is: Is there a better way to do this? And for C functions, I am totally in dark. I have played with f_valuestack and retrieve some values from there but the indexes seem to change from Python version to version and also I think there is no way of getting named arguments... I have been dealing with this for a while, so there might be unclear points in my explanation. I would really appreciate if anyone can help me on a correct direction on this. Thanks, Best Regards. -- Sümer Cip ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/L65BJKQU5IK6WEERASRYJ2FBWL7WW62N/ Code of Conduct: http://python.org/psf/codeofconduct/