[issue28898] Can't compile gdb with Python 3.6

2016-12-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think we should take this for 3.6. -- assignee: -> ned.deily nosy: +ned.deily priority: normal -> release blocker ___ Python tracker

[issue28898] Can't compile gdb with Python 3.6

2016-12-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4745d801cae2 by Benjamin Peterson in branch '3.6': guard HAVE_LONG_LONG definition to prevent redefinition (#28898) https://hg.python.org/cpython/rev/4745d801cae2 New changeset 1afc3f4f5502 by Benjamin Peterson in branch 'default': merge 3.6

[issue28902] 3.6.0rc1 installer fails to install / uninstall.

2016-12-07 Thread Decorater
Changes by Decorater : -- type: -> behavior ___ Python tracker ___ ___

[issue28902] 3.6.0rc1 installer fails to install / uninstall.

2016-12-07 Thread Decorater
New submission from Decorater: When installing python 3.6.0rc1 it errors saying that it cannot find python.dll in cab1.cab (or some sort of file name similar to that) which it would obviously not exist. and then when I try to uninstall it it will fail saying 3.6 is not installed but not

[issue28901] Embedded Release interactive mode documentation

2016-12-07 Thread Matthias v/d Meent
New submission from Matthias v/d Meent: The Windows Embedded release (at least the x86_64 version) does not include the usual helper functions (exit, help, ...) when run interactively (~ python.exe). This is not documented at the docs of Windows Embedded release, which might mean that this is

[issue28900] update 'docs for other versions'

2016-12-07 Thread Ned Deily
Ned Deily added the comment: With the above changes, the sidebar should get updated for the current 2.7, 3.5, 3.6, and 3.7 front pages within the next 24 hours. I'm leaving this open as a "release blocker" as a reminder to go back and update them all again once 3.6.0 final happens. I've

[issue28900] update 'docs for other versions'

2016-12-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset e414fb1640e0 by Ned Deily in branch '2.7': Issue #28900: Update documentation sidebar for 3.6.0rc. https://hg.python.org/cpython/rev/e414fb1640e0 New changeset d350fc4d78ff by Ned Deily in branch '3.5': Issue #28900: Update documentation sidebar

[issue28900] update 'docs for other versions'

2016-12-07 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: No prob. Thanks, Ned. -- ___ Python tracker ___ ___ Python-bugs-list

[issue28900] update 'docs for other versions'

2016-12-07 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: If it's ok, I'd like to work on a patch for this :) -- nosy: +Mariatta ___ Python tracker ___

[issue28900] update 'docs for other versions'

2016-12-07 Thread Ned Deily
Ned Deily added the comment: Thanks but I'm almost done, Mariatta. The most important part is ensuring PEP 101 is correct. -- ___ Python tracker ___

[issue28900] update 'docs for other versions'

2016-12-07 Thread Ned Deily
Ned Deily added the comment: OK, I see what needs to be changed. Thanks for the reminder! -- assignee: docs@python -> ned.deily priority: normal -> release blocker stage: -> needs patch ___ Python tracker

[issue28900] update 'docs for other versions'

2016-12-07 Thread Matthias v/d Meent
Matthias v/d Meent added the comment: Yes, they do work. It's just that the links to 3.5 are missing in the sidebar of 3.6 and 3.7. The docs are still reachable though. -- ___ Python tracker

[issue28900] update 'docs for other versions'

2016-12-07 Thread Ned Deily
Ned Deily added the comment: Links to 3.5, 3.6, and dev (future 2.7) docs are available in the pulldown menu above the Download sidebar. Does that work for you? -- nosy: +ned.deily ___ Python tracker

[issue28900] update 'docs for other versions'

2016-12-07 Thread Matthias v/d Meent
New submission from Matthias v/d Meent: The 'docs for other versions' links in the sidebar of docs.python.org do not link to 3.5 in both the 3.6 and 3.7 docs. As I didn't find any docs guidelines, I presume this is an error and should be fixed. A link to the Python 3.6 docs should get added

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread Ned Deily
Ned Deily added the comment: Just follow the normal 3.6 branch which will ensure it gets into 3.6.1. If we end up deciding to also add it to 3.6.0 final, I will handle the cherrypicking. -- ___ Python tracker

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread INADA Naoki
INADA Naoki added the comment: Which revision should I make patch based on? 3.6 branch? or 3.6rc1 tag? After 3.6rc1 is tagged, I pushed optimization which contains same one line change. https://hg.python.org/cpython/rev/d03562dcbb82 -#define ESTIMATE_SIZE(n) (((n)*3) >> 1) +#define

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Ned Deily
Ned Deily added the comment: Yes, thanks, Charles, and thanks everyone else. Sorry about the confusion with the changes in rc1. -- priority: release blocker -> ___ Python tracker

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Nick Coghlan
Nick Coghlan added the comment: Closing as not a bug as Charles suggested, since the problem was due to a workaround NumPy introduced for a regression in the beta releases that was fixed for rc1. -- nosy: +ncoghlan resolution: -> not a bug stage: -> resolved status: open -> closed

[issue28635] Update What's New for 3.6

2016-12-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d12bc674b74e by Yury Selivanov in branch '3.6': Issue #28635: Drop the note that whatsnew is incomplete https://hg.python.org/cpython/rev/d12bc674b74e New changeset 1883072efc5f by Yury Selivanov in branch 'default': Merge 3.6 (issue #28635)

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
Charles Harris added the comment: OK, you fixed what broke us before. If I revert our fixes the problem goes away. So, thanks I guess ;) You can close this. -- ___ Python tracker

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Ned Deily
Ned Deily added the comment: Charles, these are the two changes that went into Lib/warnings.py between b4 and rc1: changeset: 105490:aaee06743c61 branch: 3.6 parent: 105488:c0f59410ccfc user:Ned Deily date:Tue Dec 06 17:12:47 2016 -0500 files:

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
Charles Harris added the comment: I ran with Python 3.6.0rc1 (default, Dec 7 2016, 14:00:51) and get the same errors in both NumPy 1.13.0-dev and 1.12. But I gave you a wrong suggestion, we disable some test errors for releases, which is what is on PyPI, and that is doubtless why you don't

[issue28893] Make sure exceptions raised in __aiter__ are properly chained in ceval

2016-12-07 Thread Yury Selivanov
Yury Selivanov added the comment: Ned, sounds good. Serhiy, we don't have _PyErr_FormatFromCause in 3.5, so I'll probably commit the patch as is in 3.5. For 3.6 is definitely makes sense to use _PyErr_FormatFromCause. -- ___ Python tracker

[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-12-07 Thread Guido van Rossum
Changes by Guido van Rossum : -- priority: deferred blocker -> normal ___ Python tracker ___

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Julien Palard
Julien Palard added the comment: Tried to run the test_nanfunctions.py on tip and Python 3.6.0b4+, on numpy 1.11 and 1.12.0b1, can't make it fail. Installed numpy 1.12.0b1 using: ./python -m pip install --user numpy==1.12.0b1 I suspect Charles tested using Python 3.6.0b3 (can you confirm?),

[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-12-07 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: The failure is fixed now, but it is fixed not in an elegant way (sys._getframe is used). I think this is not urgent. If there are no objections, then I would propose to change priority to normal. -- ___ Python

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread Min RK
Min RK added the comment: This affects IPython (specifically the traitlets component), which is what prompted the report. We were able to push out a release of traitlets with a workaround for the bug (4.3.1), but earlier versions of IPython / traitlets will still be affected (all IPython >=

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
Charles Harris added the comment: The NumPy 1.12.0b1 tarball is available on PyPI if you want to download it. -- ___ Python tracker ___

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
Charles Harris added the comment: You probably need to run NumPy 1.12 to see the problem. Tt looks like the new suppress_warnings context manager is what has been broken. Note that is was broken by 3.6 before, fixed, and now seems to be broken again. --

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
Charles Harris added the comment: I downloaded the tarball and installed the release here and got the same errors. We setup the tests in developement mode by turning some warnings into errors, in particular DeprecationWarnings and RuntimeWarnings, and suppressing others. The tests that are

[issue28755] Rework syntax highlighing in howto/clinic.rst

2016-12-07 Thread Julien Palard
Julien Palard added the comment: Just rebasing my patch on tip as it does no longer cleanly apply. -- Added file: http://bugs.python.org/file45795/issue28755-3.diff ___ Python tracker

[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Steve Dower
Changes by Steve Dower : -- keywords: +patch Added file: http://bugs.python.org/file45794/28896_doc.patch ___ Python tracker ___

[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Steve Dower
Steve Dower added the comment: Here's my proposed doc change for 3.6.0. Any concerns about wording? (The change to remove the line from _bootstrap_external.py will be separate, for ease of cherry-picking.) diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst ---

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have installed NumPy 1.11.2 and ran tests. Tests are passes successfully. -- ___ Python tracker ___

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: What is Numpy doing that is breaking it? -- ___ Python tracker ___ ___

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It works in usual circumstances. >>> import warnings >>> with warnings.catch_warnings(record=True) as w: ... warnings.simplefilter('always') ... warnings.warn('a test warning', DeprecationWarning) ... print(w) ... [] --

[issue26483] docs unclear on difference between str.isdigit() and str.isdecimal()

2016-12-07 Thread Julien Palard
Changes by Julien Palard : Added file: http://bugs.python.org/file45793/issue26483.diff ___ Python tracker ___

[issue28779] set_forkserver_preload() can crash the forkserver if preloaded module instantiate multiprocessing classes

2016-12-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: I will probably commit this in the coming days. -- ___ Python tracker ___

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: So `warnings.catch_warnings` doesn't work anymore in 3.6? -- nosy: +pitrou ___ Python tracker ___

[issue26865] Meta-issue: support of the android platform

2016-12-07 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #20211: setup.py: do not add system header locations when cross compiling issue #28190: Detect curses headers correctly for cross-compiling -- dependencies: +Detect curses headers correctly for cross-compiling, setup.py: do not add system header

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Ned Deily
Changes by Ned Deily : -- keywords: +3.6regression ___ Python tracker ___ ___

[issue28898] Can't compile gdb with Python 3.6

2016-12-07 Thread Ned Deily
Changes by Ned Deily : -- keywords: +3.6regression -patch ___ Python tracker ___ ___

[issue28899] Symbols doesn't match in VS for python.exe and python35.dll

2016-12-07 Thread Arkady “KindDragon” Shapkin
Changes by Arkady “KindDragon” Shapkin : -- resolution: -> not a bug ___ Python tracker ___

[issue28899] Symbols doesn't match in VS for python.exe and python35.dll

2016-12-07 Thread Arkady “KindDragon” Shapkin
Arkady “KindDragon” Shapkin added the comment: That was my fault -- status: open -> closed ___ Python tracker ___

[issue28893] Make sure exceptions raised in __aiter__ are properly chained in ceval

2016-12-07 Thread Ned Deily
Ned Deily added the comment: Yury, sounds like a bug to me so it would be appropriate for a maintenance release. And not a showstopper release critical. -- ___ Python tracker

[issue28899] Symbols doesn't match in VS for python.exe and python35.dll

2016-12-07 Thread Arkady “KindDragon” Shapkin
New submission from Arkady “KindDragon” Shapkin: I installed Python 3.5.2 with PDB, but they can't be loaded. If I try to load them manually Visual Studio displays message "A matching symbol file was not found in this folder." -- components: Windows messages: 282658 nosy: Arkady

[issue28835] Change in behavior when overriding warnings.showwarning and with catch_warnings(record=True)

2016-12-07 Thread Ned Deily
Ned Deily added the comment: Brett, msg282646 ? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Ned Deily
Ned Deily added the comment: I'm OK with adding a doc change before 3.6.0 final. But since this behavior is not new with 3.6, I would rather save any code changes for 3.6.1 unless there is a consensus that this is an urgent security issue. -- ___

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
Charles Harris added the comment: The failing tests don't use the context manager mentioned in msg278976 and which was fixed. In any case, the failures are new an appeared today. A failing test may be viewed at:

[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Steve Dower
Steve Dower added the comment: +Ned Could we get a doc patch into 3.6 marking this class as deprecated? It appears like the importlib docs are the only ones that refer to the class, and none of the docs describe the functionality or indicate that it is enabled by default. I could also pitch

[issue672115] Assignment to __bases__ of direct object subclasses

2016-12-07 Thread Eli Collins
Changes by Eli Collins : -- nosy: +eli.collins ___ Python tracker ___ ___

[issue28860] Fixed all the doctest failures in Doc/library/configparser.rst

2016-12-07 Thread Marco Buttu
Marco Buttu added the comment: I attached a patch in issue 27200 that makes all doctests pass, so I close here. -- resolution: -> duplicate status: open -> closed ___ Python tracker

[issue28863] Doc/includes/*.py files and doctests

2016-12-07 Thread Marco Buttu
Marco Buttu added the comment: I attached a patch in issue 27200 that makes all doctests pass, so I close here. -- resolution: -> duplicate status: open -> closed ___ Python tracker

[issue27200] make doctest in CPython has failures

2016-12-07 Thread Marco Buttu
Marco Buttu added the comment: This last patch (make_doctest_ok.patch) makes all doctests pass (Sphinx 1.5, Python 3.6). Before applaying the patch there are 466 failures in 2096 tests, and after we have more tests (2414) and 0 failures. Actually, sometimes 3 tests fail in

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread Xiang Zhang
Xiang Zhang added the comment: __dict__.pop seems not uncommon. Searching Github could give many practical codes using it. And many of them are acting as generic containers and could be used against massive cases. -- ___ Python tracker

[issue28898] Can't compile gdb with Python 3.6

2016-12-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +benjamin.peterson ___ Python tracker ___

[issue28898] Can't compile gdb with Python 3.6

2016-12-07 Thread Charalampos Stratakis
New submission from Charalampos Stratakis: Trying to compile gdb, with python support and by having it depend on Python 3.6 produces an error that the HAVE_LONG_LONG has been redefined [0]. This seems to have been introduced by this commit [1]. I'm in no way expert on gdb, but from what I

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread STINNER Victor
STINNER Victor added the comment: In this case, I suggest to wait for 3.6.1 to fix it. -- ___ Python tracker ___

[issue28835] Change in behavior when overriding warnings.showwarning and with catch_warnings(record=True)

2016-12-07 Thread Brett Cannon
Brett Cannon added the comment: There's also issue #28835 which might be related. -- ___ Python tracker ___

[issue28190] Detect curses headers correctly for cross-compiling

2016-12-07 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: A clean patch without changes in ./configure. autoreconf necessary -- Added file: http://bugs.python.org/file45790/ncurses-headers.patch ___ Python tracker

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also msg278976. -- ___ Python tracker ___ ___ Python-bugs-list

[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Brett Cannon
Brett Cannon added the comment: Deprecate the importer. If I remember correctly it took us a while to even notice it was missing due to missing tests prior to importlib coming into existence (and getting anyone to care enough to help write those tests also took a lot of effort). --

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread INADA Naoki
INADA Naoki added the comment: > Ned Deily added the comment: > > This issue seems to have slipped through. Should it be a release blocker for > 3.6.0 final or can it wait for 3.6.1? On Python 3.5, instance.__dict__.popitem() cause this issue. On Python 3.6, instance.__dict__.popitem() and

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Calling pop() for instance's __dict__ is not common operation. I expected that this bug does not affect any real code. But the case in issue28894 looks as a real case. This might be a release blocker. -- ___

[issue20211] setup.py: do not add system header locations when cross compiling

2016-12-07 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +xdegaye ___ Python tracker ___ ___ Python-bugs-list

[issue20211] setup.py: do not add system header locations when cross compiling

2016-12-07 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Modified this issue a bit and add some experts on the build system -- nosy: +zach.ware title: setup.py: do not add invalid header locations -> setup.py: do not add system header locations when cross compiling versions: +Python 3.5, Python 3.6, Python

[issue20211] setup.py: do not add invalid header locations

2016-12-07 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Got the same issue here on building Python for Android. See https://circleci.com/gh/yan12125/python3-android/11 for an example build log. /usr/include is erroneously included and leads to build failures: building 'xxlimited' extension

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please show an example of failing test? -- ___ Python tracker ___

[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Paul Moore
Paul Moore added the comment: I thought that most of the users of this functionality had stopped doing so (the only one I recall for certain was pywin32, and last time this came up, I think someone said they had stopped). If the functionality isn't used in any of the well-known modules, I'm

[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Steve Dower
Steve Dower added the comment: It's not intentional, but we clearly haven't done anything to prevent it. Arguably this finder should be omitted when you run in isolated mode, and I'm on the fence about deprecating it entirely. Adding the importlib experts in case they have opinions (relevant

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
Charles Harris added the comment: Probably this commit: https://hg.python.org/cpython/rev/aaee06743c61 . -- ___ Python tracker ___

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread Ned Deily
Ned Deily added the comment: This issue seems to have slipped through. Should it be a release blocker for 3.6.0 final or can it wait for 3.6.1? -- nosy: +ned.deily ___ Python tracker

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Ned Deily
Ned Deily added the comment: Serhiy, Victor, can you look at this please? -- nosy: +haypo, ned.deily, serhiy.storchaka priority: normal -> release blocker ___ Python tracker

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
New submission from Charles Harris: The lastest Python 3.6 pre-release broke a number of NumPy tests. The failing tests are of the sort with warnings.catch_warnings(record=True) as w: warnings.simplefilter('always') ... And the failure seems to be that nothing is recorded

[issue28810] Document bytecode changes in 3.6

2016-12-07 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Alexey Izbyshev
New submission from Alexey Izbyshev: The docs claim: "... the embedded distribution is (almost) fully isolated from the user’s system, including environment variables, system registry settings, and installed packages." Via ProcessMonitor tool I've discovered that python.exe still accesses

[issue28867] NamedTemporaryFile does not generate a ResourceWarning for unclosed files (unlike TemporaryFile)

2016-12-07 Thread Jon Dufresne
Jon Dufresne added the comment: Just for some context, the e.close() is handling this bit of code: https://github.com/python/cpython/blob/d8132c4da7c46587221c5a244224b770d03860b6/Lib/urllib/request.py#L739-L754 When there is no error, http_error_302() will close the passed fp, on error, it

[issue28867] NamedTemporaryFile does not generate a ResourceWarning for unclosed files (unlike TemporaryFile)

2016-12-07 Thread R. David Murray
R. David Murray added the comment: Hmm. That e.close() looks like there may be a deeper problem here. I don't have time to investigate myself, unfortunately. -- ___ Python tracker

[issue28867] NamedTemporaryFile does not generate a ResourceWarning for unclosed files (unlike TemporaryFile)

2016-12-07 Thread Jon Dufresne
Jon Dufresne added the comment: Thanks for the review. I have updated the patch. Now all warnings during tests handled. Please let me know if there are any other concerns with the changes. -- Added file: http://bugs.python.org/file45789/namedtemporaryfile-resourcewarning-2.patch

[issue21978] Support index access on OrderedDict views (e.g. o.keys()[7])

2016-12-07 Thread Ulrich Petri
Ulrich Petri added the comment: Should this maybe reconsidered now that dicts are ordered by default? Having to explain why list is needed in list(some_ordered_dict.values())[0] is a constant thorn in my side when dealing with people new to Python. -- nosy: +ulope

[issue28895] Two suggestions for windows.html

2016-12-07 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +steve.dower ___ Python tracker ___ ___

[issue26110] Speedup method calls 1.2x

2016-12-07 Thread Yury Selivanov
Yury Selivanov added the comment: Please don't merge this without my review. -- ___ Python tracker ___ ___

[issue28894] Memory leak in dict.pop()

2016-12-07 Thread Xiang Zhang
Xiang Zhang added the comment: This is the same problem as #28147. -- nosy: +xiang.zhang resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Unbounded memory growth resizing split-table dicts ___ Python tracker

[issue28895] Two suggestions for windows.html

2016-12-07 Thread Mark Summerfield
New submission from Mark Summerfield: This document is v. useful for Windows Python users: https://docs.python.org/dev/using/windows.html However, I think it could be improved as follows: (1) Explain which Python installer to get (since there are so many)! Even a "get the Windows x86

[issue28894] Memory leak in dict.pop()

2016-12-07 Thread Marius Gedminas
Marius Gedminas added the comment: If you're curious where this happens in real life, py.test's CaptureManager.deactivate_funcargs() does self.__dict__.pop("_capfuncarg", None) and I found it by running 'tox -e py36' on https://github.com/mgedmin/eazysvn --

[issue28894] Memory leak in dict.pop()

2016-12-07 Thread Marius Gedminas
New submission from Marius Gedminas: Run the following script with Python 3.6.0rc1: class O: pass o = O() for n in range(20): print(n) o.x = 42 o.__dict__.pop('x', None) You can observe the memory usage of the Python process growing exponentially.

[issue26110] Speedup method calls 1.2x

2016-12-07 Thread INADA Naoki
INADA Naoki added the comment: $ ./python-default -m perf compare_to default.json callmethod4.json -G Slower (7): - pickle_dict: 66.0 us +- 4.6 us -> 77.0 us +- 5.9 us: 1.17x slower - json_loads: 63.7 us +- 0.7 us -> 68.4 us +- 1.4 us: 1.07x slower - unpack_sequence: 120 ns +- 2 ns -> 125 ns +-

[issue26110] Speedup method calls 1.2x

2016-12-07 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file45788/callmethod4.json.gz ___ Python tracker ___

[issue26110] Speedup method calls 1.2x

2016-12-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added comments on Rietveld. Please document new bytecodes in the dis module documentation and What's New. -- ___ Python tracker

[issue26110] Speedup method calls 1.2x

2016-12-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please increase the magic number by 10. We need to reserve few numbers for the case of bytecode bug fixes in 3.6. -- nosy: +serhiy.storchaka ___ Python tracker

[issue26110] Speedup method calls 1.2x

2016-12-07 Thread INADA Naoki
Changes by INADA Naoki : -- versions: +Python 3.7 -Python 3.6 Added file: http://bugs.python.org/file45786/call_method_4.patch ___ Python tracker

[issue28818] simplify lookdict functions

2016-12-07 Thread INADA Naoki
INADA Naoki added the comment: Thank you for review. And I'm sorry about I committed the patch before seeing last comment. -- ___ Python tracker ___

[issue28818] simplify lookdict functions

2016-12-07 Thread INADA Naoki
Changes by INADA Naoki : -- assignee: rhettinger -> resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue28818] simplify lookdict functions

2016-12-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8d4b2c6a0a7f by INADA Naoki in branch 'default': Issue #28818: Simplify lookdict functions https://hg.python.org/cpython/rev/8d4b2c6a0a7f -- nosy: +python-dev ___ Python tracker

[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty

2016-12-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a610bc8577b by Serhiy Storchaka in branch '3.5': Change order of io.UnsupportedOperation base classes. https://hg.python.org/cpython/rev/4a610bc8577b -- ___ Python tracker

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-07 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Patch version 5, updated comments. Thanks for all of those feedbacks :) -- Added file: http://bugs.python.org/file45785/android-locale-utf8.patch ___ Python tracker

[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty

2016-12-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The test is fixed if change order of base classes of UnsupportedOperation. This is rather a workaround, we should find more general fix. -- Added file: http://bugs.python.org/file45784/UnsupportedOperation-bases-order.patch

[issue10016] shutil.copyfile -- allow sparse copying

2016-12-07 Thread Samuel Shapiro
Samuel Shapiro added the comment: Patch fails on CentOS 6 -- python 2.6 [root@LG-E1A-LNX python2.6]# patch --dry-run -l -p1 -i shutil-2.6.patch shutil.py patching file shutil.py Hunk #1 succeeded at 22 (offset 1 line). Hunk #2 succeeded at 52 with fuzz 1 (offset 1 line). Hunk #3 FAILED at 61.

[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty

2016-12-07 Thread STINNER Victor
STINNER Victor added the comment: test_file started to crash after the change "Issue #5322: Fixed setting __new__ to a PyCFunction inside Python code." :-/ (so all buildbots became red.) Can someone fix it or revert it? (Sorry, I don't have the bandwith right to investigate the crash.)

[issue28884] Python 3.5.2 non-segfaulting bugs (from PyPy)

2016-12-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: (B5) seems was just fixed in issue5322. >>> class C: __new__ = int.__new__ ... >>> C() Traceback (most recent call last): File "", line 1, in TypeError: int.__new__(C): C is not a subtype of int >>> class C(int): __new__ = object.__new__ ... >>> C()

  1   2   >