[issue41672] imaplib: wrong return type documented

2020-09-05 Thread Dong-hee Na


Dong-hee Na  added the comment:

@norbertcyran

Do you want to sand a patch that it update string to byte for this 
documentation?

--
keywords: +newcomer friendly

___
Python tracker 

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



[issue41731] test_cmd_line_script fails with verbosity level more than 1

2020-09-05 Thread Karthikeyan Singaravelan


New submission from Karthikeyan Singaravelan :

When verbosity level is more than 1 the test tries to print the 
script_exec_args passed to script. It fails when the tuple has more than 1 
elements and is used in formatting with %r. The two tests fail as below : 

./python -m test test_cmd_line_script -vv

==
ERROR: test_package_error (test.test_cmd_line_script.CmdLineTest)
--
Traceback (most recent call last):
  File "/root/cpython/Lib/test/test_cmd_line_script.py", line 368, in 
test_package_error
self._check_import_error(["-m", "test_pkg"], msg, cwd=script_dir)
  File "/root/cpython/Lib/test/test_cmd_line_script.py", line 148, in 
_check_import_error
print('Output from test script %r:' % script_exec_args)
TypeError: not all arguments converted during string formatting

==
ERROR: test_package_recursion (test.test_cmd_line_script.CmdLineTest)
--
Traceback (most recent call last):
  File "/root/cpython/Lib/test/test_cmd_line_script.py", line 379, in 
test_package_recursion
self._check_import_error(["-m", "test_pkg"], msg, cwd=script_dir)
  File "/root/cpython/Lib/test/test_cmd_line_script.py", line 148, in 
_check_import_error
print('Output from test script %r:' % script_exec_args)
TypeError: not all arguments converted during string formatting

--

Ran 44 tests in 4.936s

FAILED (errors=2)
test test_cmd_line_script failed
test_cmd_line_script failed

== Tests result: FAILURE ==

1 test failed:
test_cmd_line_script

Total duration: 5.0 sec
Tests result: FAILURE

--
components: Tests
messages: 376457
nosy: xtreak
priority: normal
severity: normal
status: open
title: test_cmd_line_script fails with verbosity level more than 1
type: behavior
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



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-05 Thread wyz23x2


New submission from wyz23x2 :

The tkinter.tix module was deprecated since Python 3.6, but nether 
DeprecationWarning nor PendingDeprecationWarning is warned. It should show a 
message and removal might be scheduled for 3.11/3.12.

--
components: Tkinter
messages: 376455
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Show deprecation warnings for tkinter.tix
type: behavior
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



[issue41723] doc: issue in a sentence in py_compile

2020-09-05 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset b6d2acb1b1a21f857c17cfb6e0e97a7b8bdc0171 by Benjamin Peterson in 
branch '3.9':
[3.9] closes bpo-41723: Fix an error in the py_compile documentation. (GH-22118)
https://github.com/python/cpython/commit/b6d2acb1b1a21f857c17cfb6e0e97a7b8bdc0171


--

___
Python tracker 

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



[issue41723] doc: issue in a sentence in py_compile

2020-09-05 Thread miss-islington


miss-islington  added the comment:


New changeset 4e581d64b8aff3e2eda99b12f080c877bb78dfca by Miss Islington (bot) 
in branch '3.8':
closes bpo-41723: Fix an error in the py_compile documentation. (GH-22110)
https://github.com/python/cpython/commit/4e581d64b8aff3e2eda99b12f080c877bb78dfca


--

___
Python tracker 

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



[issue41723] doc: issue in a sentence in py_compile

2020-09-05 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
pull_requests: +21202
pull_request: https://github.com/python/cpython/pull/22118

___
Python tracker 

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



[issue41723] doc: issue in a sentence in py_compile

2020-09-05 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue41723] doc: issue in a sentence in py_compile

2020-09-05 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 5371a464ce88ffc88f3bb95cfd86f355b7d02953 by Zackery Spytz in 
branch 'master':
closes bpo-41723: Fix an error in the py_compile documentation. (GH-22110)
https://github.com/python/cpython/commit/5371a464ce88ffc88f3bb95cfd86f355b7d02953


--
nosy: +benjamin.peterson
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



[issue41729] test_winconsoleio fails and hangs on Windows

2020-09-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Running test -v test_winconsoleio showed that the hang is in test_cntl_z.

With that commented out, I get failures in test_input (1st assert) and 
test_partial_reads and some bizarre console behavior.

F:\dev\3x>python -m test -v test_winconsoleio
Running Debug|Win32 interpreter...
== CPython 3.10.0a0 (heads/master:1264d0465a, Sep 5 2020, 18:53:05) [MSC v.1900 
32 bit (Intel)]
== Windows-10-10.0.19041-SP0 little-endian
== cwd: F:\dev\3x\build\test_python_7960æ
== CPU count: 12
== encodings: locale=cp1252, FS=utf-8
0:00:00 Run tests sequentially
0:00:00 [1/1] test_winconsoleio
test_abc (test.test_winconsoleio.WindowsConsoleIOTests) ... ok
test_conin_conout_names (test.test_winconsoleio.WindowsConsoleIOTests) ... ok
test_conout_path (test.test_winconsoleio.WindowsConsoleIOTests) ... ok
test_input (test.test_winconsoleio.WindowsConsoleIOTests) ... 
aabbcc112233
FAIL
test_input_nonbmp (test.test_winconsoleio.WindowsConsoleIOTests) ... skipped 
'Handling Non-BMP characters is broken'
test_open_fd (test.test_winconsoleio.WindowsConsoleIOTests) ... ok
test_open_name (test.test_winconsoleio.WindowsConsoleIOTests) ... ok
test_partial_reads (test.test_winconsoleio.WindowsConsoleIOTests) ...
FAIL
test_partial_surrogate_reads (test.test_winconsoleio.WindowsConsoleIOTests) ... 
skipped 'Handling Non-BMP characters is broken'
test_write_empty_data (test.test_winconsoleio.WindowsConsoleIOTests) ... ok

==
FAIL: test_input (test.test_winconsoleio.WindowsConsoleIOTests)
--
Traceback (most recent call last):
  File "f:\dev\3x\lib\test\test_winconsoleio.py", line 142, in test_input
self.assertStdinRoundTrip('abc123')
  File "f:\dev\3x\lib\test\test_winconsoleio.py", line 138, in 
assertStdinRoundTrip
self.assertEqual(actual, text)
AssertionError: 'aabbcc112233' 
!= 'abc123'
- aabbcc112233
+ abc123


==
FAIL: test_partial_reads (test.test_winconsoleio.WindowsConsoleIOTests)
--
Traceback (most recent call last):
  File "f:\dev\3x\lib\test\test_winconsoleio.py", line 168, in 
test_partial_reads
self.assertEqual(actual, expected, 'stdin.read({})'.format(read_count))
AssertionError: b'\r\n' != 
b'\xcf\xbc\xd1\x9e\xd0\xa2\xce\xbb\xd0\xa4\xd0\x99\r\n' : stdin.read(1)

--

Ran 10 tests in 0.019s

FAILED (failures=2, skipped=2)
test test_winconsoleio failed
test_winconsoleio failed

== Tests result: FAILURE ==

1 test failed:
test_winconsoleio

Total duration: 266 ms
Tests result: FAILURE

F:\dev\3x>
F:\dev\3x>
F:\dev\3x>
F:\dev\3x>
F:\dev\3x>
F:\dev\3x>
F:\dev\3x>
F:\dev\3x>
F:\dev\3x>ϼϼўўТТλλФФЙЙ
'ϼϼўўТТλλФФЙЙ' is not 
recognized as an internal or external command,
operable program or batch file.

F:\dev\3x>
F:\dev\3x>
F:\dev\3x>
F:\dev\3x>
F:\dev\3x>
F:\dev\3x>
F:\dev\3x>
F:\dev\3x>
F:\dev\3x>
F:\dev\3x>

Even though behavior is the same in 3 different workspaces, and the file shows 
no obvious sign of corruption in Notepad++, I deleted it anyway (in master) 
with Windows Explorer 'delete' (not git delete)  and then reverted the change.  
Still, someone should verify that this is not just my machine.

Note that I just got the 2008 updates (last Tuesday?) to Win 10, 2004, some of 
which were apparently optional at the moment.

--

___
Python tracker 

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



[issue41728] Debug logging when adding a TarFile object

2020-09-05 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +ethan.furman, lars.gustaebel

___
Python tracker 

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



[issue38585] defusedexpat not supported past python 3.3/3.4

2020-09-05 Thread Mariatta


Mariatta  added the comment:

Thanks for the report and thanks Zackery for the PR.

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



[issue38325] [Windows] test_winconsoleio failures

2020-09-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

test_consoleio now fails and hangs for me.  Issue 41729.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue41729] test_winconsoleio fails and hangs on Windows

2020-09-05 Thread Terry J. Reedy

New submission from Terry J. Reedy :

f:\dev\3x>python -m test test.test_winconsoleio
Running Debug|Win32 interpreter...
0:00:00 Run tests sequentially
0:00:00 [1/1] test.test_winconsoleio
ÄÄ^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z









It quickly fails, prints seems garbage and several blanks lines, and hangs.  
Ditto for 3.9 and 3.8.  When I ran entire suite, it was still hanging after 50 
minutes.

Victor's patch for issue 38325 skipped the tests that failed on Windows, but 
now the overall test is worse.  One must interrupt with ^C to get the test 
summary for the suite.

--
components: Tests, Windows
messages: 376449
nosy: eryksun, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: test_winconsoleio fails and hangs on Windows
type: crash
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



[issue41728] Debug logging when adding a TarFile object

2020-09-05 Thread Elliott Balsley


Change by Elliott Balsley :


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

___
Python tracker 

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



[issue41728] Debug logging when adding a TarFile object

2020-09-05 Thread Elliott Balsley


Change by Elliott Balsley :


--
title: Add logfile() when debug is True -> Debug logging when adding a TarFile 
object

___
Python tracker 

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



[issue41728] Add logfile() when debug is True

2020-09-05 Thread Elliott Balsley


New submission from Elliott Balsley :

When you add a TarInfo object created directly in memory, for example from a 
byte string, there is no debug logging available.  `tarfile.add()` logs the 
name of each file added when debug level is 1 or higher.  I think it would be a 
good idea to do the same for `tarfile.addfile()`, perhaps with a higher debug 
level.  It looks like debug=3 is currently unused, even though it's defined in 
the documentation.

--
components: Library (Lib)
messages: 376448
nosy: ebalsley
priority: normal
severity: normal
status: open
title: Add logfile() when debug is True
type: enhancement
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



[issue41724] SQLite returns "str" instead of "datetime.datetime" with aggregate queries.

2020-09-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

PARSE_DECLTYPES does not work for generated fields. sqlite3_column_decltype() 
just returns NULL.

PARSE_COLNAMES works only when the column name contains the column type in 
square brackets. For generated fields sqlite3_column_name() returns the 
expression used to evaluate it, e.g. "max(d)". It does not contain needed 
information.

So we cannot do anything with this because SQLite just does not provide 
information needed to determine the type.

It would be worth to document this limitation.

--
nosy: +berker.peksag, serhiy.storchaka

___
Python tracker 

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



[issue41724] SQLite returns "str" instead of "datetime.datetime" with aggregate queries.

2020-09-05 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

Here's a reproducer.

--
nosy: +Dennis Sweeney
Added file: https://bugs.python.org/file49447/reproducer.py

___
Python tracker 

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



[issue40318] Migrate to SQLite3 trace v2 API

2020-09-05 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



[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2020-09-05 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

The SQLite docs clearly states that using sqlite3_enable_shared_cache() is not 
recommended:

"Shared cache is disabled by default. It is recommended that it stay that way. 
In other words, do not use this routine. This interface continues to be 
provided for historical compatibility, but its use is discouraged. Any use of 
shared cache is discouraged."

If sqlite3.enable_shared_cache is not even documented, perhaps we could just 
deprecate and remove it?

--

___
Python tracker 

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



[issue40318] Migrate to SQLite3 trace v2 API

2020-09-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 7f331c898a36d937c66ba93f86d2a445c96d382e by Erlend Egeberg 
Aasland in branch 'master':
bpo-40318: Migrate to SQLite3 trace v2 API (GH-19581)
https://github.com/python/cpython/commit/7f331c898a36d937c66ba93f86d2a445c96d382e


--
nosy: +pablogsal

___
Python tracker 

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



[issue30646] SQLite: sqlite3_enable_shared_cache() is deprecated

2020-09-05 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

A little bit too fast with my previous comment; just disregard that suggestion.

Maybe we should just disable the sqlite3.enable_shared_cache() method if we are 
running on macOS, since it will only result in a misuse error anyway.

--

___
Python tracker 

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



[issue38240] assertCountEqual is horribly misleading, sounds like only counts are being compared

2020-09-05 Thread Vitaly Kruglikov


Vitaly Kruglikov  added the comment:

Well, when you do tab-completion in unit tests on `self.` and
`assertCountEqual` pops up, it sure sounds a lot like it's going to compare
just the count of the items. The point is that the name of the function is
not self-documenting, hence "misleading".

A better name could be `assertItemsEqual` or `assertCountAndItemsEqual`

On Sat, Sep 5, 2020 at 1:02 PM Raymond Hettinger 
wrote:

>
> Raymond Hettinger  added the comment:
>
> This should stay closed as a duplicate.
>
> If you must, reopen of the original 27071, but it was closed for a
> reason.  The majority of respondents voted for the status quo.  Each
> alternative that was considered had its own share of problems.
>
> BTW, it is hyperbolic to call the name "horribly misleading".  The method
> literally runs Counter and checks for equality.  The docstring is clear
> about this:
>
> def assertCountEqual(self, first, second, msg=None):
> """Asserts that two iterables have the same elements, the same
> number of
> times, without regard to order.
>
> self.assertEqual(Counter(list(first)),
>  Counter(list(second)))
>
>  Example:
> - [0, 1, 1] and [1, 0, 1] compare equal.
> - [0, 0, 1] and [0, 1] compare unequal.
>
> """
>
> --
> nosy: +rhettinger
> status: open -> closed
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue30646] SQLite: sqlite3_enable_shared_cache() is deprecated

2020-09-05 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

>From the SQLite docs https://sqlite.org/c3ref/enable_shared_cache.html:

"Note: This method is disabled on MacOS X 10.7 and iOS version 5.0 and will 
always return SQLITE_MISUSE. On those systems, shared cache mode should be 
enabled per-database connection via sqlite3_open_v2() with 
SQLITE_OPEN_SHAREDCACHE."

We should make sure sqlite3_open_v2() calls use SQLITE_OPEN_SHAREDCACHE if we 
are running on macOS. This should be a pretty straight-forward fix.

--
nosy: +erlendaasland

___
Python tracker 

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



[issue40318] Migrate to SQLite3 trace v2 API

2020-09-05 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue38240] assertCountEqual is horribly misleading, sounds like only counts are being compared

2020-09-05 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

This should stay closed as a duplicate.

If you must, reopen of the original 27071, but it was closed for a reason.  The 
majority of respondents voted for the status quo.  Each alternative that was 
considered had its own share of problems.

BTW, it is hyperbolic to call the name "horribly misleading".  The method 
literally runs Counter and checks for equality.  The docstring is clear about 
this:

def assertCountEqual(self, first, second, msg=None):
"""Asserts that two iterables have the same elements, the same number of
times, without regard to order.

self.assertEqual(Counter(list(first)),
 Counter(list(second)))

 Example:
- [0, 1, 1] and [1, 0, 1] compare equal.
- [0, 0, 1] and [0, 1] compare unequal.

"""

--
nosy: +rhettinger
status: open -> closed

___
Python tracker 

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



[issue33802] Regression in logging configuration

2020-09-05 Thread Jakub Kulik


Change by Jakub Kulik :


--
nosy: +kulikjak
nosy_count: 7.0 -> 8.0
pull_requests: +21199
pull_request: https://github.com/python/cpython/pull/22040

___
Python tracker 

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



[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2020-09-05 Thread Jakub Kulik


Change by Jakub Kulik :


--
nosy: +kulikjak
nosy_count: 7.0 -> 8.0
pull_requests: +21198
pull_request: https://github.com/python/cpython/pull/22040

___
Python tracker 

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



[issue6721] Locks in the standard library should be sanitized on fork

2020-09-05 Thread Jakub Kulik


Change by Jakub Kulik :


--
nosy: +kulikjak
nosy_count: 27.0 -> 28.0
pull_requests: +21197
pull_request: https://github.com/python/cpython/pull/22040

___
Python tracker 

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



[issue41687] sendfile implementation is not compatible with Solaris

2020-09-05 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset 8c0be6fd9101746235b63ddfb84106d1e9ca286b by Jakub Kulík in branch 
'master':
bpo-41687: Fix sendfile implementation to work with Solaris (#22040)
https://github.com/python/cpython/commit/8c0be6fd9101746235b63ddfb84106d1e9ca286b


--
nosy: +yselivanov

___
Python tracker 

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



[issue41687] sendfile implementation is not compatible with Solaris

2020-09-05 Thread Yury Selivanov


Change by Yury Selivanov :


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

___
Python tracker 

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



[issue38240] assertCountEqual is horribly misleading, sounds like only counts are being compared

2020-09-05 Thread Vitaly Kruglikov


Vitaly Kruglikov  added the comment:

Reopened per request from ammar2

--

___
Python tracker 

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



[issue38240] assertCountEqual is horribly misleading, sounds like only counts are being compared

2020-09-05 Thread Vitaly Kruglikov


Vitaly Kruglikov  added the comment:

Re-opened, thanks!

On Fri, Sep 20, 2019 at 3:01 PM Ammar Askar  wrote:

>
> Ammar Askar  added the comment:
>
> Hey Vitaly, not sure if you're the author of the original bug here:
> https://bugs.python.org/issue27071
>
> Could you re-open that so the discussion is kept in one place.
>
> --
> nosy: +ammar2
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue38240] assertCountEqual is horribly misleading, sounds like only counts are being compared

2020-09-05 Thread Vitaly Kruglikov


Change by Vitaly Kruglikov :


--
status: closed -> open

___
Python tracker 

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



[issue41727] Confusing presentation for configuration settings references

2020-09-05 Thread MegMM


New submission from MegMM :

Priority: LOW
Keywords: Documentation, Presentation of configuration settings

Most of the documentation is excellent, but I'm running into a confusing method 
of referring to configuration settings in files. For instance on 
https://docs.python.org/3/library/venv.html, there is a section that reads:

The created pyvenv.cfg file also includes the include-system-site-packages key, 
set to true if venv is run with the --system-site-packages option, false 
otherwise.


Nothing about it is wrong but the presentation of the setting and variable 
should written as shown in the file instead of written out: 
"include-system-site-packages=True" 

Also, I see this in a lot of the documentation, which makes it hard to check if 
file settings match up with documentation as expected or not.

--
assignee: docs@python
components: Documentation
files: SUGGESTED CHANGE-- venv.html
messages: 376436
nosy: MegMM, docs@python
priority: normal
severity: normal
status: open
title: Confusing presentation for configuration settings references
type: enhancement
versions: Python 3.8
Added file: https://bugs.python.org/file49446/SUGGESTED CHANGE-- venv.html

___
Python tracker 

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



[issue41724] SQLite returns "str" instead of "datetime.datetime" with aggregate queries.

2020-09-05 Thread Eric V. Smith


Eric V. Smith  added the comment:

[Adjusted title so that it displays correctly when not logged in. The text 
within less-than and greater-than was being dropped, probably because some 
piece of code didn't want to display unknown tags.]

--
nosy: +eric.smith
title: SQLite returns  instead of  with aggregate 
queries. -> SQLite returns "str" instead of "datetime.datetime" with aggregate 
queries.

___
Python tracker 

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



[issue34556] Add --upgrade-deps to venv module

2020-09-05 Thread John Hagen


John Hagen  added the comment:

I noticed this new feature was not added to the Python 3.9 what's new: 
https://docs.python.org/3.9/whatsnew/3.9.html#venv

Should it be?

--
nosy: +John Hagen

___
Python tracker 

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



[issue41654] Segfault when raising MemoryError

2020-09-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 6ae61959ec51a6b3dddc8e665ce6a7b8aeb26c04 by Pablo Galindo in 
branch '3.8':
bpo-41654: Explicitly cast PyExc_MemoryError to PyTypeObject to avoid warning 
(GH-22102)
https://github.com/python/cpython/commit/6ae61959ec51a6b3dddc8e665ce6a7b8aeb26c04


--

___
Python tracker 

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



[issue41726] Update refcounts info of PyType_FromModuleAndSpec in refcounts.dat

2020-09-05 Thread hai shi


Change by hai shi :


--
title: Update the refcounts.dat of `PyType_FromModuleAndSpec` -> Update 
refcounts info of PyType_FromModuleAndSpec in refcounts.dat

___
Python tracker 

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



[issue41726] Update refcounts info of PyType_FromModuleAndSpec in refcounts.dat

2020-09-05 Thread hai shi


Change by hai shi :


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

___
Python tracker 

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



[issue41726] Update the refcounts.dat of `PyType_FromModuleAndSpec`

2020-09-05 Thread hai shi


New submission from hai shi :

`PyType_FromModuleAndSpec` in docs doesn't show the info:`Return value: New 
reference.`

--
assignee: docs@python
components: Documentation
messages: 376432
nosy: docs@python, petr.viktorin, shihai1991
priority: normal
severity: normal
status: open
title: Update the refcounts.dat of `PyType_FromModuleAndSpec`
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



[issue41218] PyCF_ALLOW_TOP_LEVEL_AWAIT + list comprehension set .CO_COROUTINE falg.

2020-09-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset a708ae7470cf0abc58a62853c25d9bbc977f8cd1 by Miss Islington (bot) 
in branch '3.9':
bpo-41218: Improve the test cases for test_compile_top_level_await_no_coro 
(GH-21363) (GH-22109)
https://github.com/python/cpython/commit/a708ae7470cf0abc58a62853c25d9bbc977f8cd1


--

___
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-09-05 Thread David Edelsohn


Change by David Edelsohn :


--
nosy: +David.Edelsohn

___
Python tracker 

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



[issue41659] PEG discrepancy on 'if {x} {a}: pass'

2020-09-05 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
keywords: +patch
pull_requests: +21195
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/22111

___
Python tracker 

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



[issue41717] [AIX] test_io: files was modified by test_io: (@test_6488748_tmpæ) on POWER6 AIX 3.9

2020-09-05 Thread Stefan Krah


Stefan Krah  added the comment:

I think this is a duplicate of #41401.

--
nosy: +skrah
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Using non-ascii that require UTF-8 breaks AIX testing

___
Python tracker 

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



[issue41555] re.sub replaces twice

2020-09-05 Thread S. Zhang


S. Zhang  added the comment:

Thanks.

On Mon, Aug 17, 2020 at 7:40 PM Pablo Galindo Salgado <
rep...@bugs.python.org> wrote:

>
> Change by Pablo Galindo Salgado :
>
>
> --
> resolution:  -> not a bug
> stage:  -> resolved
> status: open -> closed
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue41723] doc: issue in a sentence in py_compile

2020-09-05 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
nosy: +ZackerySpytz
nosy_count: 2.0 -> 3.0
pull_requests: +21194
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22110

___
Python tracker 

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



[issue41692] Deprecate immortal interned strings: PyUnicode_InternImmortal()

2020-09-05 Thread hai shi


hai shi  added the comment:

+1

--

___
Python tracker 

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



[issue41725] bz2 would use a dedicated exception for data error

2020-09-05 Thread Michał Górny

New submission from Michał Górny :

Currently, the bz2 extension functions raise a generic OSError() on 
BZ_DATA_ERROR and BZ_DATA_ERROR_MAGIC.  When working on files, this makes it 
unnecessarily hard to catch compressor errors (i.e. invalid bz2 input file) 
without catching system I/O errors.  Could you please consider adding a new 
exception type for bz2 errors, akin to gzip.BadGzipFile?

--
components: Extension Modules
messages: 376427
nosy: mgorny
priority: normal
severity: normal
status: open
title: bz2 would use a dedicated exception for data error
type: enhancement

___
Python tracker 

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



[issue41721] xlc: add -qalias=noansi -qmaxmem=-1

2020-09-05 Thread Stefan Krah


Change by Stefan Krah :


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



[issue40486] pathlib's iterdir doesn't specify what happens if directory content change

2020-09-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> enhancement
versions: +Python 3.10, Python 3.8

___
Python tracker 

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



[issue41718] test.regrtest has way too many imports

2020-09-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

You could save/restore this data only when corresponded modules was imported, 
like it was done in clear_caches() in refleak.py. For example:

# Same for Process objects
def get_multiprocessing_process__dangling(self):
multiprocessing_process = sys.modules.get('multiprocessing.process')
if not multiprocessing_process:
return set()
# Unjoined process objects can survive after process exits
multiprocessing_process._cleanup()
# This copies the weakrefs without making any strong reference
return multiprocessing_process._dangling.copy()
def restore_multiprocessing_process__dangling(self, saved):
multiprocessing_process = sys.modules.get('multiprocessing.process')
if not multiprocessing_process:
return
multiprocessing_process._dangling.clear()
multiprocessing_process._dangling.update(saved)

--
nosy: +serhiy.storchaka

___
Python tracker 

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