[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev


Nikita Sobolev  added the comment:

Important note, in practice there's also a difference in how one calls some 
test module:

- python Lib/test/test_contextlib.py
- python ./Lib/test/test_contextlib.py

Example of a test failure because of that: 
https://github.com/python/cpython/pull/30681

--

___
Python tracker 

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



[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev


Change by Nikita Sobolev :


--
pull_requests: +28880
pull_request: https://github.com/python/cpython/pull/30681

___
Python tracker 

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



[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-18 Thread Inada Naoki


Inada Naoki  added the comment:

I am not happy about exposing every internal types. I prefer duck typing.

Like OrderedDict, not all dict subtypes uses `dict_keys`, `dict_views`, and 
`dict_items`.
If typeshed annotate dict.keys() returns `dict_keys`, "incompatible override" 
cano not be avoided.

I prefer:

* Keep status-quo: keys().mapping cause false positive and user need to 
suppress. This is not a big problem because `.mapping` is very rarely used.
* Or add `.mapping` to `KeysView`, `ValuesView`, and `ItemsView`. Force every 
dict subclasses to implement it.

--
nosy: +methane

___
Python tracker 

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



[issue46429] Merge all deepfrozen files into one

2022-01-18 Thread Guido van Rossum


New submission from Guido van Rossum :

This saves some space when strings are shared across deep-frozen module.
Kumar measured this at around 0.2 Mbyte.

See discussion https://github.com/faster-cpython/ideas/issues/218

--

___
Python tracker 

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



[issue46429] Merge all deepfrozen files into one

2022-01-18 Thread Kumar Aditya


Change by Kumar Aditya :


--
keywords: +patch
pull_requests: +28879
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30572

___
Python tracker 

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



[issue46429] Merge all deepfrozen files into one

2022-01-18 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: gvanrossum, kumaraditya303
priority: normal
severity: normal
status: open
title: Merge all deepfrozen files into one
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



[issue46368] faulthandler: add the ability to dump all interpreters, not only the current interpreter

2022-01-18 Thread Hai Shi


Change by Hai Shi :


--
nosy: +shihai1991

___
Python tracker 

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



[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-18 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

The types of `.keys()`, `.items()`, and `.values()` on 
`collections.OrderedDict` are distinct from those for dict, and they are also 
not exposed anywhere. Should we put them in a public, documented place too for 
consistency?

>>> import collections
>>> od = collections.OrderedDict()
>>> type(od.keys())


--

___
Python tracker 

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



[issue46391] Library multiprocess leaks named resources.

2022-01-18 Thread XD Trol


Change by XD Trol :


--
nosy: +yselivanov

___
Python tracker 

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



[issue24905] Allow incremental I/O to blobs in sqlite3

2022-01-18 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

PR without mapping protocol and context manager submitted: GH-30680. I've also 
changed the open API to reflect that of apsw.

--

___
Python tracker 

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



[issue24905] Allow incremental I/O to blobs in sqlite3

2022-01-18 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +28878
pull_request: https://github.com/python/cpython/pull/30680

___
Python tracker 

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



[issue41791] mimetypes module does not recognize jp2 type

2022-01-18 Thread Andrés Delfino

Change by Andrés Delfino :


--
nosy:  -adelfino

___
Python tracker 

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



[issue28477] Add optional user argument to pathlib.Path.home()

2022-01-18 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> rejected
stage:  -> 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



[issue28169] shift exponent overflow

2022-01-18 Thread Irit Katriel


Irit Katriel  added the comment:

3.7 is no longer maintained. Please open a new issue if you are still seeing 
this problem on a current version (>= 3.9).

--
nosy: +iritkatriel
resolution:  -> out of date
stage:  -> 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



[issue34526] Path.relative_to() taking multiple arguments could be better documented

2022-01-18 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +easy
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7

___
Python tracker 

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



[issue39854] f-strings with format specifiers have wrong col_offset

2022-01-18 Thread Irit Katriel


Irit Katriel  added the comment:

I am unable to reproduce this on 3.11:

>>> ast.parse('f"{x}"').body[0].value.values[0].value.col_offset
3
>>> ast.parse('f"{x!r}"').body[0].value.values[0].value.col_offset
3

--
nosy: +iritkatriel

___
Python tracker 

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



[issue46392] MessageIDHeader is too strict for message-id

2022-01-18 Thread bpoaugust


bpoaugust  added the comment:

Sorry, I think '' is not valid, as spaces are not allowed between 
words.

However I am not seeing the original unfolded source if there is an error, 
unless I am misunderstanding the API.

For example:

--- cut here ---
import email.header
import email.utils
import email.policy

def test(test):
msg_string = f"Message-id: {test}"
message = email.message_from_string(msg_string, policy=email.policy.default)
out = message['Message-id']
print(test)
print(out)

test('') # invalid
test('') # valid
--- cut here ---

This produces:


 # truncated at error



i.e. the invalid input is truncated

--

___
Python tracker 

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



[issue29860] smtplib.py doesn't capitalize EHLO.

2022-01-18 Thread Irit Katriel


Irit Katriel  added the comment:

It's been 5 years, it's not really a bug, and nobody seems to be interested 
enough to submit a patch so I'm closing this. Feel free to reopen if you want 
to pursue this.

--
nosy: +iritkatriel
resolution:  -> not a bug
stage:  -> 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



[issue35107] untokenize() fails on tokenize output when a newline is missing

2022-01-18 Thread Irit Katriel


Irit Katriel  added the comment:

I am unable to reproduce this on 3.11:


>>> tokenize.untokenize(tokenize.generate_tokens(io.StringIO('#').readline))
'#'

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue46427] Correct MSBuild's configuration for _freeze_module.exe

2022-01-18 Thread neonene


neonene  added the comment:

Defenition in general_advanced.xml

  


  


These options above are corresponded to the following folders in my case:

Microsoft Visual Studio\.\VC\Tools\MSVC\\bin\Hostx86
Microsoft Visual Studio\.\VC\Tools\MSVC\\bin\Hostx64

And Each has the 4 children below that contain cl.exe/link.exe/etc...:

  arm
  arm64
  x64
  x86

--

___
Python tracker 

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



[issue13649] termios.ICANON is not documented

2022-01-18 Thread Irit Katriel


Irit Katriel  added the comment:

I agree, there is no point copying over the documentation just for this one 
constant, there are many others and the doc clearly says where they are listed.

--
nosy: +iritkatriel
resolution:  -> wont fix
stage:  -> 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



[issue45535] Enum's dir() does not contain inherited members

2022-01-18 Thread Ethan Furman


Ethan Furman  added the comment:


New changeset 7c0914d35eaaab2f323260ba5fe8884732533888 by Ethan Furman in 
branch 'main':
bpo-45535: [Enum] include special dunders in dir() (GH-30677)
https://github.com/python/cpython/commit/7c0914d35eaaab2f323260ba5fe8884732533888


--

___
Python tracker 

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



[issue45535] Enum's dir() does not contain inherited members

2022-01-18 Thread Ethan Furman


Change by Ethan Furman :


--
pull_requests: +28877
pull_request: https://github.com/python/cpython/pull/30677

___
Python tracker 

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



[issue43118] inspect.signature() raises RuntimeError on failed to resolve the default argument value

2022-01-18 Thread Irit Katriel


Change by Irit Katriel :


--
type:  -> behavior
versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev

Nikita Sobolev  added the comment:

Terry, yes I am using this script to run tests locally:

```bash
#!/usr/bin/env bash

set -e

while read line; do 
  ./python.exe "$line"
done < files.txt
```

And this one to populate `files.txt`:

```bash
find ./Lib -iname 'test*.py' -o -iname '*tests.py' -exec echo {} >> files.txt \;
```

---

There are several other problems that I have to fix manually. For example, 
module-level `raise unittest.case.SkipTest()`:

```
» ./python.exe Lib/test/test_winreg.py 
Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython/Lib/test/support/import_helper.py", line 
77, in import_module
return importlib.import_module(name)
   ^
  File "/Users/sobolev/Desktop/cpython/Lib/importlib/__init__.py", line 126, in 
import_module
return _bootstrap._gcd_import(name[level:], package, level)
   
  File "", line 1206, in _gcd_import
  File "", line 1178, in _find_and_load
  File "", line 1142, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'winreg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_winreg.py", line 11, in 

import_helper.import_module('winreg', required_on=['win'])
^^
  File "/Users/sobolev/Desktop/cpython/Lib/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
^
  File "/Users/sobolev/Desktop/cpython/Lib/test/support/import_helper.py", line 
26, in _ignore_deprecated_imports
yield
^
  File "/Users/sobolev/Desktop/cpython/Lib/test/support/import_helper.py", line 
81, in import_module
raise unittest.SkipTest(str(msg))
^
unittest.case.SkipTest: No module named 'winreg'
```

I am not sure what is the proper solution to this one :thinking:

Probably, I will update my script for more advanced Python-based one and ignore 
this exception.

In the end, I expect to run this script without any failures. This is going to 
be a great result! 

---

I will also check that all possible modes `python -m test test_xyz` / `python 
-m test.test_xyz` / `python Lib/test/test_xyz.py` are supported.

---

Also, thank you for listing concrete problems with my first submission. The 
second one is bound to a single problem and a single submodule.

--

___
Python tracker 

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



[issue46045] NetBSD: do not use POSIX semaphores

2022-01-18 Thread Thomas Klausner


Thomas Klausner  added the comment:

Thanks for merging this, @serhiy.storchaka!

--

___
Python tracker 

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



[issue46427] Correct MSBuild's configuration for _freeze_module.exe

2022-01-18 Thread neonene


neonene  added the comment:

>This also rolls _freeze_module.exe's architecture back to x64

Correcting: from x86 back to x64

In my recognition, only Win32 _freeze_module.exe is built currently and run on 
non-ARM machines to generate the code for Win32/x64/ARM/ARM64 targets.

--

___
Python tracker 

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



[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread Eryk Sun


Change by Eryk Sun :


--
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



[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread Eryk Sun


Eryk Sun  added the comment:

PR 30142 is sufficient for Unix, but it's missing a bit for Windows.

In Windows, the C runtime library maps the console event for Ctrl+Break to 
SIGBREAK. The default handler for SIGBREAK exits with 0xC13A (i.e. 
STATUS_CONTROL_C_EXIT). This value is unrelated to the value of signal.SIGBREAK 
(21) or signal.SIGINT (2).

To forcefully terminate a process, Windows taskkill and Task Manager, and 
pretty much all utilities that can kill a process, call TerminateProcess() with 
1 as the exit status. There's no way to know that this is a forced termination 
as opposed to an unhandled error.

The internal terminate() method in Windows uses 0x1 as the real exit status 
of the process, but the internal wait() method maps this to -signal.SIGTERM 
(-15). Thus the case of calling Process.terminate(), and only this case, is 
faked in Windows to look like the process was killed by a signal.

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

___
Python tracker 

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



[issue46428] Cython Build: '_PyErr_StackItem’ has no member named ‘exc_traceback’

2022-01-18 Thread YoSTEALTH


YoSTEALTH  added the comment:

Thanks @iritkatriel will close this, seems like people are aware of this bug as 
working on fix it :)

--
stage:  -> 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



[issue46428] Cython Build: '_PyErr_StackItem’ has no member named ‘exc_traceback’

2022-01-18 Thread Irit Katriel


Change by Irit Katriel :


--
nosy: +scoder

___
Python tracker 

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



[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-18 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

Closing this. Thanks, Ned and Eric!

--
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



[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev


Change by Nikita Sobolev :


--
pull_requests: +28876
pull_request: https://github.com/python/cpython/pull/30676

___
Python tracker 

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



[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread miss-islington


miss-islington  added the comment:


New changeset 0be4760d85399a308421d9229b5d7f1b4ec718a2 by Miss Islington (bot) 
in branch '3.9':
[3.9] bpo-45554: Document multiprocessing.Process.exitcode values (GH-30142) 
(GH-30675)
https://github.com/python/cpython/commit/0be4760d85399a308421d9229b5d7f1b4ec718a2


--

___
Python tracker 

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



[issue46428] Cython Build: '_PyErr_StackItem’ has no member named ‘exc_traceback’

2022-01-18 Thread Dennis Sweeney

Change by Dennis Sweeney :


--
title: 3.11.0a3 vs 3.11.0a4 -> Cython Build: '_PyErr_StackItem’ has no member 
named ‘exc_traceback’

___
Python tracker 

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



[issue46428] Cython Build: '_PyErr_StackItem’ has no member named ‘exc_traceback’

2022-01-18 Thread Irit Katriel

Irit Katriel  added the comment:

This is issue45711. See Stefan’s comment there.

--

___
Python tracker 

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



[issue46428] 3.11.0a3 vs 3.11.0a4

2022-01-18 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
nosy: +iritkatriel

___
Python tracker 

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



[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-18 Thread Eric V. Smith


Eric V. Smith  added the comment:


New changeset 0ae22577606f1b52e3b6c2de6c5b307518044605 by Erlend Egeberg 
Aasland in branch '3.9':
[3.9] bpo-46402: Promote SQLite URI tricks in sqlite3 docs (GH-30660) (#30672)
https://github.com/python/cpython/commit/0ae22577606f1b52e3b6c2de6c5b307518044605


--

___
Python tracker 

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



[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-18 Thread Eric V. Smith


Eric V. Smith  added the comment:


New changeset 01e6cbefd3d0f60c942ed711131f5d638dde1227 by Erlend Egeberg 
Aasland in branch '3.10':
[3.10] bpo-46402: Promote SQLite URI tricks in sqlite3 docs (GH-30660) 
(GH-30671)
https://github.com/python/cpython/commit/01e6cbefd3d0f60c942ed711131f5d638dde1227


--

___
Python tracker 

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



[issue46428] 3.11.0a3 vs 3.11.0a4

2022-01-18 Thread YoSTEALTH

New submission from YoSTEALTH :

Getting compilation error for an Cython project, since upgrade from `3.11.0a3` 
to `3.11.0a4`, same code.

/opt/python/3.11/bin/python3 setup.py build_ext --inplace -j18 clean --all

# 3.11.0a3
# 
prefix/usr
includedir/usr/include
libdir/usr/lib
libdevdir /usr/lib
relativelibdir
mandir/usr/man
datadir   /usr/share
stringop_overflow yes
array_bounds  yes
__kernel_rwf_tyes
__kernel_timespec yes
open_how  yes
statx yes
C++   yes
has_ucontext  yes
has_memfd_create  yes
liburing_nolibc   yes
CCgcc
CXX   g++
Compiling src/uring.pyx because it depends on 
/opt/python/3.11/lib/python3.11/site-packages/Cython/Includes/libc/s
tring.pxd.
[1/1] Cythonizing src/uring.pyx
running build_ext
building 'uring._uring' extension
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC 
-Ilibs/liburing/src/include -I/opt/python/3.11/inc
lude/python3.11 -c libs/liburing/src/nolibc.c -o 
build/temp.linux-x86_64-3.11/libs/liburing/src/nolibc.o -Os -g0 -
include libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC 
-Ilibs/liburing/src/include -I/opt/python/3.11/inc
lude/python3.11 -c libs/liburing/src/queue.c -o 
build/temp.linux-x86_64-3.11/libs/liburing/src/queue.o -Os -g0 -in
clude libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC 
-Ilibs/liburing/src/include -I/opt/python/3.11/inc
lude/python3.11 -c libs/liburing/src/register.c -o 
build/temp.linux-x86_64-3.11/libs/liburing/src/register.o -Os -
g0 -include libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC 
-Ilibs/liburing/src/include -I/opt/python/3.11/inc
lude/python3.11 -c libs/liburing/src/setup.c -o 
build/temp.linux-x86_64-3.11/libs/liburing/src/setup.o -Os -g0 -in
clude libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC 
-Ilibs/liburing/src/include -I/opt/python/3.11/inc
lude/python3.11 -c src/uring.c -o build/temp.linux-x86_64-3.11/src/uring.o -Os 
-g0 -include libs/liburing/config-h
ost.h
gcc -pthread -shared build/temp.linux-x86_64-3.11/libs/liburing/src/nolibc.o 
build/temp.linux-x86_64-3.11/libs/lib
uring/src/queue.o build/temp.linux-x86_64-3.11/libs/liburing/src/register.o 
build/temp.linux-x86_64-3.11/libs/libu
ring/src/setup.o build/temp.linux-x86_64-3.11/src/uring.o -o 
build/lib.linux-x86_64-3.11/uring/_uring.cpython-311-
x86_64-linux-gnu.so
copying 
build/lib.linux-x86_64-3.11/uring/_uring.cpython-311-x86_64-linux-gnu.so -> 
uring
running clean
removing 'build/temp.linux-x86_64-3.11' (and everything under it)
removing 'build/lib.linux-x86_64-3.11' (and everything under it)
removing 'build/bdist.linux-x86_64' (and everything under it)
'build/scripts-3.11' does not exist -- can't clean it
removing 'build'


# 3.11.0a4
# 
prefix/usr
includedir/usr/include
libdir/usr/lib
libdevdir /usr/lib
relativelibdir
mandir/usr/man
datadir   /usr/share
stringop_overflow yes
array_bounds  yes
__kernel_rwf_tyes
__kernel_timespec yes
open_how  yes
statx yes
C++   yes
has_ucontext  yes
has_memfd_create  yes
liburing_nolibc   yes
CCgcc
CXX   g++
Compiling src/uring.pyx because it depends on 
/opt/python/3.11/lib/python3.11/site-packages/Cython/Includes/libc/string.pxd.
[1/1] Cythonizing src/uring.pyx
running build_ext
building 'uring._uring' extension
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC 
-Ilibs/liburing/src/include -I/opt/python/3.11/include/python3.11 -c 
libs/liburing/src/nolibc.c -o 
build/temp.linux-x86_64-3.11/libs/liburing/src/nolibc.o -Os -g0 -include 
libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC 
-Ilibs/liburing/src/include -I/opt/python/3.11/include/python3.11 -c 
libs/liburing/src/queue.c -o 
build/temp.linux-x86_64-3.11/libs/liburing/src/queue.o -Os -g0 -include 
libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC 
-Ilibs/liburing/src/include -I/opt/python/3.11/include/python3.11 -c 
libs/liburing/src/register.c -o 
build/temp.linux-x86_64-3.11/libs/liburing/src/register.o -Os -g0 -include 
libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC 
-Ilibs/liburing/src/include 

[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread Antoine Pitrou


Change by Antoine Pitrou :


--
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



[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread miss-islington


miss-islington  added the comment:


New changeset 4449a1694a0fd2c63fcef5eb7d0ad1d7dfbb6077 by Miss Islington (bot) 
in branch '3.10':
bpo-45554: Document multiprocessing.Process.exitcode values (GH-30142)
https://github.com/python/cpython/commit/4449a1694a0fd2c63fcef5eb7d0ad1d7dfbb6077


--

___
Python tracker 

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



[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2022-01-18 Thread Géry

Géry  added the comment:

Thanks for the review Serhiy.

--

___
Python tracker 

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



[issue15500] Python should support exporting thread names to the OS

2022-01-18 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

Two things:

1) I agree this is an extremely valuable addition for any package or 
application that does a non-trivial use of threads in Python.

2) It should at least be exposed as a standalone function in the `threading` 
module, *and* ideally also be called automatically by the 
`Threading._bootstrap` method.

--

___
Python tracker 

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



[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28875
pull_request: https://github.com/python/cpython/pull/30675

___
Python tracker 

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



[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread miss-islington


miss-islington  added the comment:


New changeset 3852269b91fcc8ee668cd876b3669eba6da5b1ac by John Marshall in 
branch 'main':
bpo-45554: Document multiprocessing.Process.exitcode values (GH-30142)
https://github.com/python/cpython/commit/3852269b91fcc8ee668cd876b3669eba6da5b1ac


--

___
Python tracker 

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



[issue15500] Python should support exporting thread names to the OS

2022-01-18 Thread Oleg Iarygin


Oleg Iarygin  added the comment:

@r.david.murray

> It is indeed the compatibility that is the worse issue.  The problem is what
> people have gotten used to and may have coded their applications to 
> expect/deal
> with.  I agree with you that most people would *not* find it surprising to see
> the name reflected in the OS, but I don't think the convenience of that is 
> worth
> introducing a potential backward incompatibility.

For now, Python thread names are always empty (as in many other programs). So 
Python-oriented tools that could expect some other outcome to bother check the 
names are just impossible (there is no alternative semantics they could perform 
in non-empty case).

--
nosy: +arhadthedev

___
Python tracker 

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



[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread Zachary Ware


Change by Zachary Ware :


--
nosy: +davin, pitrou
versions: +Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

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



[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-18 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

> BTW, I'm fine with this being closed, since the functionality I wanted is 
> available and documented.

Great. I was considering closing it as soon as the backports have landed (I had 
to manually fix them bco. make suspicious failures).

--

___
Python tracker 

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



[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread John Marshall


John Marshall  added the comment:

Ping -- This issue has an associated PR that expands the 
multiprocessing.Process.exitcode documentation to cover normal, sys.exit(), and 
exception-raised termination of the child process.

https://github.com/python/cpython/pull/30142

The PR has been available for a month but has not received any review comments.

--

___
Python tracker 

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



[issue46392] MessageIDHeader is too strict for message-id

2022-01-18 Thread R. David Murray


R. David Murray  added the comment:

The general idea is that the string version of the header should contain all of 
the original information, but the parsed elements (the things returned by 
special header attributes) will contain the valid data, if any.  So if the 
string version of the header is being truncated or transformed (other than 
whitespace changes during re-folding), that is a bug.

Your examples involve comment fields, and I'm afraid that my development of the 
parser stopped before I did very much with comments.  Therefore I am not 
surprised that comments are handled incorrectly :( :(  They aren't very common 
in the wild, as far as I was able to tell. which is why they were my last 
priority.

--

___
Python tracker 

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



[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-18 Thread Ned Batchelder


Ned Batchelder  added the comment:

BTW, I'm fine with this being closed, since the functionality I wanted is 
available and documented.

--

___
Python tracker 

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



[issue46427] Correct MSBuild's configuration for _freeze_module.exe

2022-01-18 Thread neonene


Change by neonene :


--
keywords: +patch
pull_requests: +28873
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30673

___
Python tracker 

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



[issue46427] Correct MSBuild's configuration for _freeze_module.exe

2022-01-18 Thread neonene


New submission from neonene :

In pcbuild.proj, "PreferredToolArchitecture" property looks misused, which I 
think is useful giving us two selections of a compiler (32bit or 64bit) for any 
target architecture (Win32/x64/ARM/ARM64).

I think the property can be unused there. This means a partial revert of 
PR28491, whose description I cannot reproduce. This also rolls 
_freeze_module.exe's architecture back to x64 when the target platform is x64 
or ARM64.

--
components: Build
messages: 410891
nosy: neonene
priority: normal
severity: normal
status: open
title: Correct MSBuild's configuration for _freeze_module.exe
type: behavior
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



[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-18 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +28872
pull_request: https://github.com/python/cpython/pull/30672

___
Python tracker 

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



[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2022-01-18 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Thank you for your contribution Géry.

--
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



[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2022-01-18 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset 16bf9bd157c7bf5f9c60414fa8e0fe5047c55a9b by Géry Ogam in branch 
'main':
bpo-44024: Improve the TypeError message in getattr and hasattr (GH-25863)
https://github.com/python/cpython/commit/16bf9bd157c7bf5f9c60414fa8e0fe5047c55a9b


--

___
Python tracker 

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



[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-18 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +28871
pull_request: https://github.com/python/cpython/pull/30671

___
Python tracker 

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



[issue46045] NetBSD: do not use POSIX semaphores

2022-01-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 60ceedbdd5b5fb22803039a59954798d931f659a by Thomas Klausner in 
branch 'main':
bpo-46045: Do not use POSIX semaphores on NetBSD (GH-30047)
https://github.com/python/cpython/commit/60ceedbdd5b5fb22803039a59954798d931f659a


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Nikita, thanks for doing this.

Ethan's suggestion has two advantages. 1. It would fix most backport issues.  
By containing a mix of changes, PR-30666 cannot be backported as is.  
'unittest.main' should always backport unless there is a context conflict.  But 
3.9 does not have os.helper and TESTFN is still in test.support in 3.9 and that 
change cannot backport.  (I did not check 3.10.)

2. It restricts the knowledge needed to review (and be willing to merge).  I 
could and would review and merge a patch with only unittest.main changes, but 
not, without checking the docs to learn about new changes, the mixture you 
posted.

I suggest you write a script to directly run each test.test_xyz file via 
subprocess and report to stdout.  The test for this issue is a clean report.  
If you do so, I will run it on Windows in a fresh build of each of 3.9, 3.10, 
and 3.11.

Note that there are two possible commands: 'python -m test test_xyz' and 
'python -m test.test_xyz'.  They are subtly different.  So I would add an 
option to do it each way.

With current 3.11, test_importlib runs fine on my Windows, with 1436 tests.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev


Nikita Sobolev  added the comment:

Thank you, Ethan. Good idea! Will do from the second PR.
Thanks for merging, Serhiy.

--

___
Python tracker 

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



[issue20823] [doc] Clarify copyreg.pickle() documentation

2022-01-18 Thread miss-islington


miss-islington  added the comment:


New changeset 8527f7a722aee3d9025267cc7ff2eb8afa38d166 by Miss Islington (bot) 
in branch '3.9':
bpo-20823: Clarify copyreg.pickle() documentation (GH-30230)
https://github.com/python/cpython/commit/8527f7a722aee3d9025267cc7ff2eb8afa38d166


--

___
Python tracker 

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



[issue20823] [doc] Clarify copyreg.pickle() documentation

2022-01-18 Thread miss-islington


miss-islington  added the comment:


New changeset 9238a52cbc39c17ca6c7a8cbda32808dd5522a59 by Miss Islington (bot) 
in branch '3.10':
bpo-20823: Clarify copyreg.pickle() documentation (GH-30230)
https://github.com/python/cpython/commit/9238a52cbc39c17ca6c7a8cbda32808dd5522a59


--

___
Python tracker 

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



[issue20823] [doc] Clarify copyreg.pickle() documentation

2022-01-18 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue20823] [doc] Clarify copyreg.pickle() documentation

2022-01-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 65940fa5c12a4b4a0650c7845044ffd63b94e227 by Kumar Aditya in 
branch 'main':
bpo-20823: Clarify copyreg.pickle() documentation (GH-30230)
https://github.com/python/cpython/commit/65940fa5c12a4b4a0650c7845044ffd63b94e227


--

___
Python tracker 

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



[issue20823] [doc] Clarify copyreg.pickle() documentation

2022-01-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28870
pull_request: https://github.com/python/cpython/pull/30670

___
Python tracker 

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



[issue46426] Improve tests for the dir_fd argument

2022-01-18 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +28868
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30668

___
Python tracker 

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



[issue46426] Improve tests for the dir_fd argument

2022-01-18 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

There is a flaw in tests for the dir_fd argument in test_posix. All these tests 
open a current directory as dir_fd, so all paths are relative to the current 
directory. They will pass in case of the following errors:

1. dir_fd, src_dir_fd or dst_dir_fd are completely ignored.
2. The meaning of src_dir_fd and dst_dir_fd is opposite.

The proposed PR rewrites these tests. It is ensure that directory file 
descriptors refer to directories different from the current directory, and that 
src_dir_fd and dst_dir_fd refer to different directories, and that all tested 
filenames are unique, so files cannot be confused with existing diles in 
different directories.

Also add context manager open_dir_fd() in test.support.os_helper. It may be 
helpful in other tests for the dir_fd argument.

--
components: Tests
messages: 410882
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Improve tests for the dir_fd argument
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

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



[issue12067] Doc: remove errors about mixed-type comparisons.

2022-01-18 Thread Humbdrag


Change by Humbdrag :


--
pull_requests: +28867
pull_request: https://github.com/python/cpython/pull/30667

___
Python tracker 

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



[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 1292aa6db5bed889a3c87df443754fcae0177801 by Nikita Sobolev in 
branch 'main':
bpo-46425: Fix direct invocation of multiple test modules (GH-30666)
https://github.com/python/cpython/commit/1292aa6db5bed889a3c87df443754fcae0177801


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Ethan Furman


Ethan Furman  added the comment:

I suggest your grouping of PRs be by error type -- so have batches of "relative 
import" fixes and batches of "TESTFN" fixes, etc.

--
nosy: +ethan.furman

___
Python tracker 

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



[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev


Change by Nikita Sobolev :


--
keywords: +patch
pull_requests: +28866
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30666

___
Python tracker 

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



[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Zachary Ware


Change by Zachary Ware :


--
nosy: +zach.ware

___
Python tracker 

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



[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev


New submission from Nikita Sobolev :

While working on a similar issue for `test_typing.py` 
(https://bugs.python.org/issue46416) I wondered: how many other modules also 
have this problem?

So, after several hours of local testing, I got several problems:
- Lib/test/test_compileall.py
  Uses relative `.` import that cannot be resolved

- Lib/test/test_distutils.py
  Is missing `import unittest` to run `unittest.main()`

- Lib/test/test_dtrace.py
  Calls undefined `test_main()` instead of  `unittest.main()`

- Lib/test/test_tools/test_freeze.py
  Uses relative `.` import that cannot be resolved

- Lib/test/test_zipfile64.py
  Imports undefined `from test.support import TESTFN`

- Lib/unittest/test/test_program.py
  Uses relative `.` import that cannot be resolved

Probably there are other problems, because I haven't checked:
- Windows tests, because I don't have a Win machine
- `test_importlib`, because it has a lot of failure (I don't know how to fix 
them yet)
- Multiple other modules with slow tests
- Modules with doctests which assert full `__qualname__` with module names

To keep PRs reviews sane, I will include changes for several modules and split 
this big task of checking all test modules into several consecutive and rather 
simple pull requests. 

The first one with the problems described above is on its way!

--
components: Tests
messages: 410879
nosy: corona10, sobolevn
priority: normal
severity: normal
status: open
title: Multiple test modules fail to run if invoked directly
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

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



[issue43869] Fix documentation of epoch/time.time

2022-01-18 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.11 -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

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



[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-18 Thread Paulo Henrique Silva


Change by Paulo Henrique Silva :


--
nosy: +phsilva

___
Python tracker 

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



[issue46392] MessageIDHeader is too strict for message-id

2022-01-18 Thread bpoaugust


bpoaugust  added the comment:

I think an id of the form



should be allowed, but it generates

 obs-id-left => local-part => obs-local-part => word *("." word)
word => atom => [CFWS] 1*atext [CFWS]

'' should also be allowed but generates ' (A A)'
and '' gives ' '

--

___
Python tracker 

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



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread milahu


milahu  added the comment:

python-ideas thread
https://mail.python.org/archives/list/python-id...@python.org/thread/V53XGQPIY7ZAISMTQHPHKGWZNSN5EXQG/

--

___
Python tracker 

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



[issue43869] Fix documentation of epoch/time.time

2022-01-18 Thread STINNER Victor


STINNER Victor  added the comment:

I was going to close the change, but I had a last look and... oh... I found 
that the Python test suite checks that the Epoch is 1970-01-01 at 00:00 since 
2008! I wrote GH-30664 to add an explicit test and I updated the doc.

--

___
Python tracker 

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



[issue43869] Fix documentation of epoch/time.time

2022-01-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +28865
pull_request: https://github.com/python/cpython/pull/30664

___
Python tracker 

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



[issue43869] Fix documentation of epoch/time.time

2022-01-18 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset ff7703c4b609a697ada8165fd1c52a73404b6d07 by Miguel Brito in 
branch 'main':
bpo-43869: Improve epoch docs (GH-25777)
https://github.com/python/cpython/commit/ff7703c4b609a697ada8165fd1c52a73404b6d07


--

___
Python tracker 

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



[issue46410] TypeError when parsing regexp with unicode named character sequence escape

2022-01-18 Thread Matthew Barnett


Matthew Barnett  added the comment:

They're not supported in string literals either:

Python 3.10.1 (tags/v3.10.1:2cd268a, Dec  6 2021, 19:10:37) [MSC v.1929 64 bit 
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> "\N{KEYCAP NUMBER SIGN}"
  File "", line 1
"\N{KEYCAP NUMBER SIGN}"
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in 
position 0-21: unknown Unicode character name

--

___
Python tracker 

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



[issue46424] `typing.Annotated` one type argument usage is not covered in tests

2022-01-18 Thread Nikita Sobolev


Change by Nikita Sobolev :


--
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



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

2022-01-18 Thread Steve Dower


Steve Dower  added the comment:

Merged my PR, but I want to leave this open in commit review for now - I'm not 
sure it deals with all the issues here, and probably not everything from the 
Discourse thread linked by Victor (though it might come close).

--
stage: patch review -> commit review

___
Python tracker 

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



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

2022-01-18 Thread Steve Dower


Steve Dower  added the comment:


New changeset 7407fe4c25ba0308d49e3e88e4a107ef32251cdc by Steve Dower in branch 
'main':
bpo-46028: Calculate base_executable by resolving symlinks in a venv (GH-30144)
https://github.com/python/cpython/commit/7407fe4c25ba0308d49e3e88e4a107ef32251cdc


--

___
Python tracker 

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



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread Irit Katriel


Irit Katriel  added the comment:

Ok, I reopened this as an enhancement request for mimetypes to know about the 
'deprecated' types. If you want to push it forward it might be a good idea to 
bring this up on python-ideas as well.

--

___
Python tracker 

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



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread Irit Katriel


Change by Irit Katriel :


--
stage: resolved -> 

___
Python tracker 

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



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread Irit Katriel


Change by Irit Katriel :


--
resolution: duplicate -> 
status: closed -> open
type: behavior -> enhancement

___
Python tracker 

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



[issue46424] `typing.Annotated` one type argument usage is not covered in tests

2022-01-18 Thread Ken Jin


Ken Jin  added the comment:


New changeset 32398294fb3fcf4ee74da54722fd0221c4e6cb74 by Nikita Sobolev in 
branch 'main':
bpo-46424: [typing] cover `Annotation[arg]` invalid usage in tests (GH-30663)
https://github.com/python/cpython/commit/32398294fb3fcf4ee74da54722fd0221c4e6cb74


--

___
Python tracker 

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



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread milahu


milahu  added the comment:

edit:

-  mimetype_of_ext[ext] = mimetype
+  else:
+# add new entry
+mimetype_of_ext[ext] = mimetype

--

___
Python tracker 

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



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread milahu


milahu  added the comment:

this issue is different than Issue32462
because here, both entries are valid

```
cat /etc/mime.types | grep javascript
application/javascriptjs
application/x-javascript  js
```

but the alphabetical ordering of the file
makes the last entry take precedence

python could be smarter at parsing the /etc/mime.types file
in that it could give lower precedence to the deprecated types

pseudocode:

deprecated_mimetypes = set(...) # values from rfc4329
mimetype_of_ext = dict()
# parser loop
for ...
  ext = "..."
  mimetype = "..."
  if ext in mimetype_of_ext:
old_mimetype = mimetype_of_ext[ext]
if old_mimetype in deprecated_mimetypes:
  mimetype_of_ext[ext] = mimetype # replace old with new
  # assume that mimetype is not deprecated
  mimetype_of_ext[ext] = mimetype

--

___
Python tracker 

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



[issue46423] CLI: Addition assignment for tuples

2022-01-18 Thread Mark Dickinson


Mark Dickinson  added the comment:

Thanks for the report. This is a long-standing and known behaviour. It's been 
discussed a good few times before, and (quite apart from potential problems 
with backwards compatibility) no-one has yet come up with convincing 
alternative behaviours.

See 
https://docs.python.org/3/faq/programming.html#why-does-a-tuple-i-item-raise-an-exception-when-the-addition-works

Marking as a duplicate of https://bugs.python.org/issue40911

--
nosy: +mark.dickinson
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Unexpected behaviour for += assignment to list inside tuple

___
Python tracker 

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



[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-18 Thread STINNER Victor


Change by STINNER Victor :


--
title: [subinterpreters] Clear static types in Py_Finalize() -> Clear static 
types in Py_Finalize() for embedded Python

___
Python tracker 

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



[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-18 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Interpreter Core -Subinterpreters

___
Python tracker 

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



[issue46417] [subinterpreters] Clear static types in Py_Finalize()

2022-01-18 Thread STINNER Victor


STINNER Victor  added the comment:

> If we have static types, that means there is a mechanism to share some 
> objects across interpreters.

Sharing objects between interpreters is bad and is causing complex bugs. See a 
recent example of an object traveling from one interpreter to another and then 
causing a random crash on Windows related to the garbage collector:

* https://bugs.python.org/issue46070
* https://github.com/python/cpython/pull/30577#pullrequestreview-852106207


> And if that's the case, why can't small ints (like 
> sys.float_info.n_unnamed_fields) be static & shared as well?

I would prefer to discuss that in other issues like bpo-40255 or bpo-39511, and 
focus this issue on fixing the static types implementation when Python is 
embedded in an application.

--

Hum, this issue is not really related to sub-interpreters. My proposed PR only  
changes Py_Finalize(): the main interpreter.

--

___
Python tracker 

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



[issue40255] Fixing Copy on Writes from reference counting and immortal objects

2022-01-18 Thread STINNER Victor


Change by STINNER Victor :


--
title: Fixing Copy on Writes from reference counting -> Fixing Copy on Writes 
from reference counting and immortal objects

___
Python tracker 

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



[issue43975] Incorrect MIME type returned for .js files Windows 10.

2022-01-18 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> validate mime types loaded from system files. Document that 
system files take precedence.

___
Python tracker 

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



[issue32462] validate mime types loaded from system files. Document that system files take precedence.

2022-01-18 Thread Irit Katriel


Irit Katriel  added the comment:

I've closed Issue43975 as a duplicate of this.

--

___
Python tracker 

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



[issue32462] validate mime types loaded from system files. Document that system files take precedence.

2022-01-18 Thread Irit Katriel


Irit Katriel  added the comment:

I've closed Issue46035 as a duplicate of this.

--
nosy: +iritkatriel

___
Python tracker 

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



  1   2   >