[issue30963] xxlimited.c XxoObject_Check should be XxoObject_CheckExact

2020-12-31 Thread hai shi


hai shi  added the comment:

>The Check code is now commented out, and the issue of type checking is 
>mentioned in PEP 630.

Got it, thanks for your supplement :)

--

___
Python tracker 

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



[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-31 Thread Dong-hee Na


Change by Dong-hee Na :


--
type: crash -> behavior

___
Python tracker 

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



[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-31 Thread Dong-hee Na


Dong-hee Na  added the comment:

This is a regression bug that should be fixed.

--

___
Python tracker 

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



[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-31 Thread Dong-hee Na


Dong-hee Na  added the comment:

This

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



[issue42752] multiprocessing Queue leaks a file descriptor associated with the pipe writer (#33081 still a problem)

2020-12-31 Thread mattip


mattip  added the comment:

Just to be clear, here is the code from the test (how do you format a code 
block here?) that demonstrates the writer is not closed when nothing is put 
into the queue

```
$ python3
Python 3.8.6 | packaged by conda-forge | (default, Oct  7 2020, 19:08:05) 
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing
>>> q = multiprocessing.Queue()
>>> q.close()
>>> q.join_thread()
>>> q._reader.closed
True
>>> q._writer.closed
False
>>> 

```
And the changed behaviour to close the writer if the queue is used

```
>>> q = multiprocessing.Queue()
>>> q.put(1)
>>> q.get()
1
>>> q.close()
>>> q.join_thread()
>>> q._reader.closed
True
>>> q._writer.closed
True

```

--
nosy: +mattip

___
Python tracker 

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



[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-31 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +vstinner

___
Python tracker 

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



[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-31 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



[issue42801] Exception catching function crashes on recursive list

2020-12-31 Thread Steven D'Aprano


New submission from Steven D'Aprano :

This function crashes on the following recursive list:


def length(x):
try:
return sum(length(i) for i in x)
except Exception:
return 1


a = [[1, 2, 3], [4, 5, 6]]
a.append(a)
length(a)


Crashes:


Fatal Python error: _Py_CheckRecursiveCall: Cannot recover from stack overflow.
Python runtime state: initialized

Current thread 0x7eff18d77740 (most recent call first):
  File "", line 3 in length
  File "", line 3 in 
  File "", line 3 in length
  File "", line 3 in 
  ...
Aborted (core dumped)




For brevity I've cut some of the output. There are about fifty pairs of "line 3 
in length"/line 3 in " lines, all identical.

--
components: Interpreter Core
messages: 384150
nosy: steven.daprano
priority: normal
severity: normal
status: open
title: Exception catching function crashes on recursive list
type: crash
versions: Python 3.7, Python 3.9

___
Python tracker 

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



[issue42752] multiprocessing Queue leaks a file descriptor associated with the pipe writer (#33081 still a problem)

2020-12-31 Thread Alex Orange


Alex Orange  added the comment:

Well, having not heard anything I decided to just make a patch and throw it up. 
Here it is. This includes a test that will fail with the old version and passes 
once patched as well as the patch to the queue code itself.

Worth noting, the CleanExchange class is used because simpler things like using 
a closure to pass the exchange mechanism hold a reference to the Queue one way 
or another that is difficult/impossible to kill. This is because the 
intermediate thread mechanisms hold a reference to all the arguments that are 
passed to the run function. CleanExchange allows an indirect reference to be 
passed and for the reference to Queue to be None'd out.

--
keywords: +patch
Added file: https://bugs.python.org/file49713/queue_close_write.patch

___
Python tracker 

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



[issue33944] Deprecate and remove code execution in pth files

2020-12-31 Thread Nick Coghlan


Nick Coghlan  added the comment:

PEP 648 has been posted with a proposal to migrate sitecustomize.py, 
usersitecustomize.py and arbitrary code execution in pth files to a directory 
based `__sitecustomize__` structure: https://www.python.org/dev/peps/pep-0648/

--

___
Python tracker 

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



[issue42799] Please document fnmatch LRU cache size (256) and suggest alternatives

2020-12-31 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

In addition to documenting the cache size, consider a substantial increase to 
the limit.   Compiled regex patterns tend to be very small.  We can afford to 
have a lot of them (tens of thousands seems reasonable to me).

Regarding the suggested alternative, ISTM that calling translate() directly 
doesn't help much.  For a cache miss, the overhead of the lru_cache() is very 
small relative to the work done by translate().

--
nosy: +rhettinger

___
Python tracker 

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



[issue42781] functools.cached_property docs should explain that it is non-overriding

2020-12-31 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 8333d421c0d7b90de3ff92002af9fd2c5d5f373c by Miss Islington (bot) 
in branch '3.9':
bpo-42781: Document the mechanics of cached_property from a user viewpoint 
(GH-24031) (#24035)
https://github.com/python/cpython/commit/8333d421c0d7b90de3ff92002af9fd2c5d5f373c


--

___
Python tracker 

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



[issue42781] functools.cached_property docs should explain that it is non-overriding

2020-12-31 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
assignee: docs@python -> rhettinger
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



[issue42781] functools.cached_property docs should explain that it is non-overriding

2020-12-31 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue42781] functools.cached_property docs should explain that it is non-overriding

2020-12-31 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset c8a7b8fa1b5f9a6d3052db792018dc27c5a3a794 by Raymond Hettinger in 
branch 'master':
bpo-42781: Document the mechanics of cached_property from a user viewpoint 
(GH-24031)
https://github.com/python/cpython/commit/c8a7b8fa1b5f9a6d3052db792018dc27c5a3a794


--

___
Python tracker 

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



[issue25479] Increase unit test coverage for abc.py

2020-12-31 Thread karl


karl  added the comment:

@iritkatriel Github PR done. 
https://github.com/python/cpython/pull/24034

--

___
Python tracker 

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



[issue25479] Increase unit test coverage for abc.py

2020-12-31 Thread karl


Change by karl :


--
keywords: +patch
nosy: +karlcow
nosy_count: 2.0 -> 3.0
pull_requests: +22875
pull_request: https://github.com/python/cpython/pull/24034

___
Python tracker 

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



[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2020-12-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22874
pull_request: https://github.com/python/cpython/pull/24033

___
Python tracker 

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



[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2020-12-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22873
pull_request: https://github.com/python/cpython/pull/24032

___
Python tracker 

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



[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2020-12-31 Thread Ammar Askar


New submission from Ammar Askar :

It is possible to access all the frame objects in the interpret without 
triggering any audit hooks through the use of exceptions. Namely, through the 
traceback's tb_frame property. Ordinarily one would trigger the 
"sys._current_frames" or "sys._getframe" event but this code path bypasses 
those.

There is already precedent for raising events for certain sensitive properties 
such as `__code__` in funcobject. (through a "object.__getattr__" event) so 
perhaps this property should be protected in a similar way.


This issue was recently demonstrated in a security competition:
* https://github.com/hstocks/ctf_writeups/blob/master/2020/hxp/audited/README.md
* https://github.com/fab1ano/hxp-ctf-20/blob/master/audited/README.md

--
assignee: steve.dower
components: Library (Lib)
keywords: security_issue
messages: 384143
nosy: ammar2, christian.heimes, steve.dower
priority: normal
severity: normal
status: open
title: Traceback objects allow accessing frame objects without triggering audit 
hooks
type: security
versions: Python 3.10, 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



[issue42797] Allow doctest to select tests via -m/--match option

2020-12-31 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

I think that -m is unacceptable as it will clash with Python's -m option.

I'm not convinced that this added complexity will provide enough benefit to 
make it worth while. I can see myself spending an order of magnitude more time 
trying to work out why my test suffixes and indexes are selecting the wrong 
tests than I would save.

The use of indexes to select individual tests within a single docstring is 
especially fragile and error-prone since it requires counting by the user. It's 
also likely to introduce artificial errors since tests can rely on side-effects 
of previous tests, e.g.

>>> import math
>>> math.sqrt(25)
5.0

Selecting test number 1 alone will fail unless test number 0 is also run. For 
these reasons, I think that in practice, the finest selection unit we can run 
is a single docstring. Trying to select individual tests within a unit is 
likely to be far too fragile and error prone to be practical.

So by my estimation, we have the following selections:

- module docstring alone
- named function or class docstring alone
- named class.method docstring alone
- named class and all its methods

--
nosy: +steven.daprano, tim.peters

___
Python tracker 

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



[issue42799] Please document fnmatch LRU cache size (256) and suggest alternatives

2020-12-31 Thread Josh Triplett


New submission from Josh Triplett :

fnmatch translates shell patterns to regexes, using an LRU cache of 256 
elements. The documentation doesn't mention the cache size, just "They cache 
the compiled regular expressions for speed.". Without this knowledge, it's 
possible to get pathologically bad performance by exceeding the cache size.

Please consider adding documentation of the cache size to the module 
documentation for fnmatch, along with a suggestion to use fnmatch.translate 
directly if you have more patterns than that.

--
components: Library (Lib)
messages: 384141
nosy: joshtriplett
priority: normal
severity: normal
status: open
title: Please document fnmatch LRU cache size (256) and suggest alternatives
versions: Python 3.9

___
Python tracker 

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



[issue26407] csv.writer.writerows masks exceptions from __iter__

2020-12-31 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
stage: patch review -> commit review
versions:  -Python 3.6, Python 3.7

___
Python tracker 

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



[issue38780] SysLogHandler crash atexit

2020-12-31 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

Using a NullSocket fixes the test in commit 
f0f8ff8f06afd43947e268824aa4381add05ce8f

--

___
Python tracker 

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



[issue38780] SysLogHandler crash atexit

2020-12-31 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

I've forked your work, Jason:
https://github.com/erlend-aasland/cpython/tree/bpo-38780-test

I added the test from msg356475, and I'm able to reproduce it by asserting that 
the `socket` attribute is present (commit 
f0f8ff8f06afd43947e268824aa4381add05ce8f)

--

___
Python tracker 

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



[issue42781] functools.cached_property docs should explain that it is non-overriding

2020-12-31 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
keywords: +patch
nosy: +rhettinger
nosy_count: 2.0 -> 3.0
pull_requests: +22872
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/24031

___
Python tracker 

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



[issue42728] Typo in documentation: importlib.metadata

2020-12-31 Thread Barry A. Warsaw


Barry A. Warsaw  added the comment:

Thanks for the report and fix!

--
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, 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



[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2020-12-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue42686] include built-in Math functions in SQLite to 3.35.0 of march 2021

2020-12-31 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

FYI, I've opened a thread on the SQLite Forum: 
https://sqlite.org/forum/forumpost/721645dc36

--

___
Python tracker 

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



[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2020-12-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset b5711c940f70af89f2b4cf081a3fcd83924f3ae7 by Jason R. Coombs in 
branch 'master':
bpo-37193: Remove thread objects which finished process its request (GH-23127)
https://github.com/python/cpython/commit/b5711c940f70af89f2b4cf081a3fcd83924f3ae7


--

___
Python tracker 

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



[issue42728] Typo in documentation: importlib.metadata

2020-12-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22871
pull_request: https://github.com/python/cpython/pull/24030

___
Python tracker 

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



[issue42728] Typo in documentation: importlib.metadata

2020-12-31 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue42454] Move slice creation to the compiler for constants

2020-12-31 Thread Mark Dickinson


Mark Dickinson  added the comment:

@Batuhan Taskaya: would it be worth starting a discussion on either 
python-ideas or python-dev? (Or on discuss.python.org.)

My concern is that we're discussing a core language change. It's not a major 
change, but it's not an insignificant one either, and right now the discussion 
is buried in an issue whose description and "Type" category suggest that it's 
purely about performance - those giving this issue a casual glance may not 
realise that there's a language change involved.

I don't have strong opinions on the change itself either way, but others might 
have.

--

___
Python tracker 

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



[issue42728] Typo in documentation: importlib.metadata

2020-12-31 Thread Barry A. Warsaw


Change by Barry A. Warsaw :


--
nosy: +barry, jaraco

___
Python tracker 

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



[issue42797] Allow doctest to select tests via -m/--match option

2020-12-31 Thread Costas Basdekis


Change by Costas Basdekis :


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

___
Python tracker 

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



[issue42798] pip search fails

2020-12-31 Thread Paul Watson


New submission from Paul Watson :

Fresh install of 3.9.1
Created venv
Activated venv

(py3.9) 13:12:59.52  C:\venv\py3.9\Scripts
C:>pip search astronomy
ERROR: Exception:
Traceback (most recent call last):
  File "c:\venv\py3.9\lib\site-packages\pip\_internal\cli\base_command.py", 
line 228, in _main
status = self.run(options, args)
  File "c:\venv\py3.9\lib\site-packages\pip\_internal\commands\search.py", line 
60, in run
pypi_hits = self.search(query, options)
  File "c:\venv\py3.9\lib\site-packages\pip\_internal\commands\search.py", line 
80, in search
hits = pypi.search({'name': query, 'summary': query}, 'or')
  File 
"C:\Users\mike\AppData\Local\Programs\Python\Python39\lib\xmlrpc\client.py", 
line 1116, in __call__
return self.__send(self.__name, args)
  File 
"C:\Users\mike\AppData\Local\Programs\Python\Python39\lib\xmlrpc\client.py", 
line 1456, in __request
response = self.__transport.request(
  File "c:\venv\py3.9\lib\site-packages\pip\_internal\network\xmlrpc.py", line 
45, in request
return self.parse_response(response.raw)
  File 
"C:\Users\mike\AppData\Local\Programs\Python\Python39\lib\xmlrpc\client.py", 
line 1348, in parse_response
return u.close()
  File 
"C:\Users\mike\AppData\Local\Programs\Python\Python39\lib\xmlrpc\client.py", 
line 662, in close
raise Fault(**self._stack[0])
xmlrpc.client.Fault: https://status.python.org/ for more information.">

(py3.9) 13:13:08.09  C:\venv\py3.9\Scripts
C:>python --version
Python 3.9.1

--
components: Demos and Tools
messages: 384133
nosy: Paul Watson
priority: normal
severity: normal
status: open
title: pip search fails
type: crash
versions: Python 3.9

___
Python tracker 

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



[issue42797] Allow doctest to select tests via -m/--match option

2020-12-31 Thread Costas Basdekis


New submission from Costas Basdekis :

Most testing frameworks allow for only a subset of tests to be run, and the 
reason is usually either to focus on a specific test among many failing ones, 
or for speed purposes if running the whole suite is too slow.

With doctests, it's usually the case that the are light and fast, but if you 
make a breaking change you can still have many tests failing, and you want to 
focus only on one.

This proposition adds an `-m`/`--match` option to the doctest runner, to allow 
to select 1 or more specific tests to run.

The proposed format for the parameters is :
* :
*  is a glob-like string where '*' characters can match any 
substring of a test's name, and an '*' is implicitly added to the start of the 
pattern: eg 'do_*_method' matches '__main__.do_a_method' and 
'__main__.MyClass.do_b_method'
*  is a list of numbers or ranges to match the 0-based index examples 
within the test:  eg '1' matches the second example, `-3` matches the first 4 
examples, '4-` matches all but the first 4 examples, and `-3,5,7-10,20-` 
matches examples 0, 1, 2, 3, 5, 7, 8, 9, 10, 20, and the rest

--
components: Tests
messages: 384132
nosy: costas-basdekis
priority: normal
severity: normal
status: open
title: Allow doctest to select tests via -m/--match option
type: enhancement
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



[issue42163] _replace() no longer works on platform.uname_result objects

2020-12-31 Thread Jason R. Coombs


Jason R. Coombs  added the comment:


New changeset a6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743 by Jason R. Coombs in 
branch 'master':
bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but 
processor) (#23010)
https://github.com/python/cpython/commit/a6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743


--

___
Python tracker 

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



[issue42659] Objects of uname_result Class Cannot be Successfully Pickled

2020-12-31 Thread Jason R. Coombs


Jason R. Coombs  added the comment:


New changeset a6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743 by Jason R. Coombs in 
branch 'master':
bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but 
processor) (#23010)
https://github.com/python/cpython/commit/a6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743


--

___
Python tracker 

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



[issue42189] copy.deepcopy() no longer works on platform.uname_result objects

2020-12-31 Thread Jason R. Coombs


Jason R. Coombs  added the comment:


New changeset a6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743 by Jason R. Coombs in 
branch 'master':
bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but 
processor) (#23010)
https://github.com/python/cpython/commit/a6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743


--

___
Python tracker 

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



[issue38780] SysLogHandler crash atexit

2020-12-31 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
stage: patch review -> needs patch

___
Python tracker 

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



[issue38780] SysLogHandler crash atexit

2020-12-31 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



[issue38780] SysLogHandler crash atexit

2020-12-31 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

I started work on a test in 
https://github.com/jaraco/cpython/tree/bugfix/bpo-38780-test, but (a) the test 
was failing to exhibit the expected failures, and (b) I realized that the fix 
isn't having the intended effect either, because for unix sockets, [self.socket 
is unconditionally 
set](https://github.com/python/cpython/blob/dfdca85dfa64e72df385b3a486f85b773fc0f135/Lib/logging/handlers.py#L872),
 overriding any NullSocket or None value.

The SysLogHandler code will need to be reorganized if self.socket is intended 
to model two modes (broken and initialized).

I'm not sure when I'll get another chance to take a look at this, but I'll not 
be able to wrap it up today, so I'm going to unassign it for now.

--

___
Python tracker 

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



[issue42454] Move slice creation to the compiler for constants

2020-12-31 Thread Batuhan Taskaya

Batuhan Taskaya  added the comment:

I've given this another shot, but even though I was able to create a patch that 
preserved slices as (type(slice), start, stop, step) tuples in the 
consts_cache, this final optimization prevented me to finalize it; 
https://github.com/python/cpython/blob/master/Python/compile.c#L5855-L5858

So, unless anyone else came up with a reasonable idea to do this optimization 
at the compile-time without actually making them hashable, I am re-proposing 
the idea of making them hashable.

Pro:
  - Up to %30+ speedup on slicing with constants (extremely common)
Cons:
  - Mappings accepts slices, which would rarely lead some esoteric cases (like 
the examples given)

Comments would be appreciated

--

___
Python tracker 

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



[issue42382] No easy way to get the distribution which provided a importlib.metadata.EntryPoint

2020-12-31 Thread Jason R. Coombs


Jason R. Coombs  added the comment:


New changeset dfdca85dfa64e72df385b3a486f85b773fc0f135 by Jason R. Coombs in 
branch 'master':
bpo-42382: In importlib.metadata, `EntryPoint` objects now expose `dist` 
(#23758)
https://github.com/python/cpython/commit/dfdca85dfa64e72df385b3a486f85b773fc0f135


--

___
Python tracker 

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



[issue42796] tempfile doesn't seem to play nicely with os.chdir on Windows

2020-12-31 Thread Gabriele Tornetta


New submission from Gabriele Tornetta :

The following script causes havoc on Windows while it works as expected on  
Linux

~~~ python
import os
import tempfile


def test_chdir():
with tempfile.TemporaryDirectory() as tempdir:
os.chdir(tempdir)
~~~

Running the above on Windows results in RecursionError: maximum recursion depth 
exceeded while calling a Python object (see attachment for the full stacktrace).

--
components: Library (Lib)
files: tempfile_st.txt
messages: 384125
nosy: Gabriele Tornetta
priority: normal
severity: normal
status: open
title: tempfile doesn't seem to play nicely with os.chdir on Windows
type: crash
versions: Python 3.9
Added file: https://bugs.python.org/file49712/tempfile_st.txt

___
Python tracker 

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



[issue40631] PEG Parser: Cannot used starred expression in parenthesised expr

2020-12-31 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
pull_requests: +22867
pull_request: https://github.com/python/cpython/pull/24027

___
Python tracker 

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



[issue30963] xxlimited.c XxoObject_Check should be XxoObject_CheckExact

2020-12-31 Thread Petr Viktorin


Petr Viktorin  added the comment:

The Check code is now commented out, and the issue of type checking is 
mentioned in PEP 630.
(The xxlimited_35 module still contains XxoObject_Check, among other historical 
code.)

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

___
Python tracker 

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



[issue29708] support reproducible Python builds

2020-12-31 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

PEP 552 was a necessary but not sufficient step on the road towards fully 
deterministic pycs. The PEP says: "(Note there are other problems [1] [2] we do 
not address here that can make pycs non-deterministic.)" where [1] and [2] are 
basically the issues Inada-san has linked.

--

___
Python tracker 

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



[issue42794] test_nntplib fails on CI

2020-12-31 Thread Marc-Andre Lemburg


Marc-Andre Lemburg  added the comment:

FWIW, I'm getting the same errors in PR 
https://github.com/python/cpython/pull/23140

Checking on the server that's being used, the newsgroup description is empty 
indeed: 
https://news.aioe.org/index.php?id=statistics-about-groups=comp.lang.python

--
nosy: +lemburg

___
Python tracker 

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



[issue42257] platform.libc_ver() doesn't consider in case of executable is empty string

2020-12-31 Thread Marc-Andre Lemburg


Marc-Andre Lemburg  added the comment:

Thanks for the patch.

Merging is currently prevented by an unrelated test for nntplib failing. See 
e.g. 
https://github.com/python/cpython/pull/23140/checks?check_run_id=1630509357. 
This is being tracked in https://bugs.python.org/issue42794

--

___
Python tracker 

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



[issue12915] Add inspect.locate and inspect.resolve

2020-12-31 Thread Rahul Jha


Change by Rahul Jha :


--
nosy: +RJ722

___
Python tracker 

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



[issue42257] platform.libc_ver() doesn't consider in case of executable is empty string

2020-12-31 Thread Kurochan


Kurochan  added the comment:

Also, PR comment processed.

--

___
Python tracker 

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



[issue26454] add support string that are not inherited from PyStringObject

2020-12-31 Thread Irit Katriel


Irit Katriel  added the comment:

If you are still having an issue with this, please create a new ticket and 
explain better what the problem is. Ideally, attach code that demonstrates the 
problem (along with what you expected the code to do and what it actually does, 
and state which system and python version you are seeing the issue on).

--
resolution:  -> rejected
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue19206] Support disabling file I/O when doing traceback formatting

2020-12-31 Thread Irit Katriel


Change by Irit Katriel :


--
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue42257] platform.libc_ver() doesn't consider in case of executable is empty string

2020-12-31 Thread Kurochan


Kurochan  added the comment:

> If Python is embedded

Yes. It's embedded Python.
This issue caused in datadog-agent with embedded Python.
https://github.com/DataDog/datadog-agent/

>  would it be possible to share the code used to configure Python 
> initialization?
I'm not sure where the Python installation code is. Maybe it's around here.
https://github.com/DataDog/datadog-agent/blob/master/docs/dev/agent_omnibus.md

https://github.com/DataDog/datadog-agent/blob/master/omnibus/config/software/python3.rb

datadog-agent's official install script is here.
https://s3.amazonaws.com/dd-agent/scripts/install_script.sh

--

___
Python tracker 

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



[issue41224] Document is_annotate() in symtable and update doc strings

2020-12-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.7

___
Python tracker 

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



[issue42393] Raise overflow errors iso. deprecation warnings in socket.htons and socket.ntohs (was deprecated in 3.7)

2020-12-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue42393] Raise overflow errors iso. deprecation warnings in socket.htons and socket.ntohs (was deprecated in 3.7)

2020-12-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset f4936ad1c4d0ae1948e428aeddc7d3096252dae4 by Erlend Egeberg 
Aasland in branch 'master':
bpo-42393: Raise OverflowError iso. DeprecationWarning on overflow in 
socket.ntohs and socket.htons (GH-23980)
https://github.com/python/cpython/commit/f4936ad1c4d0ae1948e428aeddc7d3096252dae4


--

___
Python tracker 

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



[issue41224] Document is_annotate() in symtable and update doc strings

2020-12-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset bc15cdbc6eb112cb72acf189769ecd539dd45652 by Andre Delfino in 
branch '3.8':
[3.8] bpo-41224: Add versionadded for Symbol.is_annotated (GH-23861). (GH-24016)
https://github.com/python/cpython/commit/bc15cdbc6eb112cb72acf189769ecd539dd45652


--

___
Python tracker 

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



[issue41224] Document is_annotate() in symtable and update doc strings

2020-12-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 7a7f3e0d6a197c81fff83ad777c74324ceb4198f by Andre Delfino in 
branch '3.9':
[3.9] bpo-41224: Add versionadded for Symbol.is_annotated (GH-23861). (GH-24017)
https://github.com/python/cpython/commit/7a7f3e0d6a197c81fff83ad777c74324ceb4198f


--

___
Python tracker 

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



[issue42759] Take into acount a Tcl interpreter when compare variables and fonts

2020-12-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +22866
pull_request: https://github.com/python/cpython/pull/24026

___
Python tracker 

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



[issue42794] test_nntplib fails on CI

2020-12-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

On my computer tests are passed. They are only failed on CI.

--

___
Python tracker 

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



[issue42425] Possible leak in initialization of errmap for OSError

2020-12-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +22865
pull_request: https://github.com/python/cpython/pull/24025

___
Python tracker 

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



[issue41401] Using non-ascii that require UTF-8 breaks AIX testing

2020-12-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +22864
pull_request: https://github.com/python/cpython/pull/24024

___
Python tracker 

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



[issue15097] Improving wording on the thread-safeness of import

2020-12-31 Thread Irit Katriel


Irit Katriel  added the comment:

The threading doc no longer mentions import at all. Any objections to closing 
this issue as out of date?  Or is there anything else to look into here?

--
nosy: +iritkatriel
resolution:  -> out of date
status: open -> pending

___
Python tracker 

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



[issue36589] Incorrect error handling in curses.update_lines_cols()

2020-12-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +22863
pull_request: https://github.com/python/cpython/pull/24023

___
Python tracker 

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



[issue39068] Base 85 encoding initialization race condition

2020-12-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +22862
pull_request: https://github.com/python/cpython/pull/24022

___
Python tracker 

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



[issue42794] test_nntplib fails on CI

2020-12-31 Thread STINNER Victor


STINNER Victor  added the comment:

Right now, it works for me:

$ ./python -m test -u all test_nntplib  -v -m test_descriptions
...
test_descriptions (test.test_nntplib.NNTPv1Tests) ... ok
test_descriptions (test.test_nntplib.NNTPv2Tests) ... ok
test_descriptions (test.test_nntplib.NetworkedNNTPTests) ... ok
skipped " got [SSL: 
DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1122) connecting to 'nntp.aioe.org'"
...
Tests result: SUCCESS

--
nosy: +vstinner

___
Python tracker 

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



[issue26407] csv.writer.writerows masks exceptions from __iter__

2020-12-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +22861
pull_request: https://github.com/python/cpython/pull/24021

___
Python tracker 

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



[issue42794] test_nntplib fails on CI

2020-12-31 Thread Ross Rhodes


Ross Rhodes  added the comment:

Server is returning '215 Newsgroup descriptions in form "group description"', 
but an empty list of lines, so it's reaching the 'nothing' case in 
_getdescriptions: 
https://github.com/python/cpython/blob/master/Lib/nntplib.py#L660

--
nosy: +trrhodes

___
Python tracker 

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



[issue29708] support reproducible Python builds

2020-12-31 Thread STINNER Victor


STINNER Victor  added the comment:

> note the optimized .pyc is deterministic. As far as I know only __debug__ is 
> set to False, or is there something else different?

Hum, maybe there is a misunderstanding on the PEP 552 purpose.

I understood that the main point of the PEP 552 is to compare hash(), rather than checking the .py and .pyc file modification time.

It doesn't magically make the PYC file content fully reproducible. Correct me 
if I misunderstood PEP 552 as well.

--

___
Python tracker 

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



[issue42795] Asyncio loop.create_server doesn't bind to any interface if host is a sequence with just the empty string

2020-12-31 Thread Paolo Lammens


Change by Paolo Lammens :


--
title: Asyncio loop.create_server doesn't bind to any interface if host is a 
sequence with jus the empty string -> Asyncio loop.create_server doesn't bind 
to any interface if host is a sequence with just the empty string

___
Python tracker 

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



[issue42795] Asyncio loop.create_server doesn't bind to any interface if host is a sequence with jus the empty string

2020-12-31 Thread Paolo Lammens


New submission from Paolo Lammens :

When a sequence containing just the empty string (e.g. `['']`) is passed as the 
`host` parameter of `loop.create_server`, the server seems not to bind to any 
network interface. Since, per the 
[documentation](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.create_server)
 for `create_server`, the empty string means "bind to all interfaces", 

> If host is an empty string or None all interfaces are assumed and a list of 
> multiple 
> sockets will be returned (most likely one for IPv4 and another one for IPv6).


and also

> The host parameter can also be a sequence (e.g. list) of hosts to bind to.

I would have expected a list containing the empty string to also work as 
expected, i.e. "binding to all hosts in the sequence", so binding to "" and 
thus to every interface.

Example:

Server script:

```python
import asyncio


async def server():
async def connection_callback(reader, writer: asyncio.StreamWriter):
print(f"got connection from {writer.get_extra_info('peername')}")
writer.close()
await writer.wait_closed()

s = await asyncio.start_server(connection_callback, host=[''], port=4567)
async with s:
print("starting server")
await s.serve_forever()


asyncio.run(server())
```

Client script:

```python
import asyncio


async def client():
reader, writer = await asyncio.open_connection("127.0.0.1", 4567)
print(f"connected to {writer.get_extra_info('peername')}")
writer.close()
await writer.wait_closed()


asyncio.run(client())
```

Expected:

- Server:
  ```
  starting server
  got connection from ('127.0.0.1', x)
  ```

- Client:
  ```
  connected to ('127.0.0.1', x)
  ```

Actual:

- Server:
  ```
  starting server
  ```

- Client: a ConnectionError is raised (the host machine refused the connection)

--
components: asyncio
messages: 384109
nosy: asvetlov, plammens, yselivanov
priority: normal
severity: normal
status: open
title: Asyncio loop.create_server doesn't bind to any interface if host is a 
sequence with jus the empty string
type: behavior
versions: Python 3.9

___
Python tracker 

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



[issue27820] Possible bug in smtplib when initial_response_ok=False

2020-12-31 Thread Pandu E POLUAN


Pandu E POLUAN  added the comment:

I tried adding the code below to test_smtplib.py:

def testAUTH_LOGIN_initial_response_notok(self):
self.serv.add_feature("AUTH LOGIN")
smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
timeout=support.LOOPBACK_TIMEOUT)
resp = smtp.login(sim_auth[0], sim_auth[1], initial_response_ok=False)
self.assertEqual(resp, (235, b'Authentication Succeeded'))
smtp.close()

and I ended up with:

==
ERROR: testAUTH_LOGIN_initial_response_notok (test.test_smtplib.SMTPSimTests)
--
Traceback (most recent call last):
  File "/home/pepoluan/projects/cpython/Lib/test/test_smtplib.py", line 1065, 
in testAUTH_LOGIN_initial_response_notok
resp = smtp.login(sim_auth[0], sim_auth[1], initial_response_ok=False)
  File "/home/pepoluan/projects/cpython/Lib/smtplib.py", line 738, in login
raise last_exception
  File "/home/pepoluan/projects/cpython/Lib/smtplib.py", line 727, in login
(code, resp) = self.auth(
  File "/home/pepoluan/projects/cpython/Lib/smtplib.py", line 650, in auth
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (451, b'Internal confusion')

--

--

___
Python tracker 

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



[issue40512] [subinterpreters] Meta issue: per-interpreter GIL

2020-12-31 Thread Alex Garel


Change by Alex Garel :


--
nosy: +alex-garel

___
Python tracker 

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



[issue39068] Base 85 encoding initialization race condition

2020-12-31 Thread miss-islington


Change by miss-islington :


--
keywords: +patch
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +22860
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/24020

___
Python tracker 

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



[issue39068] Base 85 encoding initialization race condition

2020-12-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 9655434cca5dfbea97bf6d355aec028e840b289c by Brandon Stansbury in 
branch 'master':
bpo-39068: Fix race condition in base64 (GH-17627)
https://github.com/python/cpython/commit/9655434cca5dfbea97bf6d355aec028e840b289c


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue42794] test_nntplib fails on CI

2020-12-31 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

Since yesterday ALL PRs are blocked by failing test_nntplib.

For example 
https://github.com/python/cpython/runs/1629664606?check_suite_focus=true:

==
ERROR: test_descriptions (test.test_nntplib.NetworkedNNTP_SSLTests)
--
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/test/test_nntplib.py", line 250, 
in wrapped
meth(self)
  File "/home/runner/work/cpython/cpython/Lib/test/test_nntplib.py", line 99, 
in test_descriptions
desc = descs[self.GROUP_NAME]
KeyError: 'comp.lang.python'

==
FAIL: test_description (test.test_nntplib.NetworkedNNTP_SSLTests)
--
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/test/test_nntplib.py", line 250, 
in wrapped
meth(self)
  File "/home/runner/work/cpython/cpython/Lib/test/test_nntplib.py", line 85, 
in test_description
self.assertIn("Python", desc)
AssertionError: 'Python' not found in ''

--

--
components: Tests
messages: 384106
nosy: serhiy.storchaka
priority: critical
severity: normal
status: open
title: test_nntplib fails on CI
versions: Python 3.10, 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



[issue37157] shutil: add reflink=False to file copy functions to control clone/CoW copies (use copy_file_range)

2020-12-31 Thread Albert Zeyer


Albert Zeyer  added the comment:

I did some further research (with all details here: 
https://stackoverflow.com/a/65518879/133374).

See vfs_copy_file_range in the Linux kernel. This first tries to call 
remap_file_range if possible.

FICLONE calls ioctl_file_clone. ioctl_file_clone calls vfs_clone_file_range. 
vfs_clone_file_range calls remap_file_range. I.e. FICLONE == remap_file_range.

So using copy_file_range (if available) should be the most generic solution, 
which includes copy-on-write support, and server-side copy support.

--

___
Python tracker 

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



[issue29708] support reproducible Python builds

2020-12-31 Thread Inada Naoki


Change by Inada Naoki :


--
dependencies: +Reproducible pyc: FLAG_REF is not stable.

___
Python tracker 

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



[issue29708] support reproducible Python builds

2020-12-31 Thread Inada Naoki


Inada Naoki  added the comment:

> note the optimized .pyc is deterministic. As far as I know only __debug__ is 
> set to False, or is there something else different?

There is no difference between normal pyc and optimized pyc.

* frozenset is deterministic if PYTHONHASHSEED is set
* FLAG_REF is unstable. It is based on reference count but it is changed by 
various environment (environment variables, build path, order of py files, and 
any other thing using interned strings). bpo-30493 must be fixed.

--
versions: +Python 3.10 -Python 3.9

___
Python tracker 

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



[issue42793] Bug of round function

2020-12-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It works as documented. https://docs.python.org/3/library/functions.html#round

--
nosy: +serhiy.storchaka
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



[issue42793] Bug of round function

2020-12-31 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

This is not a bug. See https://stackoverflow.com/a/10825998/11461120

--
nosy: +Dennis Sweeney

___
Python tracker 

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



[issue42793] Bug of round function

2020-12-31 Thread Narek


New submission from Narek :

The my code is folowing

for i in range(1, 5):
a = i + 0.5
b = round(a)
print(a, "rounded as =>", b)

output is

1.5 => 2
2.5 => 2
3.5 => 4
4.5 => 4

the rounding is not correct in output

--
files: main.py
messages: 384101
nosy: Narek2018
priority: normal
severity: normal
status: open
title: Bug of round function
type: performance
versions: Python 3.9
Added file: https://bugs.python.org/file49711/main.py

___
Python tracker 

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



[issue29708] support reproducible Python builds

2020-12-31 Thread Frederik Rietdijk


Frederik Rietdijk  added the comment:

note the optimized .pyc is deterministic. As far as I know only __debug__ is 
set to False, or is there something else different?

--

___
Python tracker 

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