[issue45863] tarfile zeroes ustar header fields unnecessarily

2021-12-26 Thread Joshua Root
Joshua Root added the comment: PR has been marked stale; friendly ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2021-12-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: > we should undo the deprecation of optparse in the documentation > (https://bugs.python.org/issue37103), since the stated justification > for that deprecation was that optparse will not be developed further. While optparse that it isn't being developed

[issue44598] test_constructor (test.test_ssl.ContextTests) ... Fatal Python error: Segmentation fault

2021-12-26 Thread tongxiaoge
tongxiaoge added the comment: We make SSL3 disappear to newly built dependencies, the test_ssl success. Refer to the modification of OpenSSL on fedoras (address: https://src.fedoraproject.org/rpms/openssl/tree/f34 ) ``` rm -f $RPM_BUILD_ROOT%{_sysconfdir}/pki/tls/*.dist +# Next step of

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2021-12-26 Thread Anders Kaseorg
Anders Kaseorg added the comment: If argparse will not be developed further to fix this bug, then we should undo the deprecation of optparse in the documentation (https://bugs.python.org/issue37103), since the stated justification for that deprecation was that optparse will not be developed

[issue25044] bring BTPROTO_SCO inline with other Bluetooth protocols

2021-12-26 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.11 -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue7687] Bluetooth support untested

2021-12-26 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.10, Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14844] netrc does not handle accentuated characters

2021-12-26 Thread Daniel Diniz
Daniel Diniz added the comment: Now that a PR has landed in #28806 to improve shlex, we need to check whether this issue can/needs to move forward. -- nosy: +ajaksu2, asvetlov type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.2

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2021-12-26 Thread Tom Karzes
Tom Karzes added the comment: If it's going to be closed, it should at least be acknowledged that it *is* a fundamental design flaw, stemming from the misguided goal of trying (and necessarily failing) to allow options to be freely intermixed with positional arguments, which of course can't

[issue42079] Why does tarfile.next swallow InvalidHeaderError

2021-12-26 Thread Andrei Kulakov
Change by Andrei Kulakov : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> tarfile module next() method hides exceptions ___ Python tracker

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2021-12-26 Thread Clint Olsen
Clint Olsen added the comment: I think this should serve as a cautionary tale that while (POSIX) standards aren't always the best of solutions, they are often made for good reasons, and special care should be taken when you decide to deviate from them. Otherwise it just causes frustration.

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2021-12-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I believe that the behavior is so deeply ingrained in how argparse > works that it can't be changed. I think so as well. Handling arguments with a dash prefiew could be viewed as fundamental design flaw except for the fact that the module has been so

[issue46184] Remove `netlify.toml`?

2021-12-26 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28487 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30272 ___ Python tracker ___

[issue46184] Remove `netlify.toml`?

2021-12-26 Thread Nikita Sobolev
New submission from Nikita Sobolev : It was added one year ago in https://bugs.python.org/issue37860 But, it is not used. Right now it does not do anything. Others report that it has a lot of limitations (including financial and technical ones):

[issue46182] `super` and descriptor clarification

2021-12-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm reluctant to give any more space to the least important case, one that rarely arises in practice. The text in the PR is wordy and IMO creates more confusion that it solves. Per the dev-guide, we mostly avoid "preachy" text. No, "it is recommended

[issue20751] Harmonize descriptor protocol documentation: direct call, super binding with Descriptor Howto docs

2021-12-26 Thread Arthur Milchior
Change by Arthur Milchior : -- pull_requests: +28486 pull_request: https://github.com/python/cpython/pull/30271 ___ Python tracker ___

[issue46182] `super` and descriptor clarification

2021-12-26 Thread Arthur Milchior
Arthur Milchior added the comment: I do regret to have created a single bug, as I now realize that there are two issues that are less related than I first imagined. Is there a way to split a bug in two, so that both discussion can be discussed in different places. Actually, after more

[issue46182] `super` and descriptor clarification

2021-12-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: > "a base class ``B`` following ``A``" shouldn't it be "the base > class"? . After all, there is at most one base class following ``A`` No. There can be other classes in the chain. The first to match the lookup wins. > Also, it may help clarify to

[issue46179] Delete selected item generate "<>" event or not in different version of tkinter or Python

2021-12-26 Thread Jason Yang
Jason Yang added the comment: >From https://core.tcl-lang.org/tk/reportlist, I found the same issue ttk::treeview <> event bug https://core.tcl-lang.org/tk/tktview?name=2a6c62afd9 It is an old bug from 2014 anf not fixed, and now it fixed. OK, no more question about it. Thank you for your

[issue46170] Improving the error message when subclassing NewType

2021-12-26 Thread Nikita Sobolev
Nikita Sobolev added the comment: Turns out modern docs already have this problem fixed: https://docs.python.org/3/library/typing.html#newtype -- ___ Python tracker ___

[issue46170] Improving the error message when subclassing NewType

2021-12-26 Thread Nikita Sobolev
Nikita Sobolev added the comment: > So maybe those docs are incorrect? I can't find anything in PEP 484 about > this. Mypy even has an explicit test that NewType of NewType should work:

[issue46170] Improving the error message when subclassing NewType

2021-12-26 Thread Guido van Rossum
Guido van Rossum added the comment: Weird, the docs you cite claims # Also does not typecheck ProUserId = NewType('ProUserId', UserId) but when I try it, it works at runtime and passes mypy (even with --strict) and also pyright. So maybe those docs are incorrect? I can't find

[issue44780] Incorrect message: "Invalid decimal literal" (python 3.10)

2021-12-26 Thread Andre Roberge
Andre Roberge added the comment: The last of these three cases (with FRACTION SLASH) is fixed 3.10.1. The other two are still present in 3.10.1 and in 3.11.0a3 -- versions: +Python 3.11 ___ Python tracker

[issue46183] float function errors on negative number string with comma seperator ex: '-1, 234.0'

2021-12-26 Thread Steven D'Aprano
Steven D'Aprano added the comment: Aside: for what it is worth, the British style with a middle dot is also not supported: float('1·234') also raises ValueError. -- ___ Python tracker

[issue46183] float function errors on negative number string with comma seperator ex: '-1, 234.0'

2021-12-26 Thread Steven D'Aprano
Steven D'Aprano added the comment: The behaviour is correct and not a bug. Commas are not supported when converting strings to float. The allowed format for floats as strings is described in the docs: https://docs.python.org/3/library/functions.html#float By the way, the negative sign is

[issue46170] Improving the error message when subclassing NewType

2021-12-26 Thread Gobot1234
Gobot1234 added the comment: > Do you have evidence that people make this particular mistake often? And that > the suggested solution is indeed what they should use? Why would you want to > subclass UserId? I was just trying to implement something that I thought had a non-obvious error

[issue20751] Harmonize descriptor protocol documentation: direct call, super binding with Descriptor Howto docs

2021-12-26 Thread Arthur Milchior
Arthur Milchior added the comment: "a base class ``B`` following ``A``" shouldn't it be "the base class"? . After all, there is at most one base class following ``A``. Also, I find it unclear what means "``x`` is returned unchanged, since in this context ``x`` is not a value which exists by

[issue46182] `super` and descriptor clarification

2021-12-26 Thread Arthur Milchior
Arthur Milchior added the comment: "a base class ``B`` following ``A``" shouldn't it be "the base class"? . After all, there is at most one base class following ``A``. Also, I find it unclear what means "``x`` is returned unchanged, since in this context ``x`` is not a value which exists by

[issue46179] Delete selected item generate "<>" event or not in different version of tkinter or Python

2021-12-26 Thread E. Paine
E. Paine added the comment: Reproduced on Wish 8.6.9 and 8.6.11 (same behaviour on 8.6.11 as reported on 8.6.12). I can't comment on why this is happening or which is correct behaviour so I would recommend taking it up with the Tk team https://core.tcl-lang.org/tk/reportlist (tkinter is

[issue46182] `super` and descriptor clarification

2021-12-26 Thread Arthur Milchior
Arthur Milchior added the comment: I just realized that https://bugs.python.org/issue20751 already tackled some of my issues. While I still believe that some things can be improved, this mean that some of the critiques in my first messages are not entirely up to date. -- versions:

[issue20751] Harmonize descriptor protocol documentation: direct call, super binding with Descriptor Howto docs

2021-12-26 Thread Arthur Milchior
Arthur Milchior added the comment: Shouldn't those change be ported to 3.10 and maybe even earlier version? They are great, but hard to find if you read the current version manual. I'm just surprised by the term "dotted lookup". The remaining of the documentation mention "attribute access".

[issue46170] Improving the error message when subclassing NewType

2021-12-26 Thread Guido van Rossum
Guido van Rossum added the comment: Do you have evidence that people make this particular mistake often? And that the suggested solution is indeed what they should use? Why would you want to subclass UserId? Do we have examples of other error messages split across two lines like this?

[issue46183] float function errors on negative number string with comma seperator ex: '-1, 234.0'

2021-12-26 Thread syed shah
New submission from syed shah : >>> float ('-1,234') Traceback (most recent call last): File "", line 1, in ValueError: could not convert string to float: '-1,234' -- components: Library (Lib) messages: 409202 nosy: jj.github.jj priority: normal severity: normal status: open title:

[issue1438480] shutil.move raises OSError when copystat fails

2021-12-26 Thread Daniel Diniz
Change by Daniel Diniz : -- keywords: -easy versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.3 ___ Python tracker ___

[issue46182] `super` and descriptor clarification

2021-12-26 Thread Arthur Milchior
New submission from Arthur Milchior : I find super documentation confusing because it uses multiple variables that are never introduced. Once you understand super, the meaning of those variables gets easier to understand, but still, I believe that it would help the documentation to rephrase

[issue46173] Clarify conditions under which float(x) with large x raises OverflowError

2021-12-26 Thread Eric V. Smith
Eric V. Smith added the comment: I think the documentation reads better as it currently is. Does this really cause any practical confusion? As Mark notes, we can't specify things exactly here: that would obfuscate all of the things we're actually trying to say. -- nosy: +eric.smith

[issue46170] Improving the error message when subclassing NewType

2021-12-26 Thread Gobot1234
Change by Gobot1234 : -- keywords: +patch pull_requests: +28485 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30268 ___ Python tracker ___

[issue46172] [doc] Outdated description of `license` object

2021-12-26 Thread CCXXXI
Change by CCXXXI : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46175] Zero argument super() does not function properly inside generator expressions

2021-12-26 Thread Carlos Damazio
Carlos Damazio added the comment: Normally, users assume it's safe to use `super` without explicit arguments, until an undefined behavior happens, such as now. The only thing that glances into this issue is the observation in the docs you've provided that omitting the second argument

[issue45496] Tkinter: test_winfo_rgb failure

2021-12-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45496] Tkinter: test_winfo_rgb failure

2021-12-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue45496] Tkinter: test_winfo_rgb failure

2021-12-26 Thread miss-islington
miss-islington added the comment: New changeset aa056ed472e9d0a79ea21784f6f5171d12a13f85 by Miss Islington (bot) in branch '3.9': bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185) https://github.com/python/cpython/commit/aa056ed472e9d0a79ea21784f6f5171d12a13f85 --

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 25a12aac4de819745dfc64664ba183a5784b5a81 by Miss Islington (bot) in branch '3.9': [3.9] bpo-46032: Check types in singledispatch's register() at declaration time (GH-30050) (GH-30254) (GH-30255)

[issue46181] Destroying an expaned Combobox prevents Entry focus until Alt+Tab

2021-12-26 Thread Jonathan Lahav
New submission from Jonathan Lahav : Happens on Windows. Observation: When an expanded Combobox is destroyerd, widgets in the window can't get focus until Alt+Tab forth and back. Buttons can still be clicked, but focus can't be obtained by widgets, entries fro example, not by clicking nor by

[issue45496] Tkinter: test_winfo_rgb failure

2021-12-26 Thread miss-islington
miss-islington added the comment: New changeset bb0b5c12419b8fa657c96185d62212aea975f500 by Miss Islington (bot) in branch '3.10': bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185) https://github.com/python/cpython/commit/bb0b5c12419b8fa657c96185d62212aea975f500 --

[issue23819] test_asyncio fails when run under -O

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 07229054a129a72b4ffdf29252eb73c6154c0ccf by Miss Islington (bot) in branch '3.9': [3.9] bpo-23819: Fix asyncio tests on python optimized mode (GH-30195) (GH-30265)

[issue45496] Tkinter: test_winfo_rgb failure

2021-12-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +28484 pull_request: https://github.com/python/cpython/pull/30267 ___ Python tracker ___

[issue45496] Tkinter: test_winfo_rgb failure

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2e3e0d23adca8d83722d939d6abd1e467d7578f7 by E-Paine in branch 'main': bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185) https://github.com/python/cpython/commit/2e3e0d23adca8d83722d939d6abd1e467d7578f7 --

[issue45496] Tkinter: test_winfo_rgb failure

2021-12-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28483 pull_request: https://github.com/python/cpython/pull/30266 ___ Python tracker

[issue43413] tuple subclasses allow arbitrary kwargs

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ad4857884b4821fc2c9bd23b63d03f9570eb03d1 by Serhiy Storchaka in branch 'main': bpo-43413: Revert changes in set.__init__ (GH-28403) https://github.com/python/cpython/commit/ad4857884b4821fc2c9bd23b63d03f9570eb03d1 --

[issue45878] Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro`

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bee660e46ae2a051400177dcd758d95b5b4a6fcc by Miss Islington (bot) in branch '3.9': [3.9] Remove a NEWS entry for bpo-45878 (GH-30258) (GH-30260) https://github.com/python/cpython/commit/bee660e46ae2a051400177dcd758d95b5b4a6fcc --

[issue22815] unexpected successes are not output

2021-12-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46170] Improving the error message when subclassing NewType

2021-12-26 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22815] unexpected successes are not output

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1944434b44e0118e812bf63f47b268ff6dd0c8f1 by Serhiy Storchaka in branch 'main': bpo-22815: Print unexpected successes in summary in TextTestResult (GH-30138) https://github.com/python/cpython/commit/1944434b44e0118e812bf63f47b268ff6dd0c8f1

[issue45321] Module xml.parsers.expat.errors misses error code constants of libexpat >=2.0

2021-12-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +eli.bendersky, scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31914] Document Pool.(star)map return type

2021-12-26 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue23819] test_asyncio fails when run under -O

2021-12-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +28482 pull_request: https://github.com/python/cpython/pull/30265 ___ Python tracker ___

[issue23819] test_asyncio fails when run under -O

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a23ab7b6d8b3ae3a47747c0c4bceb2370cc48dcc by Kumar Aditya in branch 'main': bpo-23819: Fix asyncio tests on python optimized mode (GH-30195) https://github.com/python/cpython/commit/a23ab7b6d8b3ae3a47747c0c4bceb2370cc48dcc --

[issue46180] Button clicked failed when mouse hover tooltip and tooltip destroyed

2021-12-26 Thread Jason Yang
New submission from Jason Yang : Button no response when clicked if mouse move into tooltip and tooltip destroyed for Python 3.9.9/3.10.1 and tkinter 8.6.12 You can check it by moving mouse into button, then move to tooltip after it shown, then click button and you won't get response for

[issue45878] Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro`

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1fb7c61ca76c6fbff4d90b272e34e92bc2c7d729 by Serhiy Storchaka in branch 'main': Remove a NEWS entry for bpo-45878 (GH-30259) https://github.com/python/cpython/commit/1fb7c61ca76c6fbff4d90b272e34e92bc2c7d729 --

[issue45878] Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro`

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 11909c12c75a7f377460561abc97707a4006fc07 by Serhiy Storchaka in branch '3.10': [3.10] Remove a NEWS entry for bpo-45878 (GH-30258) https://github.com/python/cpython/commit/11909c12c75a7f377460561abc97707a4006fc07 --

[issue45878] Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro`

2021-12-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +28481 pull_request: https://github.com/python/cpython/pull/30260 ___ Python tracker ___

[issue46179] Delete selected item generate "<>" event or not in different version of tkinter or Python

2021-12-26 Thread Jason Yang
New submission from Jason Yang : In python(3.8.10)/tkinter(8.6.9), it won't generate "<>" event if we delete selected item of ttk.Treeview, but it will for python(3.9.9/3.10.1)/tkinter(8.6.12). Check it just by clicking 'Delete Item 1' button in following demo code ```python import sys from

[issue45878] Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro`

2021-12-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +28480 pull_request: https://github.com/python/cpython/pull/30259 ___ Python tracker ___

[issue45878] Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro`

2021-12-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +28479 pull_request: https://github.com/python/cpython/pull/30258 ___ Python tracker ___

[issue46170] Improving the error message when subclassing NewType

2021-12-26 Thread Nikita Sobolev
Nikita Sobolev added the comment: > I'd be happy to patch this myself if this sounds like a good idea. Oh, please, go ahead! :) Would be happy to review. -- ___ Python tracker

[issue46178] Remove `.travis.yml`?

2021-12-26 Thread Nikita Sobolev
Nikita Sobolev added the comment: Permanent link to the last version of this file: https://github.com/python/cpython/blob/078abb676cf759b1e960f78390b6e80f256f0255/.travis.yml -- ___ Python tracker

[issue46178] Remove `.travis.yml`?

2021-12-26 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28478 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30257 ___ Python tracker ___

[issue46178] Remove `.travis.yml`?

2021-12-26 Thread Nikita Sobolev
New submission from Nikita Sobolev : Travis does not seem to be used anymore. There are not builds in Travis for cpython on `.org`: https://travis-ci.org/github/python/cpython/builds The last build on `.com` is 6 month old: https://app.travis-ci.com/github/python/cpython/builds If some

[issue46170] Improving the error message when subclassing NewType

2021-12-26 Thread Nikita Sobolev
Nikita Sobolev added the comment: This seems like a good idea to me. I will send a PR for others to judge :) -- nosy: +sobolevn ___ Python tracker ___

[issue46174] Feature Request for Python Interfaces

2021-12-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree with Terry. This requires a clear proposal that describes the behaviour and differences with ABC-s. I'm closing this issue for now. -- nosy: +ronaldoussoren resolution: -> later stage: -> resolved status: open -> closed

[issue46117] tk could not refresh auto in mac os

2021-12-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't know why it doesn't work for you. The version of Tk looks recent enough. As I mentioned before I don't see this problem using the script in your initial message, it works fine both with and without changing the size of the window. You could try