[issue28097] IDLE: document all key bindings, add menu items for more.

2016-09-12 Thread Terry J. Reedy
New submission from Terry J. Reedy: (Follow-up to #15308, which added ^C Interrupt Execution to doc and Shell menu, and to #27120, which proposed to add ^/ Toggle Highlighting, until I realized that that should be part of #6858, about highlighting non-.py files.) Every IDLE function should be

[issue6858] This is a python file, apply syntax highlighting

2016-09-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: There exists a <> bound (at least on Windows) to ^/. When toggled off, it does not removes existing highlighting. So accidentally hitting the key has no immediate visible effect (see #27170 for problem this caused someone.) It does re-highlight existing cod

[issue17941] namedtuple should support fully qualified name for more portable pickling

2016-09-12 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed versions: +Python 3.6 -Python 3.5 ___ Python tracker ___ __

[issue17941] namedtuple should support fully qualified name for more portable pickling

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset c8851a0ce7ca by Raymond Hettinger in branch 'default': Issue #17941: Add a *module* parameter to collections.namedtuple() https://hg.python.org/cpython/rev/c8851a0ce7ca -- nosy: +python-dev ___ Python tra

[issue25478] Consider adding a normalize() method to collections.Counter()

2016-09-12 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-09-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch changes 4 non-tkinter clinic files. Accident? All 4 are rejected. Will compile and test tkinter changes. -- ___ Python tracker ___

[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread Wolfgang Langner
Wolfgang Langner added the comment: This can be related to building manylinux1 binaries where the Centos 5.11 is used. There can be a possibility to break manaylinux1 builds for Python 3.6, they are used to distribute packages for every Linux distribution. https://www.python.org/dev/peps/pep-0

[issue28096] set.difference() is not interruptible

2016-09-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is no different than the many other places in Python where you can tell the language to go on an infinite wild goose chase: sum(count()), list(count()), etc. I believe there is already a tracker item open for such things. Someone is going to have to

[issue6858] This is a python file, apply syntax highlighting

2016-09-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: +0 from me. -- assignee: rhettinger -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mai

[issue28098] sys.getsizeof(0) is incorrect

2016-09-12 Thread Mark Dickinson
New submission from Mark Dickinson: Low-priority issue, possibly not worth fixing at all, but maybe worth recording. sys.getsizeof(0) currently reports 24 on a 64-bit machine using 30-bit limbs. That's inaccurate, since we're actually allocating 28 bytes for 0 as part of the small-int cache. P

[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-09-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Much better. I can more or less follow IDLE startup. >>> import tkinter >>> tkinter.debug False >>> tkinter.debug = True >>> import idlelib.idle proc tkerror {} {} proc exit {} {} proc 27305592destroy {} {>} wm protocol . WM_DELETE_WINDOW 27305592destroy wm with

[issue28098] sys.getsizeof(0) is incorrect

2016-09-12 Thread Mark Dickinson
Mark Dickinson added the comment: Related: http://bugs.python.org/issue3690 -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue28044] Make the sidebar in the documentation follow the section automatically

2016-09-12 Thread Batiste
Batiste added the comment: Here is a second patch which is improved in some ways: 1. removed the '.headerlink .headerlink' 2. when scrolling over the side bar the 'snappin' is disabled therefor it is rather easy to search and find the desired section or the search box 3. removed an error when c

[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-09-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I ran idle and tcl/tk/ttk tests. all pass with and without patch. text_tcl before and with patch ends with warning: Windows fatal exception: access violation. I have seen this for perhaps a couple of weeks (check windows buildbot), but not forever. You shou

[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-09-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: If not in 3.6, I can still apply patch from shelf, recompile, use for awhile, re-shelve, recompile. So not tragedy if miss deadline. -- ___ Python tracker ___

[issue28044] Make the sidebar in the documentation follow the section automatically

2016-09-12 Thread Batiste
Batiste added the comment: Minor typo fix. -- Added file: http://bugs.python.org/file44591/following-sidebar-3.patch ___ Python tracker ___ __

[issue28098] sys.getsizeof(0) is incorrect

2016-09-12 Thread Mark Dickinson
Mark Dickinson added the comment: I don't think anything has changed substantially since the discussion in issue 3690. Closing as "won't fix". -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue15819] Unable to build Python out-of-tree when source tree is readonly.

2016-09-12 Thread Kubilay Kocak
Kubilay Kocak added the comment: @Martin tldr; That was three years ago so I don't know if the issue remains. Perhaps a new out of tree builder will help answer that question. We(FreeBSD) gave up^W switched away from out of tree builds due to lack of support getting issues fixed and the freque

[issue28080] Allow reading member names with bogus encodings in zipfile

2016-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I can't push the patch in a haste. In needs more design discussion, comparing with other implementations (I found only that ZipFile in Java can take the charset argument, but "charset" is common name for text encoding in Java), wider discussion. The p

[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread Ned Deily
Ned Deily added the comment: Do we know for sure that the manylinux1 builds are affected by this, i.e. can someone try building manylinux1 for 3.6? On the one hand, it is clear that many core developers would like to use these newer features of C, features that have been available for many yea

[issue25478] Consider adding a normalize() method to collections.Counter()

2016-09-12 Thread SilentGhost
SilentGhost added the comment: Floats are also not fully supported by the Counter class, for example, sorted(Counter(a=1.0).elements()) results in TypeError. -- nosy: +SilentGhost ___ Python tracker ___

[issue28044] Make the sidebar in the documentation follow the section automatically

2016-09-12 Thread Batiste
Batiste added the comment: So answer to your comments SilentGhost: I had a look at what Mozilla recommend. Their proposition of using position:sticky is interesting and probably possible for this use case but might require quite a bit of extra work. There is also the other suggestion to use s

[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This feature is useful first at all for us, core developers. I think we could add it with provisional status in the beta stage or wait to 3.7. In any case the documentation and tests are not ready yet. -- nosy: +ned.deily ___

[issue24821] The optimization of string search can cause pessimization

2016-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I would commit the patch before beta 1, but: 1) The issue can be considered not as a new feature, but as a fix of performance bug (just we don't will to backport the fix to 3.5). I think the patch can be committed at the beta stage. 2) I would want to tune

[issue24821] The optimization of string search can cause pessimization

2016-09-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: I just rebuilt the default Python branch (rev c8851a0ce7ca) on Windows in debug mode and 32-bit: the compilation succeeded and test_dict pass. * Windows 8.1 (Version 6.3, Build 9600) * Visual Studio 2015 : version 14.0.23107.0 D14EL > It's unlikely, but we al

[issue28093] ResourceWarning in test_ssl

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset cf2689e191f8 by Christian Heimes in branch 'default': Issue #28093: Check more invalid combinations of PROTOCOL_TLS_CLIENT / PROTOCOL_TLS_SERVER https://hg.python.org/cpython/rev/cf2689e191f8 -- nosy: +python-dev __

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have committed the patch before beta 1 because it change bytecode generating and interpreting. The bytecode generated before the patch is compatible with the patched interpreter, but the bytecode generated by patched compiler can be not compatible with unp

[issue24821] The optimization of string search can cause pessimization

2016-09-12 Thread Ned Deily
Ned Deily added the comment: If it has waited this long and is truly low priority, I think it can wait a little longer until 3.7. -- ___ Python tracker ___ _

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: The change 51b635e81958 introduced memory leaks. Example: $ ./python -m test -R 3:3 test_extcall (...) test_extcall leaked [102, 102, 102] references, sum=306 test_extcall leaked [41, 41, 41] memory blocks, sum=123 I'm analyzing the change to try to identify le

[issue25478] Consider adding a normalize() method to collections.Counter()

2016-09-12 Thread SilentGhost
Changes by SilentGhost : -- Removed message: http://bugs.python.org/msg275998 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25478] Consider adding a normalize() method to collections.Counter()

2016-09-12 Thread SilentGhost
Changes by SilentGhost : -- nosy: -SilentGhost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-09-12 Thread Ned Deily
Ned Deily added the comment: Let's target it for 3.7 and when it is ready we can discuss whether to backport it to 3.6 as well. -- versions: +Python 3.7 -Python 3.6 ___ Python tracker _

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset f217419d08f0 by Victor Stinner in branch 'default': Issue #27213: Fix reference leaks https://hg.python.org/cpython/rev/f217419d08f0 -- ___ Python tracker

[issue28093] ResourceWarning in test_ssl

2016-09-12 Thread Xiang Zhang
Xiang Zhang added the comment: The warning is gone. Close this thread. :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue15819] Unable to build Python out-of-tree when source tree is readonly.

2016-09-12 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: -petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue27744] Add AF_ALG (Linux Kernel crypto) to socket module

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset a951f8f30922 by Victor Stinner in branch 'default': Cleanup socketmodule.c https://hg.python.org/cpython/rev/a951f8f30922 New changeset 3a6917c73857 by Victor Stinner in branch 'default': socket: Fix memory leak in sendmsg() and sendmsg_afalg() http

[issue27866] ssl: get list of enabled ciphers

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a1c7d0fdde6 by Victor Stinner in branch 'default': Issue #27866: Fix refleak in cipher_to_dict() https://hg.python.org/cpython/rev/2a1c7d0fdde6 -- ___ Python tracker

[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread Nick Coghlan
Nick Coghlan added the comment: While manylinux1 requires that compliant binaries *run* when linked against the GCC 4.2 binaries, the actual recommended compiler version (and the one used in the reference Docker image) is 4.8.2: https://www.python.org/dev/peps/pep-0513/#compilation-of-complian

[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: I compiled Python in 4 modes: * debug/32 bits * debug/64 bits * release/32 bits * release/64 bits Compilation never fails and test_dict always pass. I'm unable to reproduce the issue, so I removed the "release blocker" flag to not stress our release manager :

[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-12 Thread Emanuel Barry
Emanuel Barry added the comment: I actually did a clean rebuild and could not reproduce, so I'm guessing something did go wrong on my side. -- priority: deferred blocker -> normal resolution: -> not a bug stage: needs patch -> resolved status: open -> closed type: crash -> __

[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: > I actually did a clean rebuild and could not reproduce, so I'm guessing > something did go wrong on my side. Don't worry. It shouldn't hurt to double or tiple check. I'm not fully confident of this critical change (compact dict). It's good to get any kind of

[issue27364] Deprecate invalid escape sequences in str/bytes

2016-09-12 Thread Emanuel Barry
Emanuel Barry added the comment: Fair enough, but please open a new issue for that. @Terry - you're welcome; that's exactly the reason I pushed for it :) -- ___ Python tracker _

[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread Ned Deily
Ned Deily added the comment: Thanks for the info, Nick. With that in mind, I"m removing this as a "release blocker" for now. Steven, would it be possible to upgrade gcc on your system? We'll have to deal with the Tiger buildbot separately. -- priority: release blocker -> _

[issue27604] More details about `-O` flag

2016-09-12 Thread Berker Peksag
Berker Peksag added the comment: This is a duplicate of issue 17232. Note that "This changes the filename extension for compiled files from ``.pyc`` to ``.pyo``." part is no longer true. See PEP 488 for details. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved stat

[issue28099] Drop Mac OS X Tiger support in Python 3.6

2016-09-12 Thread STINNER Victor
New submission from STINNER Victor: Mac OS X Tiger was released in 2004: 12 years ago, 3 years after Windows XP. The Tiger buildbot has many issues, it uses an old compiler (GCC 4.0) and an old OpenSSL version. Python 3.6 now requires ISO C99 support, whereas Tiger GCC 4.0 lacks support for C

[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: I created the issue #28099 "Drop Mac OS X Tiger support in Python 3.6. -- nosy: +haypo ___ Python tracker ___ __

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset f860b7a775c5 by Victor Stinner in branch 'default': ssue #27213: Reintroduce checks in _PyStack_AsDict() https://hg.python.org/cpython/rev/f860b7a775c5 -- ___ Python tracker

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset e372c0ad32ce by Victor Stinner in branch 'default': Revert change f860b7a775c5 https://hg.python.org/cpython/rev/e372c0ad32ce New changeset 2558bc4a4ebf by Victor Stinner in branch 'default': Document kwnames in _PyObject_FastCallKeywords() and _PyS

[issue27845] Optimize update_keyword_args() function

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: _PyStack_AsDict() doesn't check anymore if keys are unique. BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL opcodes now use PyDict_Update() to combine mappings and _PyDictView_Intersect() to check if keys are unique. I don't know if there is still something to

[issue28100] Refactor error messages in symtable.c

2016-09-12 Thread Ivan Levkivskyi
New submission from Ivan Levkivskyi: Patch with added comment and a minor refactoring to error messages in symtable.c Now the error message is simply always overwritten by any more "severe" SyntaxError found in the same block. -- components: Interpreter Core files: refactor-error-msg.d

[issue28080] Allow reading member names with bogus encodings in zipfile

2016-09-12 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: If you have a workaround that's available to nonprogrammers, I'd like to hear about it. I have found none, that's why I went to the trouble to put together a patch even though I knew that the odds of actually getting it in to Python 3.6 was very low -- m

[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: Hum, I understand that it's a bug, so do you know how to reproduce the bug from a pure Python script? If yes, it would be nice to include an unit test. -- ___ Python tracker _

[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread INADA Naoki
INADA Naoki added the comment: It cannot hit from Python. The function never called for split table, since resize function combine split table. So we can just comment the function supports only combined table. -- ___ Python tracker

[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0e986b81cc1c by Victor Stinner in branch 'default': Issue #28077: find_empty_slot() only supports combined dict https://hg.python.org/cpython/rev/0e986b81cc1c -- nosy: +python-dev ___ Python tracker

[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: > find_empty_slot will also do *value_addr = &mp->ma_values[-1] if it > encounters a split dict. I checked just before Naoki comment the issue, but I have the same conclusion: find_empty_slot() is never called on a split table. By the way, we might modify fin

[issue27350] Compact and ordered dict

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0773e5cb8608 by Victor Stinner in branch 'default': Issue #27350: Document compact dict memory usage https://hg.python.org/cpython/rev/0773e5cb8608 -- ___ Python tracker

[issue27350] Compact and ordered dict

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "Could you compare the performance between the version just before adding new dict implementation and the version just after this?" I'm running benchmarks, I will keep you in touch :-) Since the main issue (implement compact dict) is solved, I close th

[issue28081] [Patch] timemodule: Complete Autoconf bits for clock_*() functions: make clock_getres() and clock_settime() optional

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: LGTM, but I wait until Python 3.6 beta 1 is tagged to push this change. -- ___ Python tracker ___ __

[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: Stefan Behnel: "There is a tiny bit of a backwards compatibility concern as the new function signature would be incompatible with anything we had before," Python 3.6 will probably have two "fast call" calling convention: * _PyObject_FastCallDict(): expect a Py

[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Christian Heimes
Christian Heimes added the comment: Or we can just skip the test like the other tests with self._skip_if_sys_path_not_writable() -- nosy: +christian.heimes ___ Python tracker __

[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Chris Angelico
Chris Angelico added the comment: Huh. Yeah, that would work really nicely. Thanks Christian! Does this count as a bugfix? I think we've missed 3.6 feature freeze. -- ___ Python tracker ___

[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset e9e4d1b5b4b5 by Christian Heimes in branch 'default': Issue #27322: skip test_compile_path when sys.path is not writeable. https://hg.python.org/cpython/rev/e9e4d1b5b4b5 -- nosy: +python-dev ___ Python tr

[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Christian Heimes
Christian Heimes added the comment: AFAIK Ned hasn't tagged the beta yet. Let's see if this fixes the failing Gentoo build bot. -- ___ Python tracker ___ ___

[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread Xiang Zhang
Xiang Zhang added the comment: Yes. It cannot be hit and I want to remove it at first. But I decide not to do that since there is no clue in the future find_empty_slot will not be used against split dict. And hapyo, if you decide to make find_empty_slot support only combined dict, why not rem

[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread Xiang Zhang
Xiang Zhang added the comment: mp_values should be mp->ma_values, sorry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: > And hapyo, if you decide to make find_empty_slot support only combined dict, > why not remove mp_values check? Oh, I didn't notice that find_empty_slot() partially support split tables. Would you like to write a patch? I reopen the issue to fix this nit ;-)

[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7d198fc4c96 by Christian Heimes in branch 'default': Issue #27322: back out the commit. needs to be addressed after beta1. https://hg.python.org/cpython/rev/f7d198fc4c96 -- ___ Python tracker

[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread Xiang Zhang
Xiang Zhang added the comment: Just need to delete the lines :) : diff -r 0773e5cb8608 Objects/dictobject.c --- a/Objects/dictobject.c Mon Sep 12 14:43:14 2016 +0200 +++ b/Objects/dictobject.c Mon Sep 12 21:26:41 2016 +0800 @@ -1011,10 +1011,7 @@ ep = &ep0[mp->ma_keys->dk_nentries

[issue17128] OS X system openssl deprecated - installer should build local libssl

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset bfd0a73cf907 by Ned Deily in branch 'default': Issue #17128: Build OS X installer for 3.6 with private copy of OpenSSL. https://hg.python.org/cpython/rev/bfd0a73cf907 -- ___ Python tracker

[issue27129] Wordcode, part 2

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: This issue can now be closed, no? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2016-09-12 Thread Jens Timmerman
Jens Timmerman added the comment: I'm also regularly running into this, it is really annoying, Can I do anything to help getting this merged in? -- nosy: +Jens.Timmerman ___ Python tracker

[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue27806] 2.7 32-bit builds fail on future releases of OS X due to dependency on deleted header file

2016-09-12 Thread sashk
Changes by sashk : -- nosy: +sashk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please wrap "#define METH_FASTCALL 0x0080" with "#ifndef Py_LIMITED_API"/"#endif"? I think this method still is not stable, and we shouldn't encourage using it in third-party extensions. I would use two methods: just METH_FASTCALL and METH_FASTCAL

[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: > Could you please wrap "#define METH_FASTCALL 0x0080" with "#ifndef > Py_LIMITED_API"/"#endif"? Sorry, this is a mistake. I tried to exclude all new symbols related to fast call from the stable API. It should now be fixed. -- _

[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 08a500e8b482 by Victor Stinner in branch 'default': Issue #27810: Exclude METH_FASTCALL from the stable API https://hg.python.org/cpython/rev/08a500e8b482 -- ___ Python tracker

[issue27129] Wordcode, part 2

2016-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, only the simpler and safer part was committed. I divided the original patch on four parts, but since the code was significantly evolved, they no longer applied clearly. -- ___ Python tracker

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2016-09-12 Thread Melvyn Sopacua
Melvyn Sopacua added the comment: The cause for this error is any cause for not being able to load a module. This includes version conflicts, so when trying to load a virtualenv with python 3.3 interpreter by a uWSGI embedded python3.4 interpreter the action fails. This is - bluntly overstated

[issue28080] Allow reading member names with bogus encodings in zipfile

2016-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python is programming language, I don't understand what you mean saying "available to nonprogrammers". As a programmer you can recode ZipInfo name before outputting or what you want to do with it: filename = filename.encode('cp437').decode(encoding) In

[issue28101] Add utf-8 alias to aliases.py dictionary

2016-09-12 Thread Christian Sarazin
New submission from Christian Sarazin: The utf-8 alias should be added to the utf_8 codec block inside aliases.py Thx Cheers Christian -- components: email messages: 276052 nosy: Christian Sarazin, barry, r.david.murray priority: normal severity: normal status: open title: Add utf-8 a

[issue28101] Add utf-8 alias to aliases.py dictionary

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: > The utf-8 alias should be added to the utf_8 codec block inside aliases.py Codec names are normalized by encodings.normalize_encoding(): >>> encodings.normalize_encoding(' Utf-8 ') 'Utf_8' And then converted to lower case, so there is no need to all syntaxes

[issue28080] Allow reading member names with bogus encodings in zipfile

2016-09-12 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: Cleaned up a few loose ends while it's all fresh in mind. Will ping python-dev in 4-6 weeks for review for 3.7. Thanks to Serhiy for review. The current version of the patch is much improved over the initial submission due to his efforts. -- Ad

[issue27129] Wordcode, part 2

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > No, only the simpler and safer part was committed. I divided the original > patch on four parts, but since the code was significantly evolved, they no > longer applied clearly. Oh ok. I saw that a change was pushed, I didn

[issue28102] zipfile.py script should print usage to stderr

2016-09-12 Thread Stephen J. Turnbull
New submission from Stephen J. Turnbull: Pointed out by Serhiy Storchaka in a different context. -- components: Library (Lib) files: zipfile-errmsg keywords: patch messages: 276056 nosy: sjt priority: normal severity: normal status: open title: zipfile.py script should print usage to std

[issue27181] Add geometric mean to `statistics` module

2016-09-12 Thread Mark Dickinson
Mark Dickinson added the comment: Steven: any thoughts about the statistics.geometric_mean(0.7 for _ in range(5000)) failure? Should I open a separate bug report for that, or would you rather address it as part of this issue? -- ___ Python tracker

[issue28103] Style fix in zipfile.rst

2016-09-12 Thread Stephen J. Turnbull
New submission from Stephen J. Turnbull: Makes style of references to open modes 'r', 'a', ... more consistent. CA pending (I have received PDF, but no star in tracker yet). -- assignee: docs@python components: Documentation files: zipfile-doc-style messages: 276058 nosy: docs@python, s

[issue28102] zipfile.py script should print usage to stderr

2016-09-12 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: CA pending (I have received PDF, but no star in tracker yet). -- ___ Python tracker ___ ___ Pyt

[issue27181] Add geometric mean to `statistics` module

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: >>> statistics.geometric_mean([0.7 for _ in range(5000)]) Traceback (most recent call last): File "/Users/mdickinson/Python/cpython-git/Lib/statistics.py", line 362, in float_nroot isinfinity = math.isinf(x) OverflowError: int too large to convert to float

[issue28102] zipfile.py script should print usage to stderr

2016-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I would request tests, but since currently there are no tests for command line interface to zipfile, it's okay. LGTM. Will commit right after beta 1 is tagged. -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> commit review type: -

[issue28103] Style fix in zipfile.rst

2016-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- nosy: +serhiy.storchaka stage: -> commit review type: -> enhancement ___ Python tracker ___ ___

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread Yury Selivanov
Yury Selivanov added the comment: > After releasing beta 1 this would require changing bytecode magic number. Why don't we change the magic number before b1 (if your bytecode change is already committed)? -- ___ Python tracker

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: > Why don't we change the magic number before b1 (if your bytecode change is > already committed)? The magic number changed many times between Python 3.5 and the future Python 3.6 beta 1. Maybe we skipped increasing this number for one bytecode change, but it

[issue17884] Try to reuse stdint.h types like int32_t

2016-09-12 Thread SilentGhost
SilentGhost added the comment: I get the following compiler warning now: In file included from ./Include/Python.h:66:0, from /cpython/Modules/_ssl.c:19: /cpython/Modules/_ssl.c: In function ‘_setup_ssl_threads’: ./Include/pymem.h:136:18: warning: comparison is always false due t

[issue17884] Try to reuse stdint.h types like int32_t

2016-09-12 Thread SilentGhost
Changes by SilentGhost : -- resolution: fixed -> stage: patch review -> status: closed -> open ___ Python tracker ___ ___ Python-bug

[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue28086] test.test_getargs2.TupleSubclass test failure

2016-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm marking this as a deferred blocker as i believe we want this resolved before we exit the betas. -- nosy: +gregory.p.smith priority: normal -> deferred blocker ___ Python tracker

[issue27806] 2.7 32-bit builds fail on future releases of OS X due to dependency on deleted header file

2016-09-12 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue17884] Try to reuse stdint.h types like int32_t

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: > I get the following compiler warning now: (...) Why do you think that it's related to stdint.h changes? -- ___ Python tracker ___ ___

[issue17884] Try to reuse stdint.h types like int32_t

2016-09-12 Thread SilentGhost
SilentGhost added the comment: Probably, not for a particularly good reason, but none of the near-by code in _ssl.c seemed relevant on superficial inspection. The commit 02c8db9c255f which modified Include/pymem.h didn't have an issue associated with it. -- ___

  1   2   3   >