[issue29321] Wrong documentation (Language Ref) for unicode and str comparison

2017-01-19 Thread Martin Panter
Martin Panter added the comment: The Python 3 version of this was rewritten in Issue 12067. It would be good to port the new text to the Python 2 version, although that is not straightforward because of various differences between Python 2 and 3. That doesn’t rule out making smaller more speci

[issue29325] pysqlite: Evaluate removal of sqlite3_stmt_readonly

2017-01-19 Thread Brian Vandenberg
New submission from Brian Vandenberg: I'm not sure where to request changes to pysqlite, so my apologies if this isn't the right place. To begin with: I'll either end up building a newer version of sqlite myself or just accepting that pysqlite won't be part of this python installation. Howev

[issue12067] Doc: remove errors about mixed-type comparisons.

2017-01-19 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +Wrong documentation (Language Ref) for unicode and str comparison ___ Python tracker ___

[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2017-01-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: issue20186.mathmodule.v2.patch needed just synchronizing docstrings. -- ___ Python tracker ___ ___

[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2017-01-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 112f27b8c8ea by Serhiy Storchaka in branch 'default': Issue #20186: Converted the math module to Argument Clinic. https://hg.python.org/cpython/rev/112f27b8c8ea -- ___ Python tracker

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-01-19 Thread Paul Moore
Paul Moore added the comment: Sorry I should have thought of trying -v. The output (included below) doesn't seem to offer many hints, though. runpy.pyc is in python36.zip, I checked that. I'll see if I can find a machine without Python installed to test that case. >.\python.exe -v .\test.pyz i

[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2017-01-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The only change I made is used the return converter in length_hint(). -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-01-19 Thread Steve Dower
Steve Dower added the comment: Does running with -v provide any more hints? I'm also interested in whether the alphas work when you don't have a full install on the same machine. PC/getpathp.c changed for b1. But that's probably less important. Perhaps runpy just never made it into the python

[issue29324] test_aead_aes_gcm fails on Kernel 4.9

2017-01-19 Thread Christian Heimes
Christian Heimes added the comment: recv(64) works. I need to figure out why 64 and what's in the extra bytes. -- ___ Python tracker ___ _

[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2017-01-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3713f7de576d by Serhiy Storchaka in branch 'default': Issue #20186: Converted the _operator module to Argument Clinic. https://hg.python.org/cpython/rev/3713f7de576d -- ___ Python tracker

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Stuart Berg added the comment: In addition to zip(), this problem also affects map() and filter(). The problem is that the match patterns in FixZip, FixMap, and FixFilter do not allow for more than one "trailer" node. (And even if they did, their transform() methods aren't expecting it.) For

[issue29324] test_aead_aes_gcm fails on Kernel 4.9

2017-01-19 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue29322] SimpleCV error on Raspberry Pi

2017-01-19 Thread Xiang Zhang
Xiang Zhang added the comment: Hi Michael, this bug tracker is meant for developing CPython. Your problem exists in your own codes or third party applications. You'd better report to the related parties. -- nosy: +xiang.zhang resolution: -> third party stage: -> resolved status: open

[issue29324] test_aead_aes_gcm fails on Kernel 4.9

2017-01-19 Thread Christian Heimes
New submission from Christian Heimes: $ ./python -m test -m test_aead_aes_gcm test_socket Run tests sequentially 0:00:00 [1/1] test_socket test test_socket failed -- Traceback (most recent call last): File "/home/heimes/dev/python/cpython/Lib/test/support/__init__.py", line 556, in wrapper

[issue21628] 2to3 does not fix zip in some cases

2017-01-19 Thread Stuart Berg
Stuart Berg added the comment: Already closed, but FWIW, I think this was incorrectly marked as a duplicate. Issue 20742 discusses a different issue related to lib2to3 and zip. Meanwhile, this issue has been raised again in 28837, so I will continue the discussion there. (I have a patch.) -

[issue29321] Wrong documentation (Language Ref) for unicode and str comparison

2017-01-19 Thread RK-5wWm9h
Changes by RK-5wWm9h : -- title: Wrong documentation for unicode and str comparison -> Wrong documentation (Language Ref) for unicode and str comparison ___ Python tracker ___ _

[issue29323] Wrong documentation (Library) for unicode and str comparison

2017-01-19 Thread RK-5wWm9h
New submission from RK-5wWm9h: PROBLEM (IN BRIEF): In the currently published 2.7.13 The Python Standard Library (Library Reference manual) section 5.6 "Sequence Types" (https://docs.python.org/2/library/stdtypes.html#sequence-types-str-unicode-list-tuple-bytearray-buffer-xrange): "to comp

[issue29322] SimpleCV error on Raspberry Pi

2017-01-19 Thread Michael J
New submission from Michael J: Hello, I'm using a Microsoft LifeCam with SimpleCV on the ipython interpreter(or shell) on a Raspberry Pi 3 model B(with Raspbian, tell me if you need the exact OS version as it's quite complicated). I'm following the directions of a book: Raspberry Pi Cookbook

[issue29321] Wrong documentation for unicode and str comparison

2017-01-19 Thread RK-5wWm9h
New submission from RK-5wWm9h: PROBLEM (IN BRIEF): In the currently published 2.7.13 The Python Language Reference manual, section 5.9 "Comparisons" (https://docs.python.org/2/reference/expressions.html#comparisons): "If both are numbers, they are converted to a common type. Otherwise, o

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-01-19 Thread Paul Moore
Paul Moore added the comment: Confirmed that it works with alpha 2, 3 and 4. But fails with beta 1 and the release version. -- ___ Python tracker ___ ___

[issue29313] msi by bdist_msi will fail execute install-scripts if space in present in python path

2017-01-19 Thread eszense
Changes by eszense : Added file: http://bugs.python.org/file46338/patch.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue29313] msi by bdist_msi will fail execute install-scripts if space in present in python path

2017-01-19 Thread eszense
Changes by eszense : Removed file: http://bugs.python.org/file46337/patch2.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue29313] msi by bdist_msi will fail execute install-scripts if space in present in python path

2017-01-19 Thread eszense
eszense added the comment: This issue can be fixed together with Issue 15797. Patch attached for your consideration -- Added file: http://bugs.python.org/file46337/patch.txt ___ Python tracker

[issue28911] Clarify the behaviour of assert_called_once_with

2017-01-19 Thread Arne de Laat
Arne de Laat added the comment: Unfortunately there cant be commas in the method name, that would clarify the name. It should be read as 'assert called once, with ...' not 'assert called once with ...'. I have often used the method to test something was called only once, and with the specifie

[issue29320] bdist_msi install_script fail to execute if alt python location specified

2017-01-19 Thread eszense
Changes by eszense : -- components: +Distutils nosy: +dstufft, eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue29320] bdist_msi install_script fail to execute if alt python location specified

2017-01-19 Thread eszense
New submission from eszense: if install-script specified and alternative python location selected during installation, msiexec will fail with: "There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your s

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-01-19 Thread Paul Moore
Paul Moore added the comment: I just checked, and 3.6.0b1 (the only prerelease version I had available) has the same problem. 3.5.2 works fine. I thought I'd had similar code working during the beta cycle, but I can't demonstrate that any more, so maybe my recollection is wrong :-( --

[issue29296] convert print() to METH_FASTCALL

2017-01-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Why can't we start with METH_FASTCALL and convert to AC later? It increases the maintenance burden. When the fastcall protocol be changed, this would require changing more handwritten code. -- ___ Python tracker

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-01-19 Thread Paul Moore
New submission from Paul Moore: Trying to run a pyz file using the embedded distribution for 3.6.0, I get an error "Could not import runpy module". To reproduce, see below: >type .\__main__.py print('Hello, world') >zip test.pyz __main__.py adding: __main__.py (172 bytes security) (stored 0%

[issue29318] Optimize _PyFunction_FastCallDict() for **kwargs

2017-01-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > It can reduce number of hash() calls. Keys are strings (even interned strings), and hashes are cached. In most cases kw is empty or very small. I doubt any optimization can have significant effect. -- nosy: +serhiy.storchaka _

[issue29296] convert print() to METH_FASTCALL

2017-01-19 Thread STINNER Victor
STINNER Victor added the comment: I pushed print-fastcall.patch since it's simple and has a significant impact on bm_telco benchmark (especially when tp_fastcall slot will be added). I added a reminder (msg285779) in #20291 to convert print() once AC will support **kwargs. Can we close the is

[issue29296] convert print() to METH_FASTCALL

2017-01-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0327171f05dd by INADA Naoki in branch 'default': Issue #29296: convert print() to METH_FASTCALL https://hg.python.org/cpython/rev/0327171f05dd -- nosy: +python-dev ___ Python tracker

[issue20291] Argument Clinic should understand *args and **kwargs parameters

2017-01-19 Thread STINNER Victor
STINNER Victor added the comment: Once this feature will be implemented, print() should be modified to use Argument Clinic: see the issue #29296. -- ___ Python tracker ___ _

[issue29312] Use FASTCALL in dict.update()

2017-01-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset e371686229e7 by Victor Stinner in branch 'default': Add a note explaining why dict_update() doesn't use METH_FASTCALL https://hg.python.org/cpython/rev/e371686229e7 -- nosy: +python-dev ___ Python tracker

[issue29318] Optimize _PyFunction_FastCallDict() for **kwargs

2017-01-19 Thread INADA Naoki
INADA Naoki added the comment: Since mutating kw dict shouldn't affect caller's dict, caller and callee can't share the dict. One possible optimization is using PyDict_Copy() to copy the dict. It can reduce number of hash() calls. -- ___ Python trac

[issue29311] Argument Clinic: convert dict methods

2017-01-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 00c63ee66e0c by Victor Stinner in branch 'default': dict.get() and dict.setdefault() now use AC https://hg.python.org/cpython/rev/00c63ee66e0c -- nosy: +python-dev ___ Python tracker

[issue29259] Add tp_fastcall to PyTypeObject: support FASTCALL calling convention for all callable objects

2017-01-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf6728085b01 by Victor Stinner in branch 'default': _PyStack_AsDict() now checks kwnames != NULL https://hg.python.org/cpython/rev/bf6728085b01 -- ___ Python tracker _

[issue29312] Use FASTCALL in dict.update()

2017-01-19 Thread STINNER Victor
STINNER Victor added the comment: When analyzing how FASTCALL handles "func(**kwargs)" calls for Python functions, I identified a missed optimization. I created the issue #29318: "Optimize _PyFunction_FastCallDict() for **kwargs". -- resolution: -> rejected __

[issue29318] Optimize _PyFunction_FastCallDict() for **kwargs

2017-01-19 Thread STINNER Victor
New submission from STINNER Victor: Example: --- def func(x, y): print(x, y) def proxy2(func, **kw): func(**kw) def proxy1(func, **kw): proxy2(func, **kw) --- The "proxy2(func, **kw)" call in proxy1() is currently inefficient: _PyFunction_FastCallDict() converts the dictionary int

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

2017-01-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #28180: sys.getfilesystemencoding() should default to utf-8 -- dependencies: +sys.getfilesystemencoding() should default to utf-8 ___ Python tracker _

[issue28595] shlex.shlex should not augment wordchars

2017-01-19 Thread Evan Andrews
Evan Andrews added the comment: Attaching an updated patch now that the two linked issues are resolved. -- Added file: http://bugs.python.org/file46335/shlex2.diff ___ Python tracker ___

[issue29312] Use FASTCALL in dict.update()

2017-01-19 Thread STINNER Victor
STINNER Victor added the comment: Oops, I forgot a DECREF: fixed in the patch version 2. -- Oh wait, I misunderstood how dict.update() is called. In fact, they are two bytecodes to call a function with keyword arguments. (1) Using **kwargs: >>> def f(): ... d.update(**d2) ... >>> dis.dis(f

[issue29309] Interpreter hang when interrupting a loop.run_in_executor() future

2017-01-19 Thread Rémi Cardona
Changes by Rémi Cardona : -- nosy: +RemiCardona ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

<    1   2