Re: sqlalchemy & #temp tables

2019-10-07 Thread Frank Millman
On 2019-10-07 5:30 PM, Albert-Jan Roskam wrote: Hi, I am using sqlalchemy (SA) to access a MS SQL Server database (python 3.5, Win 10). I would like to use a temporary table (preferably #local, but ##global would also be an option) to store results of a time-consuming query. In other queries

Re: How to handle '-' in the 'from' part in a "from import" statement?

2019-10-07 Thread dieter
jf...@ms4.hinet.net writes: > ... > But most of the download from Github has a directory named '-master' > which causes a trouble sometimes. Those are likely not meant to be imported directly. Typically, you have a "setup" step which installs (in some way) a "distribution". This step

Re: Access violation in Python garbage collector (visit_decref) - how to debug?

2019-10-07 Thread dieter
Geoff Bache writes: > Yes, this is hard, that's why I'm here :) > > I've enabled the equivalent tools to valgrind in Visual Studio, and tried > setting PYTHONMALLOC=debug, but neither of those seem to be showing > anything either. I don't really know what else to try in this direction. It likely

[issue38404] spam

2019-10-07 Thread Ned Deily
Change by Ned Deily : -- nosy: -larry, pokeronlinejakarta resolution: -> rejected stage: -> resolved status: open -> closed title: Poker Online -> spam type: crash -> ___ Python tracker

[issue38404] Poker Online

2019-10-07 Thread Ned Deily
Change by Ned Deily : Removed file: https://bugs.python.org/file48646/2.jpg ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38404] Poker Online

2019-10-07 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg354170 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38404] Poker Online

2019-10-07 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg354169 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38404] Poker Online

2019-10-07 Thread Poker Online Jakarta
Poker Online Jakarta added the comment: Situs https://www.jakartapoker.net/ adalah situs judi poker online terpercaya dan terbaik di Indonesia -- Added file: https://bugs.python.org/file48646/2.jpg ___ Python tracker

[issue38404] Poker Online

2019-10-07 Thread Poker Online Jakarta
New submission from Poker Online Jakarta : https://www.jakartapoker.net/;>poker online [url=https://www.jakartapoker.net/]poker online[/url] -- components: Argument Clinic messages: 354169 nosy: larry, pokeronlinejakarta priority: normal severity: normal status: open title: Poker

[issue38402] crypt: check error from library call

2019-10-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 0d3fe8ae4961bf551e7d5e42559e2ede1a08fd7c by Benjamin Peterson (Antonio Gutierrez) in branch 'master': closes bpo-38402: Check error of primitive crypt/crypt_r. (GH-16599)

[issue38403] nuspec iconUrl field is deprecated

2019-10-07 Thread Steve Dower
New submission from Steve Dower : The iconUrl field has to be replaced with an icon field, and we need to include the file in the package now. Details at https://docs.microsoft.com/en-us/nuget/reference/nuspec#icon -- assignee: steve.dower components: Windows messages: 354167 nosy:

[issue38402] crypt: check error from library call

2019-10-07 Thread Antonio Gutierrez
Change by Antonio Gutierrez : -- keywords: +patch pull_requests: +16224 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16599 ___ Python tracker

[issue38402] crypt: check error from library call

2019-10-07 Thread Benjamin Peterson
New submission from Benjamin Peterson : (split off from #36161) The crypt module currently doesn't check for errors from crypt or crypt_r. It should. -- messages: 354166 nosy: benjamin.peterson priority: normal severity: normal status: open title: crypt: check error from library call

[issue31036] building the python docs requires the blurb module

2019-10-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 0bd59d655280ad4c4aff2d327789815b89caee18 by Benjamin Peterson in branch '2.7': [2.7] bpo-31036: Allow sphinx and blurb to be found automatically (GH-16638) https://github.com/python/cpython/commit/0bd59d655280ad4c4aff2d327789815b89caee18

Re: python -m pip install and pip install

2019-10-07 Thread Cameron Simpson
On 08Oct2019 02:49, Hongyi Zhao wrote: On Tue, 08 Oct 2019 06:28:05 +0530, Pankaj Jangid wrote: A very good use-case is when you have both, python2 and python3 installed. python2 -m pip install mod python3 -m pip install mod will install the package in the corresponding PYTHONPATH. If so,

[issue31036] building the python docs requires the blurb module

2019-10-07 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +16223 pull_request: https://github.com/python/cpython/pull/16638 ___ Python tracker ___

Re: How to handle '-' in the 'from' part in a "from import" statement?

2019-10-07 Thread jfong
DL Neil於 2019年10月8日星期二 UTC+8上午11時02分20秒寫道: > On 8/10/19 3:45 PM, jf...@ms4.hinet.net wrote: > > For example: > > from my-dir import test > > > > I know it can be solved by renaming, but any alternative? > > > The manual is your friend: > - import > - importlib > > (the latter allows modules to

[issue35036] logger failure in suspicious.py

2019-10-07 Thread miss-islington
miss-islington added the comment: New changeset e78d79c15cc53bdf8161d41c627cbfb551d8ee96 by Miss Islington (bot) in branch '2.7': bpo-35036: Remove empty log line in the suspicious.py tool (GH-10024) https://github.com/python/cpython/commit/e78d79c15cc53bdf8161d41c627cbfb551d8ee96

[issue32200] Full docs build of 3.6 and 3.7 failing since 2017-10-15

2019-10-07 Thread miss-islington
miss-islington added the comment: New changeset d9b321692b6770c0fe7cb7ba05f9bd5c6082a880 by Miss Islington (bot) in branch '2.7': bpo-31589 : Build PDF using xelatex for better UTF8 support. (GH-3940) https://github.com/python/cpython/commit/d9b321692b6770c0fe7cb7ba05f9bd5c6082a880

[issue31589] Links for French documentation PDF is broken: LaTeX issue with non-ASCII characters?

2019-10-07 Thread miss-islington
miss-islington added the comment: New changeset d9b321692b6770c0fe7cb7ba05f9bd5c6082a880 by Miss Islington (bot) in branch '2.7': bpo-31589 : Build PDF using xelatex for better UTF8 support. (GH-3940) https://github.com/python/cpython/commit/d9b321692b6770c0fe7cb7ba05f9bd5c6082a880

[issue38401] Make dataclass attribute docstrings accessible

2019-10-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35036] logger failure in suspicious.py

2019-10-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +16222 pull_request: https://github.com/python/cpython/pull/16637 ___ Python tracker ___

[issue32200] Full docs build of 3.6 and 3.7 failing since 2017-10-15

2019-10-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +16221 pull_request: https://github.com/python/cpython/pull/16636 ___ Python tracker ___

[issue31589] Links for French documentation PDF is broken: LaTeX issue with non-ASCII characters?

2019-10-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +16220 pull_request: https://github.com/python/cpython/pull/16636 ___ Python tracker ___

Re: How to handle '-' in the 'from' part in a "from import" statement?

2019-10-07 Thread DL Neil via Python-list
On 8/10/19 3:45 PM, jf...@ms4.hinet.net wrote: For example: from my-dir import test I know it can be solved by renaming, but any alternative? The manual is your friend: - import - importlib (the latter allows modules to be identified by strings) However, Pythons has naming rules. If you

How to handle '-' in the 'from' part in a "from import" statement?

2019-10-07 Thread jfong
For example: from my-dir import test I know it can be solved by renaming, but any alternative? --Jach -- https://mail.python.org/mailman/listinfo/python-list

Re: python -m pip install and pip install

2019-10-07 Thread Hongyi Zhao
On Tue, 08 Oct 2019 06:28:05 +0530, Pankaj Jangid wrote: > A very good use-case is when you have both, python2 and python3 > installed. > > python2 -m pip install mod If so, why not just: pip2 install mod > > and > > python3 -m pip install mod and using: pip3 install mod > > will

[issue38395] proxy_contains (weakref.proxy) can access an object with 0 refcount

2019-10-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Note I'm going to ignore this for the purposes of 2.7.17 because it doesn't look like a new regression. -- ___ Python tracker ___

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-10-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset f5b1abbb3b0083381925dcd5898ae6d019224826 by Benjamin Peterson (Jason R. Coombs) in branch '2.7': [2.7] bpo-38216, bpo-36274: Allow subclasses to separately override validation and encoding behavior (GH-16476)

[issue36274] http.client cannot send non-ASCII request lines

2019-10-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset f5b1abbb3b0083381925dcd5898ae6d019224826 by Benjamin Peterson (Jason R. Coombs) in branch '2.7': [2.7] bpo-38216, bpo-36274: Allow subclasses to separately override validation and encoding behavior (GH-16476)

[issue37664] Update bundled pip and setuptools

2019-10-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset e7e58fe03175adc660c192e724b91ae7ccba9cb6 by Benjamin Peterson in branch '2.7': [2.7] bpo-37664: Update ensurepip bundled wheels, again (GH-16633) https://github.com/python/cpython/commit/e7e58fe03175adc660c192e724b91ae7ccba9cb6 --

[issue37664] Update bundled pip and setuptools

2019-10-07 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +16219 pull_request: https://github.com/python/cpython/pull/16633 ___ Python tracker ___

Re: python -m pip install and pip install

2019-10-07 Thread Pankaj Jangid
Hongyi Zhao writes: > Hi, > > What's the diff: > > python -m pip install mod > and > pip install mod A very good use-case is when you have both, python2 and python3 installed. python2 -m pip install mod and python3 -m pip install mod will install the package in the corresponding

[issue38388] Pickle protocol v 5 needs to be documented

2019-10-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38395] proxy_contains (weakref.proxy) can access an object with 0 refcount

2019-10-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I'm marking this as release blocker for the 3.8 incoming release so we don't forget about fixing this. -- nosy: +pablogsal ___ Python tracker

[issue38070] visit_decref(): add an assertion to check that the object is not freed

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4d5f94b8cd20f804c7868c5395a15aa6032f874c by Victor Stinner in branch 'master': bpo-38070: Enhance visit_decref() debug trace (GH-16631) https://github.com/python/cpython/commit/4d5f94b8cd20f804c7868c5395a15aa6032f874c --

[issue38395] proxy_contains (weakref.proxy) can access an object with 0 refcount

2019-10-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +benjamin.peterson, lukasz.langa, ned.deily priority: normal -> release blocker ___ Python tracker ___

[issue38395] proxy_contains (weakref.proxy) can access an object with 0 refcount

2019-10-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- versions: +Python 2.7, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-10-07 Thread Kubilay Kocak
Change by Kubilay Kocak : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27542] Segfault in gcmodule.c:360 visit_decref

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: Julien: I'm working on enhancement of debug traces on visit_decref(). Are you still able to reproduce the crash in 2019? I failed to reproduce the bug in a virtual environment with: * Python 2.7.14 * pip 8.1.2 * cffi 1.7.0 $ virtualenv -p python2 venv

[issue38395] proxy_contains (weakref.proxy) can access an object with 0 refcount

2019-10-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- versions: +Python 3.7, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38401] Make dataclass attribute docstrings accessible

2019-10-07 Thread John Parejko
New submission from John Parejko : Dataclasses provide a very straightforward way to specify structured data. One can trivally document a dataclass's attributes via triple-quoted attribute docstrings per PEP 257. However, those docstrings are not accessible to pydoc, so they are lost to

[issue38395] proxy_contains (weakref.proxy) can access an object with 0 refcount

2019-10-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +16218 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16632 ___ Python tracker

[issue38070] visit_decref(): add an assertion to check that the object is not freed

2019-10-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16217 pull_request: https://github.com/python/cpython/pull/16631 ___ Python tracker ___

[issue38400] Python segfaults when configured with --with-pydebug --with-trace-refs

2019-10-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 36e33c360ed7716a2b5ab2b53210da81f8ce1295 by Pablo Galindo in branch 'master': bpo-38400 Don't check for NULL linked list pointers in _PyObject_IsFreed (GH-16630)

[issue38400] Python segfaults when configured with --with-pydebug --with-trace-refs

2019-10-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38400] Python segfaults when configured with --with-pydebug --with-trace-refs

2019-10-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +16216 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16630 ___ Python tracker

[issue38400] Python segfaults when configured with --with-pydebug --with-trace-refs

2019-10-07 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : configure --with-pydebug --with-trace-refs && make Modules/gcmodule.c:378: visit_decref: Assertion "!_PyObject_IsFreed(op)" failed Fatal Python error: _PyObject_AssertFailed Python runtime state: preinitialized Current thread 0x7f6e2863e740

[issue38400] Python segfaults when configured with --with-pydebug --with-trace-refs

2019-10-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is a regression introduced by: commit 6876257eaabdb30f27ebcbd7d2557278ce2e5705 Author: Victor Stinner Date: Mon Oct 7 18:42:01 2019 +0200 bpo-36389: _PyObject_CheckConsistency() available in release mode (GH-16612) bpo-36389,

[issue38399] Error message persists when reimporting library

2019-10-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: Importing the second and subsequent times reloads the module from the system cache. Instead, you can: - run ``del sys.modules['hexdump']`` and then ``import hexdump``; - call ``importlib.reload(hexdump)``; or - restart the REPL. Remember that reloading

[issue38392] Ensure that objects entering the GC are valid

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: Ok, I pushed a change. Let's see how third party projects like it :-) We still have time to revert it if it causes too many damage. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python

Re: Mouse control

2019-10-07 Thread David L Neil via Python-list
On 7/10/19 4:11 AM, Alexander Vergun wrote: I am coding a voice assistant under Python 3.7, Windows 7. I am using PYcharm and libraries such as PYSimpleGUI, mouse, keyboard etc. Everything works except for the mouse control and probably keyboard, the problem is following, when I run the script

[issue38392] Ensure that objects entering the GC are valid

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1b1845569539db5c1a6948a5d32daea381f1e35f by Victor Stinner in branch 'master': bpo-38392: PyObject_GC_Track() validates object in debug mode (GH-16615) https://github.com/python/cpython/commit/1b1845569539db5c1a6948a5d32daea381f1e35f

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7775349895088a7ae68cecf0c74cf817f15e2c74 by Victor Stinner in branch 'master': bpo-36389: Add newline to _PyObject_AssertFailed() (GH-16629) https://github.com/python/cpython/commit/7775349895088a7ae68cecf0c74cf817f15e2c74 --

[issue38344] activate.bat else needs to be on the same line as the if

2019-10-07 Thread miss-islington
miss-islington added the comment: New changeset 4880e5a1b66d9175fcc402cb0288bc1898356831 by Miss Islington (bot) in branch '3.8': bpo-38344: Fix syntax in activate.bat (GH-16533) https://github.com/python/cpython/commit/4880e5a1b66d9175fcc402cb0288bc1898356831 --

[issue38344] activate.bat else needs to be on the same line as the if

2019-10-07 Thread miss-islington
miss-islington added the comment: New changeset bfb5f9a66cc348c9cf25c857ad9910479e587517 by Miss Islington (bot) in branch '3.7': bpo-38344: Fix syntax in activate.bat (GH-16533) https://github.com/python/cpython/commit/bfb5f9a66cc348c9cf25c857ad9910479e587517 -- nosy:

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-10-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16215 pull_request: https://github.com/python/cpython/pull/16629 ___ Python tracker ___

[issue38344] activate.bat else needs to be on the same line as the if

2019-10-07 Thread Steve Dower
Steve Dower added the comment: I've merged the fix so that it can be cherry-picked for the upcoming releases. I'd still like to see the tests enhanced to be able to detect error output in the scripts, but those don't need to necessarily make it into the upcoming releases. --

[issue38344] activate.bat else needs to be on the same line as the if

2019-10-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +16214 pull_request: https://github.com/python/cpython/pull/16628 ___ Python tracker ___

[issue38344] activate.bat else needs to be on the same line as the if

2019-10-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +16213 pull_request: https://github.com/python/cpython/pull/16627 ___ Python tracker ___

[issue38344] activate.bat else needs to be on the same line as the if

2019-10-07 Thread Steve Dower
Steve Dower added the comment: New changeset e310af9e2941c2fbb7370e003276cc37eb230f16 by Steve Dower (James Abel) in branch 'master': bpo-38344: Fix syntax in activate.bat (GH-16533) https://github.com/python/cpython/commit/e310af9e2941c2fbb7370e003276cc37eb230f16 --

[issue38294] Documentation on 3.6->3.7 re.escape no longer escaping "/" or ":" should be obvious

2019-10-07 Thread miss-islington
miss-islington added the comment: New changeset b731fc521cf78e53268e35777d836ca80e7ab305 by Miss Islington (bot) in branch '3.8': bpo-38294: Add list of no-longer-escaped chars to re.escape documentation. (GH-16442)

[issue38294] Documentation on 3.6->3.7 re.escape no longer escaping "/" or ":" should be obvious

2019-10-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +16212 pull_request: https://github.com/python/cpython/pull/16626 ___ Python tracker ___

[issue38294] Documentation on 3.6->3.7 re.escape no longer escaping "/" or ":" should be obvious

2019-10-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 15ae75d660befe643ed42eb2707a557cea97256c by Serhiy Storchaka (Ricardo Bánffy) in branch 'master': bpo-38294: Add list of no-longer-escaped chars to re.escape documentation. (GH-16442)

[issue38376] ./configure --with-assertions generates a broken build

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: After pushing some fixes to 3.8 and master branches, I tested the following commands in 3.7, 3.8 and master branches: make distclean ./configure --prefix=$HOME/.local --with-assertions make ./python -m test -j0 test_bytes test_gc test_capi These commands

[issue38376] ./configure --with-assertions generates a broken build

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: I pushed one more fix in https://bugs.python.org/issue36389#msg354138 -- ___ Python tracker ___

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 60ec6efd96d95476fe5e38c491491add04f026e5 by Victor Stinner in branch 'master': bpo-36389: Fix _PyBytesWriter in release mode (GH-16624) https://github.com/python/cpython/commit/60ec6efd96d95476fe5e38c491491add04f026e5 --

[issue36953] Remove collections ABCs?

2019-10-07 Thread Emmanuel Arias
Emmanuel Arias added the comment: Now was remove from 3.7 https://github.com/python/cpython/commit/ef092fe9905f61ca27889092ca1248a11aa74498 This issue should be closed, isn't? -- ___ Python tracker

Re: Formatting floating point

2019-10-07 Thread DL Neil via Python-list
On 8/10/19 4:04 AM, boffi wrote: DL Neil writes: Agreed: there's ton(ne)s of information 'out there', much of it old, eg Python2, "formatter" (deprecated since v3.4) ? are you referring to the `string.Formatter`[*] class? $ python Python 3.7.4 (default, Aug 13 2019, 20:35:49)

[issue37951] Disallow fork in a subinterpreter broke subprocesses in mod_wsgi daemon mode

2019-10-07 Thread Christian Heimes
Christian Heimes added the comment: https://github.com/freeipa/freeipa/pull/3769 should address the issue. -- ___ Python tracker ___

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-10-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16211 pull_request: https://github.com/python/cpython/pull/16624 ___ Python tracker ___

[issue37951] Disallow fork in a subinterpreter broke subprocesses in mod_wsgi daemon mode

2019-10-07 Thread Christian Heimes
Christian Heimes added the comment: I'll address the issue in FreeIPA. The ipautil.run() function is a helper around subprocess.Popen. The function always installs a preexec_fn in case it needs to change umask or drop priviliges. The WSGI server does not need these features. --

[issue32879] Race condition in multiprocessing Queue

2019-10-07 Thread Eric Meyer
Eric Meyer added the comment: multiprocessing.SimpleQueue is another workaround to this issue. I agree the docs should be clearer about this. Additionally, it would be helpful if there was a way to optionally put an item on a multiprocessing.Queue and block until the item has been written

[issue38396] ast.literal_eval doesn't give information about node except the type of it

2019-10-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have same doubts. See also issue32888. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Improve exception message in ast.literal_eval ___ Python tracker

[issue38396] ast.literal_eval doesn't give information about node except the type of it

2019-10-07 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: The downside however is that exception messages can become very long. So I am not sure we should change this. -- nosy: +serhiy.storchaka ___ Python tracker

[issue37951] Disallow fork in a subinterpreter broke subprocesses in mod_wsgi daemon mode

2019-10-07 Thread Adam Williamson
Adam Williamson added the comment: It's this function: https://github.com/freeipa/freeipa/blob/master/ipalib/install/kinit.py#L66 The function `run` is imported from `ipapython.ipautil`, it's defined here: https://github.com/freeipa/freeipa/blob/master/ipapython/ipautil.py#L391 all of this

[issue37951] Disallow fork in a subinterpreter broke subprocesses in mod_wsgi daemon mode

2019-10-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: preexec_fn is fundamentally unsupportable. what code is using it, there should be a way not to rely on that. -- ___ Python tracker ___

[issue38376] ./configure --with-assertions generates a broken build

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 435b2eeb7bc5b8ec264e900b38bcb3d76552d777 by Victor Stinner in branch '3.8': bpo-38376: Fix _PyUnicode_CheckConsistency() definition (GH-16623) https://github.com/python/cpython/commit/435b2eeb7bc5b8ec264e900b38bcb3d76552d777 --

[issue36697] inspect.getclosurevars returns wrong globals dict

2019-10-07 Thread Daniel Debrunner
Daniel Debrunner added the comment: Another case: model="Hello" class M(object): def __init__(self): pass def __call__(self): print(self.model) cvs = inspect.getclosurevars(M.__call__) ClosureVars(nonlocals={}, globals={'model': 'Hello'}, builtins={'print': },

[issue38375] Enum lookup fails for callable values

2019-10-07 Thread Massimo
Massimo added the comment: Where is this documented? Sorry, I couldn't find it. In any case, I'd say this behaviour is quite unexpected, and unless technical reasons are overwhelming, would be nice to change it. -- ___ Python tracker

Guppy 3/Heapy 3.0.8

2019-10-07 Thread YiFei
I am happy to announce Guppy 3 3.0.8 Guppy 3 is a library and programming environment for Python, currently providing in particular the Heapy subsystem, which supports object and heap memory sizing, profiling and debugging. It also includes a prototypical specification language, the Guppy

Re: pre-edit stuff persists in a reloaded a module

2019-10-07 Thread Friedrich Rentsch
On 10/5/19 1:48 PM, Friedrich Rentsch wrote: Hi all, Python 2.7. I habitually work interactively in an Idle window. Occasionally I correct code, reload and find that edits fail to load. I understand that reloading is not guaranteed to reload everything, but I don't understand the exact

[issue37951] Disallow fork in a subinterpreter broke subprocesses in mod_wsgi daemon mode

2019-10-07 Thread Adam Williamson
Adam Williamson added the comment: Well, now our (Fedora QA's) automated testing of FreeIPA is showing what looks like a problem with preexec_fn (rather than fork) being disallowed: https://bugzilla.redhat.com/show_bug.cgi?id=1759290 Login to the FreeIPA webUI is failing, and at the time it

[issue37591] test_concurrent_future failed

2019-10-07 Thread Isaac Turner
Isaac Turner added the comment: I'm seeing the same error on Ubuntu LTS 16.04.6 on an ARM64 platform. $ make && make test ... 0:09:18 load avg: 2.09 [ 78/416] test_complex 0:09:20 load avg: 2.08 [ 79/416] test_concurrent_futures Traceback: Thread 0x007f61f0 (most recent call

[issue38388] Pickle protocol v 5 needs to be documented

2019-10-07 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38379] finalizer resurrection in gc

2019-10-07 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38375] Enum lookup fails for callable values

2019-10-07 Thread Ethan Furman
Ethan Furman added the comment: This is the intended, and documented, behavior. -- assignee: -> ethan.furman resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

Re: Access violation in Python garbage collector (visit_decref) - how to debug?

2019-10-07 Thread MRAB
On 2019-10-07 08:04, Geoff Bache wrote: It's possible. Our embedding code is fairly simple and we've tried to encapsulate all the DECREFing in resource objects, i.e. that do DECREF in their destructor when they go out of scope. We hoped this would minimise this sort of problem. The C++ calling

[issue36356] Failure to build with address sanitizer

2019-10-07 Thread Ned Deily
Ned Deily added the comment: FWIW, the assertion error on macOS reported above in msg338774 does not seem to occur anymore with current HEAD of master and with recent system clang (Apple clang version 11.0.0 (clang-1100.0.33.8)) on macOS 10.14.6. --

[issue26219] implement per-opcode cache in ceval

2019-10-07 Thread Brett Cannon
Brett Cannon added the comment: I personally think it would be fine to change the wording to say "measurable speed-up" and not attribute a specific number. -- ___ Python tracker

[issue38399] Error message persists when reimporting library

2019-10-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this is due to str bytes concatenation error on line number 19. Editing and reimporting doesn't give you new code in repl. Try the changes in new repl after changing it in file. Python will just use unchanged code and will use line number

[issue38399] Error message persists when reimporting library

2019-10-07 Thread AwesomeCronk
New submission from AwesomeCronk : I am working on a hexdump library in Python 3.7.4. Whenever an issue is triggered, the error message shows up. I can usually edit and correct the file(library), but when I reimport the library and rerun the function, it throws the same error on the same line

[issue36356] Failure to build with address sanitizer

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: Can we close this issue, or is there a remaining known bug? -- ___ Python tracker ___ ___

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6876257eaabdb30f27ebcbd7d2557278ce2e5705 by Victor Stinner in branch 'master': bpo-36389: _PyObject_CheckConsistency() available in release mode (GH-16612) https://github.com/python/cpython/commit/6876257eaabdb30f27ebcbd7d2557278ce2e5705

[issue38376] ./configure --with-assertions generates a broken build

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6876257eaabdb30f27ebcbd7d2557278ce2e5705 by Victor Stinner in branch 'master': bpo-36389: _PyObject_CheckConsistency() available in release mode (GH-16612) https://github.com/python/cpython/commit/6876257eaabdb30f27ebcbd7d2557278ce2e5705

[issue36356] Failure to build with address sanitizer

2019-10-07 Thread miss-islington
miss-islington added the comment: New changeset 13915a3100608f011b29da2f3716c990f523b631 by Miss Islington (bot) in branch '3.8': bpo-36356: Fix memory leak in _asynciomodule.c (GH-16598) https://github.com/python/cpython/commit/13915a3100608f011b29da2f3716c990f523b631 -- nosy:

[issue38398] PyUnicode functions are not exported by python 2 in Ubuntu

2019-10-07 Thread PyScripter
PyScripter added the comment: >>> sys.version '2.7.16 (default, Oct 7 2019, 17:16:30) \n[GCC 7.4.0]' >>> ctypes.pythonapi.PyUnicodeUCS4_FromWideChar Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/ctypes/__init__.py", line 379, in __getattr__

[issue38398] PyUnicode functions are not exported by python 2 in Ubuntu

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: > Is this on Ubuntu? No, only Fedora. If the issue is specific to Ubuntu, report it to the Ubuntu bug tracker. -- ___ Python tracker ___

[issue38398] PyUnicode functions are not exported by python 2 in Ubuntu

2019-10-07 Thread PyScripter
PyScripter added the comment: Is this on Ubuntu? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38398] PyUnicode functions are not exported by python 2 in Ubuntu

2019-10-07 Thread PyScripter
PyScripter added the comment: I meant PyUnicodeUCS4_FromWideChar PyUnicodeUCS2_FromWideChar. -- ___ Python tracker ___ ___

  1   2   >