[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 ___

[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 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

[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

[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

[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 ___

[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

[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

[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 ___ ___

[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

[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

[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

[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 ___

[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

[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

[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:

[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

[issue12857] Expose called function on frame object

2016-10-31 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[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

[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

[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

[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

[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 ___

[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,

[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 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

[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 ___

[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

[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

[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

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

2016-10-31 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___

[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

[issue28123] _PyDict_GetItem_KnownHash ignores DKIX_ERROR return

2016-10-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- priority: normal -> high stage: -> patch review ___ 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 take a look at it, Emanuel. But I can't promise how much progress I'll be able to make today. I also think that at that point it becomes so complex that it fails Ned's test for inclusion in 3.6. -- ___ Python

[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:

[issue28565] datetime.strptime %Z doesn't get included in the result

2016-10-31 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list

[issue28553] int.to_bytes docs logic error

2016-10-31 Thread Mark Dickinson
Mark Dickinson added the comment: Patch LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28128] Improve the warning message for invalid escape sequences

2016-10-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file45287/28128-3.diff ___ Python tracker ___

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

2016-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset f43078ec598c by Serhiy Storchaka in branch '3.6': Update the f-string test broken in issue #28385. https://hg.python.org/cpython/rev/f43078ec598c New changeset 931410a04240 by Serhiy Storchaka in branch 'default': Update the f-string test broken in

[issue23262] webbrowser module broken with Firefox 36+

2016-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What to do with 2.7? We can just backport the patch from 3.5, but also can use the version check from earlier Oleg's patches. 2.7 was released long time ago and still can be used on systems with old browsers (however it is very unlikely that Python is

[issue28123] _PyDict_GetItem_KnownHash ignores DKIX_ERROR return

2016-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually ignoring exceptions in _PyDict_GetItem_KnownHash causes a subtle difference between Python and C implementations. Making _PyDict_GetItem_KnownHash not ignoring exceptions looks right thing. But dict_merge expects that _PyDict_GetItem_KnownHash

[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

[issue23262] webbrowser module broken with Firefox 36+

2016-10-31 Thread Oleg Broytman
Oleg Broytman added the comment: Let's me disagree because Python 2.7 is a very special case. One can easily update a browser — they are perfectly compatible. But one cannot just update Python 2.7 because Python 3 is rather a different language that requires a lot of porting effort. So I can

[issue28553] int.to_bytes docs logic error

2016-10-31 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue28553] int.to_bytes docs logic error

2016-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32d8c89e90d1 by INADA Naoki in branch '3.5': Issue #28553: Fix logic error in example code of int.to_bytes doc. https://hg.python.org/cpython/rev/32d8c89e90d1 New changeset 2ae3f1599c34 by INADA Naoki in branch '3.6': Issue #28553: Fix logic error

[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 ___

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

2016-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Eric, did you tested with FNV or SipHash24 hashing algorithm? Using standard Python hashing algorithm adds hash randomization for frozensets. This is worth at least be mentioned in What's New document. -- ___

[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

[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

[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,

[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 ___

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

2016-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Shouldn't the type of error be changed from TypeError to ValueError? -- ___ Python tracker ___

[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2016-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset b06f15507978 by Serhiy Storchaka in branch '3.5': Issue #27517: LZMA compressor and decompressor no longer raise exceptions if https://hg.python.org/cpython/rev/b06f15507978 New changeset fb64c7a81010 by Serhiy Storchaka in branch '3.6': Issue

[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2016-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for you contribution Benjamin. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ 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 ___

[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,

[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

[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

[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 ___

[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

[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 ___

[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 ___

[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

[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. --

[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. --

[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

[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

[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

[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

[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

[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

[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 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 Tim Graham
Tim Graham added the comment: The patch is working well to identify warnings when running Django's test suite. Thanks! -- ___ Python tracker ___

[issue28028] Convert warnings to SyntaxWarning in parser

2016-10-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: -Python 3.6 ___ Python tracker ___

[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

[issue28028] Convert warnings to SyntaxWarning in parser

2016-10-31 Thread Emanuel Barry
Changes by Emanuel Barry : -- priority: high -> normal ___ 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 ___

[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",

[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

[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,

[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

[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

[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

[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:

[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

[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

[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:

[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).

[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

[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

[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) {

[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 ___

[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 ___

[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

[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

[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

  1   2   >