[issue28568] Build files in PC/VS9.0 contain an outdated sqlite version number

2016-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8f9c54a75c3d by Zachary Ware in branch '2.7': Closes #28568: Fix VS9.0 build files to use sqlite 3.8.11.0 https://hg.python.org/cpython/rev/8f9c54a75c3d -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed _

[issue28568] Build files in PC/VS9.0 contain an outdated sqlite version number

2016-10-31 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the report and patch! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue28576] Uninstalling Py352 x86 with /uninstall option does not remove prepended paths

2016-10-31 Thread jcrmatos
New submission from jcrmatos: Hello, When uninstalling Py352 x86 with the /uninstall option, it doesn't remove the prepended paths that were added on installation (unlike the GUI uninstall which removes them). My system is a Win7ProSP1 x64. Best regards, JM -- components: Installat

[issue28575] Error 0x80070643 While installing in Win 10 32 Bit

2016-10-31 Thread Nixon
New submission from Nixon: While trying to install Python Error 0x80070643 is showing. -- components: Windows files: Python 3.6.0b3 (32-bit)_20161101112524.log messages: 279851 nosy: nixonvarghese, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: o

[issue28574] Update bundled pip

2016-10-31 Thread Steve Dower
New submission from Steve Dower: I know you've already taken the fix I'm most concerned about (the new distlib version, https://github.com/pypa/pip/pull/4038), but this is a reminder that we really need a new release of pip to bundle with Python 3.6.0 beta 4. I'm not hugely concerned as to whe

[issue28574] Update bundled pip

2016-10-31 Thread Steve Dower
Steve Dower added the comment: Also, it can go into whatever versions you'd normally insert into. I just tagged 3.6 and 3.7 because they're the ones currently broken. -- ___ Python tracker

[issue28573] Python 3.6.0b3 64-bit has no sys._mercurial info

2016-10-31 Thread Steve Dower
New submission from Steve Dower: The release build for 3.6.0b3 64-bit is missing Mercurial info: >>> import sys >>> sys._mercurial ('CPython', '', '') >>> sys.version '3.6.0b3 (default, Nov 1 2016, 03:21:01) [MSC v.1900 64 bit (AMD64)]' The debug build and the 32-bit builds are fine. It needs

[issue27781] Change sys.getfilesystemencoding() on Windows to UTF-8

2016-10-31 Thread Steve Dower
Steve Dower added the comment: Before 3.6.0 beta 4 I need to make this change permanent. From memory, it's just an exception message that needs changing (and PEP 529 becomes final), but I'll review the changeset to be sure. -- nosy: +ned.deily priority: normal -> release blocker stage:

[issue12857] Expose called function on frame object

2016-10-31 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue28548] http.server parse_request() bug and error reporting

2016-10-31 Thread Martin Panter
Changes by Martin Panter : -- versions: +Python 3.7 -Python 3.5 Added file: http://bugs.python.org/file45300/parse-version.v2.patch ___ Python tracker ___ ___

[issue12857] Expose called function on frame object

2016-10-31 Thread Nick Coghlan
Nick Coghlan added the comment: This topic came up in a discussion I was having with Yury, and thanks to generators and coroutines, I don't think "f_func" would be the right name for an attribute like this, with something more neutral like "f_origin" potentially being preferable The specific

[issue28542] document cross compilation

2016-10-31 Thread Martin Panter
Martin Panter added the comment: Regarding 2.7, I guess it depends on your definition of “support”. People have been cross-compiling Python 2.7 longer than I have been working on Python. In the past I have tried to apply cross compilation fixes to 2.7. But if you are only confident about 3.6,

[issue28123] _PyDict_GetItem_KnownHash ignores DKIX_ERROR return

2016-10-31 Thread Xiang Zhang
Changes by Xiang Zhang : Added file: http://bugs.python.org/file45299/issue28123_v5.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28385] Bytes objects should reject all formatting codes with an error message

2016-10-31 Thread Eric V. Smith
Eric V. Smith added the comment: I don't have a strong feeling one way or the other. I'd be surprised if anyone is catching these errors. -- ___ Python tracker ___ _

[issue28248] Upgrade installers to OpenSSL 1.0.2j

2016-10-31 Thread Ned Deily
Ned Deily added the comment: Thanks for the patch, Mariatta. Pushed for released in 2.7.13, 3.5.3, and 3.6.0b3. -- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28248] Upgrade installers to OpenSSL 1.0.2j

2016-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 33ad26897e30 by Ned Deily in branch '2.7': Issue #28248: Update macOS installer build to use OpenSSL 1.0.2j. https://hg.python.org/cpython/rev/33ad26897e30 New changeset a8799a63feb7 by Ned Deily in branch '3.5': Issue #28248: Update macOS installer

[issue28570] httplib mishandles unknown 1XX status codes

2016-10-31 Thread Martin Panter
Martin Panter added the comment: Consuming and ignoring 1xx responses seems reasonable for general cases. Treating 101 (Switching Protocols) as a special case also seems reasonable. I also agree it would be good to provide an API to return these responses (at least after the request is complet

[issue28564] shutil.rmtree is inefficient due to listdir() instead of scandir()

2016-10-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Add support of file descriptor in os.scandir() ___ Python tracker ___ ___ Python-bugs-

[issue28530] Howto detect if an object is of type os.DirEntry

2016-10-31 Thread Eryk Sun
Eryk Sun added the comment: To clarify, DirEntry is only exposed in the posix/nt and os modules starting in 3.6. To get a reference to it in 3.5 you have to fall back on something like the following: import os try: from os import DirEntry except ImportError: import

[issue28208] update sqlite to 3.14.2

2016-10-31 Thread Ned Deily
Ned Deily added the comment: Thanks for the patch, Mariatta! Pushed for release in 3.6.0b3. -- priority: release blocker -> resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue28208] update sqlite to 3.14.2

2016-10-31 Thread Ned Deily
Ned Deily added the comment: [typo in commit message, should be #28208] New changeset 88e3df38d591 by Ned Deily in branch '3.6': Issue #28028: Update OS X installers to use SQLite 3.14.2. https://hg.python.org/cpython/rev/88e3df38d591 -- ___ Python t

[issue28028] Convert warnings to SyntaxWarning in parser

2016-10-31 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg279836 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue28028] Convert warnings to SyntaxWarning in parser

2016-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 88e3df38d591 by Ned Deily in branch '3.6': Issue #28028: Update OS X installers to use SQLite 3.14.2. https://hg.python.org/cpython/rev/88e3df38d591 -- nosy: +python-dev ___ Python tracker

[issue28208] update sqlite to 3.14.2

2016-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7e48e0557152 by Ned Deily in branch 'default': Issue #28208: merge from 3.6 https://hg.python.org/cpython/rev/7e48e0557152 -- ___ Python tracker __

[issue28513] Document zipfile CLI

2016-10-31 Thread Martin Panter
Martin Panter added the comment: Apparently (haven’t tried myself) if you put “.. program:: zipfile” before the :option: invocations, it changes the default context and you don’t need the bit. The text in general looks fine. One very minor thing: I would use a hyphen when “command line” is a

[issue28572] IDLE: add tests for config dialog.

2016-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: msg279176 of #27755 describe experiments with ttk.combobox. -- ___ Python tracker ___ ___ Python-bug

[issue28571] llist and scipy.stats conflicts, python segfault

2016-10-31 Thread R. David Murray
R. David Murray added the comment: This involves two third party C extensions, so there isn't really anything for us to do here until those projects have taken a look. If they can identify a CPython bug causing this, then we can do something. -- nosy: +r.david.murray

[issue22595] F5 shortcut key not working in IDLE for OSX

2016-10-31 Thread Dave T
Dave T added the comment: Its on a windows 10 It doesn't come with the run application but the debug -- nosy: +Dave T versions: +Python 2.7 -Python 3.5 Added file: http://bugs.python.org/file45298/Py 2.7.JPG ___ Python tracker

[issue28572] IDLE: add tests for config dialog.

2016-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Patch makes two types of change to configdialog. 1. Make tested widgets visible to their methods can be called. 2. Delete an erroneous command argument for General tab radiobutton. Calling SetKeysType on the General tab just redid adjustments on the Keys ta

[issue28571] llist and scipy.stats conflicts, python segfault

2016-10-31 Thread Lluís
Lluís added the comment: Confirmed with 2.7 as well. -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28572] IDLE: add tests for config dialog.

2016-10-31 Thread Terry J. Reedy
New submission from Terry J. Reedy: The current test_configdialog creates an instance of ConfigDialog. Time to add some real tests so I can comfortably work on multiple other configdialog issues. The challenge is to do it so tests run without a blocking mainloop call and without IDLE's tcl

[issue28571] llist and scipy.stats conflicts, python segfault

2016-10-31 Thread Lluís
New submission from Lluís: I'm running this small script that produces a segfault: https://gist.github.com/anonymous/d24748d5b6de88b31f18965932744211 My python version is Python 3.5.2 (default, Jun 28 2016, 08:46:01) [GCC 6.1.1 20160602] on linux. And running scipy version 0.18.1. Can someone

[issue28570] httplib mishandles unknown 1XX status codes

2016-10-31 Thread Cory Benfield
Cory Benfield added the comment: 101 should probably be special-cased, because in that case the underlying protocol is being totally changed. -- ___ Python tracker ___ _

[issue28570] httplib mishandles unknown 1XX status codes

2016-10-31 Thread SilentGhost
SilentGhost added the comment: The fix could be as small as the attached patched, though I'm not sure that is the correct way of handling 101 code. -- keywords: +patch nosy: +SilentGhost Added file: http://bugs.python.org/file45296/28570.diff ___ Pyt

[issue18987] distutils.utils.get_platform() for 32-bit Python on a 64-bit machine

2016-10-31 Thread Michael Felt
Michael Felt added the comment: FYI: This is 'actual' as I am working on an implementation of a cloud-init distro for AIX and it is very difficult to figure out the correct approach for a replacement value for os.uname[4] - when comparing with "Linux" logic I was thinking of using platform.pl

[issue18987] distutils.utils.get_platform() for 32-bit Python on a 64-bit machine

2016-10-31 Thread Michael Felt
Michael Felt added the comment: There are so many places where there are references to where 32-bit and 64-bit are referred to - and, in particular, the value of os.uname()[4] For the discussion I went back to 32-bit Python on AIX A) michael@x071:[/data/prj/python/archive/Python-2.7.3]python P

[issue28570] httplib mishandles unknown 1XX status codes

2016-10-31 Thread Cory Benfield
New submission from Cory Benfield: Long story short http.client does not tolerate non-100 or 101 status codes from the 1XX block in a sensible manner: it treats them as final responses, rather than as provisional ones. Expected behaviour ~~ When http.client

[issue26920] android: test_sys fails

2016-10-31 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: -> xdegaye components: +Interpreter Core -Cross-Build, Extension Modules stage: -> commit review versions: +Python 3.7 ___ Python tracker _

[issue26920] android: test_sys fails

2016-10-31 Thread Xavier de Gaye
Xavier de Gaye added the comment: For the record, on the Android emulator we have now (not sure where this change has been made): >>> sys.getfilesystemencoding() 'utf-8' >>> locale.getpreferredencoding(False) 'ascii' So test_ioencoding_nonascii succeeds now. Anyway the problem with this test is

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Eric V. Smith
Eric V. Smith added the comment: Chi Hsuan Yen: I'll investigate, and open another issue as needed. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker _

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset ee82266ad35b by Eric V. Smith in branch '3.6': Issue 28128: Print out better error/warning messages for invalid string escapes. Backport to 3.6. https://hg.python.org/cpython/rev/ee82266ad35b New changeset 7aa001a48120 by Eric V. Smith in branch 'd

[issue28513] Document zipfile CLI

2016-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks SilentGhost! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue28199] Compact dict resizing is doing too much work

2016-10-31 Thread Ned Deily
Ned Deily added the comment: Excellent, thanks everyone! I'll leave this open for re-evaluation for 3.7. -- priority: release blocker -> resolution: duplicate -> stage: test needed -> needs patch ___ Python tracker

[issue28199] Compact dict resizing is doing too much work

2016-10-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: Testing now... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue28199] Compact dict resizing is doing too much work

2016-10-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: Confirmed. Tests are now passing where they were failing before. Thanks for the quick response! -- ___ Python tracker ___

[issue28199] Compact dict resizing is doing too much work

2016-10-31 Thread Ned Deily
Ned Deily added the comment: Thanks, Serhiy! Jason, can you verify that there is no longer a 3.6 regression with your tests? -- ___ Python tracker ___ _

[issue28199] Compact dict resizing is doing too much work

2016-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have rolled back the changes. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue28550] if inline statement does not work with multiple assignment.

2016-10-31 Thread Eric Snow
Changes by Eric Snow : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue28564] shutil.rmtree is inefficient due to listdir() instead of scandir()

2016-10-31 Thread Marian Beermann
Marian Beermann added the comment: The main issue on *nix is more likely that by using listdir you get directory order, while what you really need is inode ordering. scandir allows for that, since you get the inode from the DirEntry with no extra syscalls - especially without an open() or stat

[issue28199] Compact dict resizing is doing too much work

2016-10-31 Thread Xiang Zhang
Changes by Xiang Zhang : -- Removed message: http://bugs.python.org/msg279811 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28569] mock.attach_mock should work with any return value of patch()

2016-10-31 Thread Andrey Fedorov
Changes by Andrey Fedorov : -- title: mock.attach_mock should work with return value of patch() -> mock.attach_mock should work with any return value of patch() ___ Python tracker _

[issue28569] mock.attach_mock should work with return value of patch()

2016-10-31 Thread Andrey Fedorov
New submission from Andrey Fedorov: The attach_mock in the following code sample fails silently: >>> from mock import patch, Mock >>> p = patch('requests.get', autospec=True) >>> manager = Mock() >>> manager.attach_mock(p.start(), 'requests_get') >>> import requests >>> r

[issue28199] Compact dict resizing is doing too much work

2016-10-31 Thread Xiang Zhang
Xiang Zhang added the comment: The bug seems to lies in https://hg.python.org/cpython/file/tip/Objects/dictobject.c#l1291. We should use oldkeys->dk_nentries instead of numentries. -- ___ Python tracker _

[issue28199] Compact dict resizing is doing too much work

2016-10-31 Thread Ned Deily
Ned Deily added the comment: Thanks, Jason, for the heads-up. Serhiy, can you take a look at this quickly? I'm going to hold 360b3 until we have a better idea what's going on. -- priority: normal -> release blocker resolution: fixed -> duplicate stage: resolved -> test needed status:

[issue26959] pickle: respect dispatch for functions again

2016-10-31 Thread Vsevolod Velichko
Vsevolod Velichko added the comment: Hi, any progress here? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28518] execute("begin immediate") throwing OperationalError

2016-10-31 Thread Aviv Palivoda
Aviv Palivoda added the comment: I looked into this error and I think the problem is the sqlite3_stmt_readonly check in _pysqlite_query_execute (cursor.c line 517): if (self->connection->begin_statement && !sqlite3_stmt_readonly(self->statement->st) && !self->statement->is_ddl) { i

[issue28513] Document zipfile CLI

2016-10-31 Thread SilentGhost
SilentGhost added the comment: Serhiy, this needs .. program:: zipfile directive specified before cmdoption. Without it :option:`-c` links to python's -c, rather than zipfile's. The -l and -e are linked correctly, but the option links would have be be changed for all three, i.e. to :option:`-c

[issue28199] Compact dict resizing is doing too much work

2016-10-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: In https://github.com/pypa/setuptools/issues/836, I've pinpointed this commit as implicated in dictionaries spontaneously losing keys. I have not yet attempted to replicate the issue in a standalone environment, and I'm hoping someone with a better understand

[issue28544] Implement asyncio.Task in C

2016-10-31 Thread Brett Cannon
Brett Cannon added the comment: Just an FYI, for testing code that has both pure Python and C versions you can follow the advice in https://www.python.org/dev/peps/pep-0399/#details . And if you want to really simplify things you start down the road of what test_importlib uses: https://github

[issue26919] on Android python fails to decode/encode command line arguments

2016-10-31 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- title: android: test_cmd_line fails -> on Android python fails to decode/encode command line arguments ___ Python tracker ___

[issue26919] android: test_cmd_line fails

2016-10-31 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: -> xdegaye components: +Interpreter Core -Cross-Build, Library (Lib) stage: -> commit review versions: +Python 3.7 ___ Python tracker _

[issue28530] Howto detect if an object is of type os.DirEntry

2016-10-31 Thread Brett Cannon
Brett Cannon added the comment: As mentioned, this issue is fixed in Python 3.6 by exposing os.DirEntry which is just a direct import of what is in the posix module (which is the same thing as the nt module; name changes depending on the OS so just ignore the posix/nt part of all of this). And

[issue26919] android: test_cmd_line fails

2016-10-31 Thread Xavier de Gaye
Xavier de Gaye added the comment: An interactive session confirms that the problem is indeed with the command line arguments of python invoked by subprocess (and the problem is fixed by the patch): >>> from test.support import FS_NONASCII >>> cmd = "assert(ord(%r) == %s)" % (FS_NONASCII, ord(F

[issue28568] Build files in PC/VS9.0 contain an outdated sqlite version number

2016-10-31 Thread Anselm Kruis
New submission from Anselm Kruis: Python 2.7 only. Tested with 2.7.12. Commit fa68df1d5e65 for #19450 changes the sqlite version for Python 2.7 on Windows from 3.6.21 to 3.8.11.0, but only for the build files in PCbuild. The documentation states, that the build files under PC\VS9.0 are also fu

[issue28564] shutil.rmtree is inefficient due to listdir() instead of scandir()

2016-10-31 Thread Josh Rosenberg
Josh Rosenberg added the comment: You need to cache the names up front because the loop is unlinking entries, and readdir isn't consistent when the directory entries are mutated between calls. https://github.com/kripken/emscripten/issues/2528 FindFirstFile/FindNextFile likely has similar issue

[issue28028] Convert warnings to SyntaxWarning in parser

2016-10-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue28542] document cross compilation

2016-10-31 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch, less verbose and taking into account the previous posts. -- Added file: http://bugs.python.org/file45294/readme_4.patch ___ Python tracker __

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: The error message is much better now, thanks you all! Seems the ^ pointer is not always correct. For example, in the function scope it's correct: $ cat test.py def foo(): s = 'C:\Program Files\Microsoft' $ python3.7 -W error test.py File "test.py", line

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Tim Graham
Tim Graham added the comment: The patch is working well to identify warnings when running Django's test suite. Thanks! -- ___ Python tracker ___

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Eric V. Smith
Eric V. Smith added the comment: I'll work on this as soon as I can, coordinating with Ned. -- ___ Python tracker ___ ___ Python-bugs-

[issue28028] Convert warnings to SyntaxWarning in parser

2016-10-31 Thread Emanuel Barry
Changes by Emanuel Barry : -- priority: high -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Emanuel Barry
Emanuel Barry added the comment: Even better than what I was aiming for :) -- dependencies: -Convert warnings to SyntaxWarning in parser priority: deferred blocker -> release blocker ___ Python tracker ___

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Eric V. Smith
Eric V. Smith added the comment: I agree it would be nice to get this in to 3.6. I'm not sure I'd go so far as to say it's a must and can't wait for 3.6.1. It's a non-trivial change, and it's up to Ned to say if it can go in to 3.6. If you don't run with -Wall or -Werror, then you won't notice

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Ned Deily
Ned Deily added the comment: I agree that the current behavior for 3.6 is very user-unfriendly so I think the risks of making such an extensive change at this point in the release cycle are outweighed by the severity of the problem. So let's get it into 3.6 now; there's still time for it to m

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Emanuel Barry
Emanuel Barry added the comment: As Nick pointed out in an earlier message on this thread and as Serhiy observed on GitHub issues, backporting this patch to 3.6 is a must. Large projects' use of Python 3.6 has shown that it's hard to track down the actual cause of the error; it only makes sens

[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

2016-10-31 Thread Eric Appelt
Eric Appelt added the comment: If I understand the reporting properly all tests so far have used SipHash24: Python 3.7.0a0 (default:5b33829badcc+, Oct 30 2016, 17:29:47) [GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin Type "help", "copyright", "credits" or "license" for more

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Searching on GitHub it seems to me that the most frequent issue with supporting Python 3.6 is eliminating or silencing warnings about invalid escape sequences. Any help with this is very important. -- ___ Python t

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 259745f9a1e4 by Eric V. Smith in branch 'default': Issue 28128: Print out better error/warning messages for invalid string escapes. https://hg.python.org/cpython/rev/259745f9a1e4 -- nosy: +python-dev ___

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Eric V. Smith
Eric V. Smith added the comment: I've pushed this to the default branch. I'll watch the buildbots. Then Ned can decide if this goes in to 3.6. -- ___ Python tracker ___

[issue28566] Python installation fails on Windows because of pip feature

2016-10-31 Thread Steve Dower
Steve Dower added the comment: Thanks for the write up. This has already been resolved for 2.7.13 (where install will complete but pip won't be available), and as you discovered you should never set PYTHONHOME (or PYTHONPATH) globally, since it will affect every version and not just the one yo

[issue28385] Bytes objects should reject all formatting codes with an error message

2016-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But on other hand, the error depends on the value of format specifier: >>> format('abc', '') 'abc' >>> format('abc', 'j') Traceback (most recent call last): File "", line 1, in ValueError: Unknown format code 'j' for object of type 'str' >>> format([1, 2, 3

[issue28385] Bytes objects should reject all formatting codes with an error message

2016-10-31 Thread Eric V. Smith
Eric V. Smith added the comment: TypeError is documented as "Raised when an operation or function is applied to an object of inappropriate type". I think that fits this case: you're applying some format code to a type that doesn't support it. -- ___

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not in front of a computer at the moment, but the output looks good. Also, my very quick glance at -7.diff's warn_invalid_escape_sequence looks reasonable, although I can't say for sure whether raising the error in PyErr_WarnExplicitObject followed by raisi

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Following patch just raises SyntaxError if DeprecationWarning was raised as error. Still needed tests for this. > Also, you'll note that with or without your patch, you get the same behavior. Not the same. New warnings contain correct information about a fil

[issue28485] compileall.compile_dir(workers=) does not raise ValueError if multithreading disabled

2016-10-31 Thread Berker Peksag
Changes by Berker Peksag : -- components: +Library (Lib) stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-l

[issue1520879] make install change: Allow $DESTDIR to be relative

2016-10-31 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> out of date stage: test needed -> resolved ___ Python tracker ___ ___ Python-bugs-list

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Eric V. Smith
Eric V. Smith added the comment: Also, you'll note that with or without your patch, you get the same behavior. The code in hg already raises DeprecationWarning, just in a different place. So unless we can improve the DeprecationWarning output, we're better off doing nothing. -- _

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added additional tests. -- Added file: http://bugs.python.org/file45292/28128-6.diff ___ Python tracker ___ __

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Eric V. Smith
Eric V. Smith added the comment: Serihy: I had tried this approach earlier, but it doesn't work. With your -5.diff patch, the output is (using Nick's test case): $ rm -rf __pycache__/ ; ./python -Werror escape_warning.py Traceback (most recent call last): File "escape_warning.py", line 1, i

[issue28123] _PyDict_GetItem_KnownHash ignores DKIX_ERROR return

2016-10-31 Thread Xiang Zhang
Xiang Zhang added the comment: dict_merge was altered after the patch. I make it ignore explicitly the error now, to not affect former behaviour. Serhiy, I apply your suggestion to use _PyLong_AsByteArray for Py_hash_t, but I am not familiar with the API. It needs a review. -- Added f

[issue28440] ensurepip and pip install failures on macOS Sierra with non-system Python 2.7.x

2016-10-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: Another reason to remove this feature: installing python 2.7.12 using the installer on www.python.org breaks the system install of Python, likely because of this issue. I'm a bit sad that this feature has to go, but modern Python use (in particular virtualen

[issue28563] Arbitrary code execution in gettext.c2py

2016-10-31 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue28564] shutil.rmtree is inefficient due to listdir() instead of scandir()

2016-10-31 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed bytes literals decoding (test_codecs was failed). -- Added file: http://bugs.python.org/file45290/28128-5.diff ___ Python tracker ___ __

[issue28567] Bus error / segmentation fault on macOS debug build when using ctypes OpenGL

2016-10-31 Thread SilentGhost
Changes by SilentGhost : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue28567] Bus error / segmentation fault on macOS debug build when using ctypes OpenGL

2016-10-31 Thread Alex Croitor
New submission from Alex Croitor: Hi, I'm building Python 2.7.11 with debug symbols and no optimizations, but without the --with-debug switch, on macOS 10.11.5, El Capitan + XCode 7.3.1. Whenever I try to execute an OpenGL demo or example, I get a segmentation fault or a bus error with a weird

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch emits DeprecationWarning instead of SyntaxError. I still not tested it. -- Added file: http://bugs.python.org/file45288/28128-4.diff ___ Python tracker ___

[issue28565] datetime.strptime %Z doesn't produce aware object

2016-10-31 Thread SilentGhost
SilentGhost added the comment: According to documentation %z is the only directive that would result in the aware object. %Z is not capable of doing that, so what you're asking is a new feature - that could only go in 3.7 -- components: +Library (Lib) nosy: +SilentGhost title: datetime

[issue28566] Python installation fails on Windows because of pip feature

2016-10-31 Thread Anish Patel
New submission from Anish Patel: Originally created issue: https://github.com/pypa/pip/issues/4033#issuecomment-256865622 Copied text below: I had already Python 3 installed with the environment variable PYTHONHOME=C:\Program Files\Python35. I attempted to install Python 2, but received this

[issue26936] android: test_socket fails

2016-10-31 Thread Xavier de Gaye
Xavier de Gaye added the comment: Entered https://code.google.com/p/android/issues/detail?id=226677 on the AOSP issue tracker. -- ___ Python tracker ___

  1   2   >