[issue46127] Missing HTML span element in exceptions.html

2021-12-18 Thread Vivek Vashist


New submission from Vivek Vashist :

Link:
https://docs.python.org/3/library/exceptions.html#exception-hierarchy

Looking at EncodingWarning under exception-hierarchy is displaying BLACK color 
instead of RED. 

Digging into HTML looks like it is missing the appropriate span class element.

Working:

+-- BytesWarning

Broken:

+-- EncodingWarning

See attached screenshot. 

I"m not too familiar with Sphinx but I'm happy to create a PR for this issue if 
someone could point me in right direction on how to fix this.

--
assignee: docs@python
components: Documentation
files: Screen Shot 2021-12-19 at 5.29.54 pm.png
messages: 408886
nosy: docs@python, vivekvashist
priority: normal
severity: normal
status: open
title: Missing HTML span element in exceptions.html
versions: Python 3.10
Added file: https://bugs.python.org/file50501/Screen Shot 2021-12-19 at 5.29.54 
pm.png

___
Python tracker 

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



[issue33567] Explicitly mention bytes and other buffers in the documentation for float()

2021-12-18 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
nosy: +rhettinger

___
Python tracker 

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



[issue46124] Deprecation warning in zoneinfo module

2021-12-18 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
assignee: jaraco -> p-ganssle

___
Python tracker 

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



[issue46126] Unittest output drives developers to avoid docstrings

2021-12-18 Thread Jason R. Coombs


Change by Jason R. Coombs :


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

___
Python tracker 

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



[issue46126] Unittest output drives developers to avoid docstrings

2021-12-18 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

After some investigation (and tracing calls through a dozen or more layers), I 
found that Python's own regression tests can disable this behavior thus:

```
diff --git a/Lib/test/support/testresult.py b/Lib/test/support/testresult.py
index 2cd1366cd8..328ca8760e 100644
--- a/Lib/test/support/testresult.py
+++ b/Lib/test/support/testresult.py
@@ -145,7 +145,8 @@ def get_test_runner_class(verbosity, buffer=False):
 return functools.partial(unittest.TextTestRunner,
  resultclass=RegressionTestResult,
  buffer=buffer,
- verbosity=verbosity)
+ verbosity=verbosity,
+ descriptions=False,)
 return functools.partial(QuietRegressionTestRunner, buffer=buffer)
 
 def get_test_runner(stream, verbosity, capture_output=False):
```

Combined with the above diff (with a docstring), the output is now as desired:

```
$ ./python.exe -m test -v test_importlib | grep '... ERROR'
test_entry_points_unique_packages 
(test.test_importlib.test_metadata_api.APITests) ... ERROR
test test_importlib failed
```

It seems it would be wise to enable this setting by default, given that without 
it, every test module is forced to replace docstrings with comments.

--

___
Python tracker 

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



[issue46126] Unittest output drives developers to avoid docstrings

2021-12-18 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

It looks like that 'descriptions' attribute is passed through from 
TextTestRunner, which sets it to True by default 
(https://github.com/python/cpython/blob/9b52920173735ac609664c6a3a3021d24a95a092/Lib/unittest/runner.py#L163).
 It seems that behavior isn't controllable through any command-line options or 
environment variables.

--

___
Python tracker 

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



[issue46126] Unittest output drives developers to avoid docstrings

2021-12-18 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

Looks like the code, I believe here's where the reporting happens: 
https://github.com/python/cpython/blob/9b52920173735ac609664c6a3a3021d24a95a092/Lib/unittest/runner.py#L48-L51

I see a "description" property there that may already provide the feature.

--

___
Python tracker 

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



[issue46126] Unittest output drives developers to avoid docstrings

2021-12-18 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

My guess is the tests were run with something like this:

```
./python.exe -E -We -m test -v test_importlib | grep '... ERROR'
Entry points should only be exposed for the first package ... ERROR
test test_importlib failed
```

In that case, the location of the test is replaced with the first line of the 
docstring. If there's no docstring, however, the location of the failure is 
easier to detect:

```
$ ./python.exe -E -We -m test -v test_importlib | grep '... ERROR'
test_entry_points_unique_packages 
(test.test_importlib.test_metadata_api.APITests) ... ERROR
test test_importlib failed
```

--

___
Python tracker 

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



[issue45609] Specialize STORE_SUBSCR

2021-12-18 Thread Dennis Sweeney


Change by Dennis Sweeney :


--
pull_requests: +28414
pull_request: https://github.com/python/cpython/pull/30193

___
Python tracker 

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



[issue46126] Unittest output drives developers to avoid docstrings

2021-12-18 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

I created this diff:

```diff
diff --git a/Lib/test/test_importlib/test_metadata_api.py 
b/Lib/test/test_importlib/test_metadata_api.py
index e16773a7e8..92aacd5ad5 100644
--- a/Lib/test/test_importlib/test_metadata_api.py
+++ b/Lib/test/test_importlib/test_metadata_api.py
@@ -90,8 +90,11 @@ def test_entry_points_distribution(self):
 self.assertEqual(ep.dist.version, "1.0.0")
 
 def test_entry_points_unique_packages(self):
-# Entry points should only be exposed for the first package
-# on sys.path with a given name.
+"""
+Entry points should only be exposed for the first package
+on sys.path with a given name.
+"""
+raise ValueError("Failing on purpose")
 alt_site_dir = self.fixtures.enter_context(fixtures.tempdir())
 self.fixtures.enter_context(self.add_sys_path(alt_site_dir))
 alt_pkg = {
```

And then ran the tests, but the output is easy to totally scrutable:

```
cpython bpo-46126/bad-error-message $ ./python.exe -m test.test_importlib
sE.x..
 
sTrying
 20 threads ... 44.7 ms OK.
Trying 50 threads ... 36.8 ms OK.
Trying 20 threads ... 27.7 ms OK.
Trying 50 threads ... 28.0 ms OK.
Trying 20 threads ... 27.9 ms OK.
Trying 50 threads ... 31.1 ms OK.
.Trying 20 threads ... 7.1 ms OK.
Trying 50 threads ... 7.6 ms OK.
Trying 20 threads ... 3.2 ms OK.
Trying 50 threads ... 8.5 ms OK.
Trying 20 threads ... 3.4 ms OK.
Trying 50 threads ... 8.7 ms OK.
.Trying 20 threads ... 40.3 ms OK.
Trying 50 threads ... 8.7 ms OK.
Trying 20 threads ... 3.5 ms OK.
Trying 50 threads ... 6.5 ms OK.
Trying 20 threads ... 3.2 ms OK.
Trying 50 threads ... 6.5 ms OK.
..ssss...
==
ERROR: test_entry_points_unique_packages 
(test.test_importlib.test_metadata_api.APITests)
Entry points should only be exposed for the first package
--
Traceback (most recent call last):
  File 
"/Users/jaraco/code/public/cpython/Lib/test/test_importlib/test_metadata_api.py",
 line 97, in test_entry_points_unique_packages
raise ValueError("Failing on purpose")
^^
ValueError: Failing on purpose

--
Ran 1426 tests in 2.377s

FAILED (errors=1, skipped=6, expected failures=1)
```

So there must be some other test invocation that doesn't provide the clarity of 
which test is failing.

--

___
Python tracker 

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



[issue46126] Unittest output drives developers to avoid docstrings

2021-12-18 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

Absolutely. I was thinking to do just that.

--

___
Python tracker 

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



[issue46125] Test the preferred API instead of relying on legacy for coverage

2021-12-18 Thread Jason R. Coombs


Jason R. Coombs  added the comment:


New changeset 9b52920173735ac609664c6a3a3021d24a95a092 by Jason R. Coombs in 
branch 'main':
bpo-46125: Refactor tests to test traversable API directly. Includes changes 
from importlib_resources 5.4.0. (GH-30189)
https://github.com/python/cpython/commit/9b52920173735ac609664c6a3a3021d24a95a092


--

___
Python tracker 

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



[issue46126] Unittest output drives developers to avoid docstrings

2021-12-18 Thread Ethan Furman


Ethan Furman  added the comment:

Could you give a couple examples for those of us not familiar with the problem?

--
nosy: +ethan.furman

___
Python tracker 

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



[issue33449] Documentation for email.charset confusing about the location of constants

2021-12-18 Thread Alex Waygood


Change by Alex Waygood :


--
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, 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



[issue33567] Explicitly mention bytes and other buffers in the documentation for float()

2021-12-18 Thread Alex Waygood


Change by Alex Waygood :


--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
stage:  -> needs patch
type:  -> enhancement
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



[issue31914] Document Pool.(star)map return type

2021-12-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28413
pull_request: https://github.com/python/cpython/pull/30192

___
Python tracker 

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



[issue31914] Document Pool.(star)map return type

2021-12-18 Thread miss-islington


Change by miss-islington :


--
keywords: +patch, patch
nosy: +miss-islington, miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +28411, 28412
stage: backport needed -> patch review
pull_request: https://github.com/python/cpython/pull/30191

___
Python tracker 

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



[issue31914] Document Pool.(star)map return type

2021-12-18 Thread miss-islington


Change by miss-islington :


--
keywords: +patch
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +28411
stage: backport needed -> patch review
pull_request: https://github.com/python/cpython/pull/30191

___
Python tracker 

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



[issue31914] Document Pool.(star)map return type

2021-12-18 Thread Alex Waygood


Alex Waygood  added the comment:

PR 30191 and PR 30192 are backports

--

___
Python tracker 

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



[issue46124] Deprecation warning in zoneinfo module

2021-12-18 Thread Jason R. Coombs


Change by Jason R. Coombs :


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

___
Python tracker 

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



[issue46125] Test the preferred API instead of relying on legacy for coverage

2021-12-18 Thread Jason R. Coombs


Change by Jason R. Coombs :


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

___
Python tracker 

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



[issue46126] Unittest output drives developers to avoid docstrings

2021-12-18 Thread Jason R. Coombs


New submission from Jason R. Coombs :

In https://github.com/python/importlib_metadata/issues/302, I learned that the 
way unittest reports failures in tests is incentivizing the replacement of 
docstrings with comments in order not to make resolution of the relevant 
failing test more difficult to locate.

I presume I don't need to explain why docstrings are nice and preferable over 
comments.

Better would be for unittest to provide an option to ignore the docstrings or 
to emit the test path regardless of whether a docstring was present and to 
employ that option in CPython, allowing for docstrings in tests.

--
components: Tests
messages: 408876
nosy: jaraco
priority: normal
severity: normal
status: open
title: Unittest output drives developers to avoid docstrings
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



[issue46094] Missing unit test on unittest.TestResult to check for required arguments

2021-12-18 Thread dhruv


dhruv  added the comment:

"Required" meaning that we cannot remove them from the constructor signature 
even though they aren't used within it. Hope that clears it up!

--

___
Python tracker 

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



[issue45978] deepfreeze opaquely fails on Windows when building from Visual Studio

2021-12-18 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

This was fixed by https://github.com/python/cpython/pull/30143

--
resolution:  -> fixed
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



[issue46124] Deprecation warning in zoneinfo module

2021-12-18 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

I filed issue46125 to track that issue separately.

--

___
Python tracker 

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



[issue46125] Test the preferred API instead of relying on legacy for coverage

2021-12-18 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
assignee:  -> jaraco

___
Python tracker 

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



[issue46125] Test the preferred API instead of relying on legacy for coverage

2021-12-18 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
components: +Library (Lib)
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



[issue46125] Test the preferred API instead of relying on legacy for coverage

2021-12-18 Thread Jason R. Coombs


New submission from Jason R. Coombs :

importlib_resources 5.4 did some refactoring to ensure that the preferred 
traversable API was tested 
(https://github.com/python/importlib_resources/pull/239). Let's incorporate 
those changes for importlib.resources.

--
messages: 408872
nosy: jaraco
priority: normal
severity: normal
status: open
title: Test the preferred API instead of relying on legacy for coverage

___
Python tracker 

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



[issue46124] Deprecation warning in zoneinfo module

2021-12-18 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

I just confirmed, and `normalize_path` has been moved to the _legacy module for 
importlib_resources, so I'd expect that change to land in CPython soon too.

--

___
Python tracker 

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



[issue46124] Deprecation warning in zoneinfo module

2021-12-18 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
assignee:  -> jaraco

___
Python tracker 

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



[issue46124] Deprecation warning in zoneinfo module

2021-12-18 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

I would hope that normalize_path would not be needed. It might be for drop-in 
compatibility. If it's needed for zoneinfo, I'd like to consider why and what 
implications that has for the deprecation of the legacy API.

--

___
Python tracker 

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



[issue46119] Update bundled pip to 21.3.1 and setuptools to 59.7.0

2021-12-18 Thread Éric Araujo

Change by Éric Araujo :


--
components: +Library (Lib) -Distutils
nosy: +ncoghlan, pradyunsg -eric.araujo
type:  -> enhancement

___
Python tracker 

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



[issue45321] Module xml.parsers.expat.errors misses error code constants of libexpat >=2.0

2021-12-18 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
nosy: +python-dev
nosy_count: 2.0 -> 3.0
pull_requests: +28408
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30188

___
Python tracker 

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



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

2021-12-18 Thread miss-islington


miss-islington  added the comment:


New changeset fe68486197cb26a69ecce9353271d91adf885cb5 by Matthias Bussonnier 
in branch 'main':
bpo-46044: Fix doc typo introduced in GH-30043 (GH-30171)
https://github.com/python/cpython/commit/fe68486197cb26a69ecce9353271d91adf885cb5


--

___
Python tracker 

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



[issue46122] Update/fix types.UnionType to types.Union in Built-in Types documentation

2021-12-18 Thread Vivek Vashist


Change by Vivek Vashist :


--
resolution:  -> not a bug
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



[issue46122] Update/fix types.UnionType to types.Union in Built-in Types documentation

2021-12-18 Thread Vivek Vashist


Vivek Vashist  added the comment:

Thanks Ken. 

You are right I'm using 3.10.0b4. I just tested it on 3.10.0 and it works fine.

>>> import types
>>> isinstance(int | str, types.UnionType)
True

--
status: pending -> open

___
Python tracker 

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



[issue37295] Possible optimizations for math.comb()

2021-12-18 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

For the small cases (say n < 50), we can get faster code by using a small (3Kb) 
table of factorial logarithms:

   double lf[50] = [log2(factorial(n)) for n in range(50)];

Then comb() and perm() function can be computed quickly and in constant time 
using the C99 math functions:

   result = PyLong_FromDouble(round(exp2(lf[n] - (lf[r] + lf[n-r];

--

___
Python tracker 

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



[issue37295] Possible optimizations for math.comb()

2021-12-18 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
Removed message: https://bugs.python.org/msg408865

___
Python tracker 

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



[issue26577] inspect.getclosurevars returns incorrect variable when using class member with the same name as other variable

2021-12-18 Thread Ryan Fox


Ryan Fox  added the comment:

If you change the class member 'x' to a different name like 'y', then cv
doesn't include 'x', but does include an unbound 'y'.

In both cases, the function isn't referring to a global variable, just the
class member of that name. Besides the function itself, no other globals
are included in cv.globals.

On Sat, Dec 18, 2021 at 10:34 AM hongweipeng  wrote:

>
> hongweipeng  added the comment:
>
> Why is expected that 'x' would not exist in cv.globals? I think it works
> normally, you can see `x` in `func.__globals__`.
>
> --
> nosy: +hongweipeng
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue37295] Possible optimizations for math.comb()

2021-12-18 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

For the small cases (say n < 50), we can get faster code by using a small (3Kb) 
table of factorial logarithms:

   double lf[50] = [log2(factorial(n)) for n in range(50)];

Then comb() and perm() can be computed quickly and in constant time using the 
C99 math functions:

   result = PyLong_FromDouble(round(exp2(lf[n] - (lf[r] + lf[n-r];

--

___
Python tracker 

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



[issue34643] How to build Release Version of Python in Windows?

2021-12-18 Thread Alex Waygood


Alex Waygood  added the comment:

Given that there has been no activity on this issue for over three years, I am 
closing this as "rejected".

--
nosy: +AlexWaygood
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



[issue46068] Change use of warnings.warn to logging.warning in a few places

2021-12-18 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

https://discuss.python.org/t/logging-warning-vs-warnings-warn/12625/2

--

___
Python tracker 

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



[issue31914] Document Pool.(star)map return type

2021-12-18 Thread Alex Waygood


Alex Waygood  added the comment:

This appears to have been fixed in PR 26560 in the main branch, but it might be 
nice to backport it to 3.10 and 3.9

--
nosy: +AlexWaygood, mdk
stage:  -> backport needed
type: enhancement -> behavior
versions: +Python 3.10, Python 3.9 -Python 3.6

___
Python tracker 

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



[issue46106] OpenSSL 1.1.1m is now available

2021-12-18 Thread Ned Deily

Ned Deily  added the comment:

>From the release notes, there didn’t seem to be anything super critical. I 
>wasn’t contemplating any special releases: just update for the next scheduled 
>releases.

--

___
Python tracker 

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



[issue917120] imaplib: incorrect quoting in commands

2021-12-18 Thread Charalampos Tsimpouris


Charalampos Tsimpouris  added the comment:

As far as I can see I have the same problem from a different perspective. 
Selecting folders that include a space result in broken use of API, as server 
responds with "folder is not dound" (which is valid as part of the folder name 
is never sent). To circumvent the problem I suggest using a patched version of 
_command, where if name is "select" or "examine", check if arg startswith ", 
and if not wrap it - locally this seems to fix my problem. A different approach 
would be to force user use _quote function when needed (also fixes my problem 
locally).

--
nosy: +xtsimpouris

___
Python tracker 

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



[issue46099] Solaris: Fix pthread_getcpuclockid test

2021-12-18 Thread Alex Waygood


Change by Alex Waygood :


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

___
Python tracker 

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



[issue15443] datetime module has no support for nanoseconds

2021-12-18 Thread Gareth Rees


Gareth Rees  added the comment:

I also have a use case that would benefit from nanosecond resolution in 
Python's datetime objects, that is, representing and querying the results of 
clock_gettime() in a program trace.

On modern Linuxes with a vDSO, clock_gettime() does not require a system call 
and completes within a few nanoseconds. So Python's datetime objects do not 
have sufficient resolution to distinguish between adjacent calls to 
clock_gettime().

This means that, like Mark Dickinson above, I have to choose between using 
datetime for queries (which would be convenient) and accepting that nearby 
events in the trace may be indistinguishable, or implementing my own 
datetime-like data structure.

--
nosy: +g...@garethrees.org

___
Python tracker 

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



[issue46099] Solaris: Fix pthread_getcpuclockid test

2021-12-18 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset a328ad7f9a9b6cd624da5efcc76daf88e0d22312 by Miss Islington (bot) 
in branch '3.9':
bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140) (#30184)
https://github.com/python/cpython/commit/a328ad7f9a9b6cd624da5efcc76daf88e0d22312


--

___
Python tracker 

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



[issue39320] Handle unpacking of */** arguments and rvalues in the compiler

2021-12-18 Thread Bar Harel


Bar Harel  added the comment:

Does this count as a regression or as an unintended bugfix for evaluation order?

https://stackoverflow.com/a/70404659/1658617

--
nosy: +bar.harel

___
Python tracker 

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



[issue26577] inspect.getclosurevars returns incorrect variable when using class member with the same name as other variable

2021-12-18 Thread hongweipeng


hongweipeng  added the comment:

Why is expected that 'x' would not exist in cv.globals? I think it works 
normally, you can see `x` in `func.__globals__`.

--
nosy: +hongweipeng

___
Python tracker 

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



[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-12-18 Thread Alex Waygood


Change by Alex Waygood :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +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



[issue40280] Consider supporting emscripten/webassembly as a build target

2021-12-18 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset 0339434835aa74dc78a38ae12ea7d2973c144eb1 by Christian Heimes in 
branch 'main':
bpo-40280: Add Tools/wasm with helpers for cross building (GH-29984)
https://github.com/python/cpython/commit/0339434835aa74dc78a38ae12ea7d2973c144eb1


--

___
Python tracker 

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



[issue46113] Typos and minor fixes in built in types documentation

2021-12-18 Thread Ken Jin


Change by Ken Jin :


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



[issue46113] Typos and minor fixes in built in types documentation

2021-12-18 Thread Ken Jin


Ken Jin  added the comment:


New changeset 0da17eb06943a66fcd826ff591d47c22c2c0595a by Miss Islington (bot) 
in branch '3.9':
bpo-46113: Minor fixes in stdtypes documentation (GH-30167) (GH-30187)
https://github.com/python/cpython/commit/0da17eb06943a66fcd826ff591d47c22c2c0595a


--

___
Python tracker 

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



[issue37578] Change Glob: Allow Recursion for Hidden Files

2021-12-18 Thread miss-islington


miss-islington  added the comment:


New changeset ae36cd1e792db9d6db4c6847ec2a7d50a71f2b68 by andrei kulakov in 
branch 'main':
bpo-37578: glob.glob -- added include_hidden parameter (GH-30153)
https://github.com/python/cpython/commit/ae36cd1e792db9d6db4c6847ec2a7d50a71f2b68


--
nosy: +miss-islington

___
Python tracker 

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



[issue46113] Typos and minor fixes in built in types documentation

2021-12-18 Thread Ken Jin


Ken Jin  added the comment:


New changeset bb286d45afa6740384bab97d0da68fe571efb6ec by Miss Islington (bot) 
in branch '3.10':
bpo-46113: Minor fixes in stdtypes documentation (GH-30167) (GH-30186)
https://github.com/python/cpython/commit/bb286d45afa6740384bab97d0da68fe571efb6ec


--

___
Python tracker 

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



[issue46118] Migrate importlib.resources into a package

2021-12-18 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue46124] Deprecation warning in zoneinfo module

2021-12-18 Thread Karthikeyan Singaravelan


New submission from Karthikeyan Singaravelan :

zoneinfo module currently emits deprecation warnings due to API changes in 
importlib.resources

./python -Wonce -m test test_zoneinfo
0:00:00 load avg: 0.73 Run tests sequentially
0:00:00 load avg: 0.73 [1/1] test_zoneinfo
/home/karthikeyan/stuff/python/cpython/Lib/zoneinfo/_tzpath.py:121: 
DeprecationWarning: open_text is deprecated. Use files() instead. Refer to 
https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy
 for migration advice.
  with resources.open_text("tzdata", "zones") as f:
/home/karthikeyan/stuff/python/cpython/Lib/zoneinfo/_common.py:12: 
DeprecationWarning: open_binary is deprecated. Use files() instead. Refer to 
https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy
 for migration advice.
  return importlib.resources.open_binary(package_name, resource_name)
/home/karthikeyan/stuff/python/cpython/Lib/zoneinfo/_tzpath.py:121: 
DeprecationWarning: open_text is deprecated. Use files() instead. Refer to 
https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy
 for migration advice.
  with resources.open_text("tzdata", "zones") as f:
/home/karthikeyan/stuff/python/cpython/Lib/zoneinfo/_common.py:12: 
DeprecationWarning: open_binary is deprecated. Use files() instead. Refer to 
https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy
 for migration advice.
  return importlib.resources.open_binary(package_name, resource_name)

== Tests result: SUCCESS ==

1 test OK.

Total duration: 376 ms
Tests result: SUCCESS

A fix would be to adapt the _legacy module changes inline like below patch 
though normalize_path is not public API and need to be inlined too.

diff --git a/Lib/zoneinfo/_common.py b/Lib/zoneinfo/_common.py
index 4c24f01bd7..bfe3fe4c3c 100644
--- a/Lib/zoneinfo/_common.py
+++ b/Lib/zoneinfo/_common.py
@@ -2,14 +2,15 @@
 
 
 def load_tzdata(key):
-import importlib.resources
+from importlib.resources import files
+from importlib._common import normalize_path
 
 components = key.split("/")
 package_name = ".".join(["tzdata.zoneinfo"] + components[:-1])
 resource_name = components[-1]
 
 try:
-return importlib.resources.open_binary(package_name, resource_name)
+return (files(package_name) / normalize_path(resource_name)).open('rb')
 except (ImportError, FileNotFoundError, UnicodeEncodeError):
 # There are three types of exception that can be raised that all amount
 # to "we cannot find this key":
diff --git a/Lib/zoneinfo/_tzpath.py b/Lib/zoneinfo/_tzpath.py
index 672560b951..b1efe5d99e 100644
--- a/Lib/zoneinfo/_tzpath.py
+++ b/Lib/zoneinfo/_tzpath.py
@@ -111,14 +111,15 @@ def available_timezones():
 determine if a given file on the time zone search path is to open it
 and check for the "magic string" at the beginning.
 """
-from importlib import resources
+from importlib.resources import files
+from importlib._common import normalize_path
 
 valid_zones = set()
 
 # Start with loading from the tzdata package if it exists: this has a
 # pre-assembled list of zones that only requires opening one file.
 try:
-with resources.open_text("tzdata", "zones") as f:
+with (files("tzdata") / normalize_path("zones")).open('r') as f:
 for zone in f:
 zone = zone.strip()
 if zone:

--
components: Library (Lib)
messages: 408851
nosy: jaraco, p-ganssle, xtreak
priority: normal
severity: normal
status: open
title: Deprecation warning in zoneinfo module
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



[issue46122] Update/fix types.UnionType to types.Union in Built-in Types documentation

2021-12-18 Thread Ken Jin


Ken Jin  added the comment:

Thanks for the PR Vivek. Can you please tell me the exact 3.10 version you're 
running? In earlier 3.10 versions (alpha, beta etc.) types.Union existed, but 
somewhere later (rc1,rc2) it became types.UnionType.

The final 3.10.0 release has types.UnionType, not types.Union. I suspect you 
might be running an earlier iteration of 3.10.

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

___
Python tracker 

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



[issue46113] Typos and minor fixes in built in types documentation

2021-12-18 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue46113] Typos and minor fixes in built in types documentation

2021-12-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28407
pull_request: https://github.com/python/cpython/pull/30187

___
Python tracker 

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



[issue46113] Typos and minor fixes in built in types documentation

2021-12-18 Thread Ken Jin


Ken Jin  added the comment:


New changeset 6f2df4295123f8b961d49474b7668f7564a534a4 by Vivek Vashist in 
branch 'main':
bpo-46113: Minor fixes in stdtypes documentation (GH-30167)
https://github.com/python/cpython/commit/6f2df4295123f8b961d49474b7668f7564a534a4


--
nosy: +kj

___
Python tracker 

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



[issue46099] Solaris: Fix pthread_getcpuclockid test

2021-12-18 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 4f945ad7a510ad6dde13353784e45239edcdc14e by Miss Islington (bot) 
in branch '3.10':
bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140) (GH-30183)
https://github.com/python/cpython/commit/4f945ad7a510ad6dde13353784e45239edcdc14e


--

___
Python tracker 

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



[issue45496] Tkinter: test_winfo_rgb failure

2021-12-18 Thread E. Paine


Change by E. Paine :


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

___
Python tracker 

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



[issue46099] Solaris: Fix pthread_getcpuclockid test

2021-12-18 Thread Andrew Svetlov

Andrew Svetlov  added the comment:


New changeset 427a490c495cde8a152e938c6f02be65620e3e59 by Jakub Kulík in branch 
'main':
bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140)
https://github.com/python/cpython/commit/427a490c495cde8a152e938c6f02be65620e3e59


--
nosy: +asvetlov

___
Python tracker 

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



[issue46099] Solaris: Fix pthread_getcpuclockid test

2021-12-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28404
pull_request: https://github.com/python/cpython/pull/30184

___
Python tracker 

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



[issue46099] Solaris: Fix pthread_getcpuclockid test

2021-12-18 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 1.0 -> 2.0
pull_requests: +28403
pull_request: https://github.com/python/cpython/pull/30183

___
Python tracker 

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



[issue46106] OpenSSL 1.1.1m is now available

2021-12-18 Thread Steve Dower


Steve Dower  added the comment:

Are we going to have to rush security releases for this one? Or can it 
wait (for me) until Monday?

--

___
Python tracker 

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



[issue46088] Build hangs under Visual Studio in deepfreeze stage

2021-12-18 Thread Steve Dower


Change by Steve Dower :


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

___
Python tracker 

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



[issue46088] Build hangs under Visual Studio in deepfreeze stage

2021-12-18 Thread Steve Dower


Steve Dower  added the comment:


New changeset 6fc91daf730c60b08b4b32cdce28ff26505a0622 by Steve Dower in branch 
'main':
bpo-46088: Automatically detect or install bootstrap Python runtime when 
building from Visual Studio (GH-30143)
https://github.com/python/cpython/commit/6fc91daf730c60b08b4b32cdce28ff26505a0622


--

___
Python tracker 

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



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

2021-12-18 Thread Steve Dower


Steve Dower  added the comment:


New changeset 6214caafbe66e34e84c1809abf0b7aab6791956b by neonene in branch 
'main':
bpo-40915: Avoid compiler warnings by fixing mmapmodule conversion from 
LARGE_INTEGER to Py_ssize_t (GH-30175)
https://github.com/python/cpython/commit/6214caafbe66e34e84c1809abf0b7aab6791956b


--

___
Python tracker 

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



[issue46122] Update/fix types.UnionType to types.Union in Built-in Types documentation

2021-12-18 Thread Vivek Vashist


Change by Vivek Vashist :


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

___
Python tracker 

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



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

2021-12-18 Thread Alex Waygood


Change by Alex Waygood :


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



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

2021-12-18 Thread miss-islington


miss-islington  added the comment:


New changeset a66be9185c6e0299293a06e21a6f599dfe6c3f60 by Miss Islington (bot) 
in branch '3.10':
[3.10] bpo-46104: Reduce use of pre-PEP 526 syntax in typing docs (GH-30148) 
(GH-30179)
https://github.com/python/cpython/commit/a66be9185c6e0299293a06e21a6f599dfe6c3f60


--

___
Python tracker 

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



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

2021-12-18 Thread miss-islington


miss-islington  added the comment:


New changeset 43cb8f483b9f815abf9801e05ec70ae55ca3c5a5 by Miss Islington (bot) 
in branch '3.9':
[3.9] bpo-46104: Reduce use of pre-PEP 526 syntax in typing docs (GH-30148) 
(GH-30180)
https://github.com/python/cpython/commit/43cb8f483b9f815abf9801e05ec70ae55ca3c5a5


--

___
Python tracker 

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



[issue46123] _freeze_module on Windows can be built faster with no optimization

2021-12-18 Thread neonene


Change by neonene :


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

___
Python tracker 

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



[issue46123] _freeze_module on Windows can be built faster with no optimization

2021-12-18 Thread neonene


New submission from neonene :

In Makefile.pre.in, LTO is disabled when building _freeze_module. MSVC can also 
cut the build time of _freeze_module.exe in half without the optimization.

--
components: Build, Windows
messages: 408841
nosy: neonene, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: _freeze_module on Windows can be built faster with no optimization
type: performance
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



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

2021-12-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28399
pull_request: https://github.com/python/cpython/pull/30180

___
Python tracker 

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



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

2021-12-18 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



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

2021-12-18 Thread Ken Jin


Ken Jin  added the comment:


New changeset 6ada013df170b0afb6b61a0d942388c6fd81cbc9 by Alex Waygood in 
branch 'main':
bpo-46104: Reduce use of pre-PEP 526 syntax in typing docs (GH-30148)
https://github.com/python/cpython/commit/6ada013df170b0afb6b61a0d942388c6fd81cbc9


--

___
Python tracker 

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



[issue46122] Update/fix types.UnionType to types.Union in Built-in Types documentation

2021-12-18 Thread Vivek Vashist


New submission from Vivek Vashist :

There is an error in 
https://docs.python.org/3/library/stdtypes.html#types-union example.

Looks like there is no types.UnionType

BROKEN:

>>> import types
>>> isinstance(int | str, types.UnionType)
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: module 'types' has no attribute 'UnionType'. Did you mean: 
'FunctionType'?
>>> [att for att in dir(types) if 'Union' in att]
['Union']
>>>

WORKING:

>>> import types
>>>
>>> isinstance(int | str, types.Union)
True
>>>

I'll raise a PR shortly.

--
assignee: docs@python
components: Documentation
messages: 408839
nosy: docs@python, vivekvashist
priority: normal
severity: normal
status: open
title: Update/fix types.UnionType to types.Union in Built-in Types documentation
versions: Python 3.10

___
Python tracker 

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



[issue46106] OpenSSL 1.1.1m is now available

2021-12-18 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

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



[issue46121] Add a note to QueueListener documentation saying that SimpleQueue instances can't be used in multiprocessing scenarios

2021-12-18 Thread dmitry-bychkov


New submission from dmitry-bychkov :

Currently, documentation for QueueListener 
(https://docs.python.org/3/library/logging.handlers.html#queuelistener) says:
"""
supports receiving logging messages from a queue, such as those implemented in 
the queue or multiprocessing modules.
"""

While also saying that we can use queue.SimpleQueue as an underlying queue:

"""
The queue is not required to have the task tracking API, which means that you 
can use queue.SimpleQueue instances for queue.
"""

I think it should also say that neither queue.SimpleQueue nor 
multiprocessing.SimpleQueue instances will work if your intended use of 
QueueListener is to receive logging messages from processes spawned by 
multiprocessing module. One should use multiprocessing.Queue instance.

usage of queue.SimpleQueue will result in pickle exception.
multiprocessing.SimpleQueue lacks the API QueueListener expects from queue.

English is not my first language so I'll step aside from PR's in documentation 
:)

--
assignee: docs@python
components: Documentation
messages: 408838
nosy: docs@python, iamdbychkov
priority: normal
severity: normal
status: open
title: Add a note to QueueListener documentation saying that SimpleQueue 
instances can't be used in multiprocessing scenarios
type: enhancement
versions: Python 3.10, Python 3.11

___
Python tracker 

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



[issue28206] signal.Signals not documented

2021-12-18 Thread Hinrich Mahler


Hinrich Mahler  added the comment:

I think this can be closed now.

--

___
Python tracker 

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



[issue46120] Add note to `typing.Union` that it is recommended to use `|` instead

2021-12-18 Thread Nikita Sobolev


Change by Nikita Sobolev :


--
nosy: +asvetlov, kj

___
Python tracker 

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



[issue46120] Add note to `typing.Union` that it is recommended to use `|` instead

2021-12-18 Thread Nikita Sobolev


New submission from Nikita Sobolev :

As discussed in 
https://mail.python.org/archives/list/typing-...@python.org/thread/TW5M6XDN7DO346RXMADKBAAGNSZPC4ZQ/

> we could probably stick a huge notice in the typing.Union docs saying `|` is 
> preferred for readability in most cases, and not deprecate it for now.

I will send a PR to `Union` and `Optional` docs with this note today.

--
assignee: docs@python
components: Documentation
messages: 408836
nosy: docs@python, sobolevn
priority: normal
severity: normal
status: open
title: Add note to `typing.Union` that it is recommended to use `|` instead
type: behavior
versions: Python 3.10, Python 3.11

___
Python tracker 

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