[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-29 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +25991
pull_request: https://github.com/python/cpython/pull/27472

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41737] Improper NotADirectoryError when opening a file in a fake directory

2021-07-29 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

I've put up a PR that expands the docs for NotADirectoryError here: 

https://github.com/python/cpython/pull/27471/files

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41737] Improper NotADirectoryError when opening a file in a fake directory

2021-07-29 Thread Andrei Kulakov


Change by Andrei Kulakov :


--
nosy: +andrei.avk
nosy_count: 3.0 -> 4.0
pull_requests: +25990
pull_request: https://github.com/python/cpython/pull/27471

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44195] importlib.abc.TraversableReader is not implemented

2021-07-29 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41911] Language reference for expressions incorrectly specifies what type of object(s) are expected

2021-07-29 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

I've put up a PR here: https://github.com/python/cpython/pull/27470/files

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44771] Adopt changes from importlib_resources 5.2

2021-07-29 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41911] Language reference for expressions incorrectly specifies what type of object(s) are expected

2021-07-29 Thread Andrei Kulakov


Change by Andrei Kulakov :


--
keywords: +patch
nosy: +andrei.avk
nosy_count: 3.0 -> 4.0
pull_requests: +25989
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27470

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44771] Adopt changes from importlib_resources 5.2

2021-07-29 Thread Jason R. Coombs


Jason R. Coombs  added the comment:


New changeset aaa83cdfab6817446285e631232f64b394ac6791 by Jason R. Coombs in 
branch 'main':
bpo-44771: Apply changes from importlib_resources 5.2.1 (GH-27436)
https://github.com/python/cpython/commit/aaa83cdfab6817446285e631232f64b394ac6791


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42626] readline history, vi-editingmode and ANSI color codes bug

2021-07-29 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Joakim: by the way, what I was able to reproduce is just a visual bug. IOW, the 
text is still the same and all there in the buffer, but it shows up only after 
a combination of rightward movement and 'a', and a copy of it shows up on the 
left side. So it's not as serious as if the text was garbled or impossible to 
enter or change.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44711] Optimize type check in pipes.py

2021-07-29 Thread Anton Grübel

Anton Grübel  added the comment:

I'm still super happy to had the chance to contribute a bit to Python and it 
will be available already in version 3.10 <3

Thanks Serhiy & Lukasz!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44479] Windows build doesn't regenerate some files

2021-07-29 Thread Steve Dower


Change by Steve Dower :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44479] Windows build doesn't regenerate some files

2021-07-29 Thread Steve Dower


Steve Dower  added the comment:


New changeset 0b984d19547c2c16203e9ab2b2959fbabcde by Steve Dower in branch 
'3.10':
bpo-44479: Do not regenerate files during a PGO build as it will invalidate the 
profile. (GH-27462)
https://github.com/python/cpython/commit/0b984d19547c2c16203e9ab2b2959fbabcde


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44773] case_insensitive kwarg in str.replace()

2021-07-29 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

I don't think this should be done.  

If case doesn't matter at all, the input can be casefolded before the 
replacement:

  s.casefold().replace('hippo', 'giraffe').  

If it can't be casefolded in advance because the case actually matters, then 
​it doesn't make sense to mix a case-insensitive search step with a 
case-sensitive replacement.

Presumably if case matters at all in the original string, then the new text 
would need to match the case of the old text.  With the example in the selected 
StackOverflow answer, we get undesirable output for most of the case variants:

 ​strings = [
​'I WANT A HIPPO FOR MY BIRTHDAY!',  # lowercase giraffe doesn't fit
​'I want a hippo for my birthday.',  # only makes sense when the case 
matches
​'I Want A Hippo for My Birthday',   # lowercase giraffe doesn't fit
​'I want a hIPpo for my birthday',   # desired outcome unknown
 ​]
 ​for s in strings:
 ​print(s.replace('hippo', 'giraffe', case_insensitive=True)

ISTM that every answer in the StackOverflow entry has only a toy examples and 
wouldn't make sense for real text where case is retained everywhere except for 
the substitutions.

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44762] getpass.getpass on Windows fallback detection is bad

2021-07-29 Thread Eryk Sun


Eryk Sun  added the comment:

> WindowsConsoleIO doesn't actually use the standard file descriptors 
> for stdin/out/err

To resolve bpo-30555, _WindowsConsoleIO was changed to eliminate self->handle 
and get the underlying handle dynamically via _get_osfhandle(). It's thus 
susceptible to close() and dup2() calls in Python or a C library. This 
consequence was noted. The alternative was to duplicate the OS handle that 
self->fd wraps, isolating it from self->handle. But then self->fd could get 
closed, or duped to another file. Either way there are file and file-type sync 
problems. It's not going to work in the seamless way that people are used to in 
POSIX, which only uses a single io.FileIO type. I think a better resolution 
will be possible in the context of your side project, if you're still working 
on it...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44745] Manual for python 3.9.6 will not let me search

2021-07-29 Thread Jack Humphries


Jack Humphries  added the comment:

This may be a build system problem.

Building the v3.9.6 tag locally on Windows 10.0.19043 produces a help file that 
can properly search.

On top of that locally built python396.chm file output is 3MB larger (around 
the same size as the 3.9.5 help file).

--
nosy: +distroJack

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-29 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 0bc17658f5724ce60c3f75acc01e7526f1720efe by Erlend Egeberg 
Aasland in branch '3.9':
[3.9] bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised 
(GH-27431) (GH-27465)
https://github.com/python/cpython/commit/0bc17658f5724ce60c3f75acc01e7526f1720efe


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43596] change assertRaises message when wrong exception is raised

2021-07-29 Thread Irit Katriel


Change by Irit Katriel :


--
components: +Library (Lib)

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43596] change assertRaises message when wrong exception is raised

2021-07-29 Thread Irit Katriel


Irit Katriel  added the comment:

What you are suggesting replaces the type of the exception being raised. If 
it's something like a MemoryError or KeyboardInterrupt you don't want that, you 
want your test process to terminate.

--
nosy: +iritkatriel

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-29 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 2d34664051bd014d3b807e51ac7c53f37d90f444 by Erlend Egeberg 
Aasland in branch 'main':
bpo-31746: Fix broken call in GH-27431 (GH-27464)
https://github.com/python/cpython/commit/2d34664051bd014d3b807e51ac7c53f37d90f444


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-29 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +25988
pull_request: https://github.com/python/cpython/pull/27465

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-29 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +25987
pull_request: https://github.com/python/cpython/pull/27464

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-29 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +25986
pull_request: https://github.com/python/cpython/pull/27463

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44479] Windows build doesn't regenerate some files

2021-07-29 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +25985
pull_request: https://github.com/python/cpython/pull/27462

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-29 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 7e311e496b0e26b3d3c62fe9b0ed2a4677c37ee9 by Erlend Egeberg 
Aasland in branch 'main':
bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised (GH-27431)
https://github.com/python/cpython/commit/7e311e496b0e26b3d3c62fe9b0ed2a4677c37ee9


--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44479] Windows build doesn't regenerate some files

2021-07-29 Thread Steve Dower


Steve Dower  added the comment:


New changeset 3edec5d142365f2340865b4f12652e6aa627818a by Steve Dower in branch 
'main':
bpo-44479: Do not regenerate files during a PGO build as it will invalidate the 
profile. (GH-27460)
https://github.com/python/cpython/commit/3edec5d142365f2340865b4f12652e6aa627818a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44662] Add ability to annotate types.Union

2021-07-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +25984
pull_request: https://github.com/python/cpython/pull/27461

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44662] Add ability to annotate types.Union

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 8182c8329c709f42218a8a17d81639ece5b7b627 by Yurii Karabas in 
branch 'main':
bpo-44662: Add ability to annotate types.Union (#27214)
https://github.com/python/cpython/commit/8182c8329c709f42218a8a17d81639ece5b7b627


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44762] getpass.getpass on Windows fallback detection is bad

2021-07-29 Thread Steve Dower


Steve Dower  added the comment:

> I suppose checking the file type in io._WindowsConsoleIO.isatty() could be 
> useful in case the file descriptor gets reassigned to a non-console file 
> (e.g. via os.close or os.dup2).

Pretty sure we currently don't support these anyway. WindowsConsoleIO doesn't 
actually use the standard file descriptors for stdin/out/err - it creates new 
ones based on the real handles just in case a caller requests them. In my 
opinion, correctness of "write to console" outweighs correctness of "manually 
close the console FD and wait for a new one with the same number to be opened" 
;)

If we have WindowsConsoleIO as the type, it shouldn't be possible for it to 
refer to any kind of file other than the console or it would be a FileIO. If 
that's no longer true, we should fix that first. WindowsConsoleIO.isatty ought 
to be "return True".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44479] Windows build doesn't regenerate some files

2021-07-29 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +25983
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/27460

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44762] getpass.getpass on Windows fallback detection is bad

2021-07-29 Thread Eryk Sun


Eryk Sun  added the comment:

> We could also provide a better check in WindowsConsoleIO.isatty, 

For isatty(), my concern is a false positive if the file is the "NUL" device, 
which should be an io.FileIO object. I suppose checking the file type in 
io._WindowsConsoleIO.isatty() could be useful in case the file descriptor gets 
reassigned to a non-console file (e.g. via os.close or os.dup2). 

I'd prefer to implement the check in a common _Py_isatty() function that 
supports the optional errno values EBADF and ENOTTY [1]. For example:

int
_Py_isatty(int fd)
{
DWORD mode;
HANDLE handle = _Py_get_osfhandle_noraise(fd);

if (handle == INVALID_HANDLE_VALUE) {
errno = EBADF;
return 0;
}

switch (GetFileType(handle)) {
case FILE_TYPE_CHAR:
break;
case FILE_TYPE_DISK:
case FILE_TYPE_PIPE:
errno = ENOTTY;
return 0;
default:
errno = EBADF;
return 0;
}

if (!GetConsoleMode(handle, ) && 
  GetLastError() != ERROR_ACCESS_DENIED) {
errno = ENOTTY;
return 0;
}

return 1;
}

---

[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/isatty.html

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44762] getpass.getpass on Windows fallback detection is bad

2021-07-29 Thread Eryk Sun


Eryk Sun  added the comment:

It should be noted that changing win_getpass() to check sys.stdin.isatty() 
makes it inconsistent with unix_getpass(). The latter tries to open "/dev/tty" 
regardless of sys.stdin. To be consistent, win_getpass() would be implemented 
to call fallback_getpass() only if "CONIN$" is inaccessible. 

We'd still have the problem that's reported here. A classic console session 
(not ConPTY) can have no window, or an invisible window, and thus no way for a 
user to enter text. I don't see any reports that reading from "/dev/tty" makes 
getpass() wait forever in POSIX, so this situation is probably unique to 
Windows, or at least it's far more likely in Windows, which may justify 
introducing an inconsistency.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-07-29 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +25982
pull_request: https://github.com/python/cpython/pull/27456

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44765] Misspelled Word In Docs

2021-07-29 Thread Eesa Ibrahim Khokhar

Eesa Ibrahim Khokhar  added the comment:

And further honor to be messaged by the Co-chair of the Python Language!

On Thu, Jul 29, 2021 at 1:41 PM Eesa Ibrahim Khokhar 
wrote:

>
> Eesa Ibrahim Khokhar  added the comment:
>
> Also an honor to be messaged by the primary author of the following
> approved Python enhancement proposals: PEP 443, PEP 541, PEP 563, PEP 585,
> PEP 602!
>
> On Thu, Jul 29, 2021 at 1:40 PM Eesa Ibrahim Khokhar <
> khokhareesa.h...@gmail.com> wrote:
>
> > Messaged, not emailed 
> >
> > On Thu, Jul 29, 2021 at 1:38 PM Eesa Ibrahim Khokhar <
> > khokhareesa.h...@gmail.com> wrote:
> >
> >> You're welcome!
> >>
> >> It's an honor to be emailed by the core developer of the Python
> >> interpreter and standard library!
> >>
> >> On Thu, Jul 29, 2021 at 1:23 PM Łukasz Langa 
> >> wrote:
> >>
> >>>
> >>> Łukasz Langa  added the comment:
> >>>
> >>> Thanks! ✨  ✨
> >>>
> >>> --
> >>> resolution:  -> fixed
> >>> stage: patch review -> resolved
> >>> status: open -> closed
> >>>
> >>> ___
> >>> Python tracker 
> >>> 
> >>> ___
> >>>
> >>
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44765] Misspelled Word In Docs

2021-07-29 Thread Eesa Ibrahim Khokhar

Eesa Ibrahim Khokhar  added the comment:

Also an honor to be messaged by the primary author of the following
approved Python enhancement proposals: PEP 443, PEP 541, PEP 563, PEP 585,
PEP 602!

On Thu, Jul 29, 2021 at 1:40 PM Eesa Ibrahim Khokhar <
khokhareesa.h...@gmail.com> wrote:

> Messaged, not emailed 
>
> On Thu, Jul 29, 2021 at 1:38 PM Eesa Ibrahim Khokhar <
> khokhareesa.h...@gmail.com> wrote:
>
>> You're welcome!
>>
>> It's an honor to be emailed by the core developer of the Python
>> interpreter and standard library!
>>
>> On Thu, Jul 29, 2021 at 1:23 PM Łukasz Langa 
>> wrote:
>>
>>>
>>> Łukasz Langa  added the comment:
>>>
>>> Thanks! ✨  ✨
>>>
>>> --
>>> resolution:  -> fixed
>>> stage: patch review -> resolved
>>> status: open -> closed
>>>
>>> ___
>>> Python tracker 
>>> 
>>> ___
>>>
>>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44765] Misspelled Word In Docs

2021-07-29 Thread Eesa Ibrahim Khokhar

Eesa Ibrahim Khokhar  added the comment:

Messaged, not emailed 

On Thu, Jul 29, 2021 at 1:38 PM Eesa Ibrahim Khokhar <
khokhareesa.h...@gmail.com> wrote:

> You're welcome!
>
> It's an honor to be emailed by the core developer of the Python
> interpreter and standard library!
>
> On Thu, Jul 29, 2021 at 1:23 PM Łukasz Langa 
> wrote:
>
>>
>> Łukasz Langa  added the comment:
>>
>> Thanks! ✨  ✨
>>
>> --
>> resolution:  -> fixed
>> stage: patch review -> resolved
>> status: open -> closed
>>
>> ___
>> Python tracker 
>> 
>> ___
>>
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44773] case_insensitive kwarg in str.replace()

2021-07-29 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy:  -pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44765] Misspelled Word In Docs

2021-07-29 Thread Eesa Ibrahim Khokhar

Eesa Ibrahim Khokhar  added the comment:

You're welcome!

It's an honor to be emailed by the core developer of the Python interpreter
and standard library!

On Thu, Jul 29, 2021 at 1:23 PM Łukasz Langa  wrote:

>
> Łukasz Langa  added the comment:
>
> Thanks! ✨  ✨
>
> --
> resolution:  -> fixed
> stage: patch review -> resolved
> status: open -> closed
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37224] [subinterpreters] test__xxsubinterpreters fails randomly

2021-07-29 Thread Łukasz Langa

Change by Łukasz Langa :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37224] [subinterpreters] test__xxsubinterpreters fails randomly

2021-07-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25981
pull_request: https://github.com/python/cpython/pull/27453

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44765] Misspelled Word In Docs

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks! ✨  ✨

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44765] Misspelled Word In Docs

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 6d4af4dfd6a361014e9a59d12b9f0b5a56061d22 by Miss Islington (bot) 
in branch '3.9':
bpo-44765: [doc] fix typo (GH-27430) (GH-27451)
https://github.com/python/cpython/commit/6d4af4dfd6a361014e9a59d12b9f0b5a56061d22


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44765] Misspelled Word In Docs

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 86545bd94cc0ae05334a2d775257ee38937c420d by Miss Islington (bot) 
in branch '3.10':
bpo-44765: [doc] fix typo (GH-27430) (GH-27450)
https://github.com/python/cpython/commit/86545bd94cc0ae05334a2d775257ee38937c420d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44773] case_insensitive kwarg in str.replace()

2021-07-29 Thread Nimboss


Change by Nimboss :


--
title: case_insensitive kwarg to str.replace() -> case_insensitive kwarg in 
str.replace()

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44773] case_insensitive kwarg to str.replace()

2021-07-29 Thread Nimboss


New submission from Nimboss :

Currently str.replace() has 3 arguments: old, new and count.
This issue suggests the new addition of another argument called 
case_insensitive (type bool, defaulted to False) which determines whether to 
ignore case when replacing said text or not.

Currently we have to use regex or logic (see 
https://stackoverflow.com/questions/919056/case-insensitive-replace), but it 
would just be a nice QoL feature to have a case_insensitive kwarg.

--
components: Parser
messages: 398501
nosy: lys.nikolaou, nimit.grover24, pablogsal
priority: normal
severity: normal
status: open
title: case_insensitive kwarg to str.replace()
type: enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37224] [subinterpreters] test__xxsubinterpreters fails randomly

2021-07-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25980
pull_request: https://github.com/python/cpython/pull/27452

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44765] Misspelled Word In Docs

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset ccefa8a905c797e4a60078d5e1de846f929c6928 by Pavel in branch 
'main':
bpo-44765: [doc] fix typo (GH-27430)
https://github.com/python/cpython/commit/ccefa8a905c797e4a60078d5e1de846f929c6928


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44765] Misspelled Word In Docs

2021-07-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +25978
pull_request: https://github.com/python/cpython/pull/27450

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44765] Misspelled Word In Docs

2021-07-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25979
pull_request: https://github.com/python/cpython/pull/27451

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42626] readline history, vi-editingmode and ANSI color codes bug

2021-07-29 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Also this bug happens on both iterm2 and terminal on MacOS, but note that on 
'terminal', it's impossible to ctrl-c or ctrl-z out of the test script, so if 
you test it, you will need to close the window or the tab, and lose shell 
history and background jobs, so beware.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42626] readline history, vi-editingmode and ANSI color codes bug

2021-07-29 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

I was able to reproduce something very similar, and I believe essentially the 
same issue perhaps varying due to config. I think I've actually seen similar 
glitches with python command line readline handling of k.

So, entering 1234 always works fine. The issue starts with 5 chars:

1234
12345
12345   12345

As you can see, the line is duplicated and going up to it shifts cursor to the 
right, at first the duplication on the right side is blank but if I move the 
cursor to the right, the '1234' are revealed. '5' is still hidden. Then I have 
to press 'a' to see the '5' revealed and go into insert mode.

There's no way to go to the left of the duplicated string.

I hope someone more experienced in readline or more motivated can look more 
into this.

I duplicated it in 3.11 built from source, on MacOS Big Sur (on M1 cpu, but 
that shouldn't matter).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44725] Expose specialization stats in python

2021-07-29 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset ddd1c418c05da0de978c75dfb3e4a5b8d27e1d9f by Irit Katriel in 
branch 'main':
bpo-44725 : expose specialization stats in python (GH-27192)
https://github.com/python/cpython/commit/ddd1c418c05da0de978c75dfb3e4a5b8d27e1d9f


--
nosy: +Mark.Shannon

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2021-07-29 Thread Bruce Merry


Bruce Merry  added the comment:

> Will you accept patches to fix this for 3.9? I'm not clear whether the "bug 
> fixes only" status of 3.9 allows for fixing performance regressions.

Never mind, I see your already answered this on bpo-42853 (as a no). Thanks for 
taking the time to answer my questions; I'll just have to skip Python 3.9 for 
this particular application and go straight to 3.10.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2021-07-29 Thread Bruce Merry


Bruce Merry  added the comment:

> There is nothing to do here.

Will you accept patches to fix this for 3.9? I'm not clear whether the "bug 
fixes only" status of 3.9 allows for fixing performance regressions.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42853] `OverflowError: signed integer is greater than maximum` in ssl.py for files larger than 2GB

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:

> This fix is going to cause a regression of bpo-36050. Would it not be 
> possible to fix this in _ssl.c (by breaking a large read into multiple 
> smaller calls to SSL_read)? It seems like fixing this at the SSL layer is 
> more appropriate than trying to work around it at the HTTP layer, and thus 
> impacting the performance of all HTTP fetches (whether using TLS or not, and 
> whether >2GB or not).

Bruce, you're discussing the *revert* of the bpo-36050 change as if it was a 
new change. It isn't, it is literally returning to a state that was previously 
tested and worked fine since Python 3.5. By reverting, we're choosing 
correctness over performance here.

Introducing a new implementation for bpo-36050 is now out of scope for 3.9 as 
it's a performance-oriented change which we cannot accept in a bugfix release.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:

Inadasan is right, this is still fixed in 3.10 and 3.11. The 3.9 revert is due 
to 3.9 supporting OpenSSL older than 1.1.1. 3.10+ requires OpenSSL 1.1.1+ per 
PEP 644.

There is nothing to do here.

--
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44752] Tab completion executes @property getter function

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Jack! ✨  ✨

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44752] Tab completion executes @property getter function

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 93d90871d216625b8d9db0fa59693953353d19ae by Miss Islington (bot) 
in branch '3.9':
bpo-44752: refactor part of rlcompleter.Completer.attr_matches (GH-27433) 
(GH-27446)
https://github.com/python/cpython/commit/93d90871d216625b8d9db0fa59693953353d19ae


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44752] Tab completion executes @property getter function

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset f8e13e35d12bee6e3447c791199522249ba7f05a by Miss Islington (bot) 
in branch '3.10':
bpo-44752: refactor part of rlcompleter.Completer.attr_matches (GH-27433) 
(GH-27447)
https://github.com/python/cpython/commit/f8e13e35d12bee6e3447c791199522249ba7f05a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32280] Expose `_PyRuntime` through a section name

2021-07-29 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset ebba286709bdb9401df8e5eb196b50008d3b09d2 by Miss Islington (bot) 
in branch '3.10':
bpo-32280: Store _PyRuntime in a named section (GH-4802) (#27448)
https://github.com/python/cpython/commit/ebba286709bdb9401df8e5eb196b50008d3b09d2


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42626] readline history, vi-editingmode and ANSI color codes bug

2021-07-29 Thread Joakim Nilsson


Joakim Nilsson  added the comment:

Sorry, my mistake. If you remove the last line "input()" from readline.py, it 
should be reproducible. Tested on Python 3.9.2.

Link to video demonstration of the bug: 
http://nijoakim.com/readline-example.mp4.

--
Added file: https://bugs.python.org/file50190/readline-example.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32280] Expose `_PyRuntime` through a section name

2021-07-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 12.0 -> 13.0
pull_requests: +25977
pull_request: https://github.com/python/cpython/pull/27448

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43344] RotatingFileHandler breaks file type associations

2021-07-29 Thread Vinay Sajip


Vinay Sajip  added the comment:

> Could you please share best practices, looks like this documentation is 
> missing.

I don't think so, because the implementation of the namer is up to the user.

Note that this specific issue relates to RotatingFileHandler, not 
TimedRotatingFileHandler. I will take a look at the other issue you raised.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44753] backupCount is not respected in TimedRotatingFileHandler when namer is specified

2021-07-29 Thread Vinay Sajip


Change by Vinay Sajip :


--
nosy: +vinay.sajip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44752] Tab completion executes @property getter function

2021-07-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25976
pull_request: https://github.com/python/cpython/pull/27447

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44752] Tab completion executes @property getter function

2021-07-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25975
pull_request: https://github.com/python/cpython/pull/27446

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44752] Tab completion executes @property getter function

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 6741794dd420c6b9775a188690dbf265037cd69f by Jack DeVries in 
branch 'main':
bpo-44752: refactor part of rlcompleter.Completer.attr_matches (GH-27433)
https://github.com/python/cpython/commit/6741794dd420c6b9775a188690dbf265037cd69f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44752] Tab completion executes @property getter function

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset acaf3b959492e7a84dcc9d46101ed6dc313768c8 by Miss Islington (bot) 
in branch '3.9':
bpo-44752: Make rlcompleter not call `@property` methods (GH-27401) (#27445)
https://github.com/python/cpython/commit/acaf3b959492e7a84dcc9d46101ed6dc313768c8


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44771] Adopt changes from importlib_resources 5.2

2021-07-29 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

In [this 
comment](https://github.com/python/importlib_resources/pull/221#discussion_r679124389),
 I did more analysis and assuaged my own concerns about the implementation. 
Everything seems to be working as intended, thanks to the strong work by FFY00.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44752] Tab completion executes @property getter function

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset d20f1095a6a51ee8f41ef445a009d26256e1fa61 by Miss Islington (bot) 
in branch '3.10':
bpo-44752: Make rlcompleter not call `@property` methods (GH-27401) (GH-27444)
https://github.com/python/cpython/commit/d20f1095a6a51ee8f41ef445a009d26256e1fa61


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44707] runtime error: applying zero offset to null pointer in Objects/listobject.c

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 12fc0d28fcdeca32314d0755d3b30c7d96907440 by Miss Islington (bot) 
in branch '3.9':
bpo-44707: Fix an undefined behavior of the null pointer arithmetic (GH-27292) 
(GH-27443)
https://github.com/python/cpython/commit/12fc0d28fcdeca32314d0755d3b30c7d96907440


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44707] runtime error: applying zero offset to null pointer in Objects/listobject.c

2021-07-29 Thread Łukasz Langa

Change by Łukasz Langa :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44707] runtime error: applying zero offset to null pointer in Objects/listobject.c

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 761c641f19838517bcf8df5b91d2eb46880efe68 by Miss Islington (bot) 
in branch '3.10':
bpo-44707: Fix an undefined behavior of the null pointer arithmetic (GH-27292) 
(GH-27442)
https://github.com/python/cpython/commit/761c641f19838517bcf8df5b91d2eb46880efe68


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44711] Optimize type check in pipes.py

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:

Due to a non-zero (even if close to zero) likelihood that the change from 
type() comparison to an isinstance() check will change behavior, I merged it to 
3.11 and 3.10 as 3.9 is already pretty far out in its bugfix releases.

Thanks, Anton! ✨  ✨

--
nosy: +lukasz.langa
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44752] Tab completion executes @property getter function

2021-07-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25974
pull_request: https://github.com/python/cpython/pull/27445

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44752] Tab completion executes @property getter function

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 50de8f74f8e92b20e76438c22b6a8f91afd6df75 by Jack DeVries in 
branch 'main':
bpo-44752: Make rlcompleter not call `@property` methods (GH-27401)
https://github.com/python/cpython/commit/50de8f74f8e92b20e76438c22b6a8f91afd6df75


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44752] Tab completion executes @property getter function

2021-07-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +25973
pull_request: https://github.com/python/cpython/pull/27444

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44707] runtime error: applying zero offset to null pointer in Objects/listobject.c

2021-07-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +25971
pull_request: https://github.com/python/cpython/pull/27442

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44707] runtime error: applying zero offset to null pointer in Objects/listobject.c

2021-07-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25972
pull_request: https://github.com/python/cpython/pull/27443

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44707] runtime error: applying zero offset to null pointer in Objects/listobject.c

2021-07-29 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset e5c8ddb1714fb51ab1defa24352c98e0f01205dc by Serhiy Storchaka in 
branch 'main':
bpo-44707: Fix an undefined behavior of the null pointer arithmetic (GH-27292)
https://github.com/python/cpython/commit/e5c8ddb1714fb51ab1defa24352c98e0f01205dc


--
nosy: +Mark.Shannon

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41103] Removing old buffer support

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 6b922dae6cae9f212d678a36e8b41f2287cf5441 by Miss Islington (bot) 
in branch '3.10':
bpo-41103: Resurrect the old buffer protocol. (GH-27437) (GH-27441)
https://github.com/python/cpython/commit/6b922dae6cae9f212d678a36e8b41f2287cf5441


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44688] [sqlite3] Remove ASCII limitation from sqlite3.Connection.create_collation()

2021-07-29 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41103] Removing old buffer support

2021-07-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset ce5e1a6809b714eb0383219190a076d9f883e008 by Inada Naoki in branch 
'main':
bpo-41103: Resurrect the old buffer protocol. (GH-27437)
https://github.com/python/cpython/commit/ce5e1a6809b714eb0383219190a076d9f883e008


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41103] Removing old buffer support

2021-07-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +25970
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27441

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44590] Create frame objects lazily when needed

2021-07-29 Thread Mark Shannon


Change by Mark Shannon :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44772] Regression in memory use of instances due to dictionary ordering

2021-07-29 Thread Mark Shannon


New submission from Mark Shannon :

class C:
def __init__(self, cond):
if cond:
self.a = 1
self.b = 2

c1 = C(True)
c2 = C(False)

   
In Python 3.5, the dictionary keys are shared
-

>>> sys.getsizeof(c2)
56
>>> sys.getsizeof(c1.__dict__)
96
>>> sys.getsizeof(c2.__dict__)
96

In Python 3.9, the keys are not shared
--

>>> sys.getsizeof(c2)
48
>>> sys.getsizeof(c1.__dict__)
272
>>> sys.getsizeof(c2.__dict__)
232

This represents an increase of memory use for c1 of 110%. (48+272)/(56+96) == 
2.1

With compact object layout (https://github.com/faster-cpython/ideas/issues/69), 
any failure to share keys will result in a tripling of memory use per object.

It is not an uncommon pattern for some attributes to initialized lazily,
which causes also prevents key-sharing.

Not only does it increase memory use, it prevents optimizations that attempt to 
specialize attribute access for instances of a class, as different instances 
will have different layouts.

The purpose of compact dicts was to save memory, but in this case we are using 
a lot more memory by preventing PEP 412 from working.

--
keywords: 3.9regression
messages: 398475
nosy: Mark.Shannon
priority: normal
severity: normal
status: open
title: Regression in memory use of instances due to dictionary ordering

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43565] PyUnicode_KIND macro does not has specified return type

2021-07-29 Thread Petr Viktorin


Petr Viktorin  added the comment:

Thank you for your attention to detail!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43565] PyUnicode_KIND macro does not has specified return type

2021-07-29 Thread Petr Viktorin


Petr Viktorin  added the comment:


New changeset 7922546859e746a0f20f53bc80ce0581b72030aa by Miss Islington (bot) 
in branch '3.9':
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724) 
(GH-27440)
https://github.com/python/cpython/commit/7922546859e746a0f20f53bc80ce0581b72030aa


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43565] PyUnicode_KIND macro does not has specified return type

2021-07-29 Thread Petr Viktorin


Petr Viktorin  added the comment:


New changeset b5bdc0c407d2d0587e591989e390ada9b9709502 by Miss Islington (bot) 
in branch '3.10':
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724) 
(GH-27439)
https://github.com/python/cpython/commit/b5bdc0c407d2d0587e591989e390ada9b9709502


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44749] LOAD_NAME not using PyObject_GetItem when globals() is a dict subclass

2021-07-29 Thread Douglas Raillard


Douglas Raillard  added the comment:

Looks like it is, for some reason I did not find these previous issues when 
looking for existing ones.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-07-29 Thread miss-islington


miss-islington  added the comment:


New changeset d542742128b634264d5b6796297613975211b43b by Erlend Egeberg 
Aasland in branch 'main':
bpo-42064: Optimise `sqlite3` state access, part 1 (GH-27273)
https://github.com/python/cpython/commit/d542742128b634264d5b6796297613975211b43b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43565] PyUnicode_KIND macro does not has specified return type

2021-07-29 Thread Petr Viktorin


Petr Viktorin  added the comment:


New changeset 47fd4726a2ce8599cc397ddeae40f70eb471e868 by Ammar Askar in branch 
'main':
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724)
https://github.com/python/cpython/commit/47fd4726a2ce8599cc397ddeae40f70eb471e868


--
nosy: +petr.viktorin

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43565] PyUnicode_KIND macro does not has specified return type

2021-07-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +25968
pull_request: https://github.com/python/cpython/pull/27439

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43565] PyUnicode_KIND macro does not has specified return type

2021-07-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25969
pull_request: https://github.com/python/cpython/pull/27440

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-07-29 Thread Petr Viktorin


Petr Viktorin  added the comment:


New changeset a390ebea17a96d1c93fc5f75b1e19916090a4561 by Hai Shi in branch 
'main':
bpo-42035: Add a PyType_GetName() to get type's short name. (GH-23903)
https://github.com/python/cpython/commit/a390ebea17a96d1c93fc5f75b1e19916090a4561


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41103] Removing old buffer support

2021-07-29 Thread Inada Naoki


Change by Inada Naoki :


--
resolution: fixed -> 
stage: resolved -> 
status: closed -> open
versions: +Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-07-29 Thread Petr Viktorin


Petr Viktorin  added the comment:

> Can we create PyType_GetDataSlot function to return the data pointer?

No, see the borrowed pointer issues above.

> I will create another PR after PR-23903 merged.

Great, thank you!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41103] Removing old buffer support

2021-07-29 Thread Inada Naoki


Inada Naoki  added the comment:

Should I resurrect only function implementation and symbol?
Or may I resurrect definitions in header files too?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44688] [sqlite3] Remove ASCII limitation from sqlite3.Connection.create_collation()

2021-07-29 Thread Petr Viktorin


Petr Viktorin  added the comment:


New changeset 5269c091458c5ea76eb625e4fabc9980b6309266 by Erlend Egeberg 
Aasland in branch 'main':
bpo-44688: Remove ASCII limitation from `sqlite3` collation names (GH-27395)
https://github.com/python/cpython/commit/5269c091458c5ea76eb625e4fabc9980b6309266


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25702] Link Time Optimizations support for GCC and CLANG

2021-07-29 Thread Inada Naoki


Change by Inada Naoki :


--
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42853] `OverflowError: signed integer is greater than maximum` in ssl.py for files larger than 2GB

2021-07-29 Thread Bruce Merry


Bruce Merry  added the comment:

> A patch would not land in Python 3.9 since this would be a new feature and 
> out-of-scope for a released version.

I see it as a fix for this bug. While there is already a fix, it regresses 
another bug (bpo-36050), so this would be a better fix.

> Do you really want to store gigabytes of downloads in RAM instead of doing 
> chunked reads and store them on disk?

I work on HPC applications where large quantities of data are stored in an 
S3-compatible object store and fetched over HTTP at 25Gb/s for processing. The 
data access layer tries very hard to avoid even making extra copies in memory 
(which is what caused me to file bpo-36050 in the first place) as it make a 
significant difference at those speeds. Buffering to disk would be right out.

> then there are easier and better ways to deal with large buffers

Your example code is probably fine if one is working directly on an SSLSocket, 
but http.client wraps it in a buffered reader (via `socket.makefile`), and that 
implements `readinto` by reading into a temporary and copying it 
(https://github.com/python/cpython/blob/8d0647485db5af2a0f0929d6509479ca45f1281b/Modules/_io/bufferedio.c#L88),
 which would add overhead.

I appreciate that what I'm proposing is a relatively complex change for a 
released version. A less intrusive option would to be change MAXAMOUNT in 
http.client from 1MiB to 2GiB-1byte (as suggested by @matan1008). That would 
still leave 3.9 slower than 3.8 when reading >2GiB responses over plain HTTP, 
but at least everything in the range [1MiB, 2GiB) would operate at full speed 
(which is the region I actually care about).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >