[issue39456] Make IDLE calltip tests work when there are no docstrings

2020-01-26 Thread Terry J. Reedy
New submission from Terry J. Reedy : IDLE should run and calltips and tests should work even callables lack docstrings, either because none is defined or because there are suppressed (CPython compile switch for builtins, CPython runtime switch for user objects). I believe calltips work with

[issue32309] Implement asyncio.run_in_executor shortcut

2020-01-26 Thread Kyle Stanley
Kyle Stanley added the comment: > So, I just had an interesting idea... what if ThreadPool.run() returned a > Task instead of a coroutine object? After having some time to think this over, I prefer the current behavior. I don't think there would be significant enough improvement from

[issue39456] Make IDLE calltip tests work when there are no docstrings

2020-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: If test_calltips is fixed before PR-14592 is merged, it should be removed from the latter. -- ___ Python tracker ___

[issue39418] str.strip() should have a means of adding to the default behaviour

2020-01-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: For this problem, I would reach for regular expressions. They are specifically designed for flexibility and customization. -- nosy: +rhettinger ___ Python tracker

[issue39456] Make IDLE calltip tests work when there are no docstrings

2020-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: In a comment on PR-14592, I noted that other tests fail with -OO; these should be fixed (or skipped?) also. test_calltips was the only failure with the compile switch. -- ___ Python tracker

[issue39458] Multiprocessing.Pool maxtasksperchild=1 doesn't work

2020-01-26 Thread Gabriel Tardif
New submission from Gabriel Tardif : Hello This bug is about the maxtasksperchild parameter in the Pool object constructor of the multiprocessing module. When you set processes = 1 in the Pool constructor maxtasksperchild value is double by two for unknow raison whatever the maxtaskperchild

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2020-01-26 Thread Géry
Géry added the comment: @Aymeric Augustin > While you're there, it would be cool to provide "connection.autocommit = > True" as an API to enable autocommit, because "connection.isolation_level = > None" isn't a good API at all -- it's very obscure and has nothing to do with > isolation

[issue39457] Add an autocommit property to sqlite3.Connection with truly PEP 249 compliant manual commit mode and migrate

2020-01-26 Thread Géry
New submission from Géry : In non-autocommit mode (manual commit mode), the sqlite3 database driver implicitly issues a BEGIN statement before each DML statement (INSERT, UPDATE, DELETE, REPLACE) not already in a database transaction, BUT NOT before DDL statements (CREATE, DROP) nor before

[issue38599] Deprecate creation of asyncio object when the loop is not running

2020-01-26 Thread Emmanuel Arias
Change by Emmanuel Arias : -- pull_requests: +17576 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18195 ___ Python tracker ___

[issue37625] Class variable is still accessible after class instance has been overwritten out

2020-01-26 Thread chris
chris added the comment: Great content and outstanding, How can I start getting your https://logingit.com/www-txsurchargeonline-com-login-tx-surcharge-pay/;>newsletters in my email to enable keep track of your future content? Thank for this great piece. -- nosy: +Nadas

[issue39457] Add an autocommit property to sqlite3.Connection with a PEP 249 compliant manual commit mode and migrate

2020-01-26 Thread Géry
Géry added the comment: > - Remove the value None of the autocommit property and its deprecation > warning. Correction: - Remove the value None of the autocommit property and its deprecation warning, so that the old manual commit mode disappears. --

[issue37625] Class variable is still accessible after class instance has been overwritten out

2020-01-26 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- Removed message: https://bugs.python.org/msg360737 ___ Python tracker ___ ___

[issue39451] enum.Enum reference count leaks

2020-01-26 Thread Dan Gass
Dan Gass added the comment: Sorry for not thinking of trying this sooner. Running garbage collection, import gc; gc.collect(), releases the resources and restores the expected reference counts. >From my perspective, this is satisfactory and could justify closing this bug >report. The

[issue39082] AsyncMock is unable to correctly patch static or class methods

2020-01-26 Thread Chris Withers
Chris Withers added the comment: New changeset 19be85c76503535c101b38194d282187de0ff631 by Chris Withers (Matthew Kokotovich) in branch '3.8': [3.8] bpo-39082: Allow AsyncMock to correctly patch static/class methods (GH-18190)

[issue39309] Please delete my account

2020-01-26 Thread Ernest W. Durbin III
Ernest W. Durbin III added the comment: The account has been marked as "retired". >From roundup docs: Items in the database are never deleted, they’re just “retired”. You can still refer to them by ID - hence removing an item won’t break references to the item. It’s just that the item

[issue39457] Add an autocommit property to sqlite3.Connection with a PEP 249 compliant manual commit mode and migrate

2020-01-26 Thread Géry
Géry added the comment: > - Remove the value None of the isolation_level property, so that the old > manual commit mode disappears. Correction: - Remove the value None of the isolation_level property. -- ___ Python tracker

[issue38971] codecs.open leaks file descriptor when invalid encoding is passed

2020-01-26 Thread Chris Aporta
Chris Aporta added the comment: Just quickly pinging the thread as a friendly reminder that PR 17666 is open and potentially close to mergeable, as it's been through two review cycles already (thanks Serhiy). If someone has the bandwidth to take another look, it would be greatly

[issue39457] Add an autocommit property to sqlite3.Connection with a PEP 249 compliant manual commit mode and migrate

2020-01-26 Thread Géry
Change by Géry : -- title: Add an autocommit property to sqlite3.Connection with truly PEP 249 compliant manual commit mode and migrate -> Add an autocommit property to sqlite3.Connection with a PEP 249 compliant manual commit mode and migrate ___

[issue39309] Please delete my account

2020-01-26 Thread Berker Peksag
Change by Berker Peksag : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39457] Add an autocommit property to sqlite3.Connection with a PEP 249 compliant manual commit mode and migrate

2020-01-26 Thread SilentGhost
Change by SilentGhost : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2020-01-26 Thread Géry
Géry added the comment: @R. David Murray > Please open a new issue for this request. Done here: https://bugs.python.org/issue39457 -- ___ Python tracker ___

[issue39380] ftplib uses latin-1 as default encoding

2020-01-26 Thread Inada Naoki
Inada Naoki added the comment: I'm not FTP user so I don't have strong opinion. If it is too late to change already, change it in 3.9 might be OK. > However, shouldn't it be a FutureWarning, so it will be reported by default > at initialisation? If it is warning for end users, it should be

[issue25597] unittest.mock does not wrap dunder methods (__getitem__ etc)

2020-01-26 Thread Chris Withers
Chris Withers added the comment: New changeset 72b1004657e60c900e4cd031b2635b587f4b280e by Chris Withers (Karthikeyan Singaravelan) in branch 'master': bpo-25597: Ensure wraps' return value is used for magic methods in MagicMock (#16029)

[issue39380] ftplib uses latin-1 as default encoding

2020-01-26 Thread STINNER Victor
STINNER Victor added the comment: I'm in favor of changing the default encoding to UTF-8, but it requires good documentation, especially to provide a solution working on Python 3.8 and 3.9 to change the encoding (see below). -- The encoding is used to encode commands with the FTP server