[issue46044] Update distutils documentation to say PyPI only accepts tar.gz and zip.

2021-12-10 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : This page: https://docs.python.org/3/distutils/sourcedist.html Is the first result on google for "python sdist", but does not mention that all but tar.gz and zip are supported by PyPI. -- assignee: docs@python components: Doc

[issue46044] Update distutils documentation to say PyPI only accepts tar.gz and zip.

2021-12-10 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +28269 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30043 ___ Python tracker <https://bugs.python.org/issu

[issue46044] Update distutils documentation to say PyPI only accepts tar.gz and zip.

2021-12-10 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue46044> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46044] Update distutils documentation to say PyPI only accepts tar.gz and zip.

2021-12-17 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +28392 pull_request: https://github.com/python/cpython/pull/30171 ___ Python tracker <https://bugs.python.org/issue46

[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-12 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +pablogsal ___ Python tracker <https://bugs.python.org/issue45738> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-12 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Yep, this also break IPython command completions when users press tab in some places in multiline code. 88f4ec88e282bf861f0af2d237e9fe28fbc8deac is the first offending commit for me in the 3.9 branch: [3.9] bpo-45494: Fix parser crash when

[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-12 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Note that with the following example, exec and CommandCompiler return a different error: from codeop import CommandCompiler # identical errors #exec('1,\\#\n2') SystemError #CommandCompiler()('1,\\#\n2', symbol

[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-12 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > I will be able to take a look later in the weekend Please take some time for yourself, I added you as you were the original author of the patch to make you aware. I believe most projects can workaround that for

[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-14 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Works for me as well. Thanks. -- ___ Python tracker <https://bugs.python.org/issue45738> ___ ___ Python-bugs-list mailin

[issue26389] Expand traceback module API to accept just an exception as an argument

2019-11-13 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > were you interested in continuing with Brett's (and your) suggestion for the > API by making the first argument positional-only and the others optional? Yes, but I currently do not have the time; if someone else want to take over; or if

[issue38955] Non indemnpotent behavior of asyncio.get_event_loop and asyncio.run sequence.

2019-12-02 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : Hi, Not sure if this a bug, or an intended feature. I got surprise by the following behavior. from asyncio import run, sleep, get_event_loop print(get_event_loop()) # return the current eventloop run(sleep(0)) print(get_event_loop

[issue38955] Non indemnpotent behavior of asyncio.get_event_loop and asyncio.run sequence.

2019-12-05 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Thanks Andrew; I'd still would love to have a way to get the current eventloop outside of async code that is consistent. I guess throwing an error with `get_event_loop()` is ok, it's just that `RuntimeError` feel like a weird thin

[issue38981] better name for re.error Exception class.

2019-12-05 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : better error/exception name for re.compile error. Currently the error raise by re.compile when it fails to compile is `error` defined in sre_constants.py: ``` class error(Exception): """Exception raised for invalid regu

[issue38981] better name for re.error Exception class.

2019-12-05 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Most of the module specific classes are `Error`, not `error`, at least with an uppercase E you know it's a class. if a novice sees : > error: missing ), unterminated subpattern at position 0 It will be relatively tough or them to figure

[issue38981] better name for re.error Exception class.

2019-12-05 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Thanks for the advice I've done that ! Have a good day. -- ___ Python tracker <https://bugs.python.org/is

[issue38981] better name for re.error Exception class.

2019-12-07 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Thanks Serhiy, Here is a rough idea of how many places would be touched by renaming in the `re` module: https://github.com/Carreau/cpython/commit/59e4c5150c842f849ff3a9ba8a94df1df7a5eb1c (50 additions and 42 deletions.). I haven't found any p

[issue38981] better name for re.error Exception class.

2019-12-07 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +16979 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17501 ___ Python tracker <https://bugs.python.org/issu

[issue38981] better name for re.error Exception class.

2019-12-09 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > RECompileError, REParseError, RESyntaxError, REError, CompileError, > ParseError, SyntaxError or Error, > Many modules [...] have an exception named just Error RECompileError, REParseError, RESyntaxError, REError, CompileError, ParseError

[issue38872] Document exec symbol for codeop.compile_command

2020-05-10 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker <https://bugs.python.org/issue38872> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40585] compile_command exec not raising syntax error with new PGEN Parser

2020-05-10 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : compile_command used to produce syntax error in exec mode: ``` $ python -c "import codeop; codeop.compile_command('raise = 2', symbol='exec')" Traceback (most recent call last): File "", line 1, in Fil

[issue40334] PEP 617: new PEG-based parser

2020-05-10 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Thanks Pablo for replying to my tweet, a couple of other non-failing case in https://bugs.python.org/issue40585 that I filled concurrently to your message. (also using this occasion to thanks all of you for your work on the new parser) -- nosy

[issue38872] Document exec symbol for codeop.compile_command

2020-05-10 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: See the `compile()` documentation for the difference between eval/single/exec: https://docs.python.org/3/library/functions.html#compile `exec` is meant for multiline program, for example you would "exec" the string read from a file to get a m

[issue40334] PEP 617: new PEG-based parser

2020-05-10 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Seem to not be in the new parser but simply in codeop in particular `def _maybe_compile` The logic seem weird (but weird logic usually have a reason), it try to compile thrice by appending many `\n`. 1) Why do that and not return the first successful

[issue40587] [regression] inspect.getdoc not returning docstring.

2020-05-10 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : In python 3.8: ``` >>> class A(object): ... """standard docstring""" ... pass ... >>> import inspect >>> inspect.getdoc(A()) 'standard docstring' ``` In 3.9: ``` $ python Pyth

[issue40587] [regression] inspect.getdoc not returning docstring.

2020-05-10 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- components: +Interpreter Core versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue40587> ___ ___ Python-bug

[issue40587] [regression] inspect.getdoc not returning docstring.

2020-05-10 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: That will break a lot o the interactive usage for the scientific ecossytem Imho, For example anyone that get a Pandas Dataframe and try to get help on it either via help(df), or `df?` in IPython/Jupyter. Might be purposeful (https://bugs.python.org

[issue40257] Improve the use of __doc__ in pydoc

2020-05-10 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: This is going to potentially break a lot of interactive usage in the Scientific ecosystem. A a lot of people are going to do: df = load('my.csv') df?? To ask for help and will get nothing. Even for subclass, I want to argue that a

[issue40257] Improve the use of __doc__ in pydoc

2020-05-10 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > can you clarify your example? What's load()? And what does df?? do? It was vague on purpose, `load()` would be for example `load_csv()` from `pandas` that return a `pandas.DataFrame`. The point being that users typically won't really k

[issue40257] Improve the use of __doc__ in pydoc

2020-05-11 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > Can you all please decide which issue to use? We can stay here, I opened the other issue before figuring out this was the cause. > If IPython wants to output the help on the instance, it should change the > implementation of `?` and `??`. It

[issue40257] Improve the use of __doc__ in pydoc

2020-05-12 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: I've sent a request for comments on python-dev https://mail.python.org/archives/list/python-...@python.org/thread/6QO2XI5B7RVZDW3YZV24LYD75VGRITFU/ Thanks. -- ___ Python tracker <https://bugs.py

[issue40257] Improve the use of __doc__ in pydoc

2020-05-18 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > Looks like the revert is solving the issue? It appears to do so as far as I can tell, and most test pass on nightly, the rest seem to be unrelated to changes in current 3.9. Many thanks to Serhiy for all the work on making documentation better,

[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-15 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: I should have been more careful in my explanation in the upstream issue to have a complete report in here. I think that patching logging.disable to raise a type error immediately would be welcome; as the effect of storing a wrong type make any asyncio

[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-15 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +22643 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23786 ___ Python tracker <https://bugs.python.org/issu

[issue38632] setup.py sdist should honor SOURCE_DATE_EPOCH

2020-05-23 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker <https://bugs.python.org/issue38632> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38632] setup.py sdist should honor SOURCE_DATE_EPOCH

2020-05-23 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +19599 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20331 ___ Python tracker <https://bugs.python.org/issu

[issue38632] setup.py sdist should honor SOURCE_DATE_EPOCH

2020-05-23 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: https://github.com/python/cpython/pull/20331 is a first step toward this. See comments in there, I would love some reviews. If that gets im I'll be happy to send further refactor to make the compression step also respect SOURCE_DATE_EPOCH.

[issue37028] Implement asyncio repl

2020-05-27 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > Compared to the vanilla REPL, this doesn’t include readline setup for tab > completion and history file. Was it on purpose? Not particularly, it was mostly to show it is possible. I'm guessing any improvement to make it more consiste

[issue41041] Multiprocesing Pool borken on macOS REPL

2020-06-19 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : $ python Python 3.8.2 | packaged by conda-forge | (default, Apr 24 2020, 07:56:27) [Clang 9.0.1 ] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from multiprocessing

[issue41041] Multiprocesing Pool borken on macOS REPL

2020-06-19 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Thanks. That's an annoying side effect of having spawn by default on macOS then. Could it be possible in `pool.map()` to detect that some of the objects are from main and would fail and then raise an error message in the parent process b

[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-28 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker <https://bugs.python.org/issue19335> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41218] PyCF_ALLOW_TOP_LEVEL_AWAIT + list comprehension set .CO_COROUTINE falg.

2020-07-06 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : As far as I can tell sometime in 3.8.x (likely 3.8.3) the following snippet changed result: import ast import inspect cell = '[x for x in l]' code = compile(cell, "<>", "exec", flags=getattr(a

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-07-06 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: This make non-await list comprehension coroutine-code-objects as well: https://bugs.python.org/issue41218 import ast import inspect cell = '[x for x in l]' code = compile(cell, "<>",

[issue41218] PyCF_ALLOW_TOP_LEVEL_AWAIT + list comprehension set .CO_COROUTINE falg.

2020-07-06 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: (crossref https://github.com/ipython/ipython/issues/12422) -- ___ Python tracker <https://bugs.python.org/issue41

[issue41218] PyCF_ALLOW_TOP_LEVEL_AWAIT + list comprehension set .CO_COROUTINE falg.

2020-07-06 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: https://bugs.python.org/issue39562 seem to have triggered that. -- ___ Python tracker <https://bugs.python.org/issue41

[issue41218] PyCF_ALLOW_TOP_LEVEL_AWAIT + list comprehension set .CO_COROUTINE falg.

2020-07-06 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +20503 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21357 ___ Python tracker <https://bugs.python.org/issu

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-07-06 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Pablo, I see you reopened and marked as blocker, As the changes here has been released maybe you want to reclose and marked https://bugs.python.org/issue41218 as blocker it should also be fixed by https://github.com/python/cpython/pull/21357

[issue41520] 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-10 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : assuming $ cat foo.py import warnings from codeop import compile_command warnings.simplefilter('error', SyntaxWarning) res = compile_command('1 is 1\n', symbol='exec') print('Res', res)

[issue41520] 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-10 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: seem to affect 3.8.4 as well. -- ___ Python tracker <https://bugs.python.org/issue41520> ___ ___ Python-bugs-list mailin

[issue41520] 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-10 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Potentially due to https://bugs.python.org/issue40807 https://github.com/python/cpython/pull/20486 -- ___ Python tracker <https://bugs.python.org/issue41

[issue40807] Codeop: Show warnings once during _maybe_compile

2020-08-10 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: I think that might have introduce https://bugs.python.org/issue41520 where now `warnings.simplefilter('error', SyntaxWarning)` is silently ignored... -- nosy: +mbussonn ___ Python track

[issue41520] 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-10 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- versions: +Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue41520> ___ ___ Python-bugs-list mailin

[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-12 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > Thanks Matthias Bussonnier for the fix. Thank *YOU* for the fix, and the bug report is initially from tcaswell. At least on 3.8 branch this is fixed for me. Just for completeness, this was discovered as in IPython we try to guess whether &qu

[issue42101] Allow inheritance of Venvs

2020-10-20 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : Followup from Python Idea: https://mail.python.org/archives/list/python-id...@python.org/thread/KTIYUEYF6XBHOGOLV744RQXMTETVSTOF/ Goal would be to allow layering on virtualenv to speedup creation and use less disk space in the case of many large

[issue42101] Allow inheritance of Venvs

2020-11-24 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +22393 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23504 ___ Python tracker <https://bugs.python.org/issu

[issue36952] fileinput input's and Fileinput's bufsize=0 marked for removal in 3.8

2019-05-17 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : Can likely thus be removed now. See also https://bugs.python.org/issue33563 that was tracking better deprecation warnings. If not removed documentation should bump removal to 3.9 -- components: Library (Lib) messages: 342769 nosy: mbussonn

[issue36952] fileinput input's and Fileinput's bufsize=0 marked for removal in 3.8

2019-05-17 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +13310 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36952> ___ _

[issue36953] Remove collections ABCs?

2019-05-17 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker <https://bugs.python.org/issue36953> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36953] Remove collections ABCs?

2019-05-18 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Should it still raise an informative error message with ImportError: > ImportError: cannot import name 'XXX' from 'collections', please import it > from 'collections.abc'. or just the "cannot import name &#

[issue25988] collections.abc.Indexable

2019-05-18 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +13320 ___ Python tracker <https://bugs.python.org/issue25988> ___ ___ Python-bugs-list mailing list Unsub

[issue36691] SystemExit & sys.exit : Allow both exit status and message

2019-05-19 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker <https://bugs.python.org/issue36691> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36953] Remove collections ABCs?

2019-05-20 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +13356 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36953> ___ _

[issue25988] collections.abc.Indexable

2019-05-20 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: -13320 ___ Python tracker <https://bugs.python.org/issue25988> ___ ___ Python-bugs-list mailing list Unsub

[issue25988] collections.abc.Indexable

2019-05-20 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: mbussonn: Your new PR looks like it's related to #36953 ("Remove collections ABCs?"), not this issue specifically. Can you withdraw/reissue attached to the correct issue? Apologies, I've rebased and updated the issue numbers, no

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: I've tried a bit PR 13455, I find this way nicer than textwrap.dedent(...), though I wonder if f-string readability (and expected behavior?) might suffer a tiny bit with the order of formatting the f-string vs dedenting. In the following it is

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > Oh, please, please, please PLEASE let's not over-sell this! Sorry didn't wanted to give you a heart attack. The optimisation has been mentioned, and you never know what people get excited on. > Such constant-folding ... Well, in h

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2019-05-21 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Would that be anyway closed by pep 594 (https://www.python.org/dev/peps/pep-0594/#nntplib) which suggest the removal nntp ? -- nosy: +mbussonn ___ Python tracker <https://bugs.python.org/issue28

[issue33563] fileinput input's and Fileinput's bufsize=0 do not remit deprecationWarnings

2019-05-21 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: bufsize has now been removed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33725] Python crashes on macOS after fork with no exec

2019-05-21 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +13382 ___ Python tracker <https://bugs.python.org/issue33725> ___ ___ Python-bugs-list mailing list Unsub

[issue25234] test_eintr.test_os_open hangs under Xcode 7

2019-05-21 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +13383 ___ Python tracker <https://bugs.python.org/issue25234> ___ ___ Python-bugs-list mailing list Unsub

[issue35363] test_eintr: test_open() hangs randomly on x86-64 El Capitan 3.x buildbot

2019-05-21 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +13384 ___ Python tracker <https://bugs.python.org/issue35363> ___ ___ Python-bugs-list mailing list Unsub

[issue37003] ast unparse does not support f-string new debug format.

2019-05-21 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : All in title, f"{x=}" implemented in https://bugs.python.org/issue36817 are not liked by unparse: https://github.com/python/cpython/pull/13473, -- components: Library (Lib) messages: 343105 nosy: mbussonn priority: normal severi

[issue37003] ast unparse does not support f-string new debug format.

2019-05-21 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +13387 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue37003> ___ _

[issue36817] Add = to f-strings for easier debugging.

2019-05-21 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: I'm not quite sure I completely understand how this is implemented and all the possibilities; – so I would appreciate reviews on the issue (and patch) to handle this in ast-unparse. See https://bugs.python.org/issue37003 Thanks, --

[issue34616] implement "Async exec"

2019-05-21 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > Any idea why PR 13148 has been linked to unrelated bugs.python.org issues? Could it be due to rebasing and force-pushing ? Cause I did force-push on this branch a couple of times... -- ___ Python trac

[issue34616] implement "Async exec"

2019-05-21 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > Yes, Elvis and I will take care of that later. And I'm guessing you will collect what's in NEWS.d ? Otherwise I'm happy to contribute some text. let me know the best way. -- ___ Pyth

[issue34616] implement "Async exec"

2019-05-21 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > Maybe you used "git merge" and your PR "contained" changes from other issues? I quasi-nerver merge, either `rebase interactive` or `reset --hard HEAD`... I even proscribed "git pull" from my CLI.. but you know ever

[issue37003] ast unparse does not support f-string new debug format.

2019-05-21 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Just for clarification for future readers; I landed a PR that used f"{x=}" in some new functionalities, and that broke the buildbots, the buildbots do test that many of the `Lib/` files can be round-tripped ast->unparse->ast, and as ast

[issue34616] implement "Async exec"

2019-05-21 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +13396 ___ Python tracker <https://bugs.python.org/issue34616> ___ ___ Python-bugs-list mailing list Unsub

[issue34616] implement "Async exec"

2019-05-21 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > section to document the new flag inside "Improved Modules" category Done in https://github.com/python/cpython/pull/13484 -- ___ Python tracker <https://bugs.pytho

[issue37006] Add top level await statement support for doctest

2019-05-22 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: The other thing to think about is `ensure_future` and `create_task`, they may not move forward until a foreground task is running. You can keep a loop running between lines or code-chunks, but then doctest cannot contain `asyncio.run()`. I'm le

[issue37003] ast unparse does not support f-string new debug format.

2019-05-22 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: I thought it was comparing the AST of the file to the AST of the unparsed AST. So it's actually checking if parse(unparse(x)) is indempotent and not wether parse(unparse(x)) is indempotent. So x={x!r} should be fine. On Wed, May 22, 2019, 09:22

[issue37006] Add top level await statement support for doctest

2019-05-22 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: As a reference, PR from Yuri for an asyncREPL `python -m asyncio` which I believe he want in 3.8: https://github.com/python/cpython/pull/13472 I'm also likely to align IPython behavior on whatever core python de

[issue37028] Implement asyncio repl

2019-05-23 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker <https://bugs.python.org/issue37028> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37050] Remove expr_text from ast node FormattedValue

2019-05-25 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker <https://bugs.python.org/issue37050> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36933] sys.set_coroutine_wrapper documented as to be removed in 3.8 (still there)

2019-05-25 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Some discussion in https://github.com/python/cpython/pull/13349#discussion_r284567113 -- ___ Python tracker <https://bugs.python.org/issue36

[issue3693] Obscure array.array error message

2019-05-25 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +13484 pull_request: https://github.com/python/cpython/pull/13577 ___ Python tracker <https://bugs.python.org/issue3

[issue36933] sys.set_coroutine_wrapper documented as to be removed in 3.8 (still there)

2019-05-25 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +13485 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13577 ___ Python tracker <https://bugs.python.org/issu

[issue3693] Obscure array.array error message

2019-05-25 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: -13484 ___ Python tracker <https://bugs.python.org/issue3693> ___ ___ Python-bugs-list mailing list Unsub

[issue37057] suspicious.py sphinx extension access non-existing attribute.

2019-05-26 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : On a local branch with some modified docs ``` Traceback (most recent call last): File "/Users/bussonniermatthias/dev/cpython/Doc/venv/lib/python3.8/site-packages/sphinx/cmd/build.py", line 284, in build_main app.build(args.force_all,

[issue37057] suspicious.py sphinx extension access non-existing attribute.

2019-05-26 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Oh yeah, I do... and you are right this is duplicate. -- ___ Python tracker <https://bugs.python.org/issue37057> ___ ___

[issue37057] suspicious.py sphinx extension access non-existing attribute.

2019-05-26 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue36853] inconsistencies in docs builds (Sphinx 2)

2019-05-26 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker <https://bugs.python.org/issue36853> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37032] Add CodeType.replace() method

2019-05-26 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker <https://bugs.python.org/issue37032> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37068] Emit SyntaxWarning for f-strings without expressions ?

2019-05-27 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : Or more precisely I suggest to emit a SyntaxWarning for JoinedStr where no f-string members has an expression. There seem to be a couple of case where f-strings without expressions may indicate that the programmer may have made a mistake; though

[issue37003] ast unparse does not support f-string new debug format.

2019-05-27 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: I believe all is fine now. Thanks ! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue36933] sys.set_coroutine_wrapper documented as to be removed in 3.8 (still there)

2019-05-28 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +13526 pull_request: https://github.com/python/cpython/pull/13627 ___ Python tracker <https://bugs.python.org/issue36

[issue37082] Assignment expression operator (walrus) not in built-in help()

2019-05-28 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : Do the following at a Python prompt: ``` >>> help() Welcome to Python 3.8's help utility! [...]SNIP help> symbols Here is a list of the punctuation symbols which Python assigns special meaning to. Enter any symbol

[issue36373] asyncio.gather: no docs for deprecated loop parameter

2019-05-28 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker <https://bugs.python.org/issue36373> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36896] clarify in types.rst that FunctionTypes & co constructors don't have stable signature

2019-05-31 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Victor recently implemented CodeType.replace(); which I believe will cover many of the usecase. Should I also send a PR that update the DocStrings of (some of) ? these objects? many people don't go and read the html

[issue36896] clarify in types.rst that FunctionTypes & co constructors don't have stable signature

2019-05-31 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > I don't believe we put version changed notes in docstrings, Oh no I was thinking a note in the docstring "constructor signature may change between Python versions". Whether to put changed/addition info in docstrings is another subj

  1   2   3   >