[issue23931] Update DevGuide link in Quickstart Step 1

2015-07-27 Thread Carol Willing
Carol Willing added the comment: Berker, Thanks for restaging this issue. I have attached a patch which implements your suggested approach. If you have time to review and commit, I would appreciate the help. -- stage: needs patch -> patch review Added file: http://bugs.python.org/file4

[issue24738] os.link() issues on Windows & ReFS

2015-07-27 Thread eryksun
eryksun added the comment: The problem is that the 3rd party [lockfile][1] module assumes that if os.link exists it means hard links are supported for all file systems on a given platform. So in your case it gets stuck repeatedly trying an operation that can never succeed. This can probably be

[issue22141] rlcompleter.Completer matches too much

2015-07-27 Thread Robert Collins
Robert Collins added the comment: I'm struggling to understand this bug. I've tried idle and plain cPython and neither exhibit it. I suspect thats due to how readline is itself tokenizing things. Python 3.6.0a0 (default:ef5a2ba9df62, Jul 28 2015, 15:48:19) [GCC 4.9.1] on linux Type "help", "c

[issue24740] make patchcheck doesn't detect changes if commit is done first

2015-07-27 Thread Robert Collins
New submission from Robert Collins: ./python ./Tools/scripts/patchcheck.py Getting the list of files that have been added/changed ... 0 files Fixing whitespace ... 0 files Fixing C file whitespace ... 0 files Fixing docs whitespace ... 0 files Docs modified ... NO Misc/ACKS updated ... NO Misc/NE

[issue23426] run_setup is broken in distutils

2015-07-27 Thread Robert Collins
Changes by Robert Collins : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue23426] run_setup is broken in distutils

2015-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset d8950778e3c2 by Robert Collins in branch 'default': Issue #23426: run_setup was broken in distutils. https://hg.python.org/cpython/rev/d8950778e3c2 -- nosy: +python-dev ___ Python tracker

[issue23426] run_setup is broken in distutils

2015-07-27 Thread Robert Collins
Robert Collins added the comment: The change in exec doesn't make sense to me (but see lower :)) __file__ should be in globals, not locals, right? Also if it is right, then exec(foo, g) should be equivalent :) The reset of the patch looks ok. But I can see your patch shows this breaking - I'm

[issue24738] os.link() issues on Windows & ReFS

2015-07-27 Thread Harry Lam
Harry Lam added the comment: Slight bit of clarification: This doesn't affect all scripts -- just those which don't have proper Except OSError handling. In pip's case, a timeout is not passed to the acquire() function when it is first being called and causes this issue with hanging. -

[issue24739] allow argparse.FileType to accept newline argument

2015-07-27 Thread Gary Peck
New submission from Gary Peck: argparse.FileType should support a "newline" argument that corresponds to the "newline" parameter to open(). In addition to more closely mirroring the open() API, this is also needed to properly use argparse.FileType with csv.reader() or csv.writer() (which requi

[issue24738] os.link issues on Windows & ReFS

2015-07-27 Thread Harry Lam (WaXHeLL)
New submission from Harry Lam (WaXHeLL): Storage Spaces (RAID volumes) under Windows 8.1 / Server 2012 R2 use ReFS which does not support hard links. If the Users directory has been moved to a ReFS volume, it causes any script that uses os.link to hang (pip is one of the notable examples). As

[issue24732] 3.5.0b3 Windows accept() on unready non-blocking socket raises PermissionError

2015-07-27 Thread STINNER Victor
STINNER Victor added the comment: > LGTM on Windows 7: I just compiled Python default (3.6) on Windows 8.1 with Visual Studio 2015: I confirm, the example of the original message now works as expected (raise "BlockingIOError: [WinError 10035] A non-blocking socket operation could not be compl

[issue23931] Update DevGuide link in Quickstart Step 1

2015-07-27 Thread Berker Peksag
Changes by Berker Peksag : -- stage: commit review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue24732] 3.5.0b3 Windows accept() on unready non-blocking socket raises PermissionError

2015-07-27 Thread eryksun
eryksun added the comment: LGTM on Windows 7: Python 3.5.0b4+ (default, Jul 27 2015, 17:46:34) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import socket >>> sock = socket.socket() >>> sock.bind(('127.0.0.1',

[issue24737] Doc issue: Python 3.6 doesn't compile on Visual Studio 2010 anymore

2015-07-27 Thread STINNER Victor
STINNER Victor added the comment: > I'm still waiting to hear what options will be available for installing the > compilers without a full VS, but right now there aren't any good options I'm > afraid. Well, for me the most important point is to document the current supported compilers. Good i

[issue24737] Doc issue: Python 3.6 doesn't compile on Visual Studio 2010 anymore

2015-07-27 Thread Steve Dower
Steve Dower added the comment: Technically it says that it will work until VS 2015 is released (which happened last Monday), but the statement certainly should be clarified now. I'll do it. I'm still waiting to hear what options will be available for installing the compilers without a full VS,

[issue24732] 3.5.0b3 Windows accept() on unready non-blocking socket raises PermissionError

2015-07-27 Thread STINNER Victor
STINNER Victor added the comment: > According to hg bisect: (...) > summary: Issue #23834: Add sock_call() helper function Oh, I'm not too surprised. I had to modify _deeply_ socketmodule.c to implement the PEP 475. I stressed the code on Linux, but on Windows I only ran Python test suite

[issue23834] socketmodule.c: add sock_call() to fix how the timeout is recomputed

2015-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd60eccaa331 by Victor Stinner in branch '3.5': Issue #24732, #23834: Fix sock_accept_impl() on Windows https://hg.python.org/cpython/rev/cd60eccaa331 -- ___ Python tracker

[issue24732] 3.5.0b3 Windows accept() on unready non-blocking socket raises PermissionError

2015-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd60eccaa331 by Victor Stinner in branch '3.5': Issue #24732, #23834: Fix sock_accept_impl() on Windows https://hg.python.org/cpython/rev/cd60eccaa331 -- nosy: +python-dev ___ Python tracker

[issue22680] Blacklist FunctionTestCase from test discovery

2015-07-27 Thread Evan Hubinger
Evan Hubinger added the comment: I wrote a patch to blacklist FunctionTestCase in TestLoader, and a test to make sure FunctionTestCase doesn't show up in the TestSuite after loading a module that includes it. The test runs successfully. This is my first patch, so feedback would be appreciated

[issue19450] Bug in sqlite in Windows binaries

2015-07-27 Thread Steve Dower
Steve Dower added the comment: I agree, and I know that backwards compatibility is a very high priority especially now that SQLite is shipping as part of Windows 10. While we *could* take a dependency on this binary (winsqlite3.dll, for those who have it), I don't think it's actually any diffe

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you Berker for putting an end to this. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24737] Doc issue: Python 3.6 doesn't compile on Visual Studio 2010 anymore

2015-07-27 Thread STINNER Victor
New submission from STINNER Victor: Hi, I'm unable to compile Python default (3.6) on Windows 7 with Visual Studio 2010: it requires "ucrtd.lib" which looks like a new feature of Visual Studio 2015. Please update the developer guide to be more explicit: Current text says that VS 2010 SP1 is su

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-27 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch Martin and thank you all for testing and reviewing patches! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue7546] msvc9compiler.py: add .asm extension

2015-07-27 Thread Steve Dower
Steve Dower added the comment: I'm not against adding the support (to 3.6), though I'd be interested in what the workarounds are and whether it'd be more useful as an example (e.g. "here's how to support a special build step" vs. "all special build steps need to be merged into core"). There a

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 82ccdf2df5ac by Berker Peksag in branch '3.4': Issue #23441: rcompleter now prints a tab character instead of displaying https://hg.python.org/cpython/rev/82ccdf2df5ac New changeset d55bdd2dc45e by Berker Peksag in branch '3.5': Issue #23441: rcompl

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-27 Thread Ned Deily
Ned Deily added the comment: Berker, the part of the patch for test_rlcompleter.py does not apply cleanly. Here's an updated version of it. Both the fix and the test seem to work as advertised on current 3.5 tip. It would be nice to fix this finally. -- nosy: +ned.deily Added file:

[issue19450] Bug in sqlite in Windows binaries

2015-07-27 Thread Brett Cannon
Brett Cannon added the comment: Apparently we are shipping an old version in 3.5b4 (3.8.3.1 and the latest release is 3.11), so this should probably be upgraded before rc. -- nosy: +brett.cannon versions: +Python 3.5 ___ Python tracker

[issue24732] 3.5.0b3 Windows accept() on unready non-blocking socket raises PermissionError

2015-07-27 Thread eryksun
eryksun added the comment: The permission error comes from calling SetHandleInformation on an invalid socket value. The code shouldn't make it that far. The problem starts earlier in sock_accept_impl. This function checks whether SOCKET_T ctx->result is non-negative to determine whether the ac

[issue24729] Input and Output tutorial erroneously references default encoding UTF-8

2015-07-27 Thread R. David Murray
R. David Murray added the comment: Hmm. It's a tutorial. It would probably be better to just say "the default is platform dependent" with a link to the open docs. -- nosy: +r.david.murray ___ Python tracker

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-27 Thread Yury Selivanov
Yury Selivanov added the comment: Berker, the patch looks good to me. Please commit. Larry, is it possible we can include this in 3.5.0? -- nosy: +yselivanov ___ Python tracker

[issue19853] Add support for Bitrig to 2.7

2015-07-27 Thread Brett Cannon
Brett Cannon added the comment: The official requirements for OS support is outlined in https://www.python.org/dev/peps/pep-0011/#supporting-platforms which requires a core dev to step forward to maintain bitrig support as well as a buildbot running bitrig. Unfortunately neither has happened y

[issue24727] Expand readline module

2015-07-27 Thread R. David Murray
Changes by R. David Murray : -- versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue24732] 3.5.0b3 Windows accept() on unready non-blocking socket raises PermissionError

2015-07-27 Thread Zachary Ware
Zachary Ware added the comment: According to hg bisect: The first bad revision is: changeset: 95361:358a2bcd0d0b user:Victor Stinner date:Wed Apr 01 21:57:09 2015 +0200 summary: Issue #23834: Add sock_call() helper function Nosy list from that issue added here. I don't u

[issue24720] Python install help

2015-07-27 Thread Mark Lawrence
Mark Lawrence added the comment: Are you aware that 3.5.0b4 has been released? See https://www.python.org/downloads/release/python-350b4/ -- nosy: +BreamoreBoy ___ Python tracker _

[issue24720] Python install help

2015-07-27 Thread node
node added the comment: Can is there and equivalent for iPad? Mean, can Python code be written on an iPad; because still a headache to get it loaded on Windows 8.1 -- ___ Python tracker ___

[issue7546] msvc9compiler.py: add .asm extension

2015-07-27 Thread Stefan Krah
Stefan Krah added the comment: Steve, this issue has been open for a while: Do you have an opinion on whether this is useful to have? I originally opened the issue because I am using masm in cdecimal, but there are workarounds. -- nosy: +skrah, steve.dower

[issue24734] Dereferencing a null returning value

2015-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68cd7a64fbb0 by Benjamin Peterson in branch '2.7': check return value of PyString_FromStringAndSize for NULL (closes #24734) https://hg.python.org/cpython/rev/68cd7a64fbb0 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status

[issue24651] Mock.assert* API is in user namespace

2015-07-27 Thread Erik Bray
Erik Bray added the comment: As I wrote (late) in the thread that shall not be named, I don't think it makes any sense to have magic assert_ methods on the Mock object. Not only does the "magic" clearly lead to too many ambiguities and other problems--I think they make less sense from an API

[issue20008] Clean up/refactor/make discoverable test_decimal

2015-07-27 Thread Stefan Krah
Stefan Krah added the comment: Unassigning, since I've no time for reviewing (I think the patch needs review though, either by Mark or Raymond). -- assignee: skrah -> ___ Python tracker ___

[issue24728] Build fails when threads are disabled

2015-07-27 Thread Berker Peksag
Berker Peksag added the comment: Thanks Louis. If you are going to continue contributing patches, please sign the PSF Contribution Agreement: https://www.python.org/psf/contrib/contrib-form/ -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed __

[issue24728] Build fails when threads are disabled

2015-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset d10f7e0cd059 by Berker Peksag in branch '3.4': Issue #24728: Fix building without threads. https://hg.python.org/cpython/rev/d10f7e0cd059 New changeset 401bb7ceb7e8 by Berker Peksag in branch '3.5': Issue #24728: Null merge https://hg.python.org/cpy

[issue20551] Use specific asserts in decimal tests

2015-07-27 Thread Stefan Krah
Stefan Krah added the comment: Closing, since I'm -0 and usually Raymond is against these kinds of changes (Raymond: please correct me if I'm wrong). -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue24736] argparse add_mutually_exclusive_group do not print help

2015-07-27 Thread Alexandre Badez
New submission from Alexandre Badez: Hi, Here is a sample of what I do: >>> import argparse >>> main_parser = argparse.ArgumentParser() >>> group_ex = main_parser.add_mutually_exclusive_group() >>> group_ex1 = group_ex.add_argument_group() >>> group_ex1.add_argument('-a', '--atest', help="help

[issue23756] Tighten definition of bytes-like objects

2015-07-27 Thread Stefan Krah
Stefan Krah added the comment: Sorry, I'm still not convinced that the C-contiguity explanation is in the right place. The docs have to be terse in order to be useful as a reference, and the explanation at that particular location breaks the flow of reading. So, please don't commit that. Th

[issue24717] python logging handler not used when added after a process is started

2015-07-27 Thread Vinay Sajip
Vinay Sajip added the comment: Context is crucial. The Python documentation is not wrong, but doesn't belabour the point that it refers to the most common, single-process case. The problem you encountered is not specific to logging: you need to understand all aspects of how forking works and h

[issue24733] Logically Dead Code

2015-07-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue24735] Invalid access in combinations_with_replacement()

2015-07-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue24717] python logging handler not used when added after a process is started

2015-07-27 Thread eric
eric added the comment: The python documentation says that when one calls logger.getLogger with the same identifier that one gets the same instance of the logger. I would guess that in the case of a Process this is not the case. I would have to assume that the handlers attached to that Process

[issue18838] The order of interactive prompt and traceback on Windows

2015-07-27 Thread Adam Bartoš
Adam Bartoš added the comment: Yes, it is a behavior change between Python 2 and Python 3. I just tried with 2.7 and 3.0. -- ___ Python tracker ___ _

[issue24735] Invalid access in combinations_with_replacement()

2015-07-27 Thread Stefan Krah
New submission from Stefan Krah: There's a corner case in cwr_next(), where the pool size is zero but pool[0] is accessed: from itertools import * it = combinations_with_replacement([], 0) next(it) Patch attached. -- components: Extension Modules files: itertools_invalid_access.diff

[issue24734] Dereferencing a null returning value

2015-07-27 Thread Pankaj Sharma
New submission from Pankaj Sharma: Hi, there is an issue reported for "dereferencing a null return by function "PyString_FromStringAndSize()" file:Python-2.7.10/Python/compile.c .so there should be check for NULL before dereferencing in function compiler_nameop(). Please review attached patch.

[issue23670] Modifications to support iOS as a cross-compilation target

2015-07-27 Thread Cory Benfield
Changes by Cory Benfield : -- nosy: +Lukasa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue24733] Logically Dead Code

2015-07-27 Thread Pankaj Sharma
New submission from Pankaj Sharma: Hi, Reporting an issues of "Logically Dead code" in Python 2.7.10/Python/traceback.c +174 Please review attached patch. thanks! -- components: Interpreter Core, Library (Lib) files: Python-2.7.10-traceback.patch keywords: patch messages: 247458 nosy:

[issue24724] Element.findall documentation misleading

2015-07-27 Thread Stefan Behnel
Stefan Behnel added the comment: Agreed that it's misleading. Note that the section refers to the *following* example, not the one that readers just went through. I would actually start that paragraph with the reference to XPath (because that's the difference to el.iter()), and then just prese

[issue24683] Type confusion in json encoding

2015-07-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This was my fault. I want to set resolution to "fixed" but missed. Victor has corrected this. -- ___ Python tracker ___ _

[issue24683] Type confusion in json encoding

2015-07-27 Thread STINNER Victor
STINNER Victor added the comment: > resolution: not a bug Since Serhiy pushed changes, the issue is fixed and it is a real bug. Thanks for the report paul. -- resolution: not a bug -> fixed ___ Python tracker ___

[issue24683] Type confusion in json encoding

2015-07-27 Thread paul
paul added the comment: resolution: not a bug ^ because of private API? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U