[issue46108] Enum repr() incorrect when mixed with dataclasses

2021-12-16 Thread Eric V. Smith
Eric V. Smith added the comment: I know you know this, but here's a version without dataclasses, in case you want to add a test for this, too. from enum import Enum class Foo: def __init__(self, a): self.a = a def __repr__(self): return f'Foo(a={self.a!r})' class

[issue46111] test_unittest fails in optimized mode

2021-12-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +28380 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30163 ___ Python tracker

[issue46111] test_unittest fails in optimized mode

2021-12-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : $ ./python -OO -m test -vuall test_unittest ... == FAIL: testShortDescriptionWhitespaceTrimming (unittest.test.test_case.Test_TestCase)

[issue41033] readline.c: SEGFAULT on SIGWINCH when loaded twice

2021-12-16 Thread Dale
Dale added the comment: I hit this on macOS today but I didn't get segmentation fault, at least not for as long as I cared to let Python run. Instead I got a non-responsive Python process using 100% CPU that I had to kill with ^\. I first hit this with GNU readline while running Python

[issue46110] `eval("-"*3000000 + "4")` in cmd causes hard crash

2021-12-16 Thread Charles McMarrow
New submission from Charles McMarrow : `eval("-"*300 + "4")` in cmd causes hard crash -- components: Parser messages: 408753 nosy: charles.mcmarrow.4, lys.nikolaou, pablogsal priority: normal severity: normal status: open title: `eval("-"*300 + "4")` in cmd causes hard crash

[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-12-16 Thread Andrei Kulakov
Andrei Kulakov added the comment: I want to clarify my first comment: my PR is similar to Zsh behaviour as described above; as I'm not 100% sure how bash behaves with `**` with globstar option, I can say that bash is the same as Zsh with ? and * magic characters (with dotglob option), and

[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-12-16 Thread Andrei Kulakov
Andrei Kulakov added the comment: Isaac: my PR does allow [.] to match. But I probably need to update the docs to note that. -- ___ Python tracker ___

[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-12-16 Thread Isaac Muse
Isaac Muse added the comment: If this was to be done, you'd want to make sure character sequences also match hidden files: [.]. Just * and ? would be incomplete. If allowing ** to match a leading dot, it would not match . or .. -- nosy: +Isaac Muse

[issue46109] Separate resources and abc docs from other importlib docs

2021-12-16 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +28379 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30160 ___ Python tracker ___

[issue46109] Separate resources and abc docs from other importlib docs

2021-12-16 Thread Jason R. Coombs
New submission from Jason R. Coombs : The `importlib` documentation is fairly long and covers a number of topics. Furthermore, the `importlib.metadata` is separately documented and presents a good example of breaking out major aspects. Let's do the same with `.abc` and `.resources`.

[issue46108] Enum repr() incorrect when mixed with dataclasses

2021-12-16 Thread Ethan Furman
New submission from Ethan Furman : from dataclasses import dataclass from enum import Enum @dataclass class Foo: a: int = 0 class Entries(Foo, Enum): ENTRY1 = Foo(1) repr(Entries.ENTRY1) != '' -- assignee: ethan.furman messages: 408748 nosy: ethan.furman priority: normal

[issue46089] Problems with AF_PACKET sockets

2021-12-16 Thread Ethan Furman
Ethan Furman added the comment: To contribute you'll need to sign a Contributor's License Agreement [1]. After that, anything you can do to help will move this forward. You may not be aware, but Python is developed primarily by volunteers, which unfortunately means that time is normally

[issue44893] importlib.metadata Entrypoint has a broken _asdict

2021-12-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: Expect the fix in 3.11a3. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46105] Requirement syntax broken when extras indicated on url_req

2021-12-16 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46105] Requirement syntax broken when extras indicated on url_req

2021-12-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 864ec170e14b663f999eb415a4f1a0067ec6833a by Jason R. Coombs in branch '3.9': [3.9] bpo-46105: Honor spec when generating requirement specs with urls and extras. (GH-30151). (GH-30157)

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-16 Thread Ned Batchelder
Ned Batchelder added the comment: Thanks, your change looks good. The exact symlinks in the nested venv's are different for 3.10.1 and your 3.11, but they both work: $ python3.10 -c "import sys; print(sys.version)" 3.10.1 (main, Dec 14 2021, 08:30:13) [Clang 12.0.0 (clang-1200.0.32.29)] $

[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-12-16 Thread Andrei Kulakov
Andrei Kulakov added the comment: Zsh allows use of *, ? and ** to match hidden files and directories. Bash allows the same for * and ? with `dotglob` option. There is also a `globstar` but my version of bash (on macos) is too old to have it. By the way setting options in bash is done with

[issue678264] test_resource fails when file size is limited

2021-12-16 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue9917] resource max value represented as signed when should be unsigned

2021-12-16 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue36225] [subinterpreters] Lingering subinterpreters should be implicitly cleared on shutdown

2021-12-16 Thread Chris Roberts
Change by Chris Roberts : -- nosy: +nasageek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-16 Thread Irit Katriel
Change by Irit Katriel : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: With the patch: >>> e = ExceptionGroup("eg", [ValueError(1), TypeError(2)]) >>> e.__note__ = "a note" >>> e.split(ValueError) (ExceptionGroup('eg', [ValueError(1)]), ExceptionGroup('eg', [TypeError(2)])) >>> e.split(ValueError)[0].__note__ 'a note' >>>

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-16 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +28378 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30159 ___ Python tracker ___

[issue1062277] Pickle breakage with reduction of recursive structures

2021-12-16 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.11 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45635] Tidy up error handling in traceback.c / python run.c

2021-12-16 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45635] Tidy up error handling in traceback.c / python run.c

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: New changeset 8d6155ee9d1b05946f951d0ba602b9f63810fe0f by Irit Katriel in branch 'main': bpo-45635: Do not suppress errors in functions called from _PyErr_Display (GH-30073) https://github.com/python/cpython/commit/8d6155ee9d1b05946f951d0ba602b9f63810fe0f

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-16 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-16 Thread Irit Katriel
New submission from Irit Katriel : >>> e = ExceptionGroup("eg", [ValueError(1), TypeError(2)]) >>> e.__note__ = "a note" >>> e.split(ValueError) (ExceptionGroup('eg', [ValueError(1)]), ExceptionGroup('eg', [TypeError(2)])) >>> e.split(ValueError)[0].__note__ >>> e.subgroup(ValueError).__note__

[issue45292] Implement PEP 654: Exception Groups

2021-12-16 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28377 pull_request: https://github.com/python/cpython/pull/30158 ___ Python tracker ___

[issue46105] Requirement syntax broken when extras indicated on url_req

2021-12-16 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +28376 pull_request: https://github.com/python/cpython/pull/30157 ___ Python tracker ___

[issue46105] Requirement syntax broken when extras indicated on url_req

2021-12-16 Thread miss-islington
miss-islington added the comment: New changeset 09d7319bfe0006d9aa3fc14833b69c24ccafdca6 by Miss Islington (bot) in branch '3.10': bpo-46105: Honor spec when generating requirement specs with urls and extras. (GH-30151)

[issue44893] importlib.metadata Entrypoint has a broken _asdict

2021-12-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 04deaee4c8d313717f3ea8f6a4fd70286d510d6e by Jason R. Coombs in branch 'main': bpo-44893: Implement EntryPoint as simple class with attributes. (GH-30150) https://github.com/python/cpython/commit/04deaee4c8d313717f3ea8f6a4fd70286d510d6e

[issue46105] Requirement syntax broken when extras indicated on url_req

2021-12-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 109d96602199a91e94eb14b8cb3720841f22ded7 by Jason R. Coombs in branch 'main': bpo-46105: Honor spec when generating requirement specs with urls and extras. (GH-30151)

[issue46105] Requirement syntax broken when extras indicated on url_req

2021-12-16 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +28375 pull_request: https://github.com/python/cpython/pull/30156 ___ Python tracker

[issue46106] OpenSSL 1.1.1m is now available

2021-12-16 Thread Ned Deily
New submission from Ned Deily : Update Windows build, macOS installer, and Tools/multissltests.py -- components: Build, Windows, macOS messages: 408736 nosy: christian.heimes, ned.deily, paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware priority: normal severity: normal

[issue46088] Build hangs under Visual Studio in deepfreeze stage

2021-12-16 Thread Guido van Rossum
Guido van Rossum added the comment: I don't see a reason to go through the bootstrap python on Windows. It would increase the build time, which is already pretty slow. -- ___ Python tracker

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

2021-12-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +28374 pull_request: https://github.com/python/cpython/pull/30155 ___ Python tracker ___

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

2021-12-16 Thread miss-islington
miss-islington added the comment: New changeset ecdc0ccede5f9ac4042ff56f295d81df2f428950 by Matthias Bussonnier in branch 'main': bpo-46044: Annotate deprecated sdists formats (GH-30043) https://github.com/python/cpython/commit/ecdc0ccede5f9ac4042ff56f295d81df2f428950 --

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

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

[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-12-16 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 5.0 -> 6.0 pull_requests: +28372 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30153 ___ Python tracker

[issue44893] importlib.metadata Entrypoint has a broken _asdict

2021-12-16 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: -28371 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44893] importlib.metadata Entrypoint has a broken _asdict

2021-12-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: The change as implemented for importlib_metadata involves refactorings that can't be backported, so the fix will only go into Python 3.11. I'll consider backporting a more selective fix for this issue if it's important, but I suspect there may not be,

[issue23522] Misleading note in Statistics module documentation

2021-12-16 Thread Mark Dickinson
Mark Dickinson added the comment: > "The mean is strongly affected by outliers and is not necessarily a typical > example of the data points. For a more robust, although less efficient, > measure of central tendency, see median()" That wording sounds fine to me. I don't think we can

[issue46097] Split function versions into 1-0xffff and 0x1000+ regions

2021-12-16 Thread Brandt Bucher
Brandt Bucher added the comment: Ah, never mind, I think I understand what you meant. Special methods get 0x0001-0x, all other functions get 0x0001-0x. So we use 16-bit versions for special method caches, and 32-bit versions for normal call caches. "super().__init__()" and

[issue46101] argparse: using parents & subcommands, options can be ignored

2021-12-16 Thread Lucas Cimon
Lucas Cimon added the comment: The GitHub PR is ready for reviewing. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46105] Requirement syntax broken when extras indicated on url_req

2021-12-16 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +28370 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30151 ___ Python tracker ___

[issue44893] importlib.metadata Entrypoint has a broken _asdict

2021-12-16 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +28371 pull_request: https://github.com/python/cpython/pull/30151 ___ Python tracker ___

[issue45755] Specialized generic class does not return class attributes in dir

2021-12-16 Thread Guido van Rossum
Guido van Rossum added the comment: I think a 3.10 backport would be appreciated. -- ___ Python tracker ___ ___ Python-bugs-list

[issue46085] OrderedDict iterator allocates di_result unnecessarily

2021-12-16 Thread Kevin Shweh
Kevin Shweh added the comment: Almost - C's weird bitwise operator precedence means it has to be parenthesized as if ((kind & _odict_ITER_ITEMS) == _odict_ITER_ITEMS) -- ___ Python tracker

[issue46105] Requirement syntax broken when extras indicated on url_req

2021-12-16 Thread Jason R. Coombs
New submission from Jason R. Coombs : In https://github.com/python/importlib_metadata/issues/357, a user reported an issue where a requirement generated by importlib.metadata from egg info metadata would result in a parse error attempting to parse the error. A fix was released in

[issue23522] Misleading note in Statistics module documentation

2021-12-16 Thread Guido van Rossum
Guido van Rossum added the comment: Great! I will leave it to Steven and Mark D to work out an acceptable solution. PS. Allen Downey is a computer scientist who has written at least one book about Python. -- ___ Python tracker

[issue44893] importlib.metadata Entrypoint has a broken _asdict

2021-12-16 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +28369 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30150 ___ Python tracker ___

[issue46097] Split function versions into 1-0xffff and 0x1000+ regions

2021-12-16 Thread Brandt Bucher
Brandt Bucher added the comment: Interesting idea! > It is likely that programs will have more than 2**16 functions versions, but > it is much less likely that they will have more than 2**16 versions of > special methods. Is it? The pyperformance suite isn't exactly representative of huge

[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2021-12-16 Thread Matej Cepl
Change by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42238] Deprecate suspicious.py?

2021-12-16 Thread Julien Palard
Julien Palard added the comment: Another true positive for make suspicious: WARNING: [c-api/apiabiversion:70] ":macro" found in "the same format as the c:macro:" I'm working on implementing it on rstlint, in the meantime I opened: => https://github.com/python/cpython/pull/30149 to fix

[issue45383] PyType_FromSpec API fails to use metaclass of bases

2021-12-16 Thread Sebastian Berg
Sebastian Berg added the comment: It is probably early, but I am starting to like the idea of a "C MetaClass factory" helper/indicator. It seems to me that yes, at least `tp_new` cannot be called reasonable for a class that is created in C, it is just too confusing/awkward to try to push

[issue46102] pdb can't convert dict_values to list

2021-12-16 Thread Christian Heimes
Christian Heimes added the comment: list is a pdb command. (Pdb) help list l(ist) [first [,last] | .] List source code for the current file. Without arguments, list 11 lines around the current line or continue the previous listing. With . as argument, list 11 lines

[issue46104] Reduce use of old-style syntax in typing docs

2021-12-16 Thread Alex Waygood
Change by Alex Waygood : -- keywords: +patch pull_requests: +28368 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30148 ___ Python tracker ___

[issue46104] Reduce use of old-style syntax in typing docs

2021-12-16 Thread Alex Waygood
New submission from Alex Waygood : There are a few places in the typing docs where old-style (pre-PEP 526) syntax is used in examples. It doesn't look like these examples have been updated since 2016; it would be good to change them so that they use the newer syntax introduced in PEP 526.

[issue45383] PyType_FromSpec API fails to use metaclass of bases

2021-12-16 Thread Sebastian Berg
Sebastian Berg added the comment: Sorry, I need some time to dive back into this, so some things might be garbled :). Yes, I do agree supporting a custom `tp_new` here seems incredibly tricky. I have not thought about the implications of this, though. > guess the safest option is to fail

[issue46103] inspect.getmembers will call the instance __bases__ attribute, which may cause an exception

2021-12-16 Thread hongweipeng
Change by hongweipeng : -- keywords: +patch pull_requests: +28367 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30147 ___ Python tracker ___

[issue46058] argparse: arg groups and mutually exclusive groups behave inconsitently

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: Nesting argument groups and mutually exclusive groups is now deprecated (see issue22047). Thank you for the bug report. Note Paul's comment about why nesting mutually exclusive groups does not give you anything in terms of semantics. -- nosy:

[issue46090] C extensions can't swap out live frames anymore

2021-12-16 Thread Jason Madden
Change by Jason Madden : -- nosy: +jmadden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38584] argparse: Specifying a whitespace-only help message to a positional arg triggers an IndexError when displaying --help

2021-12-16 Thread Lucas Cimon
Lucas Cimon added the comment: This was resolved by https://github.com/python/cpython/pull/28050 -- message_count: 4.0 -> 5.0 pull_requests: +28366 status: open -> closed pull_request: https://github.com/python/cpython/pull/28050 ___ Python tracker

[issue46103] inspect.getmembers will call the instance __bases__ attribute, which may cause an exception

2021-12-16 Thread hongweipeng
New submission from hongweipeng : root@debian:/workspace/cpython# ./python Python 3.11.0a3+ (heads/main-dirty:b123ad8030, Dec 16 2021, 06:16:15) [GCC 10.2.1 20210110] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import inspect >>> class Foo: ... def

[issue38590] argparse unexpected behavior with argument group inside mutually exclusive group

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: Nesting argument groups and mutually exclusive groups is now deprecated (see issue22047). Thank you for the bug report. -- nosy: +iritkatriel resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Deprecate unsupported

[issue45690] Argparse exclusive group inside required exclusive group displays incorrectly

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: Nesting argument groups and mutually exclusive groups is now deprecated (see issue22047). Thank you for the bug report. -- nosy: +iritkatriel resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Deprecate unsupported

[issue46102] pdb can't convert dict_values to list

2021-12-16 Thread Aidas Petryla
New submission from Aidas Petryla : Reproducing: Running pdb shell (for example "python -m pdb " Input: x = {'a': 1} list(x.values()) Output: *** Error in argument: '(x.values())' -- messages: 408714 nosy: apetryla priority: normal severity: normal status: open title: pdb can't

[issue22047] Deprecate unsupported nesting of argparse groups

2021-12-16 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46057] argparse: embedded groups may prevent options from being in help output

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: Nesting argument groups and mutually exclusive groups is now deprecated (see issue22047). Thank you for the bug report. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue46101] argparse: using parents & subcommands, options can be ignored

2021-12-16 Thread Lucas Cimon
Change by Lucas Cimon : -- keywords: +patch pull_requests: +28364 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30146 ___ Python tracker ___

[issue22047] Deprecate unsupported nesting of argparse groups

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: New changeset 30322c497e0b8d978f7a0de95985aac9c5daf1ac by Irit Katriel in branch 'main': bpo-22047: [argparse] deprecate nested argument groups and mutually exclusive groups (GH-30098)

[issue46101] argparse: using parents & subcommands, options can be ignored

2021-12-16 Thread Lucas Cimon
New submission from Lucas Cimon : Hi! Here is some minimal code reproducing the issue: import argparse common_opts_parser = argparse.ArgumentParser(add_help=False) common_opts_parser.add_argument("--endpoint", choices=("prod", "dev"), default="dev") parser =

[issue46072] Unify handling of stats in the CPython VM

2021-12-16 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +28363 pull_request: https://github.com/python/cpython/pull/30145 ___ Python tracker ___

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-16 Thread Steve Dower
Steve Dower added the comment: This PR *might* be a fix, but I think it's only partial. It isn't going to work if you've made a venv and copied "python3"->"python", for example. It still might be best solved by writing base_executable into pyvenv.cfg, and then simply reading it out.

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-16 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +28362 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30144 ___ Python tracker ___

[issue46088] Build hangs under Visual Studio in deepfreeze stage

2021-12-16 Thread Steve Dower
Steve Dower added the comment: On Windows we automatically download a runtime if you don't have one, so this isn't such a big deal. You *do* need an internet connection to do this, of course, but that's the case for most of our external dependencies already. Plus I don't think we're even

[issue46072] Unify handling of stats in the CPython VM

2021-12-16 Thread Mark Shannon
Mark Shannon added the comment: The --enable-stats option is for CPython development and shouldn't be turned on for a release version, so I'm not really concerned about people attacking their own machines. -- ___ Python tracker

[issue45755] Specialized generic class does not return class attributes in dir

2021-12-16 Thread Ken Jin
Ken Jin added the comment: Hi, I won't be backporting this to 3.9 since I don't like having jarring behavior changes so late into the bugfix cycle of a Python version. I'm tempted to backport to 3.10. For now, I'll be conservative and just merge it in main. Please do tell me if any of you

[issue46088] Build hangs under Visual Studio in deepfreeze stage

2021-12-16 Thread Christian Heimes
Christian Heimes added the comment: VS builds could use the bootstrap interpreter again. This will remove the need to have a Python interpreter installed to build Python on Windows. -- nosy: +christian.heimes ___ Python tracker

[issue45755] Specialized generic class does not return class attributes in dir

2021-12-16 Thread Ken Jin
Ken Jin added the comment: New changeset d6e13747161d7b634b47d2d3d212ed3be4a21fab by Ken Jin in branch 'main': bpo-45755: [typing] Reveal class attributes of generic in generic aliases in `dir()` (GH-29962) https://github.com/python/cpython/commit/d6e13747161d7b634b47d2d3d212ed3be4a21fab

[issue46072] Unify handling of stats in the CPython VM

2021-12-16 Thread Christian Heimes
Christian Heimes added the comment: I just noticed that you are using hard-coded paths with /tmp for the pystats directory. That's problematic and opens the possibility of a symlink race attack. Could please add exclusive create to _Py_PrintSpecializationStats()? The will prevent symlink

[issue46097] Split function versions into 1-0xffff and 0x1000+ regions

2021-12-16 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46088] Build hangs under Visual Studio in deepfreeze stage

2021-12-16 Thread Steve Dower
Steve Dower added the comment: I posted a PR that shells out to the find_python script and captures its output to use during VS builds. Theoretically, this could save us from running it in build.bat, but I like having the detection and messages up front rather than buried deep in the build

[issue46088] Build hangs under Visual Studio in deepfreeze stage

2021-12-16 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +28361 pull_request: https://github.com/python/cpython/pull/30143 ___ Python tracker ___

[issue23522] Misleading note in Statistics module documentation

2021-12-16 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46072] Unify handling of stats in the CPython VM

2021-12-16 Thread Mark Shannon
Mark Shannon added the comment: New changeset 4506bbede1644e985991884964b43afa7ee6f609 by Mark Shannon in branch 'main': bpo-46072: Document --enable-stats option. (GH-30139) https://github.com/python/cpython/commit/4506bbede1644e985991884964b43afa7ee6f609 --

[issue46100] Simplify readline / editline detection

2021-12-16 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: FWIW, the XCode SDKs for macOS 11 and 12 use the NetBSD editline library. $ grep "NetBSD: readline" /Library/Developer/CommandLineTools/SDKs/MacOSX*.sdk/usr/include/readline/readline.h

[issue46100] Simplify readline / editline detection

2021-12-16 Thread Christian Heimes
New submission from Christian Heimes : The configure.ac code for editline/readline detection is complicated. Especially the code for linking with extra termcap libraries makes it complicated to port the check to pkg-config. The termcap checks were added by Greg in bpo-3645 and commit

[issue28816] [doc] Clarify that zipimport does not invoke import hooks to load custom files from zip.

2021-12-16 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue28816] [doc] Clarify that zipimport does not invoke import hooks to load custom files from zip.

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: New changeset 0194bbbee6a12264e93d3217c774e226f0a1737d by Miss Islington (bot) in branch '3.10': bpo-28816: [doc] clarify that zipimport invokes importers only for python files (GH-30060) (GH-30133)

[issue28816] [doc] Clarify that zipimport does not invoke import hooks to load custom files from zip.

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: New changeset 4c1effaaee472cc67f3186411a3df4f39af3d71a by Miss Islington (bot) in branch '3.9': bpo-28816: [doc] clarify that zipimport invokes importers only for python files (GH-30060) (GH-30134)

[issue23522] Misleading note in Statistics module documentation

2021-12-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: Prompted by Guido's reopening of the ticket, I have given it some more thought, and have softened my views. Jake if you're still around, perhaps there is more to what you said than I initially thought, and I just needed fresh eyes to see it. Sorry for

[issue45554] multiprocessing exitcode is insufficiently documented

2021-12-16 Thread John Marshall
Change by John Marshall : -- keywords: +patch pull_requests: +28360 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30142 ___ Python tracker ___

[issue12681] unittest expectedFailure could take a message argument like skip does

2021-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Such change would break a lot of existing interfaces. * addUnexpectedSuccess() has a single parameter. The change will add the second parameter and will break subclasses of TestResult. * addExpectedFailure() has two parameter. The change will add the third

[issue46096] Support PyObject interface for global variables in local scope and debugger

2021-12-16 Thread Dmitry
Change by Dmitry : -- keywords: +patch pull_requests: +28359 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30141 ___ Python tracker ___

[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

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

[issue46099] Solaris: Fix pthread_getcpuclockid test

2021-12-16 Thread Jakub Kulik
Change by Jakub Kulik : -- keywords: +patch pull_requests: +28358 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30140 ___ Python tracker ___

[issue20165] unittest TestResult wasSuccessful returns True when there are unexpected successes

2021-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue22815. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue46099] Solaris: Fix pthread_getcpuclockid test

2021-12-16 Thread Jakub Kulik
New submission from Jakub Kulik : On Solaris, when `pthread_getcpuclockid()` is called with current thread id as an argument, it returns `CLOCK_THREAD_CPUTIME_ID`. == FAIL: test_pthread_getcpuclockid

  1   2   >