[issue24888] FileNotFoundException raised by subprocess.call

2021-08-29 Thread Padmashree Jha


Padmashree Jha  added the comment:

You have to add shell=True to execute a shell command. check_output is trying 
to find an executable. Try this

--
nosy: +padmashreejha717
versions:  -Python 3.4

___
Python tracker 

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



[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +26467
pull_request: https://github.com/python/cpython/pull/28021

___
Python tracker 

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



[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 07d3d54f4e84b1259b800884b202701f69e408d8 by Serhiy Storchaka in 
branch 'main':
bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021)
https://github.com/python/cpython/commit/07d3d54f4e84b1259b800884b202701f69e408d8


--

___
Python tracker 

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



[issue25130] Make tests more PyPy compatible

2021-08-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26468
pull_request: https://github.com/python/cpython/pull/28022

___
Python tracker 

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



[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +26469
pull_request: https://github.com/python/cpython/pull/28023

___
Python tracker 

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



[issue25130] Make tests more PyPy compatible

2021-08-29 Thread miss-islington


miss-islington  added the comment:


New changeset a49398b643b3a2e6f9cc39729c528eb1e4385b1a by Miss Islington (bot) 
in branch '3.10':
bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021)
https://github.com/python/cpython/commit/a49398b643b3a2e6f9cc39729c528eb1e4385b1a


--

___
Python tracker 

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



[issue45042] Many multiprocessing tests are silently skipped since 3.9

2021-08-29 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

Here is a list of multiprocessing tests which are run in 3.8 but are not found 
in 3.9+:

OtherTest.test_answer_challenge_auth_failure
OtherTest.test_deliver_challenge_auth_failure
TestInitializers.test_manager_initializer
TestInitializers.test_pool_initializer
TestSyncManagerTypes.test_array
TestSyncManagerTypes.test_barrier
TestSyncManagerTypes.test_bounded_semaphore
TestSyncManagerTypes.test_condition
TestSyncManagerTypes.test_dict
TestSyncManagerTypes.test_event
TestSyncManagerTypes.test_joinable_queue
TestSyncManagerTypes.test_list
TestSyncManagerTypes.test_lock
TestSyncManagerTypes.test_namespace
TestSyncManagerTypes.test_pool
TestSyncManagerTypes.test_queue
TestSyncManagerTypes.test_rlock
TestSyncManagerTypes.test_semaphore
TestSyncManagerTypes.test_value
WithManagerTestBarrier.test_abort
WithManagerTestBarrier.test_abort_and_reset
WithManagerTestBarrier.test_action
WithManagerTestBarrier.test_barrier
WithManagerTestBarrier.test_barrier_10
WithManagerTestBarrier.test_default_timeout
WithManagerTestBarrier.test_reset
WithManagerTestBarrier.test_single_thread
WithManagerTestBarrier.test_thousand
WithManagerTestBarrier.test_timeout
WithManagerTestBarrier.test_wait_return
WithManagerTestCondition.test_notify
WithManagerTestCondition.test_notify_all
WithManagerTestCondition.test_notify_n
WithManagerTestCondition.test_timeout
WithManagerTestCondition.test_wait_result
WithManagerTestCondition.test_waitfor
WithManagerTestCondition.test_waitfor_timeout
WithManagerTestContainers.test_dict
WithManagerTestContainers.test_dict_iter
WithManagerTestContainers.test_dict_proxy_nested
WithManagerTestContainers.test_list
WithManagerTestContainers.test_list_iter
WithManagerTestContainers.test_list_proxy_in_list
WithManagerTestContainers.test_namespace
WithManagerTestEvent.test_event
WithManagerTestLock.test_lock
WithManagerTestLock.test_lock_context
WithManagerTestLock.test_rlock
WithManagerTestManagerRestart.test_rapid_restart
WithManagerTestMyManager.test_mymanager
WithManagerTestMyManager.test_mymanager_context
WithManagerTestMyManager.test_mymanager_context_prestarted
WithManagerTestPool.test_apply
WithManagerTestPool.test_async
WithManagerTestPool.test_async_timeout
WithManagerTestPool.test_context
WithManagerTestPool.test_empty_iterable
WithManagerTestPool.test_enter
WithManagerTestPool.test_imap
WithManagerTestPool.test_imap_handle_iterable_exception
WithManagerTestPool.test_imap_unordered
WithManagerTestPool.test_imap_unordered_handle_iterable_exception
WithManagerTestPool.test_make_pool
WithManagerTestPool.test_map
WithManagerTestPool.test_map_async
WithManagerTestPool.test_map_async_callbacks
WithManagerTestPool.test_map_chunksize
WithManagerTestPool.test_map_handle_iterable_exception
WithManagerTestPool.test_map_no_failfast
WithManagerTestPool.test_map_unplicklable
WithManagerTestPool.test_release_task_refs
WithManagerTestPool.test_resource_warning
WithManagerTestPool.test_starmap
WithManagerTestPool.test_starmap_async
WithManagerTestPool.test_terminate
WithManagerTestPool.test_traceback
WithManagerTestPool.test_wrapped_exception
WithManagerTestQueue.test_closed_queue_put_get_exceptions
WithManagerTestQueue.test_fork
WithManagerTestQueue.test_get
WithManagerTestQueue.test_no_import_lock_contention
WithManagerTestQueue.test_put
WithManagerTestQueue.test_qsize
WithManagerTestQueue.test_queue_feeder_donot_stop_onexc
WithManagerTestQueue.test_queue_feeder_on_queue_feeder_error
WithManagerTestQueue.test_task_done
WithManagerTestQueue.test_timeout
WithManagerTestRemoteManager.test_remote
WithManagerTestSemaphore.test_bounded_semaphore
WithManagerTestSemaphore.test_semaphore
WithManagerTestSemaphore.test_timeout
WithProcessesTestManagerRestart.test_rapid_restart
WithProcessesTestPicklingConnections.test_access
WithProcessesTestPicklingConnections.test_pickling
WithProcessesTestSharedMemory.test_shared_memory_ShareableList_basics
WithProcessesTestSharedMemory.test_shared_memory_ShareableList_pickling
WithProcessesTestSharedMemory.test_shared_memory_SharedMemoryManager_basics
WithProcessesTestSharedMemory.test_shared_memory_SharedMemoryManager_reuses_resource_tracker
WithProcessesTestSharedMemory.test_shared_memory_SharedMemoryServer_ignores_sigint
WithProcessesTestSharedMemory.test_shared_memory_across_processes
WithProcessesTestSharedMemory.test_shared_memory_basics
WithProcessesTestSharedMemory.test_shared_memory_cleaned_after_process_termination
WithThreadsTestManagerRestart.test_rapid_restart

--
components: Tests
keywords: 3.9regression
messages: 400521
nosy: davin, pitrou, serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: Many multiprocessing tests are silently skipped since 3.9
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

___
___
Python-bugs-

[issue45042] Many multiprocessing tests are silently skipped since 3.9

2021-08-29 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
priority: normal -> high

___
Python tracker 

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



[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset dab74d68e3f8391cb4b404b397ab80e2e0188d1f by Serhiy Storchaka in 
branch '3.9':
[3.9] bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021) 
(GH-28023)
https://github.com/python/cpython/commit/dab74d68e3f8391cb4b404b397ab80e2e0188d1f


--

___
Python tracker 

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



[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 2a8127cafe1d196f858a3ecabf5f1df3eebf9a12 by Serhiy Storchaka in 
branch 'main':
bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005)
https://github.com/python/cpython/commit/2a8127cafe1d196f858a3ecabf5f1df3eebf9a12


--

___
Python tracker 

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



[issue42278] Remove usage of tempfile.mktemp in stdlib

2021-08-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26472
pull_request: https://github.com/python/cpython/pull/28026

___
Python tracker 

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



[issue42278] Remove usage of tempfile.mktemp in stdlib

2021-08-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26471
pull_request: https://github.com/python/cpython/pull/28025

___
Python tracker 

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



[issue42278] Remove usage of tempfile.mktemp in stdlib

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset c9227df5a9d8e958a2324cf0deba8524d1ded26a by E-Paine in branch 
'main':
bpo-42278: Use tempfile.TemporaryDirectory rather than tempfile.mktemp in pydoc 
(GH-23200)
https://github.com/python/cpython/commit/c9227df5a9d8e958a2324cf0deba8524d1ded26a


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue42278] Remove usage of tempfile.mktemp in stdlib

2021-08-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 10.0 -> 11.0
pull_requests: +26470
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/28024

___
Python tracker 

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



[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +26473
pull_request: https://github.com/python/cpython/pull/28027

___
Python tracker 

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



[issue45043] Typo (change 'two' to 'three')

2021-08-29 Thread Matt Schuster


New submission from Matt Schuster :

Reference 
https://docs.python.org/3/library/time.html?highlight=time%20time#module-time

in 3.8, 3.9, 3.10, 3.11 (previous versions do not have same issue).
Specifically under time.asctime([t]) and time.ctime([secs])

Change "day field is two characters long", should be "day field is three 
characters long"

--
assignee: docs@python
components: Documentation
messages: 400525
nosy: docs@python, nofliesonyou
priority: normal
severity: normal
status: open
title: Typo (change 'two' to 'three')
versions: Python 3.10, Python 3.11, 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



[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +26474
pull_request: https://github.com/python/cpython/pull/28028

___
Python tracker 

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



[issue41620] Python Unittest does not return results object when the test is skipped

2021-08-29 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +26475
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/28030

___
Python tracker 

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



[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 330aaee39cbc556be01534b1dbf65d20f04c by Serhiy Storchaka in 
branch '3.9':
[3.9] bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005). 
(GH-28028)
https://github.com/python/cpython/commit/330aaee39cbc556be01534b1dbf65d20f04c


--

___
Python tracker 

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



[issue45044] Agreeing on error raised by large repeat value for sequences

2021-08-29 Thread Jim Fasarakis-Hilliard


New submission from Jim Fasarakis-Hilliard :

There's currently a slight disagreement between some of the sequences about 
what is raised when the value for `repeat` is too large. 

Currently, `str` and `bytes` raise an `OverflowError` while `bytearray`, 
`tuple`, `list` and `deque` raise a `MemoryError`.

To make things more confusing, if we exercise a different path not currently 
caught by the check, both `str` and `bytes` raise `MemoryError`s:

>>> b'abc' * maxsize
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: repeated bytes are too long
>>> b'a' * maxsize
Traceback (most recent call last):
  File "", line 1, in 
MemoryError

Not sure what the original rationale for having these `OverflowError`s was but, 
should we change them to `MemoryError`s?

--
messages: 400527
nosy: Jim Fasarakis-Hilliard
priority: normal
severity: normal
status: open
title: Agreeing on error raised by large repeat value for sequences
type: behavior

___
Python tracker 

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



[issue45026] More compact range iterator

2021-08-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Microbenchmarks show some speed up:

Iterating large range:

$ ./python -m timeit -s 'r = range(0, 10**20, 3**35)' 'list(r)'
Before: 2000 loops, best of 5: 199 usec per loop
After:  2000 loops, best of 5: 113 usec per loop

Unpickling:

$ ./python -m timeit -s 'from pickle import dumps, loads; p = 
dumps([iter(range(i)) for i in range(1000)])' 'loads(p)'
Before: 500 loops, best of 5: 476 usec per loop
After:  500 loops, best of 5: 363 usec per loop

I did not observe any difference in iterating small ranges and pickling.

Smaller size in memory, smaller pickles.

--

___
Python tracker 

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



[issue42278] Remove usage of tempfile.mktemp in stdlib

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 45409518c1cec5ee91d49f69a2f8eb4196d242f0 by Miss Islington (bot) 
in branch '3.9':
bpo-42278: Use tempfile.TemporaryDirectory rather than tempfile.mktemp in pydoc 
(GH-23200) (GH-28025)
https://github.com/python/cpython/commit/45409518c1cec5ee91d49f69a2f8eb4196d242f0


--

___
Python tracker 

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



[issue42278] Remove usage of tempfile.mktemp in stdlib

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 193443bb708cba3a72e99e61dd6615a94f22f9e1 by Miss Islington (bot) 
in branch '3.8':
bpo-42278: Use tempfile.TemporaryDirectory rather than tempfile.mktemp in pydoc 
(GH-23200) (GH-28026)
https://github.com/python/cpython/commit/193443bb708cba3a72e99e61dd6615a94f22f9e1


--

___
Python tracker 

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



[issue42278] Remove usage of tempfile.mktemp in stdlib

2021-08-29 Thread miss-islington


miss-islington  added the comment:


New changeset 532ebba6c8697d214a0d94514ad0b2464a59cb7c by Miss Islington (bot) 
in branch '3.10':
bpo-42278: Use tempfile.TemporaryDirectory rather than tempfile.mktemp in pydoc 
(GH-23200)
https://github.com/python/cpython/commit/532ebba6c8697d214a0d94514ad0b2464a59cb7c


--

___
Python tracker 

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



[issue42278] Remove usage of tempfile.mktemp in stdlib

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, E. Paine! ✨ 🍰 ✨

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

___
Python tracker 

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



[issue45043] Typo (change 'two' to 'three')

2021-08-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

In what case the day field is three characters long? Could you show an example?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-08-29 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 3fc5d84046ddbd66abac5b598956ea34605a4e5d by Victor Stinner in 
branch 'main':
bpo-44394: Update libexpat copy to 2.4.1 (GH-26945)
https://github.com/python/cpython/commit/3fc5d84046ddbd66abac5b598956ea34605a4e5d


--

___
Python tracker 

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



[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-08-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26478
pull_request: https://github.com/python/cpython/pull/28033

___
Python tracker 

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



[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-08-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26477
pull_request: https://github.com/python/cpython/pull/28032

___
Python tracker 

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



[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26480
pull_request: https://github.com/python/cpython/pull/28035

___
Python tracker 

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



[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 0897253f426068ea6a6fbe0ada01689af9ef1019 by Miguel Brito in 
branch 'main':
bpo-43124: Fix smtplib multiple CRLF injection (GH-25987)
https://github.com/python/cpython/commit/0897253f426068ea6a6fbe0ada01689af9ef1019


--

___
Python tracker 

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



[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26481
pull_request: https://github.com/python/cpython/pull/28036

___
Python tracker 

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



[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 7.0 -> 8.0
pull_requests: +26479
pull_request: https://github.com/python/cpython/pull/28034

___
Python tracker 

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



[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26483
pull_request: https://github.com/python/cpython/pull/28038

___
Python tracker 

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



[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26482
pull_request: https://github.com/python/cpython/pull/28037

___
Python tracker 

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



[issue45007] OpenSSL 1.1.1l is released

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset d3bdbbf9a4352a24fc2bfc7a63a024b244b61aba by Steve Dower in branch 
'main':
bpo-45007: Update to OpenSSL 1.1.1l in Windows build and CI (GH-28009)
https://github.com/python/cpython/commit/d3bdbbf9a4352a24fc2bfc7a63a024b244b61aba


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45007] OpenSSL 1.1.1l is released

2021-08-29 Thread Łukasz Langa

Change by Łukasz Langa :


--
pull_requests: +26484
pull_request: https://github.com/python/cpython/pull/28039

___
Python tracker 

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



[issue45007] OpenSSL 1.1.1l is released

2021-08-29 Thread Łukasz Langa

Change by Łukasz Langa :


--
pull_requests: +26485
pull_request: https://github.com/python/cpython/pull/28040

___
Python tracker 

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



[issue45007] OpenSSL 1.1.1l is released

2021-08-29 Thread Łukasz Langa

Change by Łukasz Langa :


--
pull_requests: +26486
pull_request: https://github.com/python/cpython/pull/28041

___
Python tracker 

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



[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset c9c2a0bc9820f93f1020f3498f6893a3544c9b76 by Miss Islington (bot) 
in branch '3.8':
bpo-44394: Update libexpat copy to 2.4.1 (GH-26945) (GH-28033)
https://github.com/python/cpython/commit/c9c2a0bc9820f93f1020f3498f6893a3544c9b76


--

___
Python tracker 

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



[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-08-29 Thread miss-islington


miss-islington  added the comment:


New changeset 270678564c16452614a8acd93763bdf64fb4d286 by Miss Islington (bot) 
in branch '3.10':
bpo-44394: Update libexpat copy to 2.4.1 (GH-26945)
https://github.com/python/cpython/commit/270678564c16452614a8acd93763bdf64fb4d286


--

___
Python tracker 

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



[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 007221a43e566db08c0c5c00756d80dfd9dccafe by Miss Islington (bot) 
in branch '3.9':
bpo-44394: Update libexpat copy to 2.4.1 (GH-26945) (GH-28032)
https://github.com/python/cpython/commit/007221a43e566db08c0c5c00756d80dfd9dccafe


--

___
Python tracker 

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



[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread miss-islington


miss-islington  added the comment:


New changeset 9e6c317ab133cd8fa48d5ecd8568314ef2e98634 by Miss Islington (bot) 
in branch '3.10':
bpo-43124: Fix smtplib multiple CRLF injection (GH-25987)
https://github.com/python/cpython/commit/9e6c317ab133cd8fa48d5ecd8568314ef2e98634


--

___
Python tracker 

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



[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 24416e419194f11b639146c0d8bed9df315aca5a by Miss Islington (bot) 
in branch '3.9':
bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) (GH-28035)
https://github.com/python/cpython/commit/24416e419194f11b639146c0d8bed9df315aca5a


--

___
Python tracker 

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



[issue45043] Typo (change 'two' to 'three')

2021-08-29 Thread Vedran Čačić

Vedran Čačić  added the comment:

Matt obviously meant the day of week, but in docs day is meant as day of month.

--
nosy: +veky

___
Python tracker 

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



[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset b93aea4c7e4553950daa5d47c3ef2dc8a9c4edff by Miss Islington (bot) 
in branch '3.8':
[3.8] bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) (GH-28036)
https://github.com/python/cpython/commit/b93aea4c7e4553950daa5d47c3ef2dc8a9c4edff


--

___
Python tracker 

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



[issue45007] OpenSSL 1.1.1l is released

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:

I backported GH-28009 to 3.8 inclusive, given that 3.7 and 3.6 currently list 
older versions than 1.1.1k.

--

___
Python tracker 

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



[issue45007] OpenSSL 1.1.1l is released

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 5720bcac7b08fe961835927933601da18b92bcd1 by Łukasz Langa in 
branch '3.9':
[3.9] bpo-45007: Update to OpenSSL 1.1.1l in Windows build and CI (GH-28009) 
(GH-28040)
https://github.com/python/cpython/commit/5720bcac7b08fe961835927933601da18b92bcd1


--

___
Python tracker 

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



[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Martin! ✨ 🍰 ✨

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



[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-08-29 Thread Łukasz Langa

Change by Łukasz Langa :


--
pull_requests: +26487
pull_request: https://github.com/python/cpython/pull/28042

___
Python tracker 

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



[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:

3.6 will need a separate backport because it's using expat 2.2.6 at the moment 
(from b2260e59ff1eaf20de4738099005ddf507b7b27d).

3.7 conflicted since it didn't include local changes to the vendored 2.2.8 that 
were introduced in 3.8+. I fixed that, the backport is up.

--

___
Python tracker 

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



[issue45044] Agreeing on error raised by large repeat value for sequences

2021-08-29 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

These should be left as they are because they indicate different problems and 
solutions.

The Overflow errors are dependent on PY_SSIZE_T_MAX.  They indicate the that 
size is to big to store in a variable.  Changing from a 32-bit build to a 
64-bit build can alleviate this problem even on a system with the same amount 
of memory.

The MemoryErrors are dependent on the size of memory.  They indicate that a 
malloc() or realloc() failed.  This problem can be solved by adding memory.

FWIW, this isn't just limited to sequence types.  Throughout the 
implementation, failed memory allocations raise a MemoryError and know variable 
size overflows raise an OverflowError (for example, int and float objects).

It would have been nice if the original exception hierarchy had a CapacityError 
that covered both MemoryError and OverflowError.  But that ship sailed long ago 
and doesn't seem to have caused problems in practice.

--
Examples:

>>> bytes(1 << 62)
Traceback (most recent call last):
  File "", line 1, in 
bytes(1 << 62)
MemoryError

>>> bytes(1 << 65)
Traceback (most recent call last):
  File "", line 1, in 
bytes(1 << 65)
OverflowError: cannot fit 'int' into an index-sized integer

>>> bytearray(1 << 62)
Traceback (most recent call last):
  File "", line 1, in 
bytearray(1 << 62)
MemoryError

>>> bytearray(1 << 65)
Traceback (most recent call last):
  File "", line 1, in 
bytearray(1 << 65)
OverflowError: cannot fit 'int' into an index-sized integer

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



[issue45045] Optimize mapping patterns of structural pattern matching

2021-08-29 Thread Dong-hee Na


New submission from Dong-hee Na :

There are optimizable points that can be achieved by removing unnecessary tuple 
transformation and using vector calling convention.

+---++--+
| Benchmark | base   | opt  |
+===++==+
| bench pattern | 482 ns | 417 ns: 1.15x faster |
+---++--+

--
components: Interpreter Core
files: bench_pattern.py
messages: 400549
nosy: corona10
priority: normal
severity: normal
status: open
title: Optimize mapping patterns of structural pattern matching
type: performance
versions: Python 3.11
Added file: https://bugs.python.org/file50240/bench_pattern.py

___
Python tracker 

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



[issue45045] Optimize mapping patterns of structural pattern matching

2021-08-29 Thread Dong-hee Na


Change by Dong-hee Na :


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

___
Python tracker 

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



[issue45045] Optimize mapping patterns of structural pattern matching

2021-08-29 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +brandtbucher

___
Python tracker 

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



[issue45043] Typo (change 'two' to 'three')

2021-08-29 Thread Matt Schuster


Matt Schuster  added the comment:

Yes, I meant the day of week. 
Ok, no problem as this is 'date of month'.
Closing as 'not a bug'. Thanks!!

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



[issue45007] OpenSSL 1.1.1l is released

2021-08-29 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 803c60789b5b6566cb0b71f6b83464e61731d09b by Łukasz Langa in 
branch '3.8':
[3.8] bpo-45007: Update to OpenSSL 1.1.1l in Windows build and CI (GH-28009) 
(GH-28041)
https://github.com/python/cpython/commit/803c60789b5b6566cb0b71f6b83464e61731d09b


--

___
Python tracker 

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



[issue45007] OpenSSL 1.1.1l is released

2021-08-29 Thread Łukasz Langa

Change by Łukasz Langa :


--
pull_requests: +26489
pull_request: https://github.com/python/cpython/pull/28044

___
Python tracker 

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



[issue45046] Add support of context managers in unittest

2021-08-29 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

Methods setUp() and tearDown() of TestClass allow to add some code executed 
before and after every test method. In many cases addCleanup() is more 
convenient than tearDown() -- you do not need to keep data for cleaning up as 
TestCase attributes, addCleanup() doe it for you. You should not worry about 
partial cleaning up if setUp() fails in the middle. You can also use 
addCleanup() in test methods, and corresponding resources will be cleaned only 
for these tests which created them.

resource = open_resource()
self.addCleanup(close_resource, resource)
self.resource = resource  # optional, if you need access to it in test 
methods

Some resources are managed by context managers. It is so easy to create a 
context manager with the contextlib.contextmanager decorator, that its 
__enter__ and __exit__ methods can be only way to create and destroy resource. 
So the code looks like the following:

cm = my_context_manager()
cm.__enter__()
# or self.resource = cm.__enter__()
self.addCleanup(cm.__exit__, None, None, None)

It looks not so nice. You need to use dunder methods, and pass thee Nones as 
arguments for __exit__.

I propose to add helpers: methods enterContext(), enterClassContext(), 
enterAsyncContext() and function enterModuleContext() which wraps 
addCleanup/addClassCleanup/addAsyncCleanup/addModuleCleanup correspondently and 
allow to get rid of the boilerplate code. Example:

self.enterContext(my_context_manager())
# or self.resource = self.enterContext(my_context_manager())

It solves the same problem as issue15351, but from different direction, so I 
opened a separate issue.

--
components: Library (Lib)
messages: 400552
nosy: chris.jerdonek, ezio.melotti, michael.foord, r.david.murray, rbcollins, 
serhiy.storchaka
priority: normal
severity: normal
status: open
title: Add support of context managers in unittest
type: enhancement
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



[issue40935] Links to Python3 docs for some libs return 404

2021-08-29 Thread Ned Deily


Change by Ned Deily :


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



[issue45046] Add support of context managers in unittest

2021-08-29 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue15351] Add to unittest.TestCase support for using context managers

2021-08-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Opened issue45046 for completely different approach to this problem.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue45047] Update demo files

2021-08-29 Thread Ayush Parikh


Change by Ayush Parikh :


--
nosy: Ayushparikh-code
priority: normal
pull_requests: 26491
severity: normal
status: open
title: Update demo files
type: enhancement

___
Python tracker 

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



[issue45047] Update demo files

2021-08-29 Thread Ayush Parikh


Change by Ayush Parikh :


--
pull_requests:  -26491

___
Python tracker 

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



[issue45047] Update demo files

2021-08-29 Thread Ayush Parikh


Change by Ayush Parikh :


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

___
Python tracker 

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



[issue20803] doc: clarify that struct.pack_into writes 0x00 for pad bytes

2021-08-29 Thread Diana


Diana  added the comment:

I'm working on this

--
nosy: +DonnaDia

___
Python tracker 

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



[issue20803] doc: clarify that struct.pack_into writes 0x00 for pad bytes

2021-08-29 Thread Diana


Change by Diana :


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

___
Python tracker 

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



[issue33262] Deprecate shlex.split(None) to read from stdin.

2021-08-29 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Can be closed as fixed (or perhaps renamed and kept open to track eventual 
raising of error in the future?)

--
nosy: +andrei.avk

___
Python tracker 

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



[issue45047] Update demo files

2021-08-29 Thread Irit Katriel


New submission from Irit Katriel :

Please explain the issue - in what way should the demo files be updated?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue45047] Update demo files

2021-08-29 Thread Eric V. Smith


Eric V. Smith  added the comment:

It looks like they want to add a RatinMaze.py demo program, which solves a maze.

--
nosy: +eric.smith

___
Python tracker 

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



[issue41046] unittest: make skipTest a classmethod

2021-08-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Since you always can raise a SkipTest in setUpClass() and setUpModule() and 
changing skipTest() can break existing code (for example the code which calls 
cls.skipTest(None, reason) for some strange reasons), I think that it is not 
worth to change it.

--
nosy: +serhiy.storchaka
status: open -> pending

___
Python tracker 

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



[issue34561] Replace list sorting merge_collapse()?

2021-08-29 Thread Laurent Lyaudet

Laurent Lyaudet  added the comment:

My benchmarks could be improved but however I found that Shivers' sort
and adaptive Shivers' sort (aka Jugé's sort) performs better than
Tim's sort.

it can be done easily by switching the
main natural merge strategy like I did here :
https://github.com/LLyaudet/TSODLULS/commit/2968c4b4ca58ae794157dc9636ed87017e5f7a17
The relevant code is not very long :
/**
 * This strategy is from ShiversSort:
 * see the research report by Olin Shivers, Georgia Institute of
Technology, 2002.
 * It uses bitwise tricks to check condition on floor of logarithms in
base 2 of runs lengths.
 * When I benchmark it, it is slightly faster than Tim's sort strategy.
 */
#define TSODLULS_natural_merge_main_strategy__Shivers_sort \
while(merge_state.i_run_instances_count > 1){\
  size_t i_merge_at = merge_state.i_run_instances_count - 2;\
  size_t i_order_of_magnitude =
merge_state.arr_run_instances[i_merge_at + 1].i_length;\
  if(i_order_of_magnitude < ((~i_order_of_magnitude) &
merge_state.arr_run_instances[i_merge_at].i_length) ){\
break;\
  }\
  i_compare_result = TSODLULS_MERGE_TWO_RUNS(&merge_state, i_merge_at);\
  if(i_compare_result != 0){\
goto clean_and_return_error;\
  }\
}\



/**
 * This strategy is from AdaptiveShiversSort:
 * see the articles by Vincent Jugé, for example 1024 Bulletin de la
SIF, avril 2020, in French,
 * or the preprint on arXiv or SODA 2020 proceedings.
 * It uses bitwise tricks to check condition on floor of logarithms in
base 2 of runs lengths.
 * When I benchmark it, it is slightly faster than Tim's sort strategy.
 * Despite its ressemblance with Shivers's sort,
 * the distinct properties of this strategy make that JugéSort would
probably be a better name than AdaptiveShiversSort,
 * or an even better name for the whole algorithm should be
TimShiversJugéSort and I must have missed many names ;)
 * With AdaptiveShiversSort we avoid 'é' and diacritics in function names ;P
 */
#define TSODLULS_natural_merge_main_strategy__adaptive_Shivers_sort \
while(merge_state.i_run_instances_count > 2){\
  size_t i_merge_at = merge_state.i_run_instances_count - 3;\
  size_t i_order_of_magnitude =
merge_state.arr_run_instances[i_merge_at + 1].i_length |
merge_state.arr_run_instances[i_merge_at + 2].i_length;\
  if(i_order_of_magnitude < ((~i_order_of_magnitude) &
merge_state.arr_run_instances[i_merge_at].i_length) ){\
break;\
  }\
  i_compare_result = TSODLULS_MERGE_TWO_RUNS(&merge_state, i_merge_at);\
  if(i_compare_result != 0){\
goto clean_and_return_error;\
  }\
}\

I will try to provide a patch before the end of the week.

--
nosy: +LLyaudet

___
Python tracker 

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



[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2021-08-29 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests:  -14706

___
Python tracker 

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



[issue34561] Replace list sorting merge_collapse()?

2021-08-29 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
nosy: +erlendaasland

___
Python tracker 

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



[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2021-08-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

See issue41620 for run() returning None.

--
dependencies: +Python Unittest does not return results object when the test is 
skipped
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue45048] subprocess.run(capture_output=Bool) does the opposite of expected

2021-08-29 Thread DragonEggBedrockBreaking


New submission from DragonEggBedrockBreaking :

If you run subprocess.run(capture_output=True), it doesn't show output, but if 
you run subprocess.run(capture_output=False) (or if you just run 
subprocess.run() since False is default), it does show output. In the example 
in the docs, it shows this in the examples section:

```py
>>> subprocess.run(["ls", "-l"])  # doesn't capture output
CompletedProcess(args=['ls', '-l'], returncode=0)

>>> subprocess.run(["ls", "-l", "/dev/null"], capture_output=True)
CompletedProcess(args=['ls', '-l', '/dev/null'], returncode=0,
stdout=b'crw-rw-rw- 1 root root 1, 3 Jan 23 16:23 /dev/null\n', stderr=b'')
```

This clearly shows capture_output showing output if true but not if false. Test 
code:

```py
import subprocess
subprocess.run("dir", shell=True, capture_output=False)
subprocess.run("dir", shell=True, capture_output=False)
```

Other notes: for some reason I get an error if I don't add shell=True, so maybe 
that contributes? I am on Windows 10 if that matters.

--
components: Library (Lib)
messages: 400561
nosy: DragonEggBedrockBreaking
priority: normal
severity: normal
status: open
title: subprocess.run(capture_output=Bool) does the opposite of expected
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



[issue45048] subprocess.run(capture_output=Bool) does the opposite of expected

2021-08-29 Thread Vedran Čačić

Vedran Čačić  added the comment:

I think it is exactly what "capture" means: "not allow it to escape" (to the 
console). Maybe you should read the documentation?

--
nosy: +veky

___
Python tracker 

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



[issue17120] Mishandled _POSIX_C_SOURCE and _XOPEN_SOURCE in pyconfig.h

2021-08-29 Thread RAW


RAW  added the comment:

Please look at configure.ac which is used to create configure which will 
generate pyconfig.h from pyconfig.h.in according to what features are detected 
in the system.

--
status: pending -> open

___
Python tracker 

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



[issue17120] Mishandled _POSIX_C_SOURCE and _XOPEN_SOURCE in pyconfig.h

2021-08-29 Thread RAW


Change by RAW :


--
resolution: out of date -> 

___
Python tracker 

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



[issue45048] subprocess.run(capture_output=Bool) does the opposite of expected

2021-08-29 Thread DragonEggBedrockBreaking


DragonEggBedrockBreaking  added the comment:

I read the documentation, and I saw in the example that when capture_output was 
true, command output was printed, otherwise it isn't printed. my observations 
directly contradict the examples given in the docs, as stated in my original 
issue.

--

___
Python tracker 

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



[issue45048] subprocess.run(capture_output=Bool) does the opposite of expected

2021-08-29 Thread Eryk Sun


Eryk Sun  added the comment:

The documentation states that "[i]f capture_output is true, stdout and stderr 
will be captured". This implies a container of some kind. So look to what 
subprocess.run() returns: "[w]ait for command to complete, then return a 
CompletedProcess instance". The `stdout` attribute of a CompletedProcess is the 
"[c]aptured stdout from the child process". 

For example:

>>> p = subprocess.run("dir", shell=True, capture_output=True)
>>> p.stdout[:18]
b' Volume in drive C'

If the output is not captured, the child process inherits the standard 
output/error files of the parent process, which is typically a console or 
terminal.

FYI, the `dir` command is internal to the CMD shell in Windows, so it only 
works with shell=True. There is no "dir.exe" executable that can be executed 
with shell=False.

--
nosy: +eryksun

___
Python tracker 

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



[issue34561] Replace list sorting merge_collapse()?

2021-08-29 Thread Tim Peters


Tim Peters  added the comment:

Added new runstack.py.

New `shivers2()` adds the implementation of adaptive ShiversSort from Vincent's 
later paper. While the code is simpler, it appears to behave identically.

New `shivers3()` adds, from the same paper, the new "length-adaptive 
ShiversSort". Wow! This is the only thing we've seen yet that's in the same 
universe as powersort. In fact, it usually does a tiny bit better (on the 
randomized cases). But it's not obvious how to rework its "if" test to be truly 
efficient (as-is, it needs two divisions, two calls to `log2()`, and two calls 
to `floor()`).

Worth some thought, though. From the results here, length-adaptive ShiversSort 
is a bigger improvement over (plain-old) adaptive ShiversSort than the latter 
is over timsort.

--
Added file: https://bugs.python.org/file50241/runstack.py

___
Python tracker 

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



[issue45045] Optimize mapping patterns of structural pattern matching

2021-08-29 Thread Dong-hee Na


Dong-hee Na  added the comment:

With Ken Jin's suggestion

+---++--+
| Benchmark | base   | PR 28043   |
+===++==+
| bench pattern | 482 ns | 373 ns: 1.29x faster |
+---++--+

--
nosy: +kj

___
Python tracker 

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



[issue45045] Optimize mapping patterns of structural pattern matching

2021-08-29 Thread Tim Peters


Tim Peters  added the comment:

And another runstack.py adds `shivers4()`, which reworks `shivers3()` 
(length-adaptive ShiversSort) so that division, log2(), and floor() aren't used 
anymore. It does need a loop, though, which needs to go around a number of 
times `k` such that k is the smallest integer for which

2**k * max(run_length_1, run_length_2, run_length3) >=
1 + len(original_list)

--
nosy: +tim.peters
Added file: https://bugs.python.org/file50242/runstack.py

___
Python tracker 

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



[issue45045] Optimize mapping patterns of structural pattern matching

2021-08-29 Thread Tim Peters


Change by Tim Peters :


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

___
Python tracker 

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



[issue45045] Optimize mapping patterns of structural pattern matching

2021-08-29 Thread Tim Peters


Change by Tim Peters :


Removed file: https://bugs.python.org/file50242/runstack.py

___
Python tracker 

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



[issue34561] Replace list sorting merge_collapse()?

2021-08-29 Thread Tim Peters


Tim Peters  added the comment:

And another runstack.py adds `shivers4()`, which reworks `shivers3()` 
(length-adaptive ShiversSort) so that division, log2(), and floor() aren't used 
anymore. It does need a loop, though, which needs to go around a number of 
times `k` such that k is the smallest integer for which

2**k * max(run_length_1, run_length_2, run_length3) >=
1 + len(original_list)

--
Added file: https://bugs.python.org/file50243/runstack.py

___
Python tracker 

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



[issue45021] Race condition in thread.py

2021-08-29 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
nosy: +davin

___
Python tracker 

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



[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-08-29 Thread Mark Lierley

Mark Lierley  added the comment:

I am also experiencing this issue.

I have an M1 Macbook Air running MaOS Monterey Version 12.0 Beta (21A5304g) 
with a fresh install of Python 3.9.6. 

When attempting to save or open anything from either the editor or console 
window I get the following error message "The Save file operation failed. The 
save file operation failed to connect to the open and save panel service.”

I have granted the IDEL full drive access which hasn't resolved the issue. The 
dialog prevents any savings from occurring making the IDEL useless. 

I have submitted this issue through Apple's Feedback tool as well.

--
nosy: +mlierley
Added file: https://bugs.python.org/file50244/Screen Shot 2021-08-29 at 7.44.33 
PM.png

___
Python tracker 

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



[issue36521] Consider removing docstrings from co_consts in code objects

2021-08-29 Thread Inada Naoki


Inada Naoki  added the comment:

> I think that would require a change in the signature of PyFunction_New.

I don't think so. For example, func_annotation don't require changing 
PyFunction_New().

```
case TARGET(MAKE_FUNCTION): {
PyObject *codeobj = POP();
PyFunctionObject *func = (PyFunctionObject *)
PyFunction_New(codeobj, GLOBALS());
(snip)
if (oparg & 0x04) {
assert(PyTuple_CheckExact(TOP()));
func->func_annotations = POP();
}
```

--

___
Python tracker 

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



[issue24444] In argparse empty choices cannot be printed in the help

2021-08-29 Thread Andrei Kulakov


Change by Andrei Kulakov :


--
keywords: +patch
nosy: +andrei.avk
nosy_count: 2.0 -> 3.0
pull_requests: +26494
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/28050

___
Python tracker 

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



[issue45047] Update demo files

2021-08-29 Thread Ayush Parikh


Ayush Parikh  added the comment:

yes eric you're right as that demo folder already consists of some common
software problems like n-queens ,etc so i also want to ratinmaze.py demo
program their !

On Mon, Aug 30, 2021 at 1:50 AM Eric V. Smith 
wrote:

>
> Eric V. Smith  added the comment:
>
> It looks like they want to add a RatinMaze.py demo program, which solves a
> maze.
>
> --
> nosy: +eric.smith
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue35741] unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support") doesn't work

2021-08-29 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +lemburg, p-ganssle

___
Python tracker 

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



[issue25894] unittest subTest failure causes result to be omitted from listing

2021-08-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Were not subtests proposed as a more flexible replacement of parametrized 
tests? I think that every subtest should be counted as a separate test case: in 
verbose mode it should output a separate line and in non-verbose mode it should 
output a separate character.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue45047] Update demo files

2021-08-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

This submission is somewhat similar to #45037 more promising.  It at least 
needs more explanation as to what it contributes that is not already present.  
Plus see review comment.

(This part of my previous answer still applies: "When responding by email, 
please delete the text you are responding to.")

We are not really looking for new examples for Tools/demo and there is no 
policy I know of for adding anything.  The files were, at least, reviewed and 
updated a couple of years ago in #38539, where Raymond described it as "a 
quaint museum to the past."  He also noted that beginners seldom see it.

You are likely to get a better response if you write a bugfix patch, or an 
enhancement that a core developer has expressed an interest in.  You should 
also know that comments like "can u plz review it so that it can be merged !" 
produce a negative impression, at least on me.

--
nosy: +rhettinger, terry.reedy

___
Python tracker 

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



[issue45007] OpenSSL 1.1.1l is released

2021-08-29 Thread Ned Deily


Change by Ned Deily :


--
pull_requests: +26495
pull_request: https://github.com/python/cpython/pull/28051

___
Python tracker 

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



[issue44689] MacOS: Python binaries not portable between Catalina and Big Sur

2021-08-29 Thread Ned Deily


Ned Deily  added the comment:


New changeset 71853a73024a98aa38a3c0444fe364dbd9709134 by Tobias Bergkvist in 
branch 'main':
bpo-44689: ctypes.util.find_library() now finds macOS 11+ system libraries when 
built on older macOS systems (#27251)
https://github.com/python/cpython/commit/71853a73024a98aa38a3c0444fe364dbd9709134


--

___
Python tracker 

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



[issue44689] MacOS: Python binaries not portable between Catalina and Big Sur

2021-08-29 Thread miss-islington


Change by miss-islington :


--
keywords: +patch
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +26496
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/28052

___
Python tracker 

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



[issue44689] MacOS: Python binaries not portable between Catalina and Big Sur

2021-08-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26497
pull_request: https://github.com/python/cpython/pull/28053

___
Python tracker 

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



  1   2   >