[issue26156] Bad name into power operator syntax

2016-05-05 Thread Zachary Ware
Zachary Ware added the comment: +1 for await_expr -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26156] Bad name into power operator syntax

2016-05-05 Thread Yury Selivanov
Yury Selivanov added the comment: Let's call it "await_expr" -- ___ Python tracker ___ ___ Python-bugs-list

[issue26156] Bad name into power operator syntax

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be "w_expr"? ("a_expr" is already used for addition level). -- ___ Python tracker ___

[issue26156] Bad name into power operator syntax

2016-05-05 Thread Zachary Ware
Zachary Ware added the comment: I agree that what is currently in the docs is technically correct. The section on the power operator: power ::= await ["**" u_expr] should be read as: power ::= (["await"] primary) ["**" u_expr] just as the definition of 'u_expr' below should be read

[issue26156] Bad name into power operator syntax

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But to avoid confusion I propose following patch. This may be more correct, since it is strange to name the expression without "await" "await expression". -- Added file: http://bugs.python.org/file42741/issue26156_await_power.patch

[issue26156] Bad name into power operator syntax

2016-05-05 Thread Yury Selivanov
Yury Selivanov added the comment: Fwiw, I'm -1 on changing this. I think that the current names are correct. -- nosy: +Yury.Selivanov ___ Python tracker

[issue26156] Bad name into power operator syntax

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The docs looks correct to me. It reflects the fact that the "await" keyword has higher priority than the power operator. "await a ** b" is identical to "(await a) ** b", not "await (a ** b)". -- nosy: +serhiy.storchaka

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-05 Thread Xiang Zhang
Xiang Zhang added the comment: After some research I suggest to document this behaviour that allow_abbrev=False will suspend option prefix matching. Simply fixing the count action behaviour is not enough since it also prevents you from creating custom actions that want to use option prefix

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-05 Thread Xiang Zhang
Xiang Zhang added the comment: This is a side effect introduced by 99302634d756. You have to set allow_abbrev to True to make such match succeed. I think this is a bug. -- ___ Python tracker

[issue15786] IDLE code completion window can hang or misbehave with mouse

2016-05-05 Thread paul czyzewski
paul czyzewski added the comment: Thanks, Terry and Ned. Ned, I checked (nice clear instructions, btw) and I had Tk 8.5.10. So I followed the link and installed 8.5.18. -- The freeze on mac still occurs but I understand that this will avoid some other bugs. BTW, I don't know how testing

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-05 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list

[issue15786] IDLE code completion window can hang or misbehave with mouse

2016-05-05 Thread Ned Deily
Ned Deily added the comment: Paul, also check to make sure you have installed the latest ActiveTcl Tcl/Tk 8.5.x (not 8.6.x) as described here: https://www.python.org/download/mac/tcltk/. One way to tell exactly which minor release of Tcl/Tk (the "x" in "8.5.x") is in use is to click on the

[issue25770] expose name, args, and kwargs from methodcaller

2016-05-05 Thread Guido van Rossum
Guido van Rossum added the comment: To me, the best rhythm has always been (*args, **kwds). -- ___ Python tracker ___

[issue15786] IDLE code completion window can hang or misbehave with mouse

2016-05-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: As far as I know, freezing is limited to Macs. In msg220751, Ned said "Further, then pressing "Return", "a", and "Tab" to try a new code completion results in the code completion window momentarily appearing then disappearing." The disappearance , and hence

[issue26156] Bad name into power operator syntax

2016-05-05 Thread R. David Murray
Changes by R. David Murray : -- resolution: not a bug -> stage: resolved -> commit review status: closed -> open ___ Python tracker

[issue26156] Bad name into power operator syntax

2016-05-05 Thread Robert Jordens
Robert Jordens added the comment: That should have read "... should _not_ be closed." -- ___ Python tracker ___

[issue26156] Bad name into power operator syntax

2016-05-05 Thread Robert Jordens
Robert Jordens added the comment: The original bug report is (apart from spelling) correct. This is a bug and it should be closed. Please reopen. This patch reverts the erroneous change in: changeset: 96185:548d5704fcb3 user:Yury Selivanov date:Thu

[issue26968] glob.glob incorrect results under windows when pathname exists but interpreter does not have access permissions to pathname

2016-05-05 Thread Eryk Sun
Eryk Sun added the comment: The access control list of a file may not grant or may deny the current user the right to read file attributes (i.e. lstat). Generally you don't have to worry about granted access to parent directories when attempting to stat the file or directory, since even

[issue26939] android: test_functools hangs on armv7

2016-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you post the backtraces of all threads (at least the innermost frames)? Also, can you reproduce on an actual armv7 machine? Just wondering if there may be something peculiar in the emulator. -- nosy: +pitrou ___

[issue15786] IDLE code completion window can hang or misbehave with mouse

2016-05-05 Thread paul czyzewski
paul czyzewski added the comment: I'm new to IDLE. I just upgraded to Mac El Capitan from Snow Leopard, and installed Python 3.5.1 (v3.5.1:37a07cee5969, Dec 5 2015, 21:12:44). I have had the IDLE window freeze so many times (when clicking on something in the autocomplete window as described

[issue26906] format(object.__reduce__) fails intermittently

2016-05-05 Thread Antti Haapala
Antti Haapala added the comment: And to the other things failing, I was trying to find out which of the magic method ops fail, and for that tried to find out the `dir` of list iterator. Well... % python3.5 -S Python 3.5.0+ (default, Oct 11 2015, 09:05:38) [GCC 5.2.1

[issue26968] glob.glob incorrect results under windows when pathname exists but interpreter does not have access permissions to pathname

2016-05-05 Thread Krzysztof Warzecha
Krzysztof Warzecha added the comment: >>> os.lstat('c:\\PerfLogs') Traceback (most recent call last): File "", line 1, in PermissionError: [WinError 5] Odmowa dostępu: 'c:\\PerfLogs' (thats "Permission denied") -- ___ Python tracker

[issue26968] glob.glob incorrect results under windows when pathname exists but interpreter does not have access permissions to pathname

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What returns os.lstat('c:\\PerfLogs')? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue26968] glob.glob incorrect results under windows when pathname exists but interpreter does not have access permissions to pathname

2016-05-05 Thread Krzysztof Warzecha
New submission from Krzysztof Warzecha: Hello, I'm running python 3.5.1 under windows and I've noticed glob.glob is returning incorrect results when I'm using full path name to directory to which I don't have access permissions. Please consider this: >> glob.glob('c:\\PerfLog*')

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: With the patch class properties work: >>> class A: ... @classmethod ... @property ... def __doc__(cls): ... return 'A doc for %r' % cls.__name__ ... >>> A.__doc__ "A doc for 'A'" This is worth to be explicitly documented. --

[issue25177] OverflowError in statistics.mean when summing large floats

2016-05-05 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-05 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +3.5regression nosy: +berker.peksag stage: -> needs patch versions: +Python 3.6 ___ Python tracker

[issue26966] Spam

2016-05-05 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: -Karan Rawat, larry resolution: -> rejected status: open -> closed title: turbotax phone number 1**888**226**1422 support, turbotax tech support phone number 1**888**226**1422 -> Spam

[issue26966] Spam

2016-05-05 Thread Berker Peksag
Changes by Berker Peksag : Removed file: http://bugs.python.org/file42739/Gmail Customer Service Number +1-888-226-1422 USA Gmail Password Recovery Toll Free Number.pdf ___ Python tracker

[issue26965] spam

2016-05-05 Thread Ned Deily
Changes by Ned Deily : Removed file: http://bugs.python.org/file42738/ihaveanswer.jpg ___ Python tracker ___

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-05 Thread Michael Kruse
New submission from Michael Kruse: #! /usr/bin/env python3 import argparse parser = argparse.ArgumentParser(allow_abbrev=True) parser.add_argument('-v', '--verbose', action='count') print(parser.parse_args(['-vv'])) parser = argparse.ArgumentParser(allow_abbrev=False) parser.add_argument('-v',

[issue26966] Spam

2016-05-05 Thread Berker Peksag
Changes by Berker Peksag : -- components: -Argument Clinic versions: -Python 3.5 ___ Python tracker ___

[issue26966] Spam

2016-05-05 Thread Berker Peksag
Changes by Berker Peksag : -- Removed message: http://bugs.python.org/msg264914 ___ Python tracker ___

[issue26965] spam

2016-05-05 Thread Ned Deily
Changes by Ned Deily : -- components: -Argument Clinic ___ Python tracker ___ ___

[issue26965] spam

2016-05-05 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg264913 ___ Python tracker ___

[issue26966] turbotax phone number 1**888**226**1422 support, turbotax tech support phone number 1**888**226**1422

2016-05-05 Thread Karan Rawat
New submission from Karan Rawat: Turbotax Service (43) turbotax customer service, turbotax customer service number 1**888**226**1422, turbotax customer service phone number 1**888**226**1422, turbotax phone number 1**888**226**1422 customer service, turbotax customer service phone, turbotax

[issue26965] spam

2016-05-05 Thread Ned Deily
Changes by Ned Deily : -- nosy: -Karan Rawat, larry ___ Python tracker ___ ___

[issue26965] Turbotax Tech Support Mumber 1!!888!!226!!1422 turbotax Usa Canada

2016-05-05 Thread Karan Rawat
New submission from Karan Rawat: Turbotax Service (43) turbotax customer service, turbotax customer service number 1**888**226**1422, turbotax customer service phone number 1**888**226**1422, turbotax phone number 1**888**226**1422 customer service, turbotax customer service phone, turbotax

[issue26965] spam

2016-05-05 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> rejected status: open -> closed title: Turbotax Tech Support Mumber 1!!888!!226!!1422 turbotax Usa Canada -> spam type: security -> versions: -Python 3.6 ___ Python tracker

[issue26906] format(object.__reduce__) fails intermittently

2016-05-05 Thread Antti Haapala
Antti Haapala added the comment: I can reproduce the bug in 3.5.0+ Ubuntu with list iterator, if I execute python with -S: % python3.5 -S Python 3.5.0+ (default, Oct 11 2015, 09:05:38) [GCC 5.2.1 20151010] on linux >>> format(iter([])) Traceback (most recent call last):

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2016-05-05 Thread Berker Peksag
Berker Peksag added the comment: Here is an updated patch with a test (adapted from msg198274.) -- nosy: +berker.peksag stage: -> patch review versions: +Python 3.6 -Python 3.4 Added file: http://bugs.python.org/file42737/issue19072.diff ___ Python

[issue26961] Provide an API to help debug super().__getattribute__ results

2016-05-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___

[issue26964] Incorrect documentation for `-u`-flag

2016-05-05 Thread Olav Morken
New submission from Olav Morken: The documentation for the `-u`-flag (https://docs.python.org/3/using/cmdline.html#cmdoption-u) contains: > The text I/O layer will still be line-buffered if writing to the console, or > block-buffered if redirected to a non-interactive file. This does not

[issue26961] Provide an API to help debug super().__getattribute__ results

2016-05-05 Thread Doug Hellmann
Doug Hellmann added the comment: @Nick - Being able to get to the source is ok, but if I can get the actual type I can always get the source from that. I don't need the actual type object except to know what it is, and it seems more flexible to return the class object than a name or other

[issue26918] android: test_pipes fails

2016-05-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: I agree with not complicating tests too much. For the record, the pipes test suite coverage is very low and the code paths that lead to invocations of os.popen() in the pipes module are not tested when those three tests are skipped. --

[issue26961] Provide an API to help debug super().__getattribute__ results

2016-05-05 Thread Doug Hellmann
Doug Hellmann added the comment: The specific case I have right now is with a large code base written by someone else who is seeing a TypeError when they call super(their-local-class, self).__init__() because whatever class super() is returning is expecting arguments to __init__(). The

[issue26811] segfault due to null pointer in tuple

2016-05-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26918] android: test_pipes fails

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The equivalent of used "tr" command is .upper(), not .swapcase(). Instead of the loop for s in sys.stdin.read(): sys.stdout.write(s.upper()) you can write just sys.stdout.write(sys.stdin.read().upper()) But actually the loop is needed for testing

[issue26881] modulefinder should reuse the dis module

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added test. But this test is fragile. Clever optimizer can made it passing even with modulefinder not supporting extended args (I'm going to provide such optimization). -- Added file: http://bugs.python.org/file42735/dis_unpack_args_3.patch

[issue26928] android: test_site fails

2016-05-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: BTW the test runs fine on android when the AttributeError in _bootlocale is hard-coded with a getpreferredencoding() fuction returning 'UTF-8' and not importing locale. -- ___ Python tracker

[issue26928] android: test_site fails

2016-05-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: The problem is caused by the fact that android does not have HAVE_LANGINFO_H and CODESET set, hence in the _bootlocale module, the statement '_locale.CODESET' raises AttributeError and the locale module is imported upon interpreter startup. The locale module

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2016-05-05 Thread Xiang Zhang
Xiang Zhang added the comment: Oops, I forgot about them. I think they should. Raymond mentioned count in msg75735. Attach patch to take them in. -- Added file: http://bugs.python.org/file42734/issue26915_s2.patch ___ Python tracker

[issue26947] Documentation improvement needed

2016-05-05 Thread mPython
mPython added the comment: Just to mention that I'm not native speaker, and I'm Django (Python) beginner. I'm very good in C++, Java and in last 12 years read a lot IT documentation. Mentioned sentence was not clear enough for me so I created this ticket. --

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about Sequence.index and Sequence.count? -- ___ Python tracker ___

[issue26926] Large files are not supported on Android

2016-05-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Using the glibc compilation flags recommended for large file support '-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1' does not enable large file support. See Suse's 'Large File Support in Linux' document [1]. In the android issue 64613

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2016-05-05 Thread Xiang Zhang
Xiang Zhang added the comment: In my opinion it's not worth. If there is such an operator in stdlib, I would expect more, exposing PyObject_RichCompareBool in Python level, providing a new operator like `===`. -- ___ Python tracker

[issue26963] compile() expected string without null bytes

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: compile() always required a string without null bytes. If it accepted a string with null bytes in 2.7.10 (I don't see the confirmation on this in the source code), it was a bug and is fixed. -- nosy: +serhiy.storchaka resolution: -> not a bug

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it worth to add a function in the operator module that tests arguments for identity or equality? -- ___ Python tracker

[issue26926] Large files are not supported on Android

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The resource module is not always available. And resource.setrlimit() itself can fail. May be check HAVE_LARGEFILE_SUPPORT directly using sysconfig.get_config_vars()? test_mmap needs similar fix. -- ___ Python

[issue26963] compile() expected string without null bytes

2016-05-05 Thread 周伟阳
New submission from 周伟阳: "compile() expected string without null bytes" I met this in python2.7.11, and python2.7.10 is fine. ENV: DOCKER:2.7.11-alpine, pecan, ceph/pulpito -- components: IO messages: 264894 nosy: 周伟阳 priority: normal severity: normal status: open title: compile()

[issue26926] Large files are not supported on Android

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Skipping test is the one way. Other way is to enable large files support on Android (like it was done in issue11184 for AIX). It is hard to believe that Android's libc doesn't support files larger 2GiB. Should be an option to enable this support in a

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2016-05-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Xiang, hanks for the patch and for the link to Guido's opinion. Josh, I concur with your sentiments. In this case the burden is light and is likely to prevent future difficulties by keeping the container invariants intact. -- resolution: ->

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2016-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1c6cf4010df3 by Raymond Hettinger in branch 'default': Issue 26915: Add identity checks to the collections ABC __contains__ methods. https://hg.python.org/cpython/rev/1c6cf4010df3 -- nosy: +python-dev

[issue26962] curses documenation- keys for Page Up and Page Down are reversed

2016-05-05 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue26962] curses documenation- keys for Page Up and Page Down are reversed

2016-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4462e193f089 by Berker Peksag in branch '2.7': Issue #26962: Backport 23d986228c6b to 2.7 https://hg.python.org/cpython/rev/4462e193f089 -- nosy: +python-dev ___ Python tracker

[issue26918] android: test_pipes fails

2016-05-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Ooops too late. Here is a new patch that replaces the tr command and allows all the tests of test_pipes to run successfully on android. -- Added file: http://bugs.python.org/file42733/replace_tr.patch ___ Python

[issue26918] android: test_pipes fails

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Thanks Xavier. It looks to me that there are no useful commands that can be used for testing on Android. We could use md5 or grep, but this would require rewriting tests too much for small benefit. It is better to skip tests. -- resolution:

[issue26918] android: test_pipes fails

2016-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3bad4b0f7612 by Serhiy Storchaka in branch 'default': Issue #26918: Skipped some tests in test_pipes on Android. https://hg.python.org/cpython/rev/3bad4b0f7612 -- nosy: +python-dev ___ Python tracker

[issue26962] curses documenation- keys for Page Up and Page Down are reversed

2016-05-05 Thread Berker Peksag
Berker Peksag added the comment: Good catch, I forgot to update 2.7 (3.2, 3.3 and 3.4 are in security-fix-only mode so they don't get documentation updates anymore). -- nosy: +berker.peksag versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python

[issue26962] curses documenation- keys for Page Up and Page Down are reversed

2016-05-05 Thread Nathan Kerr
New submission from Nathan Kerr: In the documentation for the curses module- 15.11 in Python 2.7 (https://docs.python.org/2.7/library/curses.html), the given key values for Page Up and Page Down are "KEY_NPAGE" and "KEY_PPAGE" respectively. These should be reversed. This has been fixed in

[issue26918] android: test_pipes fails

2016-05-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the review Serhiy. New patch attached. -- Added file: http://bugs.python.org/file42732/no_tr_skipped_2.patch ___ Python tracker

[issue26918] android: test_pipes fails

2016-05-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Here is the list of commands at /system/bin on the emulator. -- Added file: http://bugs.python.org/file42731/emulator_system_bin.txt ___ Python tracker

[issue26765] Factor out common bytes and bytearray implementation

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Stage 4 patch moves thin wrappers around functions from bytes_methods.c to Objects/stringlib/transmogrify.h. The _method_ suffix is added to some names to distinguish them from existing stringlib names. I'm not sure this is a good place. It may be better to

[issue26961] Provide an API to help debug super().__getattribute__ results

2016-05-05 Thread Nick Coghlan
Nick Coghlan added the comment: Actually, since this is intended primarily for debugging: Doug, do you actually need the type information? Or would combining inspect.getsourcefile() and inspect.getlines() with super().__init__ to locate the source code for the offending method implementation

[issue26765] Factor out common bytes and bytearray implementation

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Meador. Stage 3 patch is simple. It just adds guards in bytes-specific and unicode-specific template files to be sure that they are not used with wrong type. -- Added file: http://bugs.python.org/file42729/bytes_methods_stage3.patch

[issue26765] Factor out common bytes and bytearray implementation

2016-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset f4406d746d27 by Serhiy Storchaka in branch 'default': Issue #26765: Moved common code for the replace() method of bytes and bytearray https://hg.python.org/cpython/rev/f4406d746d27 -- ___ Python tracker