[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



Re: What to write or search on github to get the code for what is written below:

2022-01-18 Thread Avi Gross via Python-list
I do not manage any python lists or have any say in how they run so I have no 
idea why I am being asked by name below, as Dennis pointed out.
So I won't reply on whatever I am being asked, but want to point out that many 
forums may be asked questions and some people on the forum will not respond or 
will not accept a user that bombards with too many questions or requests for 
more detailed answers and especially when not given enough but appropriate 
information.
Not everything in life is free. Python as a free language is but the expertise 
in ways to solve specific problems using Python, let alone EXCEL, that you 
want, often is not.
Simple requests like how to read in data from a format like .CSV or a tab in 
.XLSX files can be easily answered, of course. But correcting what sounds like 
a horrible data storage without a redesign is often not of much interest to 
others.
I think this group has already spent way too much time on whatever this issue 
is and provided lots of useful advice which apparently does not get taken. So 
don't pull me in again. I have moved on.


-Original Message-
From: Dennis Lee Bieber 
To: python-list@python.org
Sent: Tue, Jan 18, 2022 2:44 pm
Subject: Re: What to write or search on github to get the code for what is 
written below:

On Tue, 18 Jan 2022 07:37:07 -0800 (PST), NArshad 
declaimed the following:

>Avi Gross:
>

    Not Avi Gross, but that is partly because you replied to Chris
Angelico, who was replying to my post replying to an earlier one of
yours...

>What does the website "https://mail.python.org/mailman/listinfo/python-list; 
>do? 
>
>Can I use this for the discussions which I require?

    It is most likely the same forum...

    The Python mailing list (which does get spam filtered, unlike the
Usenet newsgroup, so doesn't see as much junk injected via Google) is
gatewayed with Usenet comp.lang.python. comp.lang.python is what Google
gateways for its Python group. Anything posted on the Google Python group
is seen by comp.lang.python, and from there gets seen by the Python mailing
list (and things go the other way also). The only difference is message
management -- email vs news reader vs whatever Google's interface of the
week inflicts, and how much spam comes through. For me, mailing lists take
too much management to set up filters to file mailing list traffic to a
special mail box (and then if I need other filters, to ensure they apply
before or after the mail box filing) whereas a decent news reader
automatically files messages by their group.









    And you really need to find a client that follows (or properly use the
one you have) email/netnews /threading/ and attribution conventions. Avi
Gross's post was on a different path (there was a three-way split from your
earlier post).

    If you are going to be explicitly asking questions of a person, that
post should be a follow-up (reply) to the nearest relevant post made by
that person -- not just tacked onto the end of the posts that came in
during the day with all content removed and ad hoc comments inserted.



-- 
    Wulfraed                Dennis Lee Bieber        AF6VN
    wlfr...@ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/
-- 
https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


[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



Re: Trouble downloading Python

2022-01-18 Thread Dennis Lee Bieber
On Tue, 18 Jan 2022 15:15:43 + (UTC), Renda Saptoe
 declaimed the following:

>Good day,
>I am experiencing issues trying to download Python. I would please need some 
>assistance to help download the progam to my laptop.

Insufficient information (you've given the equivalent of "my arm hurts"
without stating which arm, where it hurts, and the nature of the pain; a
big difference between "it was caught in a door jamb" and "a chainsaw cut
it off").

Where are you downloading from (the URL might be of use), which version
(if there are more than one version at that URL). WHAT OS! For Linux it is
often easiest to just use the distribution package manager to
install/upgrade Python.

What happens when you run the downloaded file? How are you trying to
run Python?

What happens if you open up a command shell and enter just Python (or,
for safety python3, since you shouldn't even be looking at python 2.x but
some Linux distributions still use 2.x for there own uses)

-=-=-=-
Microsoft Windows [Version 10.0.19041.1415]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Wulfraed>python3
Python ActivePython 3.8.2 (ActiveState Software Inc.) based on
 on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

wulfraed@ElusiveUnicorn:~$ python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
-=-=-=-

Python is not a development environment. It is a compiler/interpreter
for files containing Python source code, normally run from a command shell.
Many installations do include a Tkinter-based program called IDLE which can
be run if one really needs an IDE -- though there are many third-party IDEs
for Python which may be better.


-- 
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
-- 
https://mail.python.org/mailman/listinfo/python-list


[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



Re: What to write or search on github to get the code for what is written below:

2022-01-18 Thread Dennis Lee Bieber


o/~ talking to myself in public o/~

On Mon, 17 Jan 2022 15:39:25 -0500, Dennis Lee Bieber
 declaimed the following:


>   In one respect, given the limited functionality stated, one gets the
>impression of a class GROUP assignment, in which the individual functions
>were divvied up to each group member to work, with pretty much no analysis
>of suitable data storage, etc. (You only gave some sort of CONOPS for
>"users" to "reserve" books; no CONOPS for unreserving books, an implication
>that after reserving books the user will go to some desk [in library, in
>store {unlikely if there is a return date for books}, some warehouse] and
>receive a copy of the reserved book -- but no CONOPS for how this deck
>validates that the user has reserved any particular book [no report printed
>by user of reservations made during a session, no search function for desk
>staff, etc.).

I'm in a fey mood today... The OP (and the rest of you reading) will
likely just skip this message... It's a rambling free-association harangue
on a possible RDBM schema -- which makes a few assumptions (described
following) and looks wildly different from the OP's vague data...

Inferred from various posts is that this
*   NOT a library (which may have at most 5 copies of 
popular
books)
*   NOT a book store (which would not have 
check-out/check-in
dates)

The best use case I can see is for something like a high school in
which textbooks are issued to students at the start of the course, and
collected at the end. For a small high school, say 600 students, there
might be 150 taking, say 3rd year Trigonometry, split among 6 session of 25
students each day. This justifies not tracking every copy of a book by full
title, et al.

I'm going to take that as the overall system CONOPS.

Needed data: book title, book author(s), ISBN and/or other call number
(some texts may be old enough to predate ISBN), # copies, # available,
dates for check-out and return, student name. Probably more as I go down...

Schema format notation:

relation(attribute list)
special constraints description

where 
*attribute* is a non-null, unique index, primary key (preferably
autonumber)
_attribute_ is a non-null, duplicates allowed index, foreign key (in
the form relation-attribute)
/attribute/ is an optional/alternate indexed attribute

Publisher(*ID*, name)

Book(*ID*, ISBN, alt-call, title, _Publisher-ID_, copyright-date)
constraint(ISBN not null OR alt-call not null)

Author(*ID*, /last-name/, first-name)
constraint(last-name not null)

Book-Author(*ID*, _Book-ID_, _Author-ID_)
{this links authors to books, and allows for books to have more than
one author}

Copy(*ID*, _Book-ID_, copy-number, status, condition)
constraint(status in "A", "O", "R", status not null, default "A")
constraint(copy-number not null, [Book-ID copy-number] is unique)
{A = available, O = checked out, R = reserved but not yet 
checked
out}
{condition contains notes on known damage, etc. for this copy}

Student(*ID*, /last-name/, first-name)
constraint(last-name not null)
{I expect this to expand with student ID number, home address,
etc.)

CheckOut(*ID*, _Copy-ID_, _Student-ID_, reservation-date, checkout-date,
due-date, active)
constraint([Copy-ID Student-ID] is unique)
constraint(active not null boolean default true)
{can automate cancelling reservations after n-days, and can 
also be
used to produce a list of past-due}
{active is used to allow for history of check outs, set to false
when book is returned (and hence made Available again)

SEVEN relations (aka "tables") in an RDBM. While each book /title/
appears only once, it does take a small record to identify each copy of the
book and track availability of the copy. Reserving a book requires
transaction to select the first copy with status = "A" for that title,
update status to "R", insert a checkout record with the currently selected
student and current date for reservation date. When actually given the
book, a transaction to find the active checkout record for the student, for
that title is done, the checkout and due dates are set, the copy record is
updated for status = "O". When returned, a transaction is done to locate
the checkout record, update active to false, update Copy record to set
status to "A", and optionally update the condition field to indicate
damages inflicted by the student while it was checked out. If a reserve
operation fails (another session snagged the same copy record and updated
it) one just repeats the transaction trying for the next available copy
record -- only if there are no copies with status "A" do you have to abort
and tell the student they can't have the book.

There is 

[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



Re: What to write or search on github to get the code for what is written below:

2022-01-18 Thread Dennis Lee Bieber
On Tue, 18 Jan 2022 07:37:07 -0800 (PST), NArshad 
declaimed the following:

>Avi Gross:
>

Not Avi Gross, but that is partly because you replied to Chris
Angelico, who was replying to my post replying to an earlier one of
yours...

>What does the website "https://mail.python.org/mailman/listinfo/python-list; 
>do? 
>
>Can I use this for the discussions which I require?

It is most likely the same forum...

The Python mailing list (which does get spam filtered, unlike the
Usenet newsgroup, so doesn't see as much junk injected via Google) is
gatewayed with Usenet comp.lang.python. comp.lang.python is what Google
gateways for its Python group. Anything posted on the Google Python group
is seen by comp.lang.python, and from there gets seen by the Python mailing
list (and things go the other way also). The only difference is message
management -- email vs news reader vs whatever Google's interface of the
week inflicts, and how much spam comes through. For me, mailing lists take
too much management to set up filters to file mailing list traffic to a
special mail box (and then if I need other filters, to ensure they apply
before or after the mail box filing) whereas a decent news reader
automatically files messages by their group.









And you really need to find a client that follows (or properly use the
one you have) email/netnews /threading/ and attribution conventions. Avi
Gross's post was on a different path (there was a three-way split from your
earlier post).

If you are going to be explicitly asking questions of a person, that
post should be a follow-up (reply) to the nearest relevant post made by
that person -- not just tacked onto the end of the posts that came in
during the day with all content removed and ad hoc comments inserted.



-- 
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
-- 
https://mail.python.org/mailman/listinfo/python-list


[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



Re: What to write or search on github to get the code for what is written below:

2022-01-18 Thread NArshad
Avi Gross:

What does the website "https://mail.python.org/mailman/listinfo/python-list; 
do? 

Can I use this for the discussions which I require?
-- 
https://mail.python.org/mailman/listinfo/python-list


Trouble downloading Python

2022-01-18 Thread Renda Saptoe via Python-list
Good day,
I am experiencing issues trying to download Python. I would please need some 
assistance to help download the progam to my laptop.

Kind regards
Renda


-- 
https://mail.python.org/mailman/listinfo/python-list


[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



Re: About Python Compressed Archive or Binaries

2022-01-18 Thread Sina Mobasheri
Thanks I really appreciate that, its time consuming task and take lots of hard 
work for sure, I was thinking it's technical issue for python that there isn't 
binary format for it, so I'm happy to hear that we will have that option in the 
future 

From: Python-list  on 
behalf of Christian Heimes 
Sent: Tuesday, January 18, 2022, 18:29
To: python-list@python.org
Subject: Re: About Python Compressed Archive or Binaries

On 17/01/2022 18.49, Kirill Ratkin wrote:
> It would be nice to have just zip file with python interpreter (not
> executable installer), unpack it anywhere, add path  to this 'anywhere'
> to PATH, and use it.
>
> Java/DotNet/Go have this option. But python - not.
>
> And question is - why?

Java is developed by Oracle (revenue 49 billion USD)
.NET is developed by Microsoft (revenue 161 billion USD)
Go is developed by Google (revenue of parent company is 182 billion USD)
Python is developed by a bunch of (mostly unpoaid) volunteers under the
umbrella of the PSF (revenue 3.1 million USD).

Do you see a pattern? :)

A distributable binary format for CPython is high on our list. Brett
Cannon, Nathaniel Smith, and I have been discussion a proposal recently.
I landed a bunch of changes in 3.11-dev that are both useful for binary
distribution and for Web Assembly builds. Because all work is done in
our free time, there is only little progress.

Christian
--
https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


[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



Re: Why There Is No Python Compressed Archive or Binaries ?

2022-01-18 Thread Mats Wichmann
On 1/17/22 23:31, Kirill Ratkin wrote:
> Hi Grant
> 
> Hmmm...  definitly you are right in particular solution.
> 
> But Ok, let me show example.
> 
> 
> I often use Go in parallel with Python and sometimes I switch between
> Windows/Linux also. On both systems I just download Go toolset as
> tarball/zip file and unpack in place where I like.
> 
> The point here is Go toolset officially distributed as tarball/zip for
> all supported operating system. This is not PortableGo or WinGo or some
> anther third party Go distribution. This is one of supported way do get
> Go toolset.
> 
> On Windows I put toolset on separate drive 'D:\Go' and on linux -
> $HOME/.local/go
> 
> And I set up several environment variables (doing 'setx' on Windows and
> edit .profile on linux): GOPATH, GOROOT, GOCACHE, ... and modify my PATH.
> 
> Now I can build any Go project. I don't care about which Go compiler was
> set on OS (Linux or Windows) before. I just unpack tarball/zip in place
> where I have permissions and use it.


The part of this that is Set up Environment Variables and PATH can be
handled by Python's virtualenvs.  You create one starting from a
possibly local Python layout, or from a system one, and the virtualenv
handles all the "fiddling" so while that env is active, just "python"
and "pip" work for that environment.

A nice way to manage this is through a project called pyenv.  There is
now a Windows port of this so it can work there as well (I've never used
it on WIndows, personally).

So while there may not currently be a zip/tar archive you can unpack and
go, I can get started quite easily on a new version.  Let's say I
decidded I needed to test something on Python 3.7 but my main Python is
already 3.10:

pyenv install -l | grep "3\.7"
... list of available versions that contain 3.7

pyenv install 3.7.12   # sets up 3.7.12 in pyenv's local versions tree
pyenv virtualenv 3.7.12 venv-3712  # create virtualenv using 3.7.12 as base
pyenv activate venv-3712

and now I'm running inside a virtualenv using 3.7.12, which I can now
provision for the work I want to do...

-- 
https://mail.python.org/mailman/listinfo/python-list


[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



Re: About Python Compressed Archive or Binaries

2022-01-18 Thread Christian Heimes

On 17/01/2022 18.49, Kirill Ratkin wrote:
It would be nice to have just zip file with python interpreter (not 
executable installer), unpack it anywhere, add path  to this 'anywhere' 
to PATH, and use it.


Java/DotNet/Go have this option. But python - not.

And question is - why?


Java is developed by Oracle (revenue 49 billion USD)
.NET is developed by Microsoft (revenue 161 billion USD)
Go is developed by Google (revenue of parent company is 182 billion USD)
Python is developed by a bunch of (mostly unpoaid) volunteers under the 
umbrella of the PSF (revenue 3.1 million USD).


Do you see a pattern? :)

A distributable binary format for CPython is high on our list. Brett 
Cannon, Nathaniel Smith, and I have been discussion a proposal recently. 
I landed a bunch of changes in 3.11-dev that are both useful for binary 
distribution and for Web Assembly builds. Because all work is done in 
our free time, there is only little progress.


Christian
--
https://mail.python.org/mailman/listinfo/python-list


[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



  1   2   >