[issue45531] field "mro" behaves strangely in dataclass

2021-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would not be more correct to look at cls.__dict__[fieldname]? BTW, mro() cannot be builtin, because you should be able to override it in some classes. -- ___ Python tracker

[issue40885] Cannot pipe GzipFile into subprocess

2021-10-23 Thread Michael Herrmann
Michael Herrmann added the comment: I just encountered what seems to be the inverse problem of this issue: #45585 -- nosy: +mherrmann.at ___ Python tracker ___

[issue45586] Use starred expressions in list indices

2021-10-23 Thread Peter Tillema
New submission from Peter Tillema : It would be nice if you could starred expressions in list indices, for example this piece of code: ``` import numpy as np a = np.array(0) print(a[1, *[2, 3], 4]) ``` -- components: Interpreter Core messages: 404860 nosy: PeterTillema priority:

[issue45391] 3.10 objects.inv classifies UnionType as data

2021-10-23 Thread Dominic Davis-Foster
Change by Dominic Davis-Foster : -- nosy: +dom1310df ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2733] mmap resize fails on anonymous memory

2021-10-23 Thread Tim Golden
Tim Golden added the comment: https://bugs.python.org/issue40915 is related Retargetting for 3.10+ -- assignee: -> tim.golden versions: +Python 3.10, Python 3.11 -Python 2.7, Python 3.2 ___ Python tracker

[issue45579] [list.append(i) for i in list] causes high resources usage

2021-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is expected behavior. Your code is equivalent to: _result = [] for i in your_list: _result.append(your_list.append(i)) which is equivalent to: _result = [] _j = 0 while _j < len(your_list): i = your_list[_j]

[issue45585] Gzipping subprocess output produces invalid .gz file

2021-10-23 Thread Michael Herrmann
New submission from Michael Herrmann : Consider the following: import gzip import subprocess with gzip.open('test.gz', 'wb') as f: subprocess.run(['echo', 'hi'], stdout=f) with gzip.open('test.gz', 'rb') as f: print(f.read()) I'd expect "hi" to appear in my console. Instead, I'm

[issue40915] multiple problems with mmap.resize() in Windows

2021-10-23 Thread Tim Golden
Change by Tim Golden : -- assignee: -> tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45585] Gzipping subprocess output produces invalid .gz file

2021-10-23 Thread Martin Panter
Martin Panter added the comment: The subprocess module only uses the file object to get a file handle by calling the "fileno" method. See Issue 19992 about documenting this. For Python to compress the output of the child process, you would need a pipe. Gzip file objects provide the "fileno"

[issue12562] calling mmap twice fails on Windows

2021-10-23 Thread Tim Golden
Tim Golden added the comment: (switching stage to resolved because it's closed/rejected; sorry for the noise) -- stage: -> resolved ___ Python tracker ___

[issue22789] Compress the marshalled data in PYC files

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45548] Update Modules/Setup

2021-10-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: FYI: I've been working with a fixed Setup file in PyRun for a long while. There are indeed a number of modules missing from Setup, since the whole logic was left behind a bit after things moved to setup.py. The issue with _math.o is actually in the main

[issue45590] distutils: Upload failed (400): Invalid value for blake2_256_digest

2021-10-23 Thread Jakub Wilk
New submission from Jakub Wilk : My "python3 setup.py sdist upload" failed with: Upload failed (400): Invalid value for blake2_256_digest. Error: Use a valid, hex-encoded, BLAKE2 message digest. Apparently this is because distutils uses wrong digest size for Blake2:

[issue11602] python-config code should be in sysconfig

2021-10-23 Thread Filipe Laíns
Filipe Laíns added the comment: I can help out, but would like to wait until we get a resolution in GH-25718 as it will likely conflict. -- ___ Python tracker ___

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-23 Thread Sergei Lebedev
Sergei Lebedev added the comment: Is it worth filing a separate issue for locals()? In my experience local classes are less common than cross-module inheritance, so I suspect that the chances of someone accidentally hitting lack of locals() forwarding are quite low. However, given how

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-23 Thread Petr Viktorin
Petr Viktorin added the comment: > Quoting PEP 630 (active PEP): > > Whenever this PEP mentions extension modules, the advice also applies to > built-in modules, such as the C parts of the standard library. The standard > library is expected to switch to per-module state early. Maybe I

[issue45548] Update Modules/Setup

2021-10-23 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27459 pull_request: https://github.com/python/cpython/pull/29188 ___ Python tracker ___

[issue45429] [Windows] time.sleep() should use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION

2021-10-23 Thread Benjamin Szőke
Change by Benjamin Szőke : -- nosy: +Livius ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45379] Improve errors related to frozen modules.

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +27461 pull_request: https://github.com/python/cpython/pull/29190 ___ Python tracker ___

[issue45574] Warning: ‘print_escape’ defined but not used

2021-10-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset cadf06eab75c887dfc753ca80ef35cd2a7871135 by Miss Islington (bot) in branch '3.10': bpo-45574: fix warning about `print_escape` being unused (GH-29172) (#29176)

[issue45574] Warning: ‘print_escape’ defined but not used

2021-10-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45275] Make argparse print description of subcommand when invoke help doc on subcommand

2021-10-23 Thread Andrei Kulakov
Andrei Kulakov added the comment: For me it works as well, tested on 3.7, 3.9 and 3.11 . -- nosy: +andrei.avk ___ Python tracker ___

[issue19867] pickletools.OpcodeInfo.code is a string

2021-10-23 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I changed to won't fix due to the note on incompatibility, until we resolve on a way forward. -- nosy: +nanjekyejoannah resolution: -> wont fix ___ Python tracker

[issue45588] cached_method similar to cached_property to cache with classes

2021-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The simple implementation is: def cached_method(func): return cached_property(lambda self: lru_cache()(partial(func, self))) -- nosy: +serhiy.storchaka ___ Python tracker

[issue11602] python-config code should be in sysconfig

2021-10-23 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @eric.araujo curious if you still have the interest to work on this. If not, I can help open a PR. -- ___ Python tracker ___

[issue45516] Add protocol description to the Traversable and TraversableResources documentation

2021-10-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 8ce20bbdd6d2b1277a5e74154fcdcef2cb0fee49 by Filipe Laíns in branch 'main': bpo-45516: add protocol description to the TraversableResources documentation (#29173) https://github.com/python/cpython/commit/8ce20bbdd6d2b1277a5e74154fcdcef2cb0fee49

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-23 Thread Hai Shi
Hai Shi added the comment: > PEP 3121 is not withdrawn; PEP 630 is not withdrawn. What is then expected of > a new PEP? Or the other way around: what is missing from those two PEPs? Thanks Erlend for the relative information you provided. AFAIK, the stdlib is not the extension module

[issue45020] Freeze all modules imported during startup.

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40899] Document exceptions raised by importlib.import

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45548] Update Modules/Setup

2021-10-23 Thread Christian Heimes
Christian Heimes added the comment: PR GH-29179 or GH-29181 address the issue with _math.o PR GH-29164 adds the missing modules and also introduces pkg-config lookups for dependencies. Brett and I discussed that we have to introduce conditionals to Modules/Setup to make use of the

[issue45548] Update Modules/Setup

2021-10-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I'm using a very simple conditional logic in Setup, which is based on sed, mostly to add platform specific variables: In Setup: # @if macosx: TIME_DEFS= # @if not macosx: TIME_DEFS=-lrt time -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal

[issue33439] python-config.py should be part of the stdlib

2021-10-23 Thread Petr Viktorin
Petr Viktorin added the comment: It seems it could be moved to sysconfig itself -- the CLI options from python-config would fit there nicely. -- nosy: +petr.viktorin ___ Python tracker

[issue11602] python-config code should be in sysconfig

2021-10-23 Thread Éric Araujo
Éric Araujo added the comment: I don’t have specific expertise in this, so please take it! -- assignee: eric.araujo -> nanjekyejoannah components: +Build -Distutils2, Library (Lib) nosy: -alexis, tarek versions: +Python 3.11 -Python 3.3 ___ Python

[issue1353344] python.desktop

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45272] 'os.path' should not be a frozen module

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45364] Add more documentation for ModuleSpec.loader_state.

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45589] webbrowser does not handle opens under Windows WSL properly

2021-10-23 Thread Guido F
New submission from Guido F : The 'webbrowser' module throws warnings and bad RC codes when running under Windows Subsystem for Linux (WSL). This causes libraries that depend on the 'webbrowser' module to mistakenly assume there's been an error opening a URL. An example of this behaviour can

[issue45548] Update Modules/Setup

2021-10-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 23.10.2021 20:04, Christian Heimes wrote: > > PR GH-29179 or GH-29181 address the issue with _math.o I think those patches are both taking things a bit too far. This is a build problem, not a code problem. It's perfectly good style to link a single

[issue45590] distutils: Upload failed (400): Invalid value for blake2_256_digest

2021-10-23 Thread Christian Heimes
Christian Heimes added the comment: Distutils is deprecated and should no longer be used. Please use twine to upload software to PyPI, https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html -- ___ Python tracker

[issue45548] Update Modules/Setup

2021-10-23 Thread Christian Heimes
Christian Heimes added the comment: The trick would move the math function back into the core. Mark moved the math functions out of the core on purpose, see bpo-7518. -- ___ Python tracker

[issue45436] test_tk.test_configure_type() fails with Tcl/Tk 8.6.11

2021-10-23 Thread E. Paine
E. Paine added the comment: It turns out the `test_configure_compound` change was intentional (https://core.tcl-lang.org/tk/tktview/46c2f088) and an empty string will use the value given by the style ("If set to the empty string (the default)..."

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-23 Thread Petr Viktorin
Petr Viktorin added the comment: Pep 640 is Informational, and per PEP 1: Informational PEPs do not necessarily represent a Python community consensus or recommendation, so users and implementers are free to ignore Informational PEPs or follow their advice. (Will reply more tomorrow, I'm

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-23 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Thanks, Petr. Yes, that is correct. PEP 630 (I assume you meant 630, not 640) still describes the _rationale_ very well. I guess what's needed is a Standards Track PEP based on PEP 630 (IIUC). -- ___ Python

[issue45379] Improve errors related to frozen modules.

2021-10-23 Thread Filipe Laíns
Filipe Laíns added the comment: FROZEN_EXCLUDED is set when frozen modules have no code associated with them, and the _freeze_module tool doesn't seem to be able to produce such output. We could remove it and replace it with an assert, but that does not give us much benefit, so we should

[issue35957] Indentation explanation is unclear

2021-10-23 Thread Quang Lê Duy
Quang Lê Duy added the comment: Reading from the source code (Parser/tokenizer.c from line 1364 as in Python 3.10), I derive these as the actual indentation rules: – Tab makes the indentation amount the next multiple of 8. – Among lines with the same indentation amount in the same parent line,

[issue45588] cached_method similar to cached_property to cache with classes

2021-10-23 Thread Marten Lienen
New submission from Marten Lienen : There should be a `cached_method` equivalent to `cached_property` so that methods of long-lived objects can be cached easily. -- components: Library (Lib) messages: 404870 nosy: martenlienen priority: normal severity: normal status: open title:

[issue2733] mmap resize fails on anonymous memory

2021-10-23 Thread Tim Golden
Change by Tim Golden : -- resolution: -> later stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue2733] mmap resize fails on anonymous memory

2021-10-23 Thread Tim Golden
Tim Golden added the comment: Superseded by issue40915 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45588] cached_method similar to cached_property to cache with classes

2021-10-23 Thread Alex Waygood
Alex Waygood added the comment: Are you aware of the previously reported problems with `cached_property`? https://bugs.python.org/issue43468 -- nosy: +AlexWaygood ___ Python tracker

[issue14067] Avoid more stat() calls in importlib

2021-10-23 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I wonder if the circumstances changed since this is an old issue? the method looks to have a deprecation warning and changed a bit too, I stand to be corrected. -- nosy: +nanjekyejoannah ___ Python tracker

[issue14067] Avoid more stat() calls in importlib

2021-10-23 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Related : https://bugs.python.org/issue14067 -- ___ Python tracker ___ ___ Python-bugs-list

[issue45588] cached_method similar to cached_property to cache with classes

2021-10-23 Thread Marten Lienen
Marten Lienen added the comment: @serhiy.storchaka The simple implementation is very simple but does not allow overwriting the arguments to `lru_cache` and, probably more importantly, creates a circular reference on `self`, I believe. -- ___

[issue21724] resetwarnings doesn't reset warnings registry

2021-10-23 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @Julian Am leaning more into us applying a relevant fix, than adjusting the documentation. -- nosy: +nanjekyejoannah ___ Python tracker

[issue45516] Add protocol description to the Traversable and TraversableResources documentation

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +27464 pull_request: https://github.com/python/cpython/pull/29194 ___ Python tracker ___

[issue45588] cached_method similar to cached_property to cache with classes

2021-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: See also: https://docs.python.org/3/faq/programming.html#how-do-i-cache-method-calls -- ___ Python tracker ___

[issue45586] Use starred expressions in list indices

2021-10-23 Thread Alex Waygood
Change by Alex Waygood : -- type: -> enhancement versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list

[issue45548] Update Modules/Setup

2021-10-23 Thread Christian Heimes
Christian Heimes added the comment: I ran into another problem. In shared mode, Modules/Setup places the shared modules in ./Modules/ instead of the build directory ./build/lib.something/. The ./Modules/ directory is not on sys.path. getpath.c only adds the build dir to sys.path. It takes

[issue45379] Improve errors related to frozen modules.

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +27460 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29189 ___ Python tracker ___

[issue45582] Rewrite getpath.c in Python

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-23 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Petr: > Hmm, the best I can find is > https://github.com/python/steering-council/blob/main/updates/2021-02-steering-council-update.md#february-08 Perfect, thanks! Christian: Thanks for your input. If this was a discussion on Discourse, I'd press the L

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-23 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Oh, I found PEP 3121 (Extension Module Initialization and Finalization). It is a Standards Track PEP and it is accepted. The abstract is pretty short. Let me just repost it here, for convenience: Extension module initialization currently has a few

[issue2733] mmap resize fails on anonymous memory

2021-10-23 Thread Tim Golden
Change by Tim Golden : -- resolution: later -> duplicate superseder: -> multiple problems with mmap.resize() in Windows ___ Python tracker ___

[issue45588] cached_method similar to cached_property to cache with classes

2021-10-23 Thread Marten Lienen
Marten Lienen added the comment: @AlexWaygood No, I was not aware of the problems. I have updated the PR by removing the lock entirely. Since the function has to be cacheable, it should be idempotent anyway, so that executing it multiple times in parallel does not make a program incorrect.

[issue45588] cached_method similar to cached_property to cache with classes

2021-10-23 Thread Marten Lienen
Marten Lienen added the comment: However, then the user gets error messages mentioning cached_property when they are actually using cached_method. -- ___ Python tracker ___

[issue45588] cached_method similar to cached_property to cache with classes

2021-10-23 Thread Marten Lienen
Marten Lienen added the comment: An implementation based on cached_property (that therefore also inherits its locking problem) that does not create a circular reference and copies attributes (docs etc.) from the decorated function would be as follows (based on the WeaklyBoundMethod from

[issue11602] python-config code should be in sysconfig

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-23 Thread Christian Heimes
Christian Heimes added the comment: > Given that some essential third party modules are not going down this path, > it is unlikely that general users would ever see any benefit. I disagree with your statement. It does not reflect my experience, too. Heap types are a prerequisite for abi3

[issue45588] cached_method similar to cached_property to cache with classes

2021-10-23 Thread Marten Lienen
Change by Marten Lienen : -- keywords: +patch pull_requests: +27462 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29191 ___ Python tracker ___

[issue45587] argparse add_argument_group: distinguish title and description from **kwargs

2021-10-23 Thread SelfAdjointOperator
Change by SelfAdjointOperator : -- keywords: +patch pull_requests: +27463 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29192 ___ Python tracker

[issue15795] Zipfile.extractall does not preserve file permissions

2021-10-23 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I left a review on the PR requesting for some tests, if it makes sense. -- nosy: +nanjekyejoannah ___ Python tracker ___

[issue33439] python-config.py should be part of the stdlib

2021-10-23 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I posted on Python-dev (not sure if it will help), I wanted to do this in 2019 but looks like there is still no consensus yet. -- ___ Python tracker

[issue45580] argparse.ArgumentParser.add_mutually_exclusive_group : metavar create parenthesis undefined behavior

2021-10-23 Thread Nikita Sobolev
Nikita Sobolev added the comment: I confirm this happens on all recent Python versions. The source of this problem is that `argparse` uses `regex` module to replace some substrings. Direct link:

[issue45580] argparse.ArgumentParser.add_mutually_exclusive_group : metavar create parenthesis undefined behavior

2021-10-23 Thread Nikita Sobolev
Nikita Sobolev added the comment: Maybe instead we can show users something like: ``` usage: ex.py [-h] (-p '/var/www/html' | -r 'http)s(://Host:Port') [--last-args LAST_ARGS] ``` ? -- components: +Library (Lib) -Parser type: -> behavior versions: +Python 3.10, Python 3.11

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2021-10-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Hmm, perhaps I should reopen the ticket, even though I now found the cause. After all, it is possible that lineno is None and inspect.getframeinfo() cannot handle it :-) And it may be worthwhile investigating why recreation of a code object using:

[issue45429] [Windows] time.sleep() should use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION

2021-10-23 Thread Benjamin Szőke
Benjamin Szőke added the comment: A similar solution was introduced in VirtualBox some months ago. Soon, i could get back my Windows 10 developing PC and i can try this things. https://www.virtualbox.org/browser/vbox/trunk/src/VBox/Runtime/r3/win/timer-win.cpp#L312 --

[issue45587] argparse add_argument_group: distinguish title and description from **kwargs

2021-10-23 Thread SelfAdjointOperator
Change by SelfAdjointOperator : -- assignee: docs@python components: Documentation, Library (Lib) nosy: SelfAdjointOperator, docs@python priority: normal severity: normal status: open title: argparse add_argument_group: distinguish title and description from **kwargs type: enhancement

[issue33439] python-config.py should be part of the stdlib

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45588] cached_method similar to cached_property to cache with classes

2021-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: AFAICT, the only capability added by the PR is keeping a weak reference to the instance. This doesn't improve the hit rate and will make the hit rate worse for instances that define __hash__. In the PR's example, two vector instances with equal

[issue45586] Use starred expressions in list indices

2021-10-23 Thread Jacob Nilsson
Jacob Nilsson added the comment: I don't understand, do you mean that lists should work like in your example? Or that your example code doesn't run? If you mean the first issue, that is ok I guess but I've never used indexing like that outside of numpy, pandas and the like. If you mean the

[issue45586] Use starred expressions in list indices

2021-10-23 Thread Jacob Nilsson
Jacob Nilsson added the comment: Oh yeah, the reason lists don't allow the starred expression has nothing to do with the starred expression itself, it's syntactically correct and in your case a[1, *[2, 3], 4] is equivalent to a[1, 2, 3, 4]. The "problem" is that lists do not allow indexing

[issue45511] Batch-mode input() limited to 4095 characters on *NIX

2021-10-23 Thread Grégory Starck
Grégory Starck added the comment: reproduced and also seen in my_fgets. but strange. it's fgets that seems to return/insert a \n after 4096 chars read from stdin :O I dont quite get. at all haha. now just straced that.. we see 4 read of 1024 bytes/chars. and with strace -s 1025 I can see

[issue6785] IncompleteRead / BadStatus when parsing http://peakoil.mobi

2021-10-23 Thread Yoann Aubineau
Change by Yoann Aubineau : -- nosy: -yaubi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3445] Ignore missing attributes in functools.update_wrapper

2021-10-23 Thread Yoann Aubineau
Change by Yoann Aubineau : -- nosy: -yaubi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22097] Linked list API for ordereddict

2021-10-23 Thread Yoann Aubineau
Change by Yoann Aubineau : -- nosy: -yaubi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2021-10-23 Thread Yoann Aubineau
Change by Yoann Aubineau : -- nosy: -yaubi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

2021-10-23 Thread Filipe Laíns
Filipe Laíns added the comment: I opened up a new PR that should fix this properly. The root issue was that PathFinder was not setting the loader attribute for namespace packages in the spec, which it should. After fixing that, _find_module just needed to be updated to deal with

[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2021-10-23 Thread Yoann Aubineau
Change by Yoann Aubineau : -- nosy: -yaubi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21710] --install-base option ignored?

2021-10-23 Thread Yoann Aubineau
Change by Yoann Aubineau : -- nosy: -yaubi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21740] doctest doesn't allow duck-typing callables

2021-10-23 Thread Yoann Aubineau
Change by Yoann Aubineau : -- nosy: -yaubi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +27465 pull_request: https://github.com/python/cpython/pull/29196 ___ Python tracker ___

[issue21724] resetwarnings doesn't reset warnings registry

2021-10-23 Thread Yoann Aubineau
Change by Yoann Aubineau : -- nosy: -yaubi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22086] Tab indent no longer works in interpreter

2021-10-23 Thread Yoann Aubineau
Change by Yoann Aubineau : -- nosy: -yaubi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45593] SpooledTemporaryFile.truncate returns None

2021-10-23 Thread Maciej Urbański
New submission from Maciej Urbański : Related: https://bugs.python.org/issue40287 https://bugs.python.org/msg319145 -- components: Library (Lib) messages: 404914 nosy: rooter priority: normal severity: normal status: open title: SpooledTemporaryFile.truncate returns None type: behavior

[issue45593] SpooledTemporaryFile.truncate returns None

2021-10-23 Thread Maciej Urbański
Change by Maciej Urbański : -- keywords: +patch pull_requests: +27466 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29197 ___ Python tracker ___

[issue45591] PathFinder does not find namespace packages children

2021-10-23 Thread Filipe Laíns
New submission from Filipe Laíns : ``` $ tree namespace namespace/ └── a.py 0 directories, 1 file ``` ``` $ ./python Python 3.9.7 (default, Oct 10 2021, 15:13:22) [GCC 11.1.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from importlib.machinery import

[issue45592] NamespaceLoader does not implement create_module or exec_module

2021-10-23 Thread Filipe Laíns
New submission from Filipe Laíns : NamespaceLoader currently does not implement create_module or exec_module, which is problematic since load_module is deprecated. The create_module docstring is the same as _LoaderBasics: ``` def create_module(self, spec): """Use default semantics for

[issue45586] Use starred expressions in subscripts

2021-10-23 Thread Dennis Sweeney
Dennis Sweeney added the comment: Jacob wrote: a[[0, *[0, 0], 0]] which passes the *list* [0, 0, 0, 0] into __getitem__. In numpy, passing lists into __getitem__ does things like array([1, 10, 100])[[2, 1]] --> array([100, 10]). But I think Peter is requesting that the following work:

[issue45579] [list.append(i) for i in list] causes high resources usage

2021-10-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___