[issue2786] Names in function call exception should have class names, if they're methods

2016-08-04 Thread Steven Barker
Steven Barker added the comment: A few weeks ago I reported issue 27389 which looks to be a duplicate of this issue. Has any progress been made on this issue? -- nosy: +Steven.Barker ___ Python tracker

[issue27690] os.path.normcase broken.

2016-08-04 Thread Lilin Lao
Lilin Lao added the comment: This issue happened after I update the system to "Windows 10 Anniversary Update". -- ___ Python tracker ___

[issue27389] When a TypeError is raised due to invalid arguments to a method, it should use __qualname__ to identify the class the method is in

2016-08-04 Thread Steven Barker
Steven Barker added the comment: Yes, this looks to be a duplicate of that issue. I'm closing this issue as a duplicate, but I don't seem to be able to set the Superseder field. If you can, please set that to Issue 2786. -- resolution: -> duplicate status: open -> closed

[issue27690] os.path.normcase broken.

2016-08-04 Thread Lilin Lao
New submission from Lilin Lao: orz> python Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. Failed calling sys.__interactivehook__ Traceback (most recent call last): File

[issue27685] altinstall with --enable-shared showing incorrect behaviour

2016-08-04 Thread umank.behera
umank.behera added the comment: I need to have --enable-shared present while compiling to make PyInstaller work. -- ___ Python tracker ___

[issue27685] altinstall with --enable-shared showing incorrect behaviour

2016-08-04 Thread umank.behera
umank.behera added the comment: As Ned Deily mentioned, this fixes the issue: ./configure --enable-shared --prefix=/opt/python LDFLAGS=-Wl,-rpath=/opt/python/lib Closing as not a bug, thanks! -- resolution: -> not a bug status: open -> closed ___

[issue27689] Add documentation for typing.Generator

2016-08-04 Thread Michael Lee
New submission from Michael Lee: This patch adds (previously missing) documentation for `typing.Generator`. -- assignee: docs@python components: Documentation files: document-generators.patch keywords: patch messages: 272010 nosy: docs@python, gvanrossum, michael0x2a priority: normal

[issue27688] Expand documentation about Any in the typing module

2016-08-04 Thread Michael Lee
New submission from Michael Lee: This patch updates the section about `Any` in the typing module. Previously, that section was relatively sparse and didn't seem to do a very good job of helping the reader understand what the distinction between `Any` and `object` is. This patch expands that

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2016-08-04 Thread Steve Dower
Steve Dower added the comment: I'd also suggest that this is potentially exploitable (if the Python code calling into ctypes is already vulnerable - I don't think you could reasonably manufacture an exploit simply from this bug) and it should probably go into all active security branches. I

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2016-08-04 Thread Steve Dower
Steve Dower added the comment: Looks good to me. Sorry for not getting back to this after I said I would. Every time I remembered I didn't have the time available... -- ___ Python tracker

[issue1230540] sys.excepthook doesn't work in threads

2016-08-04 Thread Decorater
Decorater added the comment: Ok, so I just found out you can bypass thread exceptions by wraping the line that actually runs the threads in a try/except block and then using the logging module to log it to a file instead of the console. -- ___

[issue21578] Misleading error message when ImportError called with invalid keyword args

2016-08-04 Thread Xiang Zhang
Xiang Zhang added the comment: I am a little uncomfortable with the empty tuple. It's only used as a placeholder for PyArg_ParseTupleAndKeywords. But this way we can achieve consistent error message. Don't know how to choose. -- nosy: +xiang.zhang

[issue26462] Patch to enhance literal block language declaration

2016-08-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6e9a040a993f by Martin Panter in branch '2.7': Issue #26462: Doc: avoid literal_block warnings, fix syntax highlighting. https://hg.python.org/cpython/rev/6e9a040a993f -- ___ Python tracker

[issue1230540] sys.excepthook doesn't work in threads

2016-08-04 Thread Decorater
Decorater added the comment: personally these exceptions in console can be annoying to me as I hate seeing them. Exception in thread Thread-11: Traceback (most recent call last): File "threading.py", line 914, in _bootstrap_inner File

[issue1230540] sys.excepthook doesn't work in threads

2016-08-04 Thread Decorater
Decorater added the comment: I too agree that I hate the thread exceptions being printed in the console I would suggest python was to error log it all to a file instead (so it does not spam up the console). I get it a lot with websocket / opus errors and it is annoying because it does not

[issue24658] open().write() fails on 2 GB+ data (OS X)

2016-08-04 Thread Zachary Ware
Changes by Zachary Ware : -- versions: +Python 3.6 -Python 3.4 ___ Python tracker ___

[issue27687] Linux shutil.move between mountpoints as root does not retain ownership

2016-08-04 Thread jort bloem
New submission from jort bloem: When using shutil.move() between mounts (i.e. when it does a copy/delete), running as root, ownership should be maintained. To test: log in as root, create a file owned by a regular user. In python, use shutil.move() to move it to another mountpoint. Check that

[issue27686] Spam

2016-08-04 Thread Zachary Ware
Changes by Zachary Ware : -- components: -asyncio nosy: -bhartirana2323, gvanrossum, haypo, yselivanov resolution: -> not a bug stage: -> resolved status: open -> closed title: A 1 800 919 0992 ⅀⅀⫸⅀⅀ Quickbooks Enterprise support phone number, Quickbooks

[issue27686] Spam

2016-08-04 Thread Zachary Ware
Changes by Zachary Ware : Removed file: http://bugs.python.org/file44011/(1-800-919-0992)Call, Quickbooks tech support phone number, Intuit Quickbooks Tech Support Phone Number, Quickbooks Help Desk Phone Number.pdf ___ Python

[issue27686] AAAAA 1 800 919 0992 ⅀⅀⫸⅀⅀ Quickbooks Enterprise support phone number, Quickbooks Enterprise support phone number

2016-08-04 Thread Zachary Ware
Changes by Zachary Ware : -- Removed message: http://bugs.python.org/msg272000 ___ Python tracker ___

[issue27686] AAAAA 1 800 919 0992 ⅀⅀⫸⅀⅀ Quickbooks Enterprise support phone number, Quickbooks Enterprise support phone number

2016-08-04 Thread Bharti Rana
New submission from Bharti Rana: A 1 800 919 0992 ⅀⅀⫸⅀⅀ Quickbooks Enterprise support phone number, Quickbooks Enterprise support phone number Quickbooks Enterprise phone number USA QPML +¦$÷ 1800 -919-0992 Quickbooks Enterprise tech support phone number, Quickbooks Enterprise tech

[issue27585] asyncio.Lock deadlock after cancellation

2016-08-04 Thread sss
sss added the comment: Thank you. This looks good to me -- ___ Python tracker ___ ___ Python-bugs-list

[issue27685] altinstall with --enable-shared showing incorrect behaviour

2016-08-04 Thread Ned Deily
Ned Deily added the comment: No doubt you are running into same problem that is described here: http://stackoverflow.com/questions/12553057/compile-python-2-7-3-from-source-on-a-system-with-python-2-7-already The problem is, that on most Unix systems (with the notable exception of Mac OS X),

[issue27685] altinstall with --enable-shared showing incorrect behaviour

2016-08-04 Thread umank.behera
New submission from umank.behera: When I altinstall python 2.7.12 with ./configure --prefix=/opt/python --enable-shared it comes up as python 2.7.5 (system default python) But altinstall with ./configure --prefix=/opt/python it comes up as 2.7.12, what am I missing? This is on RHEL 7.2 This

[issue21578] Misleading error message when ImportError called with invalid keyword args

2016-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why not use PyArg_ParseTupleAndKeywords()? -- Added file: http://bugs.python.org/file44010/import_error_parse_args.patch ___ Python tracker

[issue21578] Misleading error message when ImportError called with invalid keyword args

2016-08-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue21578] Misleading error message when ImportError called with invalid keyword args

2016-08-04 Thread Brett Cannon
Brett Cannon added the comment: Assigning to Berker to apply his own patch since Eric has not gotten around to this. -- assignee: eric.snow -> berker.peksag ___ Python tracker

[issue27682] Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

2016-08-04 Thread Sushant
Sushant added the comment: The CSV is around 75 MB, not that big I guess. And I've tried Chrome, Edge and Firefox -- ___ Python tracker ___

[issue24844] Python 3.5rc1 compilation error with Apple clang 4.2 included with Xcode 4

2016-08-04 Thread Lawrence Velázquez
Changes by Lawrence Velázquez : -- nosy: +larryv ___ Python tracker ___ ___ Python-bugs-list

[issue27684] Incorrect exception message of ImportError constructor

2016-08-04 Thread Berker Peksag
Berker Peksag added the comment: This is a duplicate of issue 21578. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Misleading error message when ImportError called with invalid keyword args type: -> behavior

[issue27566] Tools/freeze/winmakemakefile.py clean target should use 'del' instead of 'rm'

2016-08-04 Thread Zachary Ware
Zachary Ware added the comment: It is run by nmake. This isn't Cygwin-related, it's for 'freezing' a program a la py2exe or cx_Freeze; see Tools/freeze/README. I have yet to try it without py2exe or cx_Freeze, but it's theoretically possible :) --

[issue27684] Incorrect exception message of ImportError constructor

2016-08-04 Thread Xiang Zhang
New submission from Xiang Zhang: ImportError accepts name and path as keyword-only parameters, but when invalid keyword argument passed, it emits wrong exception message saying that ImportError does not take keyword arguments. >>> ImportError(name='name', path='path') ImportError() >>>

[issue27585] asyncio.Lock deadlock after cancellation

2016-08-04 Thread Guido van Rossum
Guido van Rossum added the comment: Tentative fix is in https://github.com/python/asyncio/pull/393 -- ___ Python tracker ___

[issue27682] Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

2016-08-04 Thread Berker Peksag
Berker Peksag added the comment: Which browser do you use? How big is the CSV file? Modern browsers tend to do aggressive prefetching so this might be the cause here. -- nosy: +berker.peksag ___ Python tracker

[issue27566] Tools/freeze/winmakemakefile.py clean target should use 'del' instead of 'rm'

2016-08-04 Thread Steve Dower
Steve Dower added the comment: I suspect it will also need the /Q option, at least on the one with the wildcard, otherwise there will be a prompt. Though I'm not entirely clear on where this is run (nmake?) so maybe it's already suppressed. The fact that I'm not familiar with this makefile

[issue27585] asyncio.Lock deadlock after cancellation

2016-08-04 Thread sss
sss added the comment: Yes I'm running python-3.5.2. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27585] asyncio.Lock deadlock after cancellation

2016-08-04 Thread Guido van Rossum
Guido van Rossum added the comment: Does this repro with the latest Python 3.5.2? IIRC the lock code was overhauled after 3.5.0 or 3.5.1. (PS. These are tasks, not threads.) --Guido (mobile) On Aug 4, 2016 2:33 AM, "sss" wrote: sss added the comment: Yes, await

[issue27682] Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

2016-08-04 Thread Sushant
Sushant added the comment: Also, since I re-installed everything, I got python 3.5 too -- ___ Python tracker ___

[issue27682] Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

2016-08-04 Thread Sushant
Sushant added the comment: There have been a few times when this code ran perfectly fine, without any errors whatsoever. So the structure is like this- This code reads a csv, processes it and save it in a model- class Endday(models.Model): company = models.TextField(null=True) eop =

[issue27683] ipaddress subnet slicing iterator malfunction

2016-08-04 Thread Stephen Shirley
Stephen Shirley added the comment: The bug appears to be in the new form of the constructor. Here's a more minimal reproduction: In python3.5: >>> list(ipaddress.IPv4Network(("127.0.0.4", 31)).hosts()) [] In python3.4 >>> list(ipaddress.IPv4Network("127.0.0.4/31").hosts())

[issue27683] ipaddress subnet slicing iterator malfunction

2016-08-04 Thread Emanuel Barry
Changes by Emanuel Barry : -- stage: -> patch review ___ Python tracker ___ ___

[issue27683] ipaddress subnet slicing iterator malfunction

2016-08-04 Thread Emanuel Barry
Emanuel Barry added the comment: Here's a patch that fixes this bug, test included. I made this against the 3.5 branch, but should apply cleanly on default. -- keywords: +patch nosy: +ebarry Added file: http://bugs.python.org/file44008/ipaddress_iter_fix.patch

[issue27683] ipaddress subnet slicing iterator malfunction

2016-08-04 Thread R. David Murray
R. David Murray added the comment: Since this is a regression, I'm going to claim this has higher than normal priority, for whatever good that will do :) -- keywords: +3.5regression priority: normal -> high versions: +Python 3.6 ___ Python tracker

[issue27680] Reduce Github pull request rate

2016-08-04 Thread Berker Peksag
Berker Peksag added the comment: Sorry, I forgot to share a screenshot in my earlier message: https://dl.dropboxusercontent.com/u/166024/pr-template.png -- ___ Python tracker

[issue27680] Reduce Github pull request rate

2016-08-04 Thread Steve Holden
Steve Holden added the comment: Hmm. Tried making a PR to a forked copy and didn't see it. Probably just incompetence on my part. -- ___ Python tracker

[issue27683] ipaddress subnet slicing iterator malfunction

2016-08-04 Thread tklausmann
tklausmann added the comment: I just bisected it and the specific commit is this one: https://hg.python.org/cpython/rev/2711677cf874 -- ___ Python tracker

[issue27682] Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

2016-08-04 Thread R. David Murray
R. David Murray added the comment: If the save is happening twice, that must mean that that method is getting called twice, and I'm guessing that the second time it is called wsgiref is closed and thus you get the error. But that's just a guess, your code snippet by itself isn't enough to

[issue27683] ipaddress subnet slicing iterator malfunction

2016-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The change was introduced in issue21487. -- nosy: +ncoghlan, pitrou, serhiy.storchaka ___ Python tracker ___

[issue27682] Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

2016-08-04 Thread Sushant
Sushant added the comment: The code is actually quite simple, I'll post it over here- def import_eop(request): with open('C:/Users/sg/Desktop/projects/drfapi/venv/drf/prices_companies_indices_transpose.csv') as f: contents = f.readlines() dates = contents[0] dates =

[issue27683] ipaddress subnet slicing iterator malfunction

2016-08-04 Thread R. David Murray
R. David Murray added the comment: If someone wants to bisect to find out which changeset introduced the behavior change that would be helpful. -- nosy: +r.david.murray ___ Python tracker

[issue27682] Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

2016-08-04 Thread R. David Murray
R. David Murray added the comment: The traceback looks like wsgiref.close() was called before handle_error() was called (perhaps for a second time?) We'll probably need a reproducer (as simple as possible please) to debug this further, which might be difficult since it may be tricky to

[issue27683] ipaddress subnet slicing iterator malfunction

2016-08-04 Thread tklausmann
Changes by tklausmann : -- nosy: +kormat ___ Python tracker ___ ___

[issue27683] ipaddress subnet slicing iterator malfunction

2016-08-04 Thread tklausmann
New submission from tklausmann: Between Python 3.4 (3.4.5 I've tested with) and Python 3.5 (3.5.2), the behavior of ipaddress's subnet() method changed. This code: $ cat iat.py import ipaddress p = ipaddress.IPv4Network("172.0.0.4/30") subnets = p.subnets(new_prefix=31) n = next(subnets)

[issue27680] Reduce Github pull request rate

2016-08-04 Thread R. David Murray
R. David Murray added the comment: Just FYI Steve, the pull request template is relatively recent addition (within the last two months). -- nosy: +r.david.murray ___ Python tracker

[issue27678] itertools.permutations/.combinations should have len

2016-08-04 Thread R. David Murray
R. David Murray added the comment: It may be time to create a faq entry about len and itertools; it seems to be a very popular idea. For various reasons (documented in several issues in this tracker now), we are not going to add len to the iterators in itertools. See issue 24849, and in

[issue27682] Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

2016-08-04 Thread Sushant
Changes by Sushant : -- nosy: +asvetlov, kristjan.jonsson, pje, steve.dower, tim.golden -SG ___ Python tracker ___

[issue27682] Windows Error 10053, ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

2016-08-04 Thread Sushant
New submission from Sushant: While saving, this error shows up and is whatever is saving gets saved twice- Traceback (most recent call last): File "C:\Users\Sushant Gahlot\AppData\Local\Programs\Python\Python35-32\lib\wsgiref\handlers.py", line 138, in run self.finish_response() File

[issue27680] Reduce Github pull request rate

2016-08-04 Thread Steve Holden
Steve Holden added the comment: I don't seem to be able to activate the PR template, but if you are happy it works then I guess this would be a belt-and-braces change. If nobody merges it and it gets closed that's fine, but if it obviates just a few pull requests it will save both the core

[issue27681] readline: consecutive rl_kill_word do not append

2016-08-04 Thread Quentin Santos
Quentin Santos added the comment: I had not thought of checking gdb. Thanks for the information, I will look into that! -- ___ Python tracker ___

[issue27681] readline: consecutive rl_kill_word do not append

2016-08-04 Thread Martin Panter
Martin Panter added the comment: GDB also seems affected. The significance of this is it makes me suspect a bug in Readline’s callback-based “alternative interface”, as opposed to the simpler blocking interface. I know Python and GDB both use the callback API, and that Bash doesn’t. You

[issue27680] Reduce Github pull request rate

2016-08-04 Thread Berker Peksag
Berker Peksag added the comment: I find pull requests templates more useful: https://github.com/blog/2111-issue-and-pull-request-templates and we already have a template to warn users: https://github.com/python/cpython/blob/master/.github/PULL_REQUEST_TEMPLATE.md -- nosy:

[issue27681] readline: consecutive rl_kill_word do not append

2016-08-04 Thread Quentin Santos
New submission from Quentin Santos: In readline, "kill" basically means "cut" and "yank", "paste. When killing twice in a row, it tries to group the kills. This can be shown to work with rl_unix_word_rubout; with the default emacs keymap, type: >>> hello world Then hit ^W (Control+W,

[issue27598] Add SizedIterable to collections.abc and typing

2016-08-04 Thread Sven R. Kunze
Sven R. Kunze added the comment: I am way too late to the discussion but I also support the term "collections". I think it also helps developers coming from a C# background: https://msdn.microsoft.com/library/92t2ye13(v=vs.110).aspx -- nosy: +srkunze

[issue27585] asyncio.Lock deadlock after cancellation

2016-08-04 Thread sss
sss added the comment: Yes, await asyncio.sleep(0) does fix it, but it would be weird if I'm supposed to put those all over my code. I made a new reproducer now that uses 2 threads in case it's not allowed to take the same lock twice from the same thread. -- Added file:

[issue27680] Reduce Github pull request rate

2016-08-04 Thread Steve Holden
Steve Holden added the comment: Hmm, not sure I quite understand how to interact with this tracker. So here's an updated patch that I thought I had already submitted ... -- Added file: http://bugs.python.org/file44006/README2.patch ___ Python

[issue27643] test_ctypes fails on AIX with xlc

2016-08-04 Thread Martin Panter
Martin Panter added the comment: Okay, so to be clear, I am assuming XLC supports all of the following fields, and uses unsigned bit fields by default: struct UNSIGNED_BITS { unsigned int AU: 1; int A: 1; /* Equivalent to unsigned int */ signed int AS: 1; unsigned short MU: 1;

[issue27614] Race in test_docxmlrpc.py

2016-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have a doubt. Added a question on Rietveld. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue27680] Reduce Github pull request rate

2016-08-04 Thread Steve Holden
New submission from Steve Holden: I have seen a relatively large number of pull requests via the Github mirror repository, because would-be contributors presumably just look on Github and, having found Python there, assume this is the place for contributions. The standard README file gives no

[issue17599] mingw: detect REPARSE_DATA_BUFFER

2016-08-04 Thread Martin Panter
Martin Panter added the comment: Thanks for your feedback. I add a reference to km\ntifs.h in the comment. The buildbots seem generally happy with the change. (One timed out in the tests, but that seems to be an existing intermittent problem.) -- resolution: -> fixed stage: patch

[issue27679] set_bitfields() unused in _ctypes_test

2016-08-04 Thread Martin Panter
New submission from Martin Panter: Modules/_ctypes/_ctypes_test.c defines a structure called BITS and exports two C functions set_bitfields() and unpack_bitfields() that operate on it. However only unpack_bitfields() seems to have been used, in Lib/ctypes/test/test_bitfields.py. Either there

[issue27678] itertools.permutations/.combinations should have len

2016-08-04 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: __length_hint__ returns an estimated length for the object. As you said, if the object passed-in has a length, we could use it. If not, then raise TypeError. But we will have two different behaviors in function of the parameter. -- nosy: +matrixise

[issue27678] itertools.permutations/.combinations should have len

2016-08-04 Thread Claudiu Saftoiu
Claudiu Saftoiu added the comment: Ahh, I see. In that case, if the object passed-in has a length, use that. If not, then raise TypeError. e.g. proposed behavior: >>> len(itertool.combinations(range(10), 2)) 45 >>> len(itertool.combinations(iter(range(10)), 2)) ... TypeError:

[issue27678] itertools.permutations/.combinations should have len

2016-08-04 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue27678] itertools.permutations/.combinations should have len

2016-08-04 Thread Xiang Zhang
Xiang Zhang added the comment: You have to exhausts the iterator to get the actual length. Some iterators have __length_hint__ but it's not required to give the truth. -- nosy: +xiang.zhang ___ Python tracker

[issue27678] itertools.permutations/.combinations should have len

2016-08-04 Thread Claudiu Saftoiu
New submission from Claudiu Saftoiu: Right now, itertools.permutations and itertools.combinations and itertools.product objects don't have a `len`. >>> len(itertools.combinations(range(10), 5)) Traceback (most recent call last): File "", line 1, in TypeError: object of type

[issue27566] Tools/freeze/winmakemakefile.py clean target should use 'del' instead of 'rm'

2016-08-04 Thread SilentGhost
Changes by SilentGhost : -- stage: needs patch -> patch review ___ Python tracker ___

[issue27677] Reopening issue 20930

2016-08-04 Thread SilentGhost
SilentGhost added the comment: You should be able to request re-opening in your message in that issue, no need to open a new issue for that. -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python