[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2016-03-22 Thread Rian Hunter
Rian Hunter added the comment: Implicit transactions can also cause mysterious "database is locked" bugs, even when a large timeout is set on the connection. Many, many people are affected by this bug (search the web for "python sqlite database is locked"). The attached code demonstrates this

[issue26616] A bug in datetime.astimezone() method

2016-03-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: See also #9527. -- ___ Python tracker ___ ___ Python-bugs-list

[issue26616] A bug in datetime.astimezone() method

2016-03-22 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: With TZ=America/New_York, >>> from datetime import * >>> u = datetime(2015, 11, 1, 5, tzinfo=timezone.utc) >>> t = u.astimezone() >>> print(t) 2015-11-01 01:00:00-04:00 >>> print(t.astimezone()) 2015-11-01 00:00:00-05:00 which is wrong - the second

[issue26602] argparse doc introduction is inappropriately targeted

2016-03-22 Thread Brian Guo
Brian Guo added the comment: Hi, I agree with your observation about the unnecessarily complicated documentation. I feel that there is not a real necessity to include an example that uses (metavar='N', nargs='+') or even (const='sum', default='max') inside the parameters of the add_argument

[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers

2016-03-22 Thread Robert Siemer
Changes by Robert Siemer : -- nosy: +siemer ___ Python tracker ___ ___

[issue26615] Missing entry in WRAPPER_ASSIGNMENTS in update_wrapper's doc

2016-03-22 Thread Xiang Zhang
New submission from Xiang Zhang: WRAPPER_ASSIGNMENTS now contains __qualname__ but the documentation doesn't mention it. -- assignee: docs@python components: Documentation files: functools_doc.patch keywords: patch messages: 262237 nosy: docs@python, xiang.zhang priority: normal

[issue1346874] httplib simply ignores CONTINUE

2016-03-22 Thread Patrick J McNerthney
Patrick J McNerthney added the comment: I believe this is actually a bug, because it causes the posting of messages whose length is greater then the Apache HTTPD SSLRenegBufferSize setting to fail, whereas other http clients that first wait to receive the 100 response before sending the body

[issue23735] Readline not adjusting width after resize with 6.3

2016-03-22 Thread Eric Price
Eric Price added the comment: (To be clear, it now works in general for Python signal handlers, and when C handlers are inserted but not deleted.) For a conditional ifdef, does that mean I should add another test/variable in configure.ac? -- ___

[issue26614] False/0 and True/1 collision when used as dict keys?

2016-03-22 Thread Ethan Furman
Ethan Furman added the comment: False and True are subtypes of int, so the behaviour you are seeing is known and expected. https://docs.python.org/2/reference/datamodel.html?highlight=bool In the future feel free to ask on Python-List about behaviour -- you'll be sure to get a plethora of

[issue23735] Readline not adjusting width after resize with 6.3

2016-03-22 Thread Eric Price
Eric Price added the comment: Hmm, OK. I've made a new version of the patch that chains signal handlers. I think that should make it match previous functionality, and work with basic combined usage or python signal handlers. It probably still won't work if you, say, want to start and then

[issue26614] False/0 and True/1 collision when used as dict keys?

2016-03-22 Thread nickeubank
New submission from nickeubank: Found an odd behavior I'd never known about today, not sure if it's a bug or known. Python 3.4.4 (anaconda) True, False, 0, 1 can all be used as dictionary keys. But Apparently True and 1 hash to the same item and False and 0 hash to the same item, so they

[issue26608] RLock undocumented behavior in case of multiple acquire

2016-03-22 Thread Josh Rosenberg
Josh Rosenberg added the comment: Per the docs ( https://docs.python.org/3/library/threading.html#rlock-objects ): "To unlock the lock, a thread calls its release() method. acquire()/release() call pairs may be nested; only the final release() (the release() of the outermost pair) resets the

[issue23735] Readline not adjusting width after resize with 6.3

2016-03-22 Thread Martin Panter
Martin Panter added the comment: Issue 13285 is open about tracking non-Python signal handlers. I also found Issue 2675 about curses SIGWINCH handling in the interactive interpreter or when the readline module is imported, and Issue 3948 about someone trying to use both readline and SIGWINCH.

[issue13285] signal module ignores external signal changes

2016-03-22 Thread Martin Panter
Martin Panter added the comment: Also, the documentation currently suggests it returns None in these cases, but it actually returns SIG_DFL in at least one case (noticed in Issue 23735). FWIW Vilya’s opaque object sounds fairly sensible to me. Yes, it is ugly, but one does not look at Unix

[issue26612] test_ssl: use context manager (with) to fix ResourceWarning

2016-03-22 Thread Martin Panter
Martin Panter added the comment: Also remember that sockets don’t do context management in Python 2, so this would bring more incompatibilies when merging tests between the two branches. -- ___ Python tracker

[issue26612] test_ssl: use context manager (with) to fix ResourceWarning

2016-03-22 Thread Martin Panter
Martin Panter added the comment: Wouldn’t it be better to fix the underlying problem with the test cases? As I understand it, that would also avoid the warnings :) Also, you can often use self.addCleanup(s.close), which saves a level of indentation (and associated noise in the annotate

[issue23735] Readline not adjusting width after resize with 6.3

2016-03-22 Thread Martin Panter
Martin Panter added the comment: In configure.ac there are explicit checks for pre-2.1 Readline versions (and later versions). Maybe it is reasonable to require 4.0 these days. But I think this should only be done in the next Python version (3.6+). To support Editline (and pre-4.0 Readline

[issue26613] Descriptor HowTo Guide - Typo

2016-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: The last line is not a typo, it shows how to call the pure python version of the classmethod described above it. FWIW, I'm working a revision to this how-to guide that it easier to read. At the time it was written, it was the *only* documentation for the

[issue10894] Making stdlib APIs private

2016-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Much of this is already in PEP 8 and doesn't need repeating. Also, the tone is somewhat judgmental, heavy handed, restrictive, and over-broad for my tastes. The last part seems to imply that we're going to change existing code in a way that may break user

[issue26613] Descriptor HowTo Guide - Typo

2016-03-22 Thread Stubz
New submission from Stubz: The last line has a typo ... Dict.fromkeys -> dict.fromkeys I am a newbie, but that was just a pain in the ass ... Worked my way thru this How to and spent an hour+ trying to sort a circular argument error... Was this intentional ¿ In as much as it was a pain in

[issue26612] test_ssl: use context manager (with) to fix ResourceWarning

2016-03-22 Thread STINNER Victor
New submission from STINNER Victor: Attached patch modifies Lib/test/test_ssl.py to use "with socket:" instead of "try: ... finally: socket.close()" or similar patterns. Our PPC64 AIX 3.x buildbot has a broken ssl module. A lot of tests logs ResourceWarning on unclosed sockets, because errors

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread STINNER Victor
STINNER Victor added the comment: (Ooops, I closed the bug by mistake.) -- resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread STINNER Victor
STINNER Victor added the comment: TODO for this issue: smart storage in _tracemalloc for trace keys. Use compact void* key until the first domain != 0 is used. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue26604] Add optional source parameter to warnings.warn()

2016-03-22 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue26603] os.scandir: implement finalizer (for ResourceWarning)

2016-03-22 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue26592] _warnings.warn_explicit() should try to import the warnings module

2016-03-22 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue26592] _warnings.warn_explicit() should try to import the warnings module

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 53343d095f78 by Victor Stinner in branch 'default': _warnings.warn_explicit(): try to import warnings https://hg.python.org/cpython/rev/53343d095f78 -- nosy: +python-dev ___ Python tracker

[issue26603] os.scandir: implement finalizer (for ResourceWarning)

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset b65d783cfe3b by Victor Stinner in branch 'default': Implement finalizer for os.scandir() iterator https://hg.python.org/cpython/rev/b65d783cfe3b -- nosy: +python-dev ___ Python tracker

[issue26604] Add optional source parameter to warnings.warn()

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3a57ced47459 by Victor Stinner in branch 'default': Add a source parameter to warnings.warn() https://hg.python.org/cpython/rev/3a57ced47459 -- nosy: +python-dev ___ Python tracker

[issue26610] test_venv.test_with_pip() fails when ctypes is missing

2016-03-22 Thread STINNER Victor
STINNER Victor added the comment: > It shouldn't be hard to make ctypes optional in pip, it's only used to check > if the OS we're running on is "manylinux" compatible, roughly checking the > glibc version number. These checks look low level, so it makes sense to use ctypes for that. > Worst

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread STINNER Victor
STINNER Victor added the comment: Ooook, I think that I found and fixed the random failures in the change af1c1149784a. -- ___ Python tracker ___

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6f30e2731af by Victor Stinner in branch 'default': Issue #26588: remove debug traces from _tracemalloc. https://hg.python.org/cpython/rev/c6f30e2731af New changeset af1c1149784a by Victor Stinner in branch '3.5': Fix _tracemalloc start/stop

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2016-03-22 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24266] raw_input + readline: Ctrl+C during search breaks readline

2016-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for fixing this! -- ___ Python tracker ___ ___ Python-bugs-list

[issue24266] raw_input + readline: Ctrl+C during search breaks readline

2016-03-22 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread STINNER Victor
STINNER Victor added the comment: The bug was seen on 5 buildbots yet: * http://buildbot.python.org/all/builders/PPC64%20Fedora%203.x/ * http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.x/ * http://buildbot.python.org/all/builders/s390x%20RHEL%203.x/ *

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 708beeb65026 by Victor Stinner in branch 'default': Issue #26588: skip test_warnings.test_tracemalloc() https://hg.python.org/cpython/rev/708beeb65026 -- ___ Python tracker

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset f2d64f91d992 by Victor Stinner in branch 'default': Issue #26588: Don't call tracemalloc_init() at module initilization https://hg.python.org/cpython/rev/f2d64f91d992 New changeset d0b2f70731fb by Victor Stinner in branch 'default': Issue #26588:

[issue26607] Rename a parameter in the function PyFile_FromFile

2016-03-22 Thread SilentGhost
Changes by SilentGhost : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26607] Rename a parameter in the function PyFile_FromFile

2016-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I would say this is an issue of a static analysis tool, not Python sources. -- resolution: -> not a bug ___ Python tracker

[issue26607] Rename a parameter in the function PyFile_FromFile

2016-03-22 Thread SilentGhost
Changes by SilentGhost : -- components: +Interpreter Core nosy: +benjamin.peterson, serhiy.storchaka stage: -> patch review ___ Python tracker

[issue26396] Create json.JSONType

2016-03-22 Thread Brett Cannon
Brett Cannon added the comment: Based on conversations in https://github.com/python/typing/issues/182 I'm closing this as rejected. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread STINNER Victor
STINNER Victor added the comment: Failure on "x86 Ubuntu Shared 3.x" at revision af388201c9976aebc4a8a433c95bfc4a1abe014b. I added an assertion in tracemalloc_init() to ensure that the reeentrant flag is set at the end of the function. The reentrant flag was no more set at

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset af388201c997 by Victor Stinner in branch 'default': Issue #26588: one more assertion https://hg.python.org/cpython/rev/af388201c997 -- ___ Python tracker

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread STINNER Victor
STINNER Victor added the comment: Failure at revision 636fa01842f597bedff7054616c65a4784c92b4a on AMD64 Windows10 3.x (regrtest runs without the -j option, so all tests are run in the same thread).

[issue26200] SETREF adds unnecessary work in some cases

2016-03-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am late to this discussion, but FWIW, I would like to back Raymond up. For me, Py_XDECREF is usually a sign of lazy programming and an optimization opportunity. In many cases I've seen, Py_XDECREF is used under a "done:" label and can be optimized

[issue10894] Making stdlib APIs private

2016-03-22 Thread SilentGhost
SilentGhost added the comment: I wonder if the devguide would be a more suitable place for these guidelines. Here is the patch that adds them to stdblibchanges.rst -- keywords: +patch stage: needs patch -> patch review versions: +Python 3.5, Python 3.6 -Python 3.4 Added file:

[issue26200] SETREF adds unnecessary work in some cases

2016-03-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread STINNER Victor
STINNER Victor added the comment: Oh, "s390x RHEL 3.x" and "AMD64 Debian root 3.x" buildbots use "-j 1" command line option. In practice, tests are not run in subprocesses, -j1 option is ignored (issue #25285). -- ___ Python tracker

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 636fa01842f5 by Victor Stinner in branch 'default': Add assertions on tracemalloc_reentrant_key https://hg.python.org/cpython/rev/636fa01842f5 -- ___ Python tracker

[issue26587] Possible duplicate entries in sys.path if .pth files are used with zip's

2016-03-22 Thread SilentGhost
SilentGhost added the comment: I still think my fix is more appropriate as it ensures that known_paths and sys.path stay connected somehow. -- ___ Python tracker

[issue25251] Unknown MS Compiler version 1900

2016-03-22 Thread Steve Dower
Steve Dower added the comment: Please test your extensions thoroughly when building with MinGW, especially if you're planning on distributing wheels on PyPI. CPython assumes an ABI compatible with what MSVC would have built, and mixing ABIs will lead to crashes or data corruption. (I'm not

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset bbdb24611294 by Victor Stinner in branch 'default': Issue #26588: more assertions https://hg.python.org/cpython/rev/bbdb24611294 -- ___ Python tracker

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Steve Dower
Steve Dower added the comment: Unless you're working on CPython itself, I'd suggest just installing the debug binaries through the installer. I've made a note to write a blog post on how to use the embeddable distro, so when that comes out (in a few weeks, probably) hopefully it will help

[issue26587] Possible duplicate entries in sys.path if .pth files are used with zip's

2016-03-22 Thread Brett Cannon
Brett Cannon added the comment: And the code under discussion can be found at https://hg.python.org/cpython/file/default/Lib/site.py#l133 -- ___ Python tracker

[issue26587] Possible duplicate entries in sys.path if .pth files are used with zip's

2016-03-22 Thread Brett Cannon
Brett Cannon added the comment: Unfortunately you can't simply remove that directory check because you don't want to blindly normalize case. If someone put some token value on sys.path for their use that was case-sensitive even on a case-insensitive OS then the proposed change would break

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Zachary Ware
Zachary Ware added the comment: Each of the .pyd files has its own .vcxproj in PCbuild. You might be able to make use of pcbuild.sln or pcbuild.proj, each of which include all of the various project files. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue26587] Possible duplicate entries in sys.path if .pth files are used with zip's

2016-03-22 Thread Wolfgang Langner
Wolfgang Langner added the comment: I think a fix for 3.6 only is ok, because it changes behaviour. But this is only an internal function with a "_". Should I add a test with a temporary created pth file? -- ___ Python tracker

[issue26396] Create json.JSONType

2016-03-22 Thread Brett Cannon
Brett Cannon added the comment: I'll add some tests and a note that this was added in Python 3.6 and is provisional along with the typing module. -- ___ Python tracker

[issue26396] Create json.JSONType

2016-03-22 Thread Guido van Rossum
Guido van Rossum added the comment: I'm fine with the patch here. Go for it! -- ___ Python tracker ___ ___

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 340ed3ff2656 by Victor Stinner in branch 'default': Issue #26588: fix compilation on Windows https://hg.python.org/cpython/rev/340ed3ff2656 -- ___ Python tracker

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Simon
Simon added the comment: Not sure if I should be closing the issue or if you should. I think it is not an issue. -- ___ Python tracker ___

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4ec81b497a84 by Victor Stinner in branch 'default': Issue #26588: add debug traces https://hg.python.org/cpython/rev/4ec81b497a84 -- ___ Python tracker

[issue16151] Deferred KeyboardInterrupt in interactive mode

2016-03-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue15660] Clarify 0 prefix for width specifier in str.format doc,

2016-03-22 Thread py.user
py.user added the comment: Terry J. Reedy (terry.reedy) wrote: > You example says to left justify '1' Nope. The fill character goes before alignment in the specification (grammatics). >>> format(1, '0<2') '10' >>> This is right. But 02 - is zero padding of a number which can be done only

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Simon
Simon added the comment: Yes, it was a debug build, I didn't know it only works in release, that's the part I was clearly missing. It would be great if we could have a debug embeddable zip file, but I understand that it might be asking for a bit much. Is the project that builds all the pyds

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread STINNER Victor
STINNER Victor added the comment: Crap. I expected the set_reentrant() bug to be fixed, but I saw it one more time on the latest build (revision 0da4532a893389bd1ee1ddfe8227750d968023ba): http://buildbot.python.org/all/builders/s390x%20RHEL%203.x/builds/817/steps/test/logs/stdio 0:02:54

[issue26611] assertRaises callableObj cannot be used as a keyword with args

2016-03-22 Thread SilentGhost
SilentGhost added the comment: Documentation [0] has callable listed as a positional argument, and this is how it should be used. [0] https://docs.python.org/2.7/library/unittest.html#unittest.TestCase.assertRaises -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved

[issue26611] assertRaises callableObj cannot be used as a keyword with args

2016-03-22 Thread Chris Mitchell
New submission from Chris Mitchell: assertRaises has callableObj listed as a keyword, though it is not possible to use it as a keyword when the callableObj takes arguments. The function definition is: def assertRaises(self, excClass, callableObj=None, *args, **kwargs): Therefore, using

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Steve Dower
Steve Dower added the comment: Are you making a debug build? It might be looking for _ctypes_d.pyd in that case. You'll need a release build for the embeddable distro, as well as including the pyds from the zip in sys.path - they need to be standalone files. The embeddable release is meant

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread STINNER Victor
STINNER Victor added the comment: > New changeset b86cdebe0e97 by Victor Stinner in branch 'default': > tracemalloc now supports domains > https://hg.python.org/cpython/rev/b86cdebe0e97 I hate working on huge patches, it's a pain to rebase them. I chose to push a first implementation to

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-03-22 Thread STINNER Victor
STINNER Victor added the comment: Ok, I added the following C functions: int _PyTraceMalloc_Track(_PyTraceMalloc_domain_t domain, Py_uintptr_t ptr, size_t size); int _PyTraceMalloc_Untrack(_PyTraceMalloc_domain_t domain, Py_uintptr_t ptr); Antoine, Nathaniel: Please play with it, I'm

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 60655e543d8a by Victor Stinner in branch 'default': Add C functions _PyTraceMalloc_Track() https://hg.python.org/cpython/rev/60655e543d8a -- nosy: +python-dev ___ Python tracker

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset b86cdebe0e97 by Victor Stinner in branch 'default': tracemalloc now supports domains https://hg.python.org/cpython/rev/b86cdebe0e97 -- ___ Python tracker

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7c894911eb59 by Victor Stinner in branch 'default': Simplify implementation of hashtable.c https://hg.python.org/cpython/rev/7c894911eb59 New changeset cd9a40a5ea90 by Victor Stinner in branch 'default': Remove _Py_hashtable_delete()

[issue24266] raw_input + readline: Ctrl+C during search breaks readline

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset af6e8e1d15fa by Martin Panter in branch '3.5': Issue #24266: Cancel history search mode with Ctrl+C in Readline 7 https://hg.python.org/cpython/rev/af6e8e1d15fa New changeset 322d30816d36 by Martin Panter in branch 'default': Issue #24266: Merge

[issue26610] test_venv.test_with_pip() fails when ctypes is missing

2016-03-22 Thread Donald Stufft
Donald Stufft added the comment: It shouldn't be hard to make ctypes optional in pip, it's only used to check if the OS we're running on is "manylinux" compatible, roughly checking the glibc version number. Worst case we can just conditon that check on ctypes existing. --

[issue25911] Regression: os.walk now using os.scandir() breaks bytes filenames on windows

2016-03-22 Thread STINNER Victor
STINNER Victor added the comment: Windows buildbots still fail (sometimes?) because of this issue :-/ http://buildbot.python.org/all/builders/AMD64%20Windows8%203.x/builds/1874/steps/test/logs/stdio -- ___ Python tracker

[issue26610] test_venv.test_with_pip() fails when ctypes is missing

2016-03-22 Thread STINNER Victor
New submission from STINNER Victor: pip/pep425tags.py requires ctypes, but it's not available on the OpenIndiana buildbot. I suggest to skip the test if ctypes is missing. I don't know if it's possible to modify pip to make ctypes optional again.

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-22 Thread STINNER Victor
STINNER Victor added the comment: Hi, > - How do you anticipate the integers naming domains will be allocated? Is it > like port numbers, and you'll maintain a registry somewhere ("domains 0-100 > are reserved for the interpreter, pycuda has reserved 100-110, ...")? I simply have no idea at

[issue26606] logging.baseConfig is missing the encoding parameter

2016-03-22 Thread SilentGhost
Changes by SilentGhost : -- nosy: +vinay.sajip stage: -> patch review ___ Python tracker ___

[issue26609] Wrong request target in test_httpservers.py

2016-03-22 Thread Xiang Zhang
New submission from Xiang Zhang: When requesting a resource from an origin server, the request-target in request line should always starts with a back slash. But in SimpleHTTPServerTestCase in test_httpservers.py, almost all the requests are sent without the back slash though the handler

[issue23735] Readline not adjusting width after resize with 6.3

2016-03-22 Thread Eric Price
Eric Price added the comment: rl_resize_terminal was added in readline 4.0, released in 1999. I think we can rely on it. =) I don't know editline, but it probably doesn't include the readline 6.3 change that makes this necessary, so your patch for it could just IFDEF out that line. I think

[issue26605] Feature request: string method `to_file`

2016-03-22 Thread SilentGhost
SilentGhost added the comment: Those methods were added in 3.5, so no wonder many people would be unaware of them. I would suggest first taking such a proposal to python-ideas, since bug tracker is not a venue for proposing/advocating such sweeping changes to the language. -- nosy:

[issue26506] hex() documentation: mention "%x" % int

2016-03-22 Thread Manvi B
Manvi B added the comment: Considered the reviews from STINNER Victor (haypo) and comments, the patch is modified. -- Added file: http://bugs.python.org/file42242/issue26506.diff ___ Python tracker

[issue24266] raw_input + readline: Ctrl+C during search breaks readline

2016-03-22 Thread Martin Panter
Martin Panter added the comment: I’m getting ready to commit my patch to support the new Readline 7 function. Is there anything else to be done? The other options don’t sound worth it to me (e.g. incomplete, depending on internal details, etc). -- stage: patch review -> commit review

[issue23735] Readline not adjusting width after resize with 6.3

2016-03-22 Thread Martin Panter
Martin Panter added the comment: I think it is conceivable that people could use Readline _and_ do their own stuff with the terminal. Consider someone playing with terminal stuff in the interactive interpreter (which happens to use Readline). I understand Readline returns the terminal to a

[issue26608] RLock undocumented behavior in case of multiple acquire

2016-03-22 Thread Mateusz
New submission from Mateusz: The number of acquisitions must be the same as the number of releases or else lock will not be released for other threads leading to deadlock. This is not mentioned in documentation. First acquisition returns boolean and further acquisitions return 1. This is

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Simon
Simon added the comment: Sorry I should add that 1- I do *not* have python installed on my dev machine. 2- VS2015 Enterprise. 3- Windows 10 - x64 4- *Not* running as admin Everything else is fairly standard. -- ___ Python tracker

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Simon
Simon added the comment: 1- New solution Win32 "console application", (left all default settings). 2- downloaded "Gzipped source tarball" from https://www.python.org/downloads/release/python-351/ 3- Extracted everything, (didn't change anything). 4- Added "pythoncore.vcxproj" in