[issue44973] @classmethod can be stacked on @property, but @staticmethod cannot

2021-08-21 Thread Tushar Sadhwani
New submission from Tushar Sadhwani : Starting with Python3.9, `@classmethod` can be stacked on top of `@property`, but it seems that `@staticmethod` cannot. >>> class C: ... @classmethod ... @property ... def cm(cls): ... return cls.__name__ ... @staticmethod ...

[issue44940] Clarify the documentation of re.findall()

2021-08-21 Thread Rondevous
Rondevous added the comment: Oops, I was wrong about re.finditer :D Sorry, I think didn't check that properly. Just saw the changes. The patch looks good :) Thanks a lot! -- title: Suggest the use of non-capturing groups in re.findall() and re.finditer() docs -> Clarify the document

[issue44913] segfault in call to embedded PyModule_New

2021-08-21 Thread hai shi
hai shi added the comment: How about this one? int foo(void) { printf(stderr, "foo BEGIN\n"); if (!Py_IsInitialized()) { fprintf(stderr, "python already initialized\n"); return -1; } const char *module_name = "foo"; PyGILState_STATE state = PyGILState_Ensure(); PyObject *mo

[issue30924] RPM build doc_files needs files separated into separate lines

2021-08-21 Thread hai shi
hai shi added the comment: > Should this be closed? Copy from PEP-632: In Python 3.10 and 3.11, distutils will be formally marked as deprecated. All known issues will be closed at this time. I close this bpo. If there have some block issues to discuss, we can reopen it again:) --

[issue44966] example code does not macth the very version(3.9)

2021-08-21 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44966] example code does not macth the very version(3.9)

2021-08-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 407b3e0bb028c30fbf5efcf58c70c50eaa6712b0 by Miss Islington (bot) in branch '3.9': bpo-44966: Fix out-of-date traceback message (GH-27867) (GH-27876) https://github.com/python/cpython/commit/407b3e0bb028c30fbf5efcf58c70c50eaa6712b0 -

[issue44966] example code does not macth the very version(3.9)

2021-08-21 Thread miss-islington
miss-islington added the comment: New changeset 95a9ba173ecaeec0cb8bf57cfcd916d64fa6f861 by Miss Islington (bot) in branch '3.10': bpo-44966: Fix out-of-date traceback message (GH-27867) https://github.com/python/cpython/commit/95a9ba173ecaeec0cb8bf57cfcd916d64fa6f861 -- __

[issue43093] Make modules picklable

2021-08-21 Thread Myst
Change by Myst : -- nosy: +LeMyst ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mai

[issue42085] Add dedicated slot for sending values

2021-08-21 Thread Dennis Sweeney
Dennis Sweeney added the comment: Is there documentation anywhere for the semantics of am_send? I only see the signature followed by "See PyIter_Send for details", but the doc for PyIter_Send doesn't mention am_send. In particular, it would be nice to document the relationship between PyIte

[issue44968] Fix/remove test_subprocess_wait_no_same_group from test_asyncio tests

2021-08-21 Thread miss-islington
miss-islington added the comment: New changeset d5781e973079a20b2370686d6e080316d6c9f90d by Miss Islington (bot) in branch '3.9': bpo-44968: Fix test_subprocess_wait_no_same_group in test_asyncio (GH-27870) https://github.com/python/cpython/commit/d5781e973079a20b2370686d6e080316d6c9f90d --

[issue44968] Fix/remove test_subprocess_wait_no_same_group from test_asyncio tests

2021-08-21 Thread miss-islington
miss-islington added the comment: New changeset 88a1920c7b7b0fb73c4037b460c6a4a8c0aa10f0 by Miss Islington (bot) in branch '3.10': bpo-44968: Fix test_subprocess_wait_no_same_group in test_asyncio (GH-27870) https://github.com/python/cpython/commit/88a1920c7b7b0fb73c4037b460c6a4a8c0aa10f0 -

[issue44968] Fix/remove test_subprocess_wait_no_same_group from test_asyncio tests

2021-08-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +26333 pull_request: https://github.com/python/cpython/pull/27878 ___ Python tracker ___ __

[issue44968] Fix/remove test_subprocess_wait_no_same_group from test_asyncio tests

2021-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 585390fdd8661b4bc08bdfc27551292da9b4b9b8 by Serhiy Storchaka in branch 'main': bpo-44968: Fix test_subprocess_wait_no_same_group in test_asyncio (GH-27870) https://github.com/python/cpython/commit/585390fdd8661b4bc08bdfc27551292da9b4b9b8 ---

[issue44968] Fix/remove test_subprocess_wait_no_same_group from test_asyncio tests

2021-08-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +26332 pull_request: https://github.com/python/cpython/pull/27877 ___ Python tracker _

[issue44966] example code does not macth the very version(3.9)

2021-08-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 15a64d89a31b7e91f0361c305b7b27d8761db93d by Raymond Hettinger in branch 'main': bpo-44966: Fix out-of-date traceback message (GH-27867) https://github.com/python/cpython/commit/15a64d89a31b7e91f0361c305b7b27d8761db93d -- __

[issue44966] example code does not macth the very version(3.9)

2021-08-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +26330 pull_request: https://github.com/python/cpython/pull/27875 ___ Python tracker _

[issue44966] example code does not macth the very version(3.9)

2021-08-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +26331 pull_request: https://github.com/python/cpython/pull/27876 ___ Python tracker ___ __

[issue44965] [sqlite3] early exit for non-DML statements in executemany()

2021-08-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue44965] [sqlite3] early exit for non-DML statements in executemany()

2021-08-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 878e7267016ba25d05d8736349fb897c756f311d by Erlend Egeberg Aasland in branch 'main': bpo-44965: Early exit for non-DML statements in sqlite3.Cursor.executemany() (GH-27865) https://github.com/python/cpython/commit/878e7267016ba25d05d8736

[issue44963] anext_awaitable is not a collections.abc.Generator

2021-08-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am marking this as a release blocker, given that this is probably going to trip a lot of users. -- priority: normal -> release blocker ___ Python tracker _

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-21 Thread Ryan Mast (nightlark)
Change by Ryan Mast (nightlark) : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-21 Thread Ryan Mast (nightlark)
Change by Ryan Mast (nightlark) : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-21 Thread Ryan Mast (nightlark)
Change by Ryan Mast (nightlark) : -- keywords: +patch pull_requests: +26328 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27873 ___ Python tracker __

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-21 Thread Ryan Mast (nightlark)
Change by Ryan Mast (nightlark) : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-21 Thread Ryan Mast (nightlark)
Ryan Mast (nightlark) added the comment: * The main constraint is that the the `workflow_dispatch` trigger must be in the GHA workflow yaml files for the branch to be selectable as a target on the Actions tab when manually triggering a workflow. Having the change made to the main branch and

[issue44970] Re-examine complex pow special case handling

2021-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The OverflowError should only be raised if finite arguments produce infinite result. Py_ADJUST_ERANGE2 is used improperly. But after fixing this error I get (nan+infj) for z**1, the same as for z*1. -- nosy: +serhiy.storchaka _

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-21 Thread Ryan Mast (nightlark)
New submission from Ryan Mast (nightlark) : Adding a workflow_dispatch trigger for the GitHub Actions jobs makes it possible to run the GHA CI jobs for commits to branches in a fork without opening a "draft/WIP" PR to one of the main release branches. It also runs the SSL tests which normally

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-08-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Are you ok if I add a small comment to the what's new of 3.10? -- ___ Python tracker ___ _

[issue44971] Named widget has NoneType after single line creation

2021-08-21 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm sorry if you don't like the design of the pack() method, but all the examples in the documentation show how it behaves. It is behaving as documented and designed. https://docs.python.org/3/library/tkinter.html The bug here is in your own code. You alr

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-08-21 Thread Mark Shannon
Mark Shannon added the comment: It is not `PyCode_Addr2Line()` that has changed, but `frame->f_lasti`. If you call `PyCode_Addr2Line(frame->f_code, 8)` in 3.9 you get the same behavior as calling `PyCode_Addr2Line(frame->f_code, 8)` in 3.10. Assuming the bytecode is unchanged. The differ

[issue44971] Named widget has NoneType after single line creation

2021-08-21 Thread Russell Crosser
New submission from Russell Crosser : Declaring a widget in the following form: ... label2 = ttk.Label(root, text='Show2 Label').pack() ... leaves the widget with a NoneType, and unable to be assigned to (for instance to assign new text). If giving a widget a name, I expect to use it later in t

[issue41322] unittest: deprecate test methods returning non-None values

2021-08-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Deprecation warnings are not on by default in tests. You can pass -Wall while running tests to turn on all warnings. ./python -Wall -m test test_capi 0:00:00 load avg: 2.46 Run tests sequentially 0:00:00 load avg: 2.46 [1/1] test_capi /home/karthike

[issue41322] unittest: deprecate test methods returning non-None values

2021-08-21 Thread Andrei Kulakov
Andrei Kulakov added the comment: I should just add that none of the these tests are actually a problem, i.e. they all do run properly and not running duplicate times (except that I'm not sure about the 2 distutils tests, but that shouldn't matter much as distutils is deprecated and up for r

[issue41322] unittest: deprecate test methods returning non-None values

2021-08-21 Thread Andrei Kulakov
Andrei Kulakov added the comment: Karthikeyan: I was looking into them yesterday, and: - distutils ones can probably be left as is because distutils are set for removal in 3.12 - test_constructor should be fixed, I can do that today. - test_null_strings in test_capi I'm not sure, I think

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-08-21 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +26327 pull_request: https://github.com/python/cpython/pull/27872 ___ Python tracker ___ ___ P

[issue41322] unittest: deprecate test methods returning non-None values

2021-08-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There are few deprecation warnings in other tests : 0:00:05 load avg: 3.20 [ 52/428] test_code passed /home/karthikeyan/stuff/python/cpython/Lib/unittest/case.py:550: DeprecationWarning: It is deprecated to return a value!=None from a test case (>

[issue44970] Re-examine complex pow special case handling

2021-08-21 Thread Mark Dickinson
Mark Dickinson added the comment: Aargh. Brain fail. There *is* no `cmath.pow`, of course; this issue applies only to `**` and the built-in `pow`. -- ___ Python tracker ___ _

[issue44970] Re-examine complex pow special case handling

2021-08-21 Thread Mark Dickinson
Mark Dickinson added the comment: Here's just one example that doesn't make a whole lot of sense: in this case, z ** 1 should be returning z. >>> z = complex(3, float("inf")) >>> z ** 1 Traceback (most recent call last): File "", line 1, in OverflowError: complex exponentiation --

[issue44800] Code readability: rename InterpreterFrame to `_Py_framedata`

2021-08-21 Thread Nick Coghlan
Change by Nick Coghlan : -- pull_requests: +26326 pull_request: https://github.com/python/cpython/pull/3640 ___ Python tracker ___ _

[issue44970] Re-examine complex pow special case handling

2021-08-21 Thread Mark Dickinson
New submission from Mark Dickinson : Complex power, both via `**` and the built-in `pow`, and via `cmath.pow`, is currently a bit of a mess when it comes to special-case handling - particularly handling of signed zeros, infinities, NaNs, and overflow. At some point it would be nice to rationa

[issue44963] anext_awaitable is not a collections.abc.Generator

2021-08-21 Thread Thomas Grainger
Change by Thomas Grainger : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue44524] __name__ attribute in typing module

2021-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5bd27c3be5734e158f67ff86087a977a25d89161 by Miss Islington (bot) in branch '3.10': bpo-44524: Do not set _name of _SpecialForm without need (GH-27861) (GH-27871) https://github.com/python/cpython/commit/5bd27c3be5734e158f67ff86087a977a25d89161

[issue39827] setting a locale that uses comma as decimal separator breaks tkinter.DoubleVar

2021-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue12558 which exposes the other side of the same issue. Las time I looked at it, it was inherently a Tcl issue. In some places it uses locale-dependent formatting of floating point numbers, but locale-unaware parsing, or vice versa. --

[issue44969] Subclassing of annotated types does not always work

2021-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that __mro_entries__() for annotated types should return the result of __mro_entries__() for the original type if it has __mro_entries__. But details can be complicated, especially if user-defined generic types are involved. Alternatively, __build_

[issue44969] Subclassing of annotated types does not always work

2021-08-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : It works only with simple types >>> class X(Annotated[list, 'annotation']): pass ... But not with type aliases >>> class X(Annotated[List[int], 'annotation']): pass ... Traceback (most recent call last): File "", line 1, in TypeError: _GenericAlias.