[issue28759] access to mkfifo, mknod and hard links is controled by SELinux MAC on Android

2016-11-21 Thread Xavier de Gaye
New submission from Xavier de Gaye: List of the tests that fail with PermissionError when run as a non-root user on an Android emulator (API 24) and fixed by this patch: test_posix test_shutil test_stat test_genericpath test_ntpath test_posixpath test_macpath test_eintr test_pathlib Android

[issue28032] --with-lto builds segfault in many situations

2016-11-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: doc references fixed. thanks! remote: notified python-check...@python.org of incoming changeset a5e2add2c37b remote: notified python-check...@python.org of incoming changeset 6ae0e6d435de remote: notified python-check...@python.org of incoming changeset ea9cc

[issue28032] --with-lto builds segfault in many situations

2016-11-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: This is no longer a release blocker as --with-lto is not enabled by default by --enable-optimizations since my commits in September. Regarding --with-lto itself segfaulting... Fixing compiler+linker toolchains is beyond what CPython itself should do. But th

[issue28748] Make _Py_PackageContext of type "const char *"

2016-11-21 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, my apologies - for some reason I completely failed to notice the leading underscore until I saw you refer to this as a private variable in the What's New note. That means the note only needs to go in the NEWS file for the benefit of maintainers, rather than

[issue28748] Make _Py_PackageContext of type "const char *"

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset d2dd6578aa16 by Serhiy Storchaka in branch 'default': Issue #28748: Private variable _Py_PackageContext is now of type "const char *" https://hg.python.org/cpython/rev/d2dd6578aa16 -- nosy: +python-dev __

[issue28748] Make _Py_PackageContext of type "const char *"

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Nick. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue19948] POSIX semantics of PATH search in execvpe is not respected

2016-11-21 Thread Antti Haapala
Antti Haapala added the comment: Someone on Stack Overflow just had a problem where their shell script would work in shell but get `OSError: [Errno 8] Exec format error` when calling it with `subprocess.call`. I'd say rather fix this (on POSIX platforms). Why does Python do path resolving on i

[issue28638] Creating namedtuple is too slow to be used in common stdlib (e.g. functools)

2016-11-21 Thread INADA Naoki
INADA Naoki added the comment: > If someone comes forward with more fully formed idea for code generation or > overall structural enchancement, that can be put in another tracker item. I noticed argument clinic supports Python [1]. So there is one way to code generation already. Attached patch

[issue28760] Cleanup PyUnicode_AsUnicodeEscapeString

2016-11-21 Thread Xiang Zhang
New submission from Xiang Zhang: PyUnicode_AsUnicodeEscapeString now still has some old comments and codes about the original "quotes" parameter of unicodeescape_string. Current implementation could get rid of them. -- files: PyUnicode_AsUnicodeEscapeString.patch keywords: patch messag

[issue19948] POSIX semantics of PATH search in execvpe is not respected

2016-11-21 Thread Antti Haapala
Antti Haapala added the comment: While at it, another POSIX semantic that execvp doesn't support is the behaviour when `PATH` is not set, e.g. on Linux, the search path is set to '.', followed by confstr(_CS_PATH). It is debatable whether this is desired (having current directory first in sear

[issue28760] Cleanup PyUnicode_AsUnicodeEscapeString

2016-11-21 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Interpreter Core, Unicode nosy: +ezio.melotti, haypo ___ Python tracker ___ ___ Python-bugs-

[issue28638] Creating namedtuple is too slow to be used in common stdlib (e.g. functools)

2016-11-21 Thread INADA Naoki
INADA Naoki added the comment: Updated patch: fixed small issue in argument clinic, and added comment why we use code generation. -- Added file: http://bugs.python.org/file45580/namedtuple-clinic2.diff ___ Python tracker

[issue28761] Add the const qualifier to fields name and doc of public structs

2016-11-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch makes the fields name and doc of structures PyMemberDef, PyGetSetDef, PyStructSequence_Field, PyStructSequence_Desc, and wrapperbase being of type "const char *" rather of "char *". These structures often are initialized as static variables

[issue28760] Cleanup PyUnicode_AsUnicodeEscapeString

2016-11-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list ma

[issue28760] Cleanup PyUnicode_AsUnicodeEscapeString

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Thanks Xiang. -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs

[issue28760] Cleanup PyUnicode_AsUnicodeEscapeString

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2d0ce3f4dfbd by Serhiy Storchaka in branch '3.6': Issue #28760: Clean up and fix comments in PyUnicode_AsUnicodeEscapeString(). https://hg.python.org/cpython/rev/2d0ce3f4dfbd New changeset d656b93c5603 by Serhiy Storchaka in branch 'default': Issue

[issue28760] Cleanup PyUnicode_AsUnicodeEscapeString

2016-11-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker ___ _

[issue28760] Cleanup PyUnicode_AsUnicodeEscapeString

2016-11-21 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks for your work, Serhiy. ;-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue28762] configure links with lockf and F_LOCK is not declared in Android API 24

2016-11-21 Thread Xavier de Gaye
New submission from Xavier de Gaye: The patch fixes the following error: == ERROR: test_lockf (test.test_posix.PosixTester) -- Traceback (most recent call last)

[issue28532] Show sys.version when -V option is supplied twice.

2016-11-21 Thread INADA Naoki
INADA Naoki added the comment: I noticed today is code freeze for final beta. Is this too late for 3.6.0? -- priority: normal -> high ___ Python tracker ___ _

[issue28023] python-gdb.py must be updated for the new Python 3.6 compact dict

2016-11-21 Thread INADA Naoki
INADA Naoki added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue28731] _PyDict_NewPresized() creates too small dict

2016-11-21 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file45583/28731-PyDict_NewPresized-too-small-2.patch ___ Python tracker ___ ___ P

[issue28763] Use en-dashes for ranges in docs

2016-11-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: It is recommended to use an em-dash instead of a hyphen for numerical ranges. It looks better in the rendered document. Python documentation already use it, but not always. Proposed patch adds more en-dashes. -- assignee: docs@python components: Do

[issue28532] Show sys.version when -V option is supplied twice.

2016-11-21 Thread Martin Panter
Martin Panter added the comment: Ned indicated he was open to the idea: . Maybe just double check; there’s still a few hours left! I’m not sure, but maybe there should be “.. versionchanged:: 3.6” in the RST documentation, and an e

[issue28532] Show sys.version when -V option is supplied twice.

2016-11-21 Thread STINNER Victor
STINNER Victor added the comment: verbose-version3.patch LGTM and seems useful to me. -- nosy: +haypo ___ Python tracker ___ ___ Pytho

[issue21590] Systemtap and DTrace support

2016-11-21 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: @Łukasz Would it be possible to review the patch? Or is it preferable to open a new issue? -- ___ Python tracker ___ __

[issue28532] Show sys.version when -V option is supplied twice.

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc6bb69cec05 by INADA Naoki in branch '3.6': Issue #28532: Show sys.version when -V option is supplied twice https://hg.python.org/cpython/rev/fc6bb69cec05 New changeset 02aa667bd02d by INADA Naoki in branch 'default': Issue #28532: Show sys.version

[issue28532] Show sys.version when -V option is supplied twice.

2016-11-21 Thread INADA Naoki
INADA Naoki added the comment: Thanks for review. Since doc update is allowed after final beta, I committed verbose-version3.patch for now. Here is patch for doc. -- Added file: http://bugs.python.org/file45585/vervose-version-doc.patch ___ Python t

[issue28731] _PyDict_NewPresized() creates too small dict

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: A variant in msg281118 looks better to me than 28731-PyDict_NewPresized-too-small-2.patch. It doesn't look good to me that newsize is set to arbitrary small value if estimated size is larger than very large PyDict_MAXSIZE (this is 2**28 on 32-bit and 2**60 o

[issue28731] _PyDict_NewPresized() creates too small dict

2016-11-21 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file45586/28731-PyDict_NewPresized-too-small-3.patch ___ Python tracker ___ ___ P

[issue28731] _PyDict_NewPresized() creates too small dict

2016-11-21 Thread INADA Naoki
INADA Naoki added the comment: OK. I've updated the patch. BTW, I used const Py_ssize_t for function local constant. Should I use file scope macro for such heuristic threshold, even it is used only one function? -- priority: high -> normal ___ Python

[issue28731] _PyDict_NewPresized() creates too small dict

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think function scope constant is good. Similar code in dictresize() should have different bound. The patch LGTM. -- stage: patch review -> commit review ___ Python tracker __

[issue28638] Creating namedtuple is too slow to be used in common stdlib (e.g. functools)

2016-11-21 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, I had forgotten that Larry had already included Python support in Argument Clinic. With the inline code auto-generated from the pure Python implementation, that addresses the main maintenance concerns I had. I did briefly wonder about the difficulties of bo

[issue28761] Add the const qualifier to fields name and doc of public structs

2016-11-21 Thread Nick Coghlan
Nick Coghlan added the comment: +1 from me. The only thing I noticed in the patch was that the issue number needs filling in now that you've filed it. -- ___ Python tracker ___

[issue28763] Use en-dashes for ranges in docs

2016-11-21 Thread Ezio Melotti
Ezio Melotti added the comment: While you are at it, have you checked how many en-dashes have been used instead of em-dashes? "--" is commonly used to indicate em-dashes (e.g. in emails), but in rst it renders to an en-dash. -- nosy: +ezio.melotti

[issue28023] python-gdb.py must be updated for the new Python 3.6 compact dict

2016-11-21 Thread STINNER Victor
STINNER Victor added the comment: I reviewed dict_gdb.patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28763] Use en-dashes for ranges in docs

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 353 en-dashes with spaces. 479 em-dashes with spaces. 89 em-dashes without spaces. And some number of hyphens with spaces. It is hard to automatically distinguish them from minuses in code examples, but in issue18529 I provided large patches that converted a

[issue28763] Use en-dashes for ranges in docs

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Some of these double hyphens are in code examples. Thus the actual number of en-dashes that can be changed to em-dashes is smaller. -- ___ Python tracker ___

[issue28727] Implement comparison (x==y and x!=y) for _sre.SRE_Pattern

2016-11-21 Thread STINNER Victor
STINNER Victor added the comment: Back to basis, patch 6: * revert changes on indexgroup and groupindex types: I will fix this later, once this issue is fixed * pattern_richcompare() and pattern_hash() also uses pattern, but don't use groups, indexgroup nor groupindex anymore I removed the @c

[issue28727] Implement comparison (x==y and x!=y) for _sre.SRE_Pattern

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: pattern_compare-6.patch LGTM. -- assignee: -> haypo stage: patch review -> commit review ___ Python tracker ___ _

[issue28764] test_mailbox fails when run as a non-root user on Android API 24

2016-11-21 Thread Xavier de Gaye
New submission from Xavier de Gaye: The patch fixes the problem that on Android API 24, a non-root user is not allowed to create the hard links used by the mailbox module. Related to issue 28759. -- assignee: xdegaye components: Library (Lib) files: test_mailbox_link.patch keywords: pat

[issue28727] Implement comparison (x==y and x!=y) for _sre.SRE_Pattern

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5e8ef1493843 by Victor Stinner in branch '3.6': Implement rich comparison for _sre.SRE_Pattern https://hg.python.org/cpython/rev/5e8ef1493843 -- nosy: +python-dev ___ Python tracker

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5e8ef1493843 by Victor Stinner in branch '3.6': Implement rich comparison for _sre.SRE_Pattern https://hg.python.org/cpython/rev/5e8ef1493843 -- ___ Python tracker ___

[issue26865] Meta-issue: support of the android platform

2016-11-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: New issues raised upon testing on the Android API 24 emulator: issue #28683: bind() on a unix socket raises PermissionError on Android for a non-root user issue #28684: [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

[issue28023] python-gdb.py must be updated for the new Python 3.6 compact dict

2016-11-21 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file45589/dict_gdb2.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28688] Warning -- warnings.filters was modified by test_warnings

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 75b1091594f8 by Victor Stinner in branch '3.5': Issue #28688: Remove warnings.filters check from regrtest https://hg.python.org/cpython/rev/75b1091594f8 New changeset a2616863de06 by Victor Stinner in branch '3.6': Issue #28688: Null merge 3.5 https

[issue28727] Implement comparison (x==y and x!=y) for _sre.SRE_Pattern

2016-11-21 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka: "pattern_compare-6.patch LGTM." Thank you very much for your very useful reviews! I pushed the change. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue28731] _PyDict_NewPresized() creates too small dict

2016-11-21 Thread INADA Naoki
INADA Naoki added the comment: Thanks. As @haypo suggests, I'll commit this to default branch first, and backport to 3.6 after 3.6.0 is released. -- ___ Python tracker ___ __

[issue28688] Warning -- warnings.filters was modified by test_warnings

2016-11-21 Thread STINNER Victor
STINNER Victor added the comment: I implemented x==y operator for _sre.SRE_Pattern in Python 3.6 and 3.7, it fixed this issue. For Python 3.5, I removed the warnings.filters test, as we discussed. @Martin Panter: immortal-filters.patch works because I'm not super excited by the change. Someho

[issue28731] _PyDict_NewPresized() creates too small dict

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset b708b3190ecb by INADA Naoki in branch 'default': Issue #28731: Optimize _PyDict_NewPresized() to create correct size dict https://hg.python.org/cpython/rev/b708b3190ecb -- nosy: +python-dev ___ Python tra

[issue28765] _sre.compile(): be more strict on types of indexgroup and groupindex

2016-11-21 Thread STINNER Victor
New submission from STINNER Victor: Attached patch makes _sre.compile() more strict on types: groupindex must be a dictionary and indexgroup must be a tuple. Currently, indexgroup is passed as a list. I chose to convert it to a tuple to use less memory and to prevent unwanted changes. For unwa

[issue28727] Implement comparison (x==y and x!=y) for _sre.SRE_Pattern

2016-11-21 Thread STINNER Victor
STINNER Victor added the comment: For stricter checks on _sre.compile() arguments, I created the issue #28765: "_sre.compile(): be more strict on types of indexgroup and groupindex". -- ___ Python tracker

[issue28740] Add sys.getandroidapilevel()

2016-11-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: I agree with Marc-Andre, Windows has sys.getwindowsversion() returning system information for the Windows version, and a platform.win32_ver() returning additional version information from the Registry obtained at run time. So it is consistent to add the sys.ge

[issue28082] re: convert re flags to (much friendlier) IntFlag constants

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 176fc21f8430 by Ethan Furman in branch '3.6': closes issue28082: doc update and NEWS entry https://hg.python.org/cpython/rev/176fc21f8430 -- resolution: -> fixed stage: commit review -> resolved status: open -> closed _

[issue23591] enum: Add Flags and IntFlags

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset f404a59d834e by Ethan Furman in branch '3.6': closes issue23591: add NEWS entry https://hg.python.org/cpython/rev/f404a59d834e -- status: open -> closed ___ Python tracker

[issue28766] Remove the semicolon in source code

2016-11-21 Thread Yuwei Ba
New submission from Yuwei Ba: As we do not often use semicolons in Python world. I hope this historical semi would be cleaned in a future release. Source: Lib/httplib.py:1117 -- components: Library (Lib) files: mywork.patch hgrepos: 361 keywords: patch messages: 281378 nosy: ibigbug pr

[issue28082] re: convert re flags to (much friendlier) IntFlag constants

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 493359386360 by Ethan Furman in branch '3.6': issue28082: actually include NEWS entry https://hg.python.org/cpython/rev/493359386360 -- ___ Python tracker

[issue28765] _sre.compile(): be more strict on types of indexgroup and groupindex

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If make groupindex and indexgroup a dict and a tuple, we could use concrete dict and tuple API instead of generic mapping and sequence APIs. Note that groups, groupindex and indexgroup are not independent. Actually indexgroup is derived from groups and group

[issue28764] test_mailbox fails when run as a non-root user on Android API 24

2016-11-21 Thread R. David Murray
R. David Murray added the comment: LGTM. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue28747] Expose SSL_CTX_set_cert_verify_callback

2016-11-21 Thread Steve Dower
Steve Dower added the comment: Whoops, that's what I get for renaming something. Easily fixed, but I'm happy to aim for 3.7. -- ___ Python tracker ___ __

[issue28172] Upper-case all example enum members

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9801dab214a by Ethan Furman in branch '3.6': close issue28172: Change all example enum member names to uppercase, per Guido; patch by Chris Angelico. https://hg.python.org/cpython/rev/b9801dab214a New changeset 5ec8d4c51363 by Ethan Furman in bran

[issue28172] Upper-case all example enum members

2016-11-21 Thread Ethan Furman
Changes by Ethan Furman : -- versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue28767] Readd __index__ support on ipaddress objects

2016-11-21 Thread Josh Rosenberg
New submission from Josh Rosenberg: It looks like, due to #16722, in #15559, __index__ was removed from ipaddress objects. #16722 was fixed a few months later, but the comments asking for it to be readded were put on a closed issue, so no one noticed. Can __index__ support be readded now? Shou

[issue28767] Readd __index__ support on ipaddress objects

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why __index__ support is needed? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs

[issue28751] Fix comments in code.h

2016-11-21 Thread Brett Cannon
Brett Cannon added the comment: Patch LGTM. -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue4347] Circular dependency causes SystemError when adding new syntax

2016-11-21 Thread Brett Cannon
Brett Cannon added the comment: So what does having the tokenizer not depend on pgen accomplish? Does it break a circular dependency where the tokenizer will get rebuilt with pgen before a full build starts? -- ___ Python tracker

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky stage: patch review -> commit review ___ Python tracker ___ ___ Python-b

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The patch LGTM. I'll commit it tonight unless Serhiy beats me to it. -- nosy: +alexandre.vassalotti, haypo, tim.peters ___ Python tracker ___

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue28768] Warning: implicit declaration of function '_setmode'

2016-11-21 Thread Masayuki Yamamoto
New submission from Masayuki Yamamoto: Platform that appeared warning is Vista Cygwin x86. Interpreter execution doesn't crash because _setmode function is supplied from cygwin1.dll that always linked. Warning reason is header io.h [*] doesn't include to source file. Therefore I wrote two patc

[issue28768] Warning: implicit declaration of function '_setmode'

2016-11-21 Thread Masayuki Yamamoto
Changes by Masayuki Yamamoto : Added file: http://bugs.python.org/file45593/2.7-include-io.h.patch ___ Python tracker ___ ___ Python-bugs-list

[issue28747] Expose SSL_CTX_set_cert_verify_callback

2016-11-21 Thread Steve Dower
Steve Dower added the comment: For the sake of review, I fixed the patch and rebased it on default. -- Added file: http://bugs.python.org/file45594/28747_3.patch ___ Python tracker _

[issue28689] OpenSSL 1.1.0c test failures

2016-11-21 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Fixed upstream: https://github.com/openssl/openssl/commit/beacb0f0c1ae7b0542fe053b95307f515b578eb7 -- nosy: +cstratak ___ Python tracker

[issue28532] Show sys.version when -V option is supplied twice.

2016-11-21 Thread Martin Panter
Martin Panter added the comment: The text looks okay. I’m not sure about putting it in the “Porting to Python 3.6” section, but there doesn’t seem to be a more appropriate existing heading. Perhaps we need a new heading, say “Other Improvement”, near “Optimizations” and “Build and C API Change

[issue28751] Fix comments in code.h

2016-11-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

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

[issue28751] Fix comments in code.h

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a916174 by Raymond Hettinger in branch '3.6': Issue 28751: Fix comments in code.h. (Contributed by Ned Batchelder). https://hg.python.org/cpython/rev/0a916174 -- nosy: +python-dev ___ Python tra

[issue28751] Fix comments in code.h

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Ned. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Ned Deily
Ned Deily added the comment: If you can push this in the next hour or two, it can still make b4. -- ___ Python tracker ___ ___ Python-

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > If you can push this in the next hour or two ... I'll do it now. -- ___ Python tracker ___

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a2a0061e425 by Serhiy Storchaka in branch '3.6': Issue #28752: Restored the __reduce__() methods of datetime objects. https://hg.python.org/cpython/rev/0a2a0061e425 New changeset 23140bd66d86 by Serhiy Storchaka in branch 'default': Issue #28752: R

[issue27414] http.server.BaseHTTPRequestHandler inconsistence with Content-Length value

2016-11-21 Thread STINNER Victor
STINNER Victor added the comment: issue27414.patch is not good: see my review. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue28475] Misleading error on random.sample when k < 0

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 89f95c78e0ab by Raymond Hettinger in branch '3.6': Issue 28475: Improve error message for random.sample() with k < 0. (Contributed by Francisco Couzo). https://hg.python.org/cpython/rev/89f95c78e0ab -- nosy: +python-dev __

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like Serhiy has already committed it. Thanks! -- ___ Python tracker ___ ___ Python-b

[issue28475] Misleading error on random.sample when k < 0

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Franscisco. I ended-up not modifying the docs because I think it clutters that clarity with an irrelevant side issue. The more important part was to make sure the error message wasn't misleading and the test that edge case. I didn't backport to

[issue28652] Make loop methods reject socket kinds they do not support.

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0ee76f3afd70 by Yury Selivanov in branch '3.5': Issue #28652: Partially rollback previous changes https://hg.python.org/cpython/rev/0ee76f3afd70 New changeset a40159071359 by Yury Selivanov in branch '3.6': Merge 3.5 (issue #28652) https://hg.python

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 62c16fafa7d4 by Raymond Hettinger in branch '3.6': Issue 28587: list.index documentation missing start and stop arguments. (Contributed by Mariatta Wijaya.) https://hg.python.org/cpython/rev/62c16fafa7d4 -- nosy: +python-dev _

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Mariatta, thank you for the patch. And Chris, thanks for the observant bug report. -- resolution: -> fixed status: open -> closed ___ Python tracker _

[issue28743] test_choices_algorithms() in test_random uses lots of memory

2016-11-21 Thread Martin Panter
Martin Panter added the comment: Gareth, are you sure that fixes the main memory problem? Did you see Serhiy’s cum_weights list? Looking at the code, a list of every number from one to 13 million will use more memory (to hold each unique integer) than the initial list of repeated ones. I thin

[issue28743] test_choices_algorithms() in test_random uses lots of memory

2016-11-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue28743] test_choices_algorithms() in test_random uses lots of memory

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: A smaller value suffices for this test. It was trying to make sure the underlying algorithms are as in-sync as possible without going to extremes. -- resolution: -> fixed status: open -> closed ___ Python tracke

[issue28743] test_choices_algorithms() in test_random uses lots of memory

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3551fca2c6ae by Raymond Hettinger in branch '3.6': Issue #28743: Reduce memory consumption for random module tests https://hg.python.org/cpython/rev/3551fca2c6ae -- nosy: +python-dev ___ Python tracker

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2016-11-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Martin Panter
Martin Panter added the comment: The committed change looks wrong in the new example. I think Mariatta’s patch was right; it the index found is 3, not 2: >>> a [66.25, 333, -1, 333, 1, 1234.5, 333] >>> a.index(333) 1 >>> a.index(333, 2) # search for 333 starting at index 2 3 -- nosy:

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks, Raymond and Martin :) Not sure what the procedure is for fixing this. Do I upload another patch? -- ___ Python tracker ___ ___

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for noticing. I tested against the original list rather than the subsequently modified version. I'm starting to think that this whole example section is annoyingly hard to follow and uninformative. -- _

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching an improved list example: * Replaced abstract and hard to follow numerical example with fruits * Demonstrate the non-mutating methods first -- Added file: http://bugs.python.org/file45595/new_list_example.diff __

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks Raymond. The new set of examples is much better than the previous one. +1 -- ___ Python tracker ___

[issue28743] test_choices_algorithms() in test_random uses lots of memory

2016-11-21 Thread Martin Panter
Martin Panter added the comment: Thanks Raymond, now the test is noticeably faster and fine with my memory situation :) -- stage: -> resolved ___ Python tracker ___ ___

  1   2   >