[issue28960] Small typo in Thread.join docs

2016-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9347d0b2ee08 by Martin Panter in branch '3.5': Issue #28960: Drop comma attached to dash in Thread.join() description https://hg.python.org/cpython/rev/9347d0b2ee08 New changeset d70fcf1866ad by Martin Panter in branch '3.6': Issue #28960: Merge Thr

[issue29004] binascii.crc_hqx() implements CRC-CCITT

2016-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset a33472f8a2c6 by Martin Panter in branch '3.5': Issue #29004: Document binascii.crc_hqx() implements CRC-CCITT https://hg.python.org/cpython/rev/a33472f8a2c6 New changeset 52db2072e88b by Martin Panter in branch '3.6': Issue #29004: Merge crc_hqx() d

[issue1446619] extended slice behavior inconsistent with docs

2016-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset b0b17b41edfc by Martin Panter in branch '3.5': Issue #1446619: Account for negative slice direction in description https://hg.python.org/cpython/rev/b0b17b41edfc New changeset 031af2160094 by Martin Panter in branch '3.6': Issue #1446619: Merge slic

[issue28960] Small typo in Thread.join docs

2016-12-24 Thread Martin Panter
Martin Panter added the comment: I agree the second patch is more correct. This undoes the change as it was introduced in revision c4cf1b886d6b and matches the Python 2 text. -- nosy: +martin.panter resolution: -> fixed stage: commit review -> resolved status: open -> closed _

[issue29061] secrets.randbelow(-1) hangs

2016-12-24 Thread Brendan Donegan
Brendan Donegan added the comment: Reproducible on Linux as well, I think I know where the issue is and will try to submit a patch soon. -- nosy: +brendan-donegan ___ Python tracker ___

[issue29062] Documentation link error

2016-12-24 Thread Frank Millman
New submission from Frank Millman: If you call up online documentation for Python3.6, and select modules>h>hashlib, it takes you to 15.2. hashlib — BLAKE2 hash functions It should take you to 15.1. hashlib — Secure hashes and message digests -- assignee: docs@python components: Documen

[issue29061] secrets.randbelow(-1) hangs

2016-12-24 Thread Brendan Donegan
Brendan Donegan added the comment: Ok, here it is. My first code patch in Python. Basically the existing code was depending on bit_length to DTRT and raise a ValueError, but negative numbers have a positive bit length. Then when it hits: 234 while r >= n:

[issue29062] hashlib documentation link error

2016-12-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +christian.heimes, georg.brandl, gregory.p.smith title: Documentation link error -> hashlib documentation link error versions: +Python 3.7 ___ Python tracker _

[issue13886] readline-related test_builtin failure

2016-12-24 Thread Martin Panter
Martin Panter added the comment: Hi Xavier, I was about to push input-readline.v2.patch, but I thought it might be good to check with you first if this causes problems with Android, based on my experience with Issue 28997. With the patch applied, test.test_builtin.PtyTests.test_input_tty_non_a

[issue29004] binascii.crc_hqx() implements CRC-CCITT

2016-12-24 Thread Martin Panter
Martin Panter added the comment: Thanks for the help Serhiy -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue1446619] extended slice behavior inconsistent with docs

2016-12-24 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue28978] a redundant right parentheses in the EBNF rules of parameter_list

2016-12-24 Thread Martin Panter
Changes by Martin Panter : -- stage: -> needs patch versions: +Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mai

[issue22942] Language Reference - optional comma

2016-12-24 Thread Martin Panter
Martin Panter added the comment: Issue 28978 covers the parameter list syntax (Bug 1 + plus another problem). -- dependencies: +a redundant right parentheses in the EBNF rules of parameter_list ___ Python tracker

[issue28954] Incorrect EBNF rule of keywords_arguments

2016-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f94e3c7dcc5 by Martin Panter in branch '3.5': Issue #28954: Add missing comma to keyword argument syntax https://hg.python.org/cpython/rev/3f94e3c7dcc5 New changeset ef53ef8e09e5 by Martin Panter in branch '3.6': Issue #28954: Merge keyword argumen

[issue29020] collapse_rfc2231_value has inconsistent unquoting

2016-12-24 Thread bpoaugust
bpoaugust added the comment: Another case is get_filename. The second call to unquote will only change the incoming parameter if the original value was enclosed in <> or "". This is not a common scenario, and was only discovered because a mailer used the form <<>> as a boundary marker (yes, t

[issue29063] Fix timemodule compile warnings.

2016-12-24 Thread Decorater
New submission from Decorater: I fixed some Possible Loss of Data warnings. but only the ones for timemodule. There are still some others when building the 64 bit version however. I added some comments that can be removed in another patch if desired otherwise it should look good for now for th

[issue29063] Fixed timemodule compile warnings.

2016-12-24 Thread Decorater
Changes by Decorater : -- title: Fix timemodule compile warnings. -> Fixed timemodule compile warnings. ___ Python tracker ___ ___ Pyt

[issue29047] Where are the test results stored?

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: Made a pull request for this -- pull_requests: +7 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue28954] Incorrect EBNF rule of keywords_arguments

2016-12-24 Thread Martin Panter
Martin Panter added the comment: Thanks for finding this Woo! -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.6, Python 3.7 ___ Python tracker ___

[issue29047] Where are the test results stored?

2016-12-24 Thread Patrik Iselind
Changes by Patrik Iselind : -- pull_requests: -7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29047] Where are the test results stored?

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: Cannot figure out how to add the link to the GitHub PR field. Adding link here instead. https://github.com/python/devguide/pull/88 -- ___ Python tracker _

[issue29049] Lazy GC tracking frame

2016-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset f5eb0c4f5d37 by INADA Naoki in branch 'default': Issue #29049: Call _PyObject_GC_TRACK() lazily when calling Python function. https://hg.python.org/cpython/rev/f5eb0c4f5d37 -- nosy: +python-dev ___ Python

[issue29049] Lazy GC tracking frame

2016-12-24 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue29049] Lazy GC tracking frame

2016-12-24 Thread INADA Naoki
INADA Naoki added the comment: (Rietveld shows 500 error when replying.) > Minor style note: Use Py_REFCNT here to simplify? Fixed when committing. -- ___ Python tracker ___ __

[issue28815] test_socket fails if /proc/modules is existent but not readable

2016-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7889d7a771c7 by Martin Panter in branch '3.5': Issue #28815: Skip TIPC tests if /proc/modules is not readable https://hg.python.org/cpython/rev/7889d7a771c7 New changeset 48b9d9cdfe3b by Martin Panter in branch '3.6': Issue #28815: Merge test_socket

[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: As an example, the difference for test_exceptions: $ ./python ../coveragepy run --pylib --source=exceptions Lib/test/regrtest.py test_exceptions Run tests sequentially 0:00:00 [1/1] test_exceptions Exception ignored in: .BrokenDel.__del__ of .BrokenDel object

[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: I've been looking into test_exceptions, why it fails. The reason seems to be that when the tests are executed under coverage, then they get nothing on the line that says the following in test_unraisable(). ```python report = stderr.getvalue() ``` So coverage s

[issue28815] test_socket fails if /proc/modules is existent but not readable

2016-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wouldn't be more pythonic to catch (FileNotFoundError, IsADirectoryError, PermissionError) instead of checking errno? -- nosy: +serhiy.storchaka ___ Python tracker _

[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Ned Batchelder
Ned Batchelder added the comment: I doubt very very much that coverage.py is stealing stderr. Many many test suites would have this problem if that were true. More likely is that somehow __del__ is not being invoked when you need it to be. I tried running the tests under coverage also, and d

[issue29062] hashlib documentation link error

2016-12-24 Thread Xiang Zhang
Xiang Zhang added the comment: Is the https://docs.python.org/3/library/crypto.html section messed up? Two hashlib entries and some other bad entries? -- nosy: +xiang.zhang ___ Python tracker _

[issue29064] Package numpy can't be used normally

2016-12-24 Thread kevin
New submission from kevin: I used package numpy,but encounter the following error: Traceback (most recent call last): File "rgbtoyuv.py", line 2, in import numpy as np File "/usr/local/lib/python3.5/site-packages/numpy-1.11.2-py3.5-linux-x86_64.egg/numpy/__init__.py", line 163, in

[issue29064] Package numpy can't be used normally

2016-12-24 Thread Xiang Zhang
Xiang Zhang added the comment: Hi kevin. This tracker is used to report problems about CPython. Your problem seems related to numpy and you'd better go to numpy's tracker to ask for help. :-) -- nosy: +xiang.zhang resolution: -> third party stage: -> resolved status: open -> closed

[issue28815] test_socket fails if /proc/modules is existent but not readable

2016-12-24 Thread Martin Panter
Martin Panter added the comment: That would be possible in Python 3, not Python 2 though. -- ___ Python tracker ___ ___ Python-bugs-li

[issue29054] pty.py: pty.spawn hangs after client disconnect over nc (netcat)

2016-12-24 Thread Cornelius Diekmann
Cornelius Diekmann added the comment: Thank you Martin very much. To resolve this issue, I decided to document the current behavior and add test cases for it. No change in behavior is introduced. This hopefully allows to close this issue. The test cases for the current behavior ensure that we

[issue28997] test_readline.test_nonascii fails on Android

2016-12-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: With your patch Martin, test_nonascii is skipped on Android when LANG is not set and the issue is fixed. > Just to clarify, is the problem that Python (correctly) assumes UTF-8 > encoding on Android, but Readline does not unless you tweak the environment > va

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-24 Thread Pam McA'Nulty
Pam McA'Nulty added the comment: Good question. It looks like there are 3 defines getting checked: HAVE_SYS_RANDOM_H and either HAVE_GETRANDOM or HAVE_GETENTROPY The previous issue seemed to be that you could have HAVE_GETRANDOM and/or HAVE_GETENTROPY be set, but still not have a sys/random.h,

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-24 Thread Pam McA'Nulty
Pam McA'Nulty added the comment: New patch to make consistent wrt use of "defined()" -- Added file: http://bugs.python.org/file46024/Issue29057_random_include-v2.patch ___ Python tracker ___

[issue29064] Package numpy can't be used normally

2016-12-24 Thread kevin
kevin added the comment: Hi Xiang, Thanks for your information. -- resolution: third party -> status: closed -> open ___ Python tracker ___ _

[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: i use the latest code. perhaps something for introduced after 3.6? Patrik Den 24 dec 2016 13:51 skrev "Ned Batchelder" : > > Ned Batchelder added the comment: > > I doubt very very much that coverage.py is stealing stderr. Many many > test suites would have t

[issue29064] Package numpy can't be used normally

2016-12-24 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> third party status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: report doesn't contain any text when run under coverage. something made the text not appear... Patrik Den 24 dec 2016 16:39 skrev "Patrik Iselind" : > > Patrik Iselind added the comment: > > i use the latest code. perhaps something for introduced after 3.6? >

[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Ned Batchelder
Ned Batchelder added the comment: Are you sure the code that tried to print to stderr was even run? It's in a __del__ method, which is notorious for being affected by surprising things. -- ___ Python tracker _

[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: yes, I'm sure. i printed markings around where the text should have been. Patrik Den 24 dec 2016 17:37 skrev "Ned Batchelder" : > > Ned Batchelder added the comment: > > Are you sure the code that tried to print to stderr was even run? It's in > a __del__ meth

[issue13886] readline-related test_builtin failure

2016-12-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for waiting for a run of the patch on Android. Indeed, test_input_tty_non_ascii fails with this patch on Android when LANG is not set and is ok when LANG=en_US.UTF-8. As you are suggesting, the test is ok when skipping the Readline half of the test. This

[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: For clarity, this is what i get in the test_exceptions test when i've applied the attached diff. $ ./python -m test -v test_exceptions == CPython 3.7.0a0 (default:8e311f109b22, Dec 24 2016, 12:26:43) [GCC 5.4.0 20160609] == Linux-4.4.0-53-generic-x86_64-with

[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: I'd like to clarify that the file i just attached, no-stderr.diff, is in no way a suggestion for a fix. It's just my way of conveying what i see. -- ___ Python tracker ___

[issue1116520] Prefix search is filesystem-centric

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: How much smaller would the stdlib for 3.5 become if you compress it with zip? -- nosy: +patriki ___ Python tracker ___ ___

[issue1116520] Prefix search is filesystem-centric

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: What about the performance penalty for zipping stdlib? is it significant? When would you like to zip stdlib? For embedded systems with limited disk space? Patrik Iselind On Sat, Dec 24, 2016 at 6:34 PM, Patrik Iselind wrote: > > Patrik Iselind added the comm

[issue29047] Where are the test results stored?

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: My GitHub PR got closed. So closing this issue as well. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ __

[issue29047] Where are the test results stored?

2016-12-24 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29047] Where are the test results stored?

2016-12-24 Thread Berker Peksag
Changes by Berker Peksag : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Ned Batchelder
Ned Batchelder added the comment: Can you show the output of "coverage debug sys"? -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: Sure, here you go. $ ./python ../coveragepy debug sys -- sys --- version: 4.3a0 coverage: ../coveragepy/coverage/__init__.py cover_dirs: /home/irina/patrik/coveragepy/cover

[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: @nedbat, do you know of a revision where coverage doesn't influence the tests? If so, which one? Perhaps i can perform a bisect search to find when this went bad. I'm testing the latest tip/head. So that's one part of the bisect. -- _

[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Ned Batchelder
Ned Batchelder added the comment: I don't believe this is coverage.py's fault, so I don't have an answer to your question. There is no revision of coverage.py that *does* swallow stderr. Also, as you can see from the test output, it isn't swallowed, it's not being captured where it should be

[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind
Patrik Iselind added the comment: OK, for now. Let's disregard my idea that stderr is swallowed. At some point these test might have worked under coverage. I was more thinking to bisect cpython. Perhaps i can find a revision that works. Patrik Den 24 dec 2016 20:26 skrev "Ned Batchelder" : >

[issue23903] Generate PC/python3.def by scraping headers

2016-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a shell script that uses the C preprocessor and other Unix tools to generate PC/python3.def. It doesn't add PyAST_* and PyNode_* functions and doesn't remove PyArg_VaParse* functions. But it still removes some names that are no longer used in public

[issue23903] Generate PC/python3.def by scraping headers

2016-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Following patch against 3.6 just adds new names to PC/python3.def. The only removed names are PyExc_MemoryErrorInst and PyUnicode_SetDefaultEncoding. They don't exist in 3.x. -- Added file: http://bugs.python.org/file46027/python3def-3.6.patch _

[issue29060] Changing the installation location still adds AppData filepaths that do not exist to the path variable on Windows 10

2016-12-24 Thread Daz
Daz added the comment: You're right. It was the launcher I was viewing. On the first page, I unchecked installing the launcher for all users. Thanks for pointing out that distinction. Happy holidays. On Dec 24, 2016 12:28 AM, "Steve Dower" wrote: > > Steve Dower added the comment: > > You sho

[issue29049] Lazy GC tracking frame

2016-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please wrap private functions in #ifndef Py_LIMITED_API/#endif. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue29065] SSL module problem on Python 3.6.0 and macOS Sierra

2016-12-24 Thread Utku Gultopu
New submission from Utku Gultopu: It seems like ssl module is not working for me: (virtualenv) user@host:~$ python Python 3.6.0 (v3.6.0:41df79263a11, Dec 22 2016, 17:23:13) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more informatio

[issue29049] Lazy GC tracking frame

2016-12-24 Thread INADA Naoki
INADA Naoki added the comment: > Please wrap private functions in #ifndef Py_LIMITED_API/#endif. No problem. Whole Include/frameobject.h is wrapped by Py_LIMITED_API. -- ___ Python tracker ___

[issue29062] hashlib documentation link error

2016-12-24 Thread INADA Naoki
INADA Naoki added the comment: 1. remove `.. module:: hashlib` from Doc/library/hashlib-blake2.rst 2. merge Doc/library/hashlib-blake2.rst content into Doc/library/hashlib.rst Hmm, which is better? -- nosy: +inada.naoki ___ Python tracker

[issue29059] Windows: Python not using ANSI compatible console

2016-12-24 Thread INADA Naoki
INADA Naoki added the comment: Is it a global state, or application specific state? In other words, if Python enables VT100, doesn't it remain after os._exit(1)? If it is global state of console, why Python should change it? Shouldn't user who want to use VT100 enable it before starting Python?

[issue25591] refactor imaplib tests

2016-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 75f9cca86fa1 by R David Murray in branch '3.5': #25591: improve imap tests. https://hg.python.org/cpython/rev/75f9cca86fa1 New changeset 4663466b0d66 by R David Murray in branch '3.6': Merge: #25591: improve imap tests. https://hg.python.org/cpython

[issue25591] refactor imaplib tests

2016-12-24 Thread R. David Murray
R. David Murray added the comment: Committed. FYI, I did have to make a few tweaks. There were several lines longer than 80 characters still that I wrapped. The tests failed with -W error:BytesWarning, something I normally run the tests with. That required a fix to the library (a decode on

[issue29059] Windows: Python not using ANSI compatible console

2016-12-24 Thread Joseph Hackman
Joseph Hackman added the comment: The flag is application specific. I.e. a python program that writes to console using ansi codes, when used on windows, will just display the codes. If the Output is redireced to file and then the file is printed to console using a console tool, the colors wil

[issue28293] Don't completely dump the regex cache when full

2016-12-24 Thread INADA Naoki
INADA Naoki added the comment: LGTM for re_cache_ordered_dict_popitem.patch -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bu

[issue29065] SSL module problem on Python 3.6.0 and macOS Sierra

2016-12-24 Thread Ned Deily
Ned Deily added the comment: >From the output you supplied, you appear to be using Python 3.6.0 from the >python.org macOS binary installer. Please read the ReadMe.rtf file for the >installer which should have been displayed when you installed Python 3.6; a >copy of it is also installed in /A

[issue29065] SSL module problem on Python 3.6.0 and macOS Sierra

2016-12-24 Thread Ned Deily
Ned Deily added the comment: I've also added a note to the release downloads "Notes on this release" section: "macOS users: If you are using the Python 3.6 from the python.org binary installer linked on this page, please carefully read the Important Information displayed during installation; t

[issue29062] hashlib documentation link error

2016-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Replace ".. module" with ".. currentmodule". -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue1116520] Prefix search is filesystem-centric

2016-12-24 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29066] PIP doesn't honor --trusted-host or --cert options

2016-12-24 Thread Utku Gultopu
New submission from Utku Gultopu: Steps to Reproduce == 1. Install Python 3.6.0 on macOS Sierra, using the macOS binary installer from python.org. 2. Don't install any SSL certificates. 3. Run `pip install -U channels`. It will fail. 4. Run `pip install -U --trusted-host pypi.pyt

[issue29049] Lazy GC tracking frame

2016-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, sorry. Then it LGTM. Do you have a microbenchmark that exposes a maximal effect of this change? -- ___ Python tracker ___ ___