[issue34861] Improve cProfile standard output

2022-03-23 Thread Daniël van Noord
Daniël van Noord added the comment: I have resubmitted the patch that changes the default sorting order in https://github.com/python/cpython/pull/31929 as it was asked to separate that from the original patch by Anders. I also added documentation changes that follow from changing the default

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2022-03-18 Thread Daniël van Noord
Daniël van Noord added the comment: @Bayard Randel, do you want to make this patch into a GitHub PR? If not, I could help by doing so and try to get this landed. -- nosy: +danielnoord ___ Python tracker <https://bugs.python.org/issue15

[issue16845] warnings.simplefilter should validate input

2022-03-18 Thread Daniël van Noord
Daniël van Noord added the comment: I have submitted the path by @berker.peksag with one additional test case in a new PR. @nanjekyejoannah I saw you responded to the other PR, but that died down. Would you mind taking a look at mine? I'm happy to help land this :) -- nosy

[issue2604] doctest.DocTestCase fails when run repeatedly

2022-03-16 Thread Daniël van Noord
Daniël van Noord added the comment: I have created a PR that combines the patch here with the patch from issue9736. -- nosy: +danielnoord ___ Python tracker <https://bugs.python.org/issue2

[issue35212] Expressions with format specifiers in f-strings give wrong code position in AST

2022-03-16 Thread Daniël van Noord
Daniël van Noord added the comment: This was fixed by https://github.com/python/cpython/pull/27729. On 3.10: ```console >>> ast.parse("f'{a}'").body[0].value.values[0].value.col_offset 3 >>> ast.parse("f'{a:b}'").body[0].value.values[0].value.col_offset

[issue25804] Make Profile.print_stats support sorting by mutiple values

2022-03-16 Thread Daniël van Noord
Daniël van Noord added the comment: @wdv4758h, do you think you will be able to resubmit the patch to Github? This would probably still be a useful addition and some review has already been done. If not, I could pick up the patch and re-submit, but I don't want to take credit for your work

[issue46507] enabling cProfile to profile code given as an argument "à la" timeit

2022-03-16 Thread Daniël van Noord
Daniël van Noord added the comment: There were some comments on the (now closed) PR associated to this report. One was about requiring a new flag to tell cProfile to consider the code in question code instead of a file path. `-c` was proposed, I presume abbreviating `--code`. Is this indeed

[issue18795] pstats - allow stats sorting by cumulative time per call and total time per call

2022-03-15 Thread Daniël van Noord
Daniël van Noord added the comment: I resubmitted the original patch and updated it with documentation and news item changes. This would still be a valuable addition imo, as it can help single out expensive calls in your module/script. -- nosy: +danielnoord

[issue46241] importlib.utils.find_spec() has issues with "tests" folder

2022-01-05 Thread Daniël van Noord
Daniël van Noord added the comment: Thanks Brett for that explanation! Makes sense actually now that I think about it. I also wondered how astroid got onto my sys.path, but that's something for another time :) -- ___ Python tracker <ht

[issue46241] importlib.utils.find_spec() has issues with "tests" folder

2022-01-03 Thread Daniël van Noord
Change by Daniël van Noord : -- components: +Library (Lib) ___ Python tracker <https://bugs.python.org/issue46241> ___ ___ Python-bugs-list mailing list Unsub

[issue46241] importlib.utils.find_spec() has issues with "tests" folder

2022-01-03 Thread Daniël van Noord
New submission from Daniël van Noord : Affected folder structure: ── module_loader │ ├── __init__.py ├── pyproject.toml ├── setup.cfg └── tests └── test_module_loader.py ```console ❯ cat '/Users/daniel/DocumentenLaptop/Programming/Test/module_loader/module_loader/__init__.py' from