[issue32129] Icon on macOS

2017-11-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Here is the current code in idlelib.pyshell.main. # set application icon icondir = os.path.join(os.path.dirname(__file__), 'Icons') if system() == 'Windows': iconfile = os.path.join(icondir, 'idle.ico')

[issue30004] in regex-howto, improve example on grouping

2017-11-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Cristian for reporting this issue. Thank you Mandeep for your patch. Thank you Mariatta for merging. -- ___ Python tracker

[issue32089] In developer mode (-X dev), ResourceWarning is only emited once per line numbers

2017-11-24 Thread Nick Coghlan
Nick Coghlan added the comment: +1 from me for using "default" instead of "always" for ResourceWarning. Folks can always combine "-X tracemalloc" with "-W always::ResourceWarning" if want to ensure they see absolutely every resource warning, rather than only

[issue30004] in regex-howto, improve example on grouping

2017-11-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks everyone. I merged the PR, and it's been backported to 3.6 and 2.7 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30004] in regex-howto, improve example on grouping

2017-11-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 3e60747025edc34b503397ab8211be59cfdd05cd by Mariatta (Miss Islington (bot)) in branch '3.6': bpo-30004: Fix the code example of using group in Regex Howto Docs (GH-4443) (GH-4554)

[issue30004] in regex-howto, improve example on grouping

2017-11-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset c02037d62284f4d4ca6b22f2ed05165ce2014951 by Mariatta (Miss Islington (bot)) in branch '2.7': bpo-30004: Fix the code example of using group in Regex Howto Docs (GH-4443) (GH-4555)

[issue30004] in regex-howto, improve example on grouping

2017-11-24 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4486 ___ Python tracker ___

[issue30004] in regex-howto, improve example on grouping

2017-11-24 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4485 ___ Python tracker ___

[issue30004] in regex-howto, improve example on grouping

2017-11-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 610e5afdcbe3eca906ef32f4e0364e20e1b1ad23 by Mariatta (Mandeep Bhutani) in branch 'master': bpo-30004: Fix the code example of using group in Regex Howto Docs (GH-4443)

[issue32129] Icon on macOS

2017-11-24 Thread Kevin Walzer
New submission from Kevin Walzer : The trunk and 8.6.7 branch of Tk on macOS have recently implemented the wm_iconphoto command, which had not previously been supported on macOS. This means that versions of IDLE that link to this version of Tk will inherit the

[issue10544] yield expression inside generator expression does nothing

2017-11-24 Thread Nick Coghlan
Nick Coghlan added the comment: I realised that even without modifying the compiler first, I could illustrate the proposed `yield from` based resolution for the comprehension case by way of explicit yield from clauses: ``` def get_gen_result(gen, inputs): try:

[issue10544] yield expression inside generator expression does nothing

2017-11-24 Thread Nick Coghlan
Nick Coghlan added the comment: Given the direction of the python-dev thread, should we split this question into two issues? Issue 1: a yield expression inside a comprehension changes the type of the expression result (returning a generator-iterator instead of the

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-24 Thread Nick Coghlan
Nick Coghlan added the comment: Huh, those crashes are interesting - I'd guess that it means we have a platform-dependent dependency from Py_DecodeLocale on to Py_SetPythonHome in order to locate the encodings module. If I'm right, that dependency would then mean that

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread Nick Coghlan
Nick Coghlan added the comment: Key point to note regarding PEP 432: at least personally, I'm not actually aiming to deprecate the legacy embedding API. Instead, I'm just aiming to eventually stop *adding* to it, with new config structs replacing the current ad hoc mix of

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2017-11-24 Thread Martin Panter
Martin Panter added the comment: Victor opened Issue 32128 with the same complaint. I think I found the offending article: >>> server = NNTP_SSL("nntp.aioe.org") >>> [response, count, first, last, name] = server.group("comp.lang.python") >>> last 199267 >>>

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9316ee4da2dcc217351418fc4dbe9205995689e0 by Victor Stinner in branch 'master': bpo-32030: Add _PyPathConfig_Init() (#4551) https://github.com/python/cpython/commit/9316ee4da2dcc217351418fc4dbe9205995689e0 --

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2017-11-24 Thread Martin Panter
Martin Panter added the comment: If it helps, here is a basic test case I wrote for “pty.spawn”. I hope that it exposes the problem on Free BSD, but I have only tested it on Linux. parent = r'''\ import pty, sys pty.spawn((sys.executable, "-c", sys.argv[1])) ''' child =

[issue32128] test_nntplib: test_article_head_body() fails in SSL mode

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset dde38b9cb3ff24f2f1f17cb681d30741e0090f51 by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-32128: Skip test_nntplib.test_article_head_body() (GH-4552) (#4553)

[issue32127] tutorial on dictionaries has error in example

2017-11-24 Thread Eric V. Smith
Eric V. Smith added the comment: No problem. Welcome to Python! -- ___ Python tracker ___

[issue32128] test_nntplib: test_article_head_body() fails in SSL mode

2017-11-24 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4484 ___ Python tracker ___

[issue32128] test_nntplib: test_article_head_body() fails in SSL mode

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 706cb3162e15271ecfeba15909ed48a3a437009f by Victor Stinner in branch 'master': bpo-32128: Skip test_nntplib.test_article_head_body() (#4552)

[issue32128] test_nntplib: test_article_head_body() fails in SSL mode

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4483 stage: -> patch review ___ Python tracker ___

[issue32128] test_nntplib: test_article_head_body() fails in SSL mode

2017-11-24 Thread STINNER Victor
New submission from STINNER Victor : The news.trigofacile.com NNTP server used by test_nntplib currently has troubles on SSL: $ ./python -m test -u all -v test_nntplib -m test_article_head_body ==

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4482 ___ Python tracker ___ ___

[issue30855] [2.7] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-11-24 Thread Zachary Ware
Change by Zachary Ware : -- pull_requests: +4481 stage: resolved -> patch review ___ Python tracker ___

[issue29885] Allow GMT timezones to be used in datetime.

2017-11-24 Thread Decorater
Change by Decorater : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30396] Document the PyClassMethod* C API functions.

2017-11-24 Thread Decorater
Change by Decorater : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset f04ebe2a4d68b194deeb438e9185efdafc10a832 by Victor Stinner in branch 'master': bpo-32030: Add _PyMainInterpreterConfig.program_name (#4548)

[issue32118] Docs: add note about sequence comparisons containing non-orderable elements

2017-11-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: This whole section has become a mess an is now more complex that the underlying code. Adding more caveats, special cases, and atypical examples will make it worse (rather like the U.S. tax code, another example of bad

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4480 ___ Python tracker ___ ___

[issue32116] CSV import and export simplified

2017-11-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm also -1 on this feature request. The open and closing of files is orthogonal to what you do with an open file. Likewise, iterators are orthogonal to how they are consumed (for-loops, list(), set(), etc). FWIW, csv.Reader

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread Eric Snow
Eric Snow added the comment: I've left a review (writing it as you merged the PR). My main concern is that we not promise more than we must. Every pre-init function or variable we promise to embedders represents global state that is hard to get rid of. It also

[issue32123] Make the API of argparse.HelpFormatter public

2017-11-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suggest that you open a thread on python-ideas list: something like 'Make argparse.HelpFormatter public'. Explain what you would like to have happen and why. -- nosy: +terry.reedy ___ Python

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 46972b7bc385ec2bdc7f567bbd22c9e56ffdf003 by Victor Stinner in branch 'master': bpo-32030: Add _PyMainInterpreterConfig_ReadEnv() (#4542) https://github.com/python/cpython/commit/46972b7bc385ec2bdc7f567bbd22c9e56ffdf003

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: > These results look strange to me. I expected the same difference but smaller > the base time. Honestly, I was also surprised. I checked the whole benchmark twice. I also rebased the PR locally to make sure that it's not a side

[issue32125] Remove global configuration variable Py_UseClassExceptionsFlag

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: > Then document this explicitly like for other functions that *should* be > called before Py_Initialize() if called at all. I agree that it would be even better to document if a function must not be called after Py_Initialize().

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 84c4b1938fade2b425ac906730beabd413de094d by Victor Stinner in branch 'master': bpo-32124: Document C functions safe before init (#4540) https://github.com/python/cpython/commit/84c4b1938fade2b425ac906730beabd413de094d

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: These results look strange to me. I expected the same difference but smaller the base time. -- ___ Python tracker

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file47287/bench_ignore_warn_c.py ___ Python tracker ___

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New benchmark on the emitting a warning which is ignored. Benchmark the PR 4489. Warning emitted in Python, warnings.warn(): vstinner@apu$ ./python -m perf compare_to master.json ignore.json Mean +- std dev: [master] 705 ns +- 24

[issue32125] Remove global configuration variable Py_UseClassExceptionsFlag

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset da9c8c36aeb60ad8f7748a735c372bf993d2e4f3 by Victor Stinner in branch 'master': bpo-32125: Remove Py_UseClassExceptionsFlag flag (#4544) https://github.com/python/cpython/commit/da9c8c36aeb60ad8f7748a735c372bf993d2e4f3

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I'm quite sure that calling PyMem_SetAllocator() or > PyObject_SetArenaAllocator() after Py_Initialize() will quickly crash. Then document this explicitly like for other functions that *should* be called before Py_Initialize()

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: > Should PyMem_SetAllocator() and PyObject_SetArenaAllocator() be called before > Py_Initialize(), or they can be called after it? I'm quite sure that calling PyMem_SetAllocator() or PyObject_SetArenaAllocator() after

[issue32125] Remove global configuration variable Py_UseClassExceptionsFlag

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4479 stage: -> patch review ___ Python tracker ___

[issue32097] doctest does not consider \r\n a

2017-11-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.4, Python 3.5, Python 3.8 ___ Python tracker ___

[issue32080] Re locale test fails after installing Python 3.6.3 on ubuntu 16.04

2017-11-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Installation, Library (Lib) -2to3 (2.x to 3.x conversion tool) nosy: +serhiy.storchaka title: Error Installing Python 3.6.3 on ubuntu 16.04 -> Re locale test fails after installing Python 3.6.3 on ubuntu 16.04 type: resource

[issue32127] tutorial on dictionaries has error in example

2017-11-24 Thread Toby Berla
Toby Berla added the comment: Thanks, Eric. (I'm new to Python.) Perhaps I should have paid closer attention to the description of the dictionary data structure -- "Performing list(d.keys()) on a dictionary returns a list of all the keys used in the dictionary, in

[issue32127] tutorial on dictionaries has error in example

2017-11-24 Thread Eric V. Smith
Eric V. Smith added the comment: dict makes no guarantees on ordering, so I think the example is fine. There is no "correct" ordering. -- nosy: +eric.smith ___ Python tracker

[issue32127] tutorial on dictionaries has error in example

2017-11-24 Thread Toby Berla
New submission from Toby Berla : in https://docs.python.org/3/tutorial/datastructures.html: - 5.5. Dictionaries ... Here is a small example using a dictionary: >>> >>> tel = {'jack': 4098, 'sape': 4139} >>> tel['guido'] = 4127 >>> tel {'sape': 4139, 'guido': 4127,

[issue32116] CSV import and export simplified

2017-11-24 Thread Paul Long
Change by Paul Long : -- keywords: +patch pull_requests: +4478 stage: -> patch review ___ Python tracker ___

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should PyMem_SetAllocator() and PyObject_SetArenaAllocator() be called before Py_Initialize(), or they can be called after it? If PyMem_Malloc() and PyObject_Malloc() are not needed for pre-initialization, should we support

[issue28684] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2017-11-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 5742f674f7561dc9a1fc66d650e18e31b941183b by xdegaye in branch 'master': bpo-28684: Remove useless import added by the previous commit (GH-4547) https://github.com/python/cpython/commit/5742f674f7561dc9a1fc66d650e18e31b941183b

[issue32112] Should uuid.UUID() accept another UUID() instance?

2017-11-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Growing the size of the code and the documentation, complicating the mental model, slowing down all other cases, the risk of introducing bugs. This is the cost that we should pay for adding a new feature. The benefit of adding a

[issue28684] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2017-11-24 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4477 ___ Python tracker ___ ___

[issue32067] Deprecate accepting unrecognized braces in regular expressions

2017-11-24 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32112] Should uuid.UUID() accept another UUID() instance?

2017-11-24 Thread Éric Araujo
Éric Araujo added the comment: I don’t see a downside in accepting the feature request here. Maybe ask on python-ideas to get more feedback? -- nosy: +eric.araujo ___ Python tracker

[issue31706] urlencode should accept generator as values for mappings when doseq=True

2017-11-24 Thread François Freitag
François Freitag added the comment: I updated the PR to allow any iterable of two-elements iterables to be passed to urlencode. If anyone has the time and interest, the PR is ready for review. -- ___ Python tracker

[issue32126] [asyncio] test failure when the platform lacks a functional sem_open()

2017-11-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: See also the related issues: #3770: test_multiprocessing fails on systems with HAVE_SEM_OPEN=0 #28668: instanciation of multiprocessing.Queue raises ImportError in test_logging #26924: android: test_concurrent_futures fails --

[issue32126] [asyncio] test failure when the platform lacks a functional sem_open()

2017-11-24 Thread Xavier de Gaye
New submission from Xavier de Gaye : test_get_event_loop_new_process fails on Android API 24 with the error: == ERROR: test_get_event_loop_new_process (test.test_asyncio.test_events.EPollEventLoopTests)

[issue32089] In developer mode (-X dev), ResourceWarning is only emited once per line numbers

2017-11-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine: What do you think of using the "default" action for pydebug build > and -X dev? That would be fine with me. -- ___ Python tracker

[issue28684] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2017-11-24 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue28684] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2017-11-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 0f86cd38f4a38f25a4aed3759a654a4b7fa49031 by xdegaye in branch 'master': bpo-28684: asyncio tests handle PermissionError raised on binding unix sockets (GH-4503)

[issue28684] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2017-11-24 Thread Xavier de Gaye
Change by Xavier de Gaye : -- versions: -Python 3.6 ___ Python tracker ___ ___

[issue12239] msilib VT_EMPTY SummaryInformation properties raise an error (suggest returning None)

2017-11-24 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Mark. I updated the test code and commit it to 3.6 and master branches. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6, Python 3.7 -Python 3.4, Python

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: > Are you sure about PyMem_Malloc() and PyObject_Malloc()? Technically, the pymalloc memory allocator is initialized statically by the compiler, from the first instruction of the process. But maybe we should not suggest users to

[issue12239] msilib VT_EMPTY SummaryInformation properties raise an error (suggest returning None)

2017-11-24 Thread Berker Peksag
Berker Peksag added the comment: New changeset 412f00b839eae2bc07ca08a8e615c3d7dc870646 by Berker Peksag in branch '3.6': [3.6] bpo-12239: Make GetProperty() return None for VT_EMPTY (GH-4539)

[issue32125] Remove global configuration variable Py_UseClassExceptionsFlag

2017-11-24 Thread STINNER Victor
New submission from STINNER Victor : The Py_UseClassExceptionsFlag flag was added by the commit 035574d755bfc306704e9975dc10e4e05a47b3bb. The commit 757af0e7bb7c7d56670fbc84f1f5b0182a54e3d5 started to use this flag: + /* if Python was started with -X,

[issue12239] msilib VT_EMPTY SummaryInformation properties raise an error (suggest returning None)

2017-11-24 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +4476 ___ Python tracker ___ ___

[issue12239] msilib VT_EMPTY SummaryInformation properties raise an error (suggest returning None)

2017-11-24 Thread Berker Peksag
Berker Peksag added the comment: New changeset 19fb134185ce155bc53f517116fca73093ba55e9 by Berker Peksag in branch 'master': bpo-12239: Make GetProperty() return None for VT_EMPTY (GH-4539)

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4475 ___ Python tracker ___ ___

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are you sure about PyMem_Malloc() and PyObject_Malloc()? What functions require them? I thought only PyMem_RawMalloc() can be called before Py_Initialize(). I think that for all functions that *can* or *should* be called before

[issue32121] tracemalloc.Traceback.format() should have an option to reverse the traceback

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: > While we are here, what if make a negative limit truncating from the opposite > side, as in the traceback module? Why not. I'm not opposed to that :-) -- ___ Python tracker

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: The test also failed on x86 Tiger 3.x: http://buildbot.python.org/all/#/builders/30/builds/212 == FAIL: test_pre_initialization_api (test.test_capi.EmbeddingTests)

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: We now check that Py_DecodeLocale() can be called before Py_Initialize(). IMHO we need to document this property in the documentation: I opened bpo-32124 and wrote a PR for that. -- ___

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4474 stage: -> patch review ___ Python tracker ___

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread STINNER Victor
New submission from STINNER Victor : Follow-up of bpo-32086, bpo-32096 and "[Python-Dev] Python initialization and embedded Python" thread: https://mail.python.org/pipermail/python-dev/2017-November/150605.html I propose to explicitly list functions that can be

[issue10544] yield expression inside generator expression does nothing

2017-11-24 Thread Armin Rigo
Change by Armin Rigo : -- nosy: -arigo ___ Python tracker ___ ___

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 9e87e7776f7ace66baaf7247233afdabd00c2b44 by Victor Stinner in > branch 'master': > bpo-32096: Remove obj and mem from _PyRuntime (#4532) The newly added test failed on AMD64 Debian root 3.x:

[issue32121] tracemalloc.Traceback.format() should have an option to reverse the traceback

2017-11-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: While we are here, what if make a negative limit truncating from the opposite side, as in the traceback module? -- nosy: +serhiy.storchaka ___ Python tracker

[issue31626] Writing in freed memory in _PyMem_DebugRawRealloc() after shrinking a memory block

2017-11-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > * 3.6: don't memset() --> correct, but don't detect "use after free" bug > when a memory block is skrinked And doesn't detect "use after free" bug when a memory block is expanded. And 2.7 doesn't detect this. Only 3.7 detects

[issue30657] Unsafe arithmetic in PyString_DecodeEscape

2017-11-24 Thread Leo kirotawa silva
Leo kirotawa silva added the comment: Python 3.4 also has the similar code as 3.5, but applying the same patch tests for it results in test errors: +==

[issue12239] msilib VT_EMPTY SummaryInformation properties raise an error (suggest returning None)

2017-11-24 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +4473 stage: needs patch -> patch review ___ Python tracker ___

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9e87e7776f7ace66baaf7247233afdabd00c2b44 by Victor Stinner in branch 'master': bpo-32096: Remove obj and mem from _PyRuntime (#4532) https://github.com/python/cpython/commit/9e87e7776f7ace66baaf7247233afdabd00c2b44

[issue30860] Consolidate stateful C globals under a single struct.

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9e87e7776f7ace66baaf7247233afdabd00c2b44 by Victor Stinner in branch 'master': bpo-32096: Remove obj and mem from _PyRuntime (#4532) https://github.com/python/cpython/commit/9e87e7776f7ace66baaf7247233afdabd00c2b44

[issue31626] Writing in freed memory in _PyMem_DebugRawRealloc() after shrinking a memory block

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 2.7 ___ Python tracker ___ ___

[issue31626] Writing in freed memory in _PyMem_DebugRawRealloc() after shrinking a memory block

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: Ok, let me summarize: * 2.7: memset() *before* realloc() if shrinking a memory block, but crash when Py_FatalError() if realloc() fails on shrinking --> cannot corrupt memory, but can crash if realloc() fails on shrinking * master

[issue32121] tracemalloc.Traceback.format() should have an option to reverse the traceback

2017-11-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > what do you think of adding a new parameter but also **reverse frames by > default**? This would be fine with me. I didn't want to suggest it because it would break compatibility but obviously I find the current behaviour annoying :-)

[issue32121] tracemalloc.Traceback.format() should have an option to reverse the traceback

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: tracemalloc.Traceback contains "raw" data from the C _tracemalloc module. But since we are at Python level, we are free to change how data is rendered to user. Since Antoine Pitrou was surprised by the current frame order in

[issue12382] [msilib] Obscure exception message when trying to open a non-existent MSI database

2017-11-24 Thread Berker Peksag
Berker Peksag added the comment: Thank you for your patch, William. I added a test case, a NEWS entry and committed it to 3.6 and master branches. -- components: +Library (Lib) nosy: +paul.moore, steve.dower, zach.ware resolution: -> fixed stage: patch review

[issue12382] [msilib] Obscure exception message when trying to open a non-existent MSI database

2017-11-24 Thread Berker Peksag
Berker Peksag added the comment: New changeset bfa89b21e119bac7fed4a5decc26f1fff8ec359e by Berker Peksag (Miss Islington (bot)) in branch '3.6': bpo-12382: Make OpenDatabase() raise better exception messages (GH-4528)

[issue29556] Remove unused #include

2017-11-24 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: As https://github.com/python/cpython/pull/98 is merged, this issue is fixed. Thanks haypo for the review! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue30987] Support for ISO-TP protocol in SocketCAN

2017-11-24 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue32120] python 3.6.0 is not importing sqlite3

2017-11-24 Thread Abinaya
Abinaya added the comment: Is there any bug in python_v360. Please let me know why its not supporting sqlite3. Python-3.6.3 seems to working but It would be better if you give some clarification about python3.6.0. --

[issue12382] [msilib] Obscure exception message when trying to open a non-existent MSI database

2017-11-24 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4472 ___ Python tracker ___

[issue12382] [msilib] Obscure exception message when trying to open a non-existent MSI database

2017-11-24 Thread Berker Peksag
Berker Peksag added the comment: New changeset 4864a619dc1cc9092780ccf5a6327e8abf66133d by Berker Peksag in branch 'master': bpo-12382: Make OpenDatabase() raise better exception messages (GH-4528)

[issue32123] Make the API of argparse.HelpFormatter public

2017-11-24 Thread Bernhard10
New submission from Bernhard10 : Since there have not been any significant change to the code of argparse.HelpFormatter in the last few years but there are still some open issues where people want to customize formatting, I would like to ask: What is required before

[issue28334] netrc does not work if $HOME is not set

2017-11-24 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +4471 ___ Python tracker ___ ___