[issue36396] Remove fgBg param of idlelib.config.GetHighlight()

2019-03-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: There were two uses in IDLE and a few in the tests. -- stage: patch review -> commit review ___ Python tracker ___ __

[issue36398] A possible crash in structseq.c's structseq_repr()

2019-03-21 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +12445 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36398] A possible crash in structseq.c's structseq_repr()

2019-03-21 Thread Zackery Spytz
New submission from Zackery Spytz : If the first PyUnicode_DecodeUTF8() call fails in structseq_repr(), _PyUnicodeWriter_Dealloc() will be called on an uninitialized _PyUnicodeWriter. -- components: Interpreter Core messages: 338584 nosy: ZackerySpytz priority: normal severity: normal

[issue33081] multiprocessing Queue leaks a file descriptor associated with the pipe writer

2019-03-21 Thread Yongzhi Pan
Change by Yongzhi Pan : -- nosy: +fossilet ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue31369] re.RegexFlag is not included in __all__

2019-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with David. This is an imlementation detail. No need to prefix it with a _ if the module uses __all__for public names. -- nosy: +serhiy.storchaka ___ Python tracker

[issue36397] re.split() incorrectly splitting on zero-width pattern

2019-03-21 Thread Matthew Barnett
Matthew Barnett added the comment: >From the docs: """If capturing parentheses are used in pattern, then the text of all groups in the pattern are also returned as part of the resulting list.""" The pattern does contain a capture, so that's why the result has additional '1' and '2'. Presum

[issue36397] re.split() incorrectly splitting on zero-width pattern

2019-03-21 Thread Elias Tarhini
New submission from Elias Tarhini : I believe I've found a bug in the `re` module -- specifically, in the 3.7+ support for splitting on zero-width patterns. Compare Java's behavior... jshell> "1211".split("(?<=(\\d))(?!\\1)(?=\\d)"); $1 ==> String[3] { "1", "2", "11" } ...with Python'

[issue36396] Remove fgBg param of idlelib.config.GetHighlight()

2019-03-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +12444 stage: commit review -> patch review ___ Python tracker ___ ___

[issue36396] Remove fgBg param of idlelib.config.GetHighlight()

2019-03-21 Thread Terry J. Reedy
New submission from Terry J. Reedy : The fgBg param of idlelib.config.GetHighlight() is used in only one idlelib call. Two other places could use it, but instead subscript the returned dict. Remove the parameter, make the function always return a dict and not a color, and have the one fgBg

[issue36375] PEP 499 implementation: "python -m foo" binds the main module as both __main__ and foo in sys.modules

2019-03-21 Thread Cameron Simpson
Cameron Simpson added the comment: New PR 12490 attached with a fix for test_pdb. More extensive comments are in the leading comment on the PR itself. - Cameron -- ___ Python tracker ___

[issue36375] PEP 499 implementation: "python -m foo" binds the main module as both __main__ and foo in sys.modules

2019-03-21 Thread Cameron Simpson
Change by Cameron Simpson : -- pull_requests: +12442 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue14817] pkgutil.extend_path has no tests

2019-03-21 Thread Windson Yang
Windson Yang added the comment: I would like to work on this and make a PR. -- nosy: +Windson Yang type: -> enhancement versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker _

[issue36395] Add deferred single-threaded/fake executor to concurrent.futures

2019-03-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +bquinlan, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue36395] Add deferred single-threaded/fake executor to concurrent.futures

2019-03-21 Thread Brian McCutchon
New submission from Brian McCutchon : Currently, it is possible to make a basic single-threaded executor for unit testing: class FakeExecutor(futures.Executor): def submit(self, f, *args, **kwargs): future = futures.Future() future.set_result(f(*args, **kwargs)) return future

[issue18249] Incorrect and incomplete help docs for close() method

2019-03-21 Thread Andrés Delfino
Andrés Delfino added the comment: Closing with Victor Stinner's approval. -- nosy: +adelfino resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue36394] test_multiprocessing_spawn fails on Windows7 3.x buildbot

2019-03-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +12441 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue36394] test_multiprocessing_spawn fails on Windows7 3.x buildbot

2019-03-21 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : https://buildbot.python.org/all/#/builders/58/builds/2098/steps/3/logs/stdio Process Process-2: Traceback (most recent call last): File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\multiprocessing\process.py", line 302, in _bootstra

[issue31495] Wrong offset with IndentationError ("expected an indented block")

2019-03-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've retested this under 3.8 and the caret is now positioned at the first character in the line, therefore I'm closing this issue as resolved. -- nosy: +cheryl.sabella resolution: -> works for me stage: -> resolved status: open -> closed versions: +

[issue36256] parser module fails on legal input

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

[issue36256] parser module fails on legal input

2019-03-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 00eb97b4a7d9a73b88ed7c76faee4e49204d5a00 by Pablo Galindo (Miss Islington (bot)) in branch '3.7': bpo-36256: Fix bug in parsermodule when parsing if statements (GH-12488) https://github.com/python/cpython/commit/00eb97b4a7d9a73b88ed7c76fa

[issue36256] parser module fails on legal input

2019-03-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +12440 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue32679] concurrent.futures should store full sys.exc_info()

2019-03-21 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +bquinlan, pitrou versions: -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Pyth

[issue36256] parser module fails on legal input

2019-03-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 9ad15d27361eaa47b77600c7c00a9787a894 by Pablo Galindo in branch 'master': bpo-36256: Fix bug in parsermodule when parsing if statements (GH-12477) https://github.com/python/cpython/commit/9ad15d27361eaa47b77600c7c00a9787a894 ---

[issue36393] python user define function is replacing variable value

2019-03-21 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue36393] python user define function is replacing variable value

2019-03-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is expected behavior. Please read : https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects . Default values are defined when function is created and not for every function call and you are having a referen

[issue31470] Py_Initialize documentation wrong

2019-03-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: Issue 32124 changed the documentation to define the C functions that are safe to call before Py_Initialize. I am going to close this with that as a superseder. Please reopen this if that issue didn't address all the concerns. Thanks! -- nosy: +ch

[issue36393] python user define function is replacing variable value

2019-03-21 Thread Hardik
New submission from Hardik : I have created function "listappend():"with two arguments.Function can append list value with each function call and return updated value. I am trying to store this updated value into variable which I can but when I call listappend() to update it changes the store

[issue31369] re.RegexFlag is not included in __all__

2019-03-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: @ethan.furman, since you had originally added RegexFlag in #28082, do have an opinion on this? Thanks. -- nosy: +cheryl.sabella, ethan.furman versions: +Python 3.8 -Python 3.6 ___ Python tracker

[issue36392] IPv4Interface Object has no attributte prefixlen

2019-03-21 Thread SilentGhost
Change by SilentGhost : -- nosy: +pmoody ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue32142] heapq.heappop - documentation misleading or doesn't work

2019-03-21 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue35528] [DOC] [LaTeX] Sphinx 2.0 uses GNU FreeFont as default for xelatex

2019-03-21 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue36392] IPv4Interface Object has no attributte prefixlen

2019-03-21 Thread Eddgar Rojas
New submission from Eddgar Rojas : The python the Class IPv4Interface on the ipaddress module when I try to use the .prefixlen attribute it says that do not exist but is i have access by using ._prefixlen if i have on the IPv4Interface class the .netmask attribute and the .nethost attribut

[issue36346] Prepare for removing the legacy Unicode C API

2019-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The proposed PR adds two compile time options: HAVE_UNICODE_WCHAR_CACHE and > USE_UNICODE_WCHAR_CACHE I don't think this is a good approach. Most projects and developers don't recompile Python. It's especially a chore when you have many dependencies with

[issue35941] ssl.enum_certificates() regression

2019-03-21 Thread Nikolaos Rangos
Nikolaos Rangos added the comment: Hello Steve, I reopened the PR from my code base. I will wait for this PR to be processed and afterwards continue with submitting patches. -- ___ Python tracker __

[issue35941] ssl.enum_certificates() regression

2019-03-21 Thread Nikolaos Rangos
Change by Nikolaos Rangos : -- pull_requests: +12439 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue30903] IPv4Network's hostmask attribute doesn't returns string value as mentioned in Documentation.

2019-03-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thank you for the report. This was fixed as part of PR6021. There was no bpo ticket for that pull request. -- nosy: +cheryl.sabella resolution: -> fixed stage: -> resolved status: open -> closed ___ Python trac

[issue35978] test_venv fails in Travis with GCC

2019-03-21 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: +xdegaye ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue24222] Idle 2.7 -c, -r compile with print as function.

2019-03-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue24028] Idle: add doc subsection on calltips

2019-03-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue24028] Idle: add doc subsection on calltips

2019-03-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -python-dev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue27239] Make idlelib.macosx self-contained.

2019-03-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE nosy: -python-dev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2019-03-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue22726] Idle: add help to config dialogs

2019-03-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue27437] IDLE tests must be able to set user configuration values.

2019-03-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue27380] IDLE: add base Query dialog with ttk widgets

2019-03-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue36085] Enable better DLL resolution

2019-03-21 Thread Steve Dower
Steve Dower added the comment: I added some logging for the AppVeyor build at https://ci.appveyor.com/project/python/cpython/builds/23258953 Looks like the offending DLLs are: - perf-MSSQL$SQL2017-sqlctr14.0.1000.169.dll - perf-MSSQL$SQL2016-sqlctr13.1.4474.0.dll Since the events are pulled

[issue35978] test_venv fails in Travis with GCC

2019-03-21 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue35941] ssl.enum_certificates() regression

2019-03-21 Thread Steve Dower
Steve Dower added the comment: I don't know about your other PRs, and I don't deny they may have been neglected for some time, but you only allowed 12 hours on this one between receiving a review and closing it. Our team of volunteers have limited time (typically 0-8 hours/week) to work on C

[issue35978] test_venv fails in Travis with GCC

2019-03-21 Thread miss-islington
miss-islington added the comment: New changeset b0967fe4ed2e0e15f14ea574f82970a3fd4a5556 by Miss Islington (bot) in branch '3.7': bpo-35978: Correctly skips venv tests in venvs (GH-12220) https://github.com/python/cpython/commit/b0967fe4ed2e0e15f14ea574f82970a3fd4a5556 -- nosy: +mis

[issue35978] test_venv fails in Travis with GCC

2019-03-21 Thread Steve Dower
Steve Dower added the comment: New changeset 8bba81fd55873148c65b7d0e6a6effbd63048c76 by Steve Dower in branch 'master': bpo-35978: Correctly skips venv tests in venvs (GH-12220) https://github.com/python/cpython/commit/8bba81fd55873148c65b7d0e6a6effbd63048c76 -- __

[issue35978] test_venv fails in Travis with GCC

2019-03-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +12438 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35941] ssl.enum_certificates() regression

2019-03-21 Thread nr
nr added the comment: To be honest, I think the patch is worth to be merged including other patches I submitted. Yet I believed it was better to close the pull request because I put quite some time into researching and programming the solutions but nobody really cared so I stopped. All I rec

[issue35644] venv doesn't work on Windows when no venvlauncher executable present

2019-03-21 Thread Steve Dower
Steve Dower added the comment: Doesn't seem to be anything to fix upstream here. -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___

[issue36343] Certificate added to Win Store not available

2019-03-21 Thread Christian Herdtweck
Christian Herdtweck added the comment: Sorry, right, that is the issue I meant. Continuing there. -- ___ Python tracker ___ ___ Pyt

[issue35941] ssl.enum_certificates() regression

2019-03-21 Thread Christian Herdtweck
Christian Herdtweck added the comment: Hi, I encountered this problem as well. May I know why you have withdrawn your pull request? -- nosy: +christian-intra2net ___ Python tracker _

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-21 Thread miss-islington
miss-islington added the comment: New changeset b058a97c90c3144cc602b719483572916b3918bb by Miss Islington (bot) in branch '3.7': bpo-36245: Avoid problems when building in a directory containing spaces. (GH-12241) https://github.com/python/cpython/commit/b058a97c90c3144cc602b719483572916b39

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-21 Thread Steve Dower
Steve Dower added the comment: New changeset 7ee88bf3e59493137a775368165c5c5fe1ed7f46 by Steve Dower (Jess) in branch 'master': bpo-36245: Avoid problems when building in a directory containing spaces. (GH-12241) https://github.com/python/cpython/commit/7ee88bf3e59493137a775368165c5c5fe1ed7f

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +12437 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-21 Thread Steve Dower
Steve Dower added the comment: Fixed for 3.7 and master. If it needs to go into 2.7 then someone will need to backport it manually. -- stage: patch review -> backport needed versions: -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue35941] ssl.enum_certificates() regression

2019-03-21 Thread Steve Dower
Change by Steve Dower : -- assignee: steve.dower -> stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list

[issue36343] Certificate added to Win Store not available

2019-03-21 Thread Steve Dower
Steve Dower added the comment: Yeah, this is a dup of issue35941. I'm not sure why the contributor withdrew their PR, but it seems that is what happened. -- components: +Windows nosy: +paul.moore, tim.golden, zach.ware resolution: -> duplicate stage: -> resolved status: open -> clos

[issue36315] Unable to install Python 3.7.2

2019-03-21 Thread Steve Dower
Steve Dower added the comment: It looks like something on your system "cleaned up" the installer while it was still running. Sometimes this can be AV or system policies, but there's nothing we can fix in the installer for it. Here are some things you can try (one at a time): * disable any a

[issue36312] Invalid flag for some code page decoders

2019-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7 ___ Python tracker ___ _

[issue35866] concurrent.futures deadlock

2019-03-21 Thread Hugh Redelmeier
Hugh Redelmeier added the comment: I've filed a Fedora bug report that points to this one: -- ___ Python tracker ___ ___

[issue36368] server process of shared_memory shuts down if KeyboardInterrupt

2019-03-21 Thread Pierre Glaser
Pierre Glaser added the comment: Done. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue36338] urlparse of urllib returns wrong hostname

2019-03-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -12435 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36368] server process of shared_memory shuts down if KeyboardInterrupt

2019-03-21 Thread Pierre Glaser
Change by Pierre Glaser : -- pull_requests: +12436 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36338] urlparse of urllib returns wrong hostname

2019-03-21 Thread Pierre Glaser
Change by Pierre Glaser : -- keywords: +patch pull_requests: +12435 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36268] Change default tar format to modern POSIX 2001 (pax) for better portability/interop, support and standards conformance

2019-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36268] Change default tar format to modern POSIX 2001 (pax) for better portability/interop, support and standards conformance

2019-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e680c3db80efc4a1d637dd871af21276db45ae03 by Serhiy Storchaka (CAM Gerlach) in branch 'master': bpo-36268: Change default tar format to pax from GNU. (GH-12355) https://github.com/python/cpython/commit/e680c3db80efc4a1d637dd871af21276db45ae03

[issue36391] XSS in bugs.python.org 404 error page

2019-03-21 Thread SilentGhost
SilentGhost added the comment: Thanks for the report, Hanno. The active bugtracker for this instance seems to be available at https://github.com/python/bugs.python.org/issues (not that anything gets done there, but it won't be here either). -- nosy: +SilentGhost -docs@python resoluti

[issue36085] Enable better DLL resolution

2019-03-21 Thread Zachary Ware
Zachary Ware added the comment: I've found AppVeyor's support forum (https://help.appveyor.com/) to be fairly responsive; it may be worth asking them about the issue there. -- ___ Python tracker ___

[issue36391] XSS in bugs.python.org 404 error page

2019-03-21 Thread Hanno Boeck
New submission from Hanno Boeck : There's an XSS on the 404 error page: https://bugs.python.org/%3Cimg%20src=x%20onerror=alert(1)%3E (For lack of a webpage / bug tracker category I chose "Documentation" as the closest category I could find) -- assignee: docs@python components: Docume

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

2019-03-21 Thread STINNER Victor
STINNER Victor added the comment: > It is better to not use assert(foo && bar). Use instead two separate asserts: > assrte(foo) and assert(bar). Hum, I looked at my PR and I'm not sure that I added such new assertion. Note: "assert" on calling assert(_PyDict_CheckConsistency(mp)) is only use

[issue33622] Fix and improve errors handling in the garbage collector

2019-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2019-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is better to not use assert(foo && bar). Use instead two separate asserts: assrte(foo) and assert(bar). -- ___ Python tracker ___ _

[issue36387] Refactor getenvironment() in _winapi.c

2019-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ __

[issue36387] Refactor getenvironment() in _winapi.c

2019-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +12434 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue36390] IDLE: Refactor formatting methods from editor

2019-03-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: Refactoring the methods was relatively straight forward, but I did have some questions: 1. The name `formatregion` could probably be improved. 2. The `classifyws` method is a module level method in editor. It's needed in `formatregion` also, so I made a c

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

2019-03-21 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure if I should include an unit test. WIP patch for that: diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 350ef77163..9c0d0cf41a 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -4718,6 +4718,18 @@ neg

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

2019-03-21 Thread STINNER Victor
STINNER Victor added the comment: Hum, _PyType_CheckConsistency() fails on the following assertion during Python finalization: ASSERT(type->tp_mro != NULL && PyTuple_Check(type->tp_mro)); Error: --- /home/vstinner/prog/python/master/python: No module named asyncio.__main__; 'asyncio' is

[issue36390] IDLE: Refactor formatting methods from editor

2019-03-21 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +12433 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36390] IDLE: Refactor formatting methods from editor

2019-03-21 Thread Cheryl Sabella
New submission from Cheryl Sabella : In editor.py, there are several methods (indent, dedent, comment, uncomment, tabify, untabify) that are event handlers for formatting text. To simplify testing and to simplify the EditorWindow class, refactor these methods into their own method. This was

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

2019-03-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

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

2019-03-21 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12432 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

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

2019-03-21 Thread STINNER Victor
New submission from STINNER Victor : That's the follow-up of a thread that I started on python-dev in June 2018: [Python-Dev] Idea: reduce GC threshold in development mode (-X dev) https://mail.python.org/pipermail/python-dev/2018-June/153857.html When an application crash during a garbage

[issue17234] python-2.7.3-r3: crash in visit_decref()

2019-03-21 Thread STINNER Victor
STINNER Victor added the comment: The latest message from the reporter was at 2013-08-25: 6 years ago. I don't think that we will be able to continue to investigate the issue, so I close it as "out of date". -- nosy: +vstinner resolution: -> out of date stage: -> resolved status: p

[issue36386] segfault on PyUnicode_DecodeFSDefaultAndSize for uninitialized Py

2019-03-21 Thread STINNER Victor
STINNER Victor added the comment: > This is because PyUnicode_DecodeFSDefaultAndSize calls > _PyInterpreterState_GET_UNSAFE(), which already documents the potential NULL > return value. _PyInterpreterState_GET_UNSAFE() is preferred over other functions getting the interpreter for best perf

[issue36386] segfault on PyUnicode_DecodeFSDefaultAndSize for uninitialized Py

2019-03-21 Thread anthony shaw
anthony shaw added the comment: This is because PyUnicode_DecodeFSDefaultAndSize calls _PyInterpreterState_GET_UNSAFE(), which already documents the potential NULL return value. /* Get the current interpreter state. The macro is unsafe: it does not check for error and it can return NULL

[issue36386] segfault on PyUnicode_DecodeFSDefaultAndSize for uninitialized Py

2019-03-21 Thread STINNER Victor
STINNER Victor added the comment: > I'm expecting a "this is not a bug, why would the interpreter not be > initialized", this is not a bug, why would the interpreter not be initialized, as documented at: https://docs.python.org/dev/c-api/init.html > but it would be nice to get a friendly er

[issue36388] pdb: do_debug installs sys.settrace handler when used inside post_mortem

2019-03-21 Thread daniel hahler
Change by daniel hahler : -- keywords: +patch pull_requests: +12431 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36388] pdb: do_debug installs sys.settrace handler when used inside post_mortem

2019-03-21 Thread daniel hahler
New submission from daniel hahler : It seems like the "debug" command is not properly handled with "post_mortem()". It appears due to using `sys.settrace(self.trace_dispatch)` in the end of `do_debug`, although no tracing is installed with post_mortem in the first place. More info: Given th

[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2019-03-21 Thread SilentGhost
Change by SilentGhost : -- nosy: +pmoody versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.9 ___ Python tracker ___ _

[issue36386] segfault on PyUnicode_DecodeFSDefaultAndSize for uninitialized Py

2019-03-21 Thread SilentGhost
Change by SilentGhost : -- nosy: +vstinner type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue36315] Unable to install Python 3.7.2

2019-03-21 Thread Sujoy
Sujoy added the comment: Hi Steve, I have attached the "core_JustForMe" log file -- Added file: https://bugs.python.org/file48226/Python 3.7.2 (32-bit)_20190321131450_000_core_JustForMe.log ___ Python tracker

[issue36386] segfault on PyUnicode_DecodeFSDefaultAndSize for uninitialized Py

2019-03-21 Thread anthony shaw
anthony shaw added the comment: I'm expecting a "this is not a bug, why would the interpreter not be initialized", but it would be nice to get a friendly error message since this is a public API. IF so, am also happy to submit a PR with a fix -- _

[issue36386] segfault on PyUnicode_DecodeFSDefaultAndSize for uninitialized Py

2019-03-21 Thread anthony shaw
anthony shaw added the comment: This applies to PyUnicode_EncodeFSDefault as well, it has the same issue -- ___ Python tracker ___