[issue27981] Reference leak in fp_setreadl() of Parser/tokenizer.c

2016-09-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, readline is borrowed reference. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-b

[issue17884] Try to reuse stdint.h types like int32_t

2016-09-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thank you all for your advice. The buildbots seem to have survived the removal of conditional includes of . I've also replaced most of the Python compatibility aliases with the standard ones. Closing this issue. -- resolution: -> fixed status: open

[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2016-09-06 Thread Davin Potts
Davin Potts added the comment: Attaching patch for default (3.6) branch which implements what was previously described and discussed, updates the documentation to explain this updated behavior, and includes new tests. @yselivanov: Can you think of any edge cases that should be handled but we'r

[issue25761] Improve unpickling errors handling

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 231f578dfd3d by Serhiy Storchaka in branch 'default': Issue #25761: Improved error reporting about truncated pickle data in https://hg.python.org/cpython/rev/231f578dfd3d -- ___ Python tracker

[issue27976] Deprecate building with bundled copy of libffi on non-Darwin POSIX platforms

2016-09-06 Thread Berker Peksag
Berker Peksag added the comment: +1, thanks for working on this! Two questions: 1. Should we check the system version of libffi and warn users (and probably use the bundled version for now) if it was older than 3.1? 2. I know this isn't directly a user-facing feature, but should we add a shor

[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions

2016-09-06 Thread Stanislaw Pitucha
Stanislaw Pitucha added the comment: Confirming this on python 2.7.12 on DragonflyBSD -- nosy: +viraptor ___ Python tracker ___ ___ Pyt

[issue27976] Deprecate building with bundled copy of libffi on non-Darwin POSIX platforms

2016-09-06 Thread Zachary Ware
Zachary Ware added the comment: I don't think it's worthwhile to do a version check and warning, especially since we'll be removing the bundled version in 3.7. A docs note is worthwhile, though, I'll attach a new patch shortly. -- ___ Python tracke

[issue27980] Add better pythonw support to py launcher

2016-09-06 Thread Eryk Sun
Eryk Sun added the comment: > Naturally pyw -h produces no output It needs help: `pyw -h 2>&1 | more`. This sets the StandardOutput and StandardError as the write end of a pipe. more.com reads from the pipe and pages the help text to the console. Maybe this needs a new issue to have `pyw -h`

[issue27731] Opt-out of MAX_PATH on Windows 10

2016-09-06 Thread Steve Dower
Steve Dower added the comment: Just confirmed that the manifest not being required is a bug, so I'll add it, document it and complete this. -- ___ Python tracker ___ ___

[issue26798] add BLAKE2 to hashlib

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset be6f3449ac13 by Christian Heimes in branch 'default': Issue #26798: for loop initial declarations are only allowed in C99 or C11 mode https://hg.python.org/cpython/rev/be6f3449ac13 -- ___ Python tracker

[issue27575] dict viewkeys intersection slow for large dicts

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

[issue27981] Reference leak in fp_setreadl() of Parser/tokenizer.c

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > No, readline is borrowed reference. My question is one the function call result. What if it is not NULL: I don't see any DECREF. -- ___ Python tracker

[issue27691] X509 cert with GEN_RID subject alt name causes SytemError

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9bbf0b31da48 by Christian Heimes in branch '3.5': Issue #27691: Fix ssl module's parsing of GEN_RID subject alternative name fields in X.509 certs. https://hg.python.org/cpython/rev/9bbf0b31da48 New changeset 2b9af57af3e4 by Christian Heimes in bra

[issue27691] X509 cert with GEN_RID subject alt name causes SytemError

2016-09-06 Thread Christian Heimes
Changes by Christian Heimes : -- stage: test needed -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue27981] Reference leak in fp_setreadl() of Parser/tokenizer.c

2016-09-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, you are right, there is a leak. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue27982] Allow keyword arguments in winsound

2016-09-06 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: zach.ware priority: normal severity: normal status: open title: Allow keyword arguments in winsound type: enhancement versions: Python 3.6 ___ Python tracker _

[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions

2016-09-06 Thread Davin Potts
Davin Potts added the comment: For clarity: * Confirmed, can repro on 2.7.12 on OSX. * Also confirmed that this can not be reproduced on the 3.5 or 3.6 branches. -- versions: -Python 3.5, Python 3.6 ___ Python tracker

[issue27982] Allow keyword arguments in winsound

2016-09-06 Thread Roundup Robot
New submission from Roundup Robot: New changeset bd4771d3e88d by Zachary Ware in branch 'default': Closes #27982: Allow keyword arguments to winsound functions https://hg.python.org/cpython/rev/bd4771d3e88d -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> cl

[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions

2016-09-06 Thread Davin Potts
Davin Potts added the comment: Reading through issue1692335 provides a sense of the concerns surrounding the patches they applied to the 3.x branches. Attempting to backport those patches to the 2.7 branch involves non-trivial risk, magnified by the now numerous differences between those bran

[issue21122] CPython fails to build modules with LLVM LTO on Mac OS X

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset cc5f8179a7ba by Ned Deily in branch 'default': Issue #21122: Fix LTO builds on OS X. https://hg.python.org/cpython/rev/cc5f8179a7ba -- nosy: +python-dev ___ Python tracker

[issue26798] add BLAKE2 to hashlib

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c31599de76a by Christian Heimes in branch 'default': Issue #26798: for loop initial declarations, take 2 https://hg.python.org/cpython/rev/5c31599de76a -- ___ Python tracker

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: I uploaded callfunc-6.patch which is supposed to be a rebased version of callfunc5.patch. I made tiny coding style changes. Python/ceval.c changed a lot since 1 month 1/2, so I'm not 100% sure that the rebase is correct. Known issues: * test_traceback and te

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread Steve Dower
Steve Dower added the comment: Addressed more feedback. -- Added file: http://bugs.python.org/file44404/6135_4.patch ___ Python tracker ___ ___

[issue26798] add BLAKE2 to hashlib

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset a1e032dbcf86 by Christian Heimes in branch 'default': Issue #26798: for loop initial declarations, take 3 https://hg.python.org/cpython/rev/a1e032dbcf86 -- ___ Python tracker

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: 6135_4.patch: Hum, what if you only set errors? I suggest to use TextIOWrapper but use the locale encoding: if (universal_newlines or errors) and not encoding: encoding = getpreferredencoding(False) -- ___ Python

[issue27959] Add 'oem' encoding

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: Rebased patch to get a review button. -- Added file: http://bugs.python.org/file44405/27959_3.patch ___ Python tracker ___ _

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread Steve Dower
Steve Dower added the comment: Sure, that's easy enough. Any other concerns once I've made that change? -- ___ Python tracker ___ ___ P

[issue26359] CPython build options for out-of-the box performance

2016-09-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Minor edit to avoid printing the message about --with-optimizations when doing a --with-pydebug build. otherwise this patch works well on Ubuntu xenial 16.04 amd64. >From discussions in the CPython Core Sprint room today - we've agreed that we >should just

[issue26307] no PGO for built-in modules with `make profile-opt`

2016-09-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mail

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: Steve Dower added the comment: > Sure, that's easy enough. Any other concerns once I've made that change? If errors enables Unicode and the doc is updated, the patch will LTGM :-) -- ___ Python tracker

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread Eryk Sun
Eryk Sun added the comment: Why do you need to call getpreferredencoding()? Isn't that already the default if you call TextIOWrapper with encoding as None? For example: text_mode = encoding or errors or universal_newlines self.stdin = io.open(p2cwrite, 'wb', bufsize) if text_mode:

[issue26027] Support Path objects in the posix module

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset d0d9d7f55cb5 by Brett Cannon in branch 'default': Issue #26027: Support path-like objects in PyUnicode-FSConverter(). https://hg.python.org/cpython/rev/d0d9d7f55cb5 -- ___ Python tracker

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: > Why do you need to call getpreferredencoding()? I proposed to do that, but I prefer your simple flag: > text_mode = encoding or errors or universal_newlines Steve: please use this simpler flag to avoid TextIOWrapper details in subprocess.py ;-) --

[issue18844] allow weights in random.choice

2016-09-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file44407/weighted_choice2.diff ___ Python tracker ___ ___ Python-bugs-list

[issue17884] Try to reuse stdint.h types like int32_t

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d29d3a1e0c6 by Victor Stinner in branch 'default': Run Argument Clinic on posixmodule.c https://hg.python.org/cpython/rev/1d29d3a1e0c6 -- ___ Python tracker _

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread Steve Dower
Steve Dower added the comment: > Steve: please use this simpler flag to avoid TextIOWrapper details in > subprocess.py The TextIOWrapper details are already specified in multiple places in the documentation. Should we remove all of those and write it more like: "if *encoding*, *errors* or *un

[issue27268] Incorrect error message on float('')

2016-09-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> Nofar Schnider nosy: +Nofar Schnider ___ Python tracker ___ ___ Python-bugs-

[issue26027] Support Path objects in the posix module

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9be0286772bf by Brett Cannon in branch 'default': Issue #26027, #27524: Document the support for path-like objects in os and os.path. https://hg.python.org/cpython/rev/9be0286772bf -- ___ Python tracker

[issue27872] Update os/os.path docs to mention path-like object support

2016-09-06 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue27872] Update os/os.path docs to mention path-like object support

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset abe3db90d8ad by Brett Cannon in branch 'default': Merge for #27872 doc changes https://hg.python.org/cpython/rev/abe3db90d8ad -- nosy: +python-dev ___ Python tracker _

[issue27524] Update os.path for PEP 519/__fspath__()

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9be0286772bf by Brett Cannon in branch 'default': Issue #26027, #27524: Document the support for path-like objects in os and os.path. https://hg.python.org/cpython/rev/9be0286772bf -- ___ Python tracker

[issue27983] "Cannot perform PGO build because llvm-profdata was not found in PATH" error upon make

2016-09-06 Thread Gregory P. Smith
New submission from Gregory P. Smith: patch in issue26307 (which should be in soon) and do the following: $ CC=clang ../3.6/configure --with-optimizations $ make profile-opt Error: Cannot perform PGO build because llvm-profdata was not found in PATH Please add it to PATH and run ./configure agai

[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 91d3022b3f03 by Berker Peksag in branch '3.5': Issue #21250: Add tests for SQLite's ON CONFLICT clause https://hg.python.org/cpython/rev/91d3022b3f03 New changeset db2bedd5c34a by Berker Peksag in branch 'default': Issue #21250: Merge from 3.5 https

[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2016-09-06 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Alex! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue27983] "Cannot perform PGO build because llvm-profdata was not found in PATH" error upon make

2016-09-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- dependencies: +CPython build options for out-of-the box performance ___ Python tracker ___ ___ Python

[issue27983] "Cannot perform PGO build because llvm-profdata was not found in PATH" error upon make

2016-09-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: i meant issue26359 above, not 26307. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue27984] singledispatch is wonky with enums

2016-09-06 Thread Anselm Kiefner
New submission from Anselm Kiefner: from functools import singledispatch from enum import Enum IS = Enum("IS", "a, b") @singledispatch def foo(x): print(foo.dispatch(x)) print("foo") @foo.register(IS.a) def bar(x): print(foo.dispatch(x)) print("bar") @foo.register(int) def

[issue27778] PEP 524: Add os.getrandom()

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 27267d2fb091 by Victor Stinner in branch 'default': Add os.getrandom() https://hg.python.org/cpython/rev/27267d2fb091 -- nosy: +python-dev ___ Python tracker _

[issue27974] Remove dead code in importlib._bootstrap

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset a3db6e954f58 by Brett Cannon in branch 'default': Issue #27974: Remove importlib._bootstrap._ManageReload. https://hg.python.org/cpython/rev/a3db6e954f58 -- nosy: +python-dev ___ Python tracker

[issue27974] Remove dead code in importlib._bootstrap

2016-09-06 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue21122] CPython fails to build modules with LLVM LTO on Mac OS X

2016-09-06 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue27984] singledispatch is wonky with enums

2016-09-06 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread Steve Dower
Steve Dower added the comment: More doc updates - shouldn't be a difficult review this time, but I always like getting multiple opinions on doc changes. -- Added file: http://bugs.python.org/file44408/6135_5.patch ___ Python tracker

[issue27984] singledispatch is wonky with enums

2016-09-06 Thread Ethan Furman
Ethan Furman added the comment: > IS = Enum("IS", "a, b") functools is meant to work with types, but the enum member "IS.a" is not a type -- however, the enum "IS" is a type. Use "foo.register(IS)" instead. -- nosy: +ncoghlan, rhettinger ___ Python

[issue23226] Add float linspace recipe to docs

2016-09-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue23226] Add float linspace recipe to docs

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb8fe61d78a4 by Raymond Hettinger in branch 'default': Issue #23226: Add linspace() recipe to the docs https://hg.python.org/cpython/rev/bb8fe61d78a4 -- nosy: +python-dev ___ Python tracker

[issue27776] PEP 524: Make os.urandom() blocking on Linux

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 45fc0c83ed42 by Victor Stinner in branch 'default': os.urandom() now blocks on Linux https://hg.python.org/cpython/rev/45fc0c83ed42 -- ___ Python tracker _

[issue27984] singledispatch register should typecheck its argument

2016-09-06 Thread Eryk Sun
Eryk Sun added the comment: The register() method should raise a TypeError if it's called with an object that's not a type. Consider the following: from functools import singledispatch class C: pass obj = C() @singledispatch def foo(x): print(foo.dispatch

[issue27776] PEP 524: Make os.urandom() blocking on Linux

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: Nick: "+1 for a fallback in the SIPHash initialisation as well." Sorry but I don't know a simple function to implement this. We might use the LCG RNG, but it's not really designed to be "secure". I don't think that it makes sense to initialize a shiny SIPHash

[issue27778] PEP 524: Add os.getrandom()

2016-09-06 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue26798] add BLAKE2 to hashlib

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset afa5a16456ed by Christian Heimes in branch 'default': Issue #26798: Hello Winndows, my old friend. I've come to fix blake2 for you again. https://hg.python.org/cpython/rev/afa5a16456ed -- ___ Python trac

[issue27985] Implement PEP 526

2016-09-06 Thread Guido van Rossum
New submission from Guido van Rossum: Pending PEP 526's acceptance, I am inviting Ivan Levkivskyi to upload his patch here so it can be reviewed. -- assignee: gvanrossum components: Interpreter Core messages: 274672 nosy: gvanrossum priority: normal severity: normal stage: needs patch s

[issue27984] singledispatch register should typecheck its argument

2016-09-06 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue1602] windows console doesn't print or input Unicode

2016-09-06 Thread Steve Dower
Steve Dower added the comment: Latest patch is attached. PEP acceptance is sounding likely, so feel free to critically review. -- Added file: http://bugs.python.org/file44409/1602_4.patch ___ Python tracker ___

[issue24277] Take the new email package features out of provisional status

2016-09-06 Thread R. David Murray
R. David Murray added the comment: Obviously I quite missed the 3.5 deadline, and it is only thanks to the Core Sprint that I'm going to make the 3.6 deadline, but at least I'm making it. There is one code change in this patch, changing the default behavior of as_string/str on EmailMessage (on

[issue26307] no PGO for built-in modules with `make profile-opt`

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7d9cd4a0d488 by Gregory P. Smith in branch '3.5': Fixes issue26307: The profile-opt build now applys PGO to the built-in https://hg.python.org/cpython/rev/7d9cd4a0d488 New changeset bdc7292cf87e by Gregory P. Smith in branch 'default': Fixes issue26

[issue24277] Take the new email package features out of provisional status

2016-09-06 Thread R. David Murray
R. David Murray added the comment: It is probably useless to try to review this as a diff. It maybe better to just commit it, and let people report any problems as bugs. -- ___ Python tracker

[issue26359] CPython build options for out-of-the box performance

2016-09-06 Thread Brett Cannon
Brett Cannon added the comment: Here is modification of Greg's patch to turn off LTO under OS X since LTO+PGO do not get along under El Capitan. -- Added file: http://bugs.python.org/file44411/issue26359.diff ___ Python tracker

[issue18844] allow weights in random.choice

2016-09-06 Thread Davin Potts
Davin Potts added the comment: I've gone through the patch -- looks good to me. -- nosy: +davin ___ Python tracker ___ ___ Python-bugs

[issue26359] CPython build options for out-of-the box performance

2016-09-06 Thread Brett Cannon
Brett Cannon added the comment: Patch with the missing Makefile.pre.in part :P -- Added file: http://bugs.python.org/file44412/issue26359.diff ___ Python tracker ___

[issue26359] CPython build options for out-of-the box performance

2016-09-06 Thread Brett Cannon
Changes by Brett Cannon : Removed file: http://bugs.python.org/file44411/issue26359.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue27776] PEP 524: Make os.urandom() blocking on Linux

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset ebbfc053360a by Victor Stinner in branch 'default': Issue #27776: include process.h on Windows for getpid() https://hg.python.org/cpython/rev/ebbfc053360a -- ___ Python tracker

[issue16334] Faster unicode-escape and raw-unicode-escape codecs

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset ad5a28ace615 by Victor Stinner in branch 'default': Optimize unicode_escape and raw_unicode_escape https://hg.python.org/cpython/rev/ad5a28ace615 -- nosy: +python-dev ___ Python tracker

[issue16334] Faster unicode-escape and raw-unicode-escape codecs

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: Since it's almost the 3.6 beta 1, I chose to push the change right now. I'm sure that it's faster, I trust your benchmarks ;-) Thanks Serhiy for this nice enhancement. > > * Rename WRITECHAR macro to WRITE_ASCII_CHAR() > This is not correct name. This macro

[issue26359] CPython build options for out-of-the box performance

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset b4b73473ecc6 by Brett Cannon in branch 'default': Issue #26359: Add the --with-optimizations configure flag. https://hg.python.org/cpython/rev/b4b73473ecc6 -- nosy: +python-dev ___ Python tracker

[issue18844] allow weights in random.choice

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset a5856153d942 by Raymond Hettinger in branch 'default': Issue #18844: Add random.weighted_choices() https://hg.python.org/cpython/rev/a5856153d942 -- nosy: +python-dev ___ Python tracker

[issue27986] make distclean clobbers Lib/plat-darwin/*

2016-09-06 Thread Zachary Ware
New submission from Zachary Ware: I suspect this is related to #23968, but I'm not certain. -- components: Build, Macintosh messages: 274685 nosy: doko, ned.deily, ronaldoussoren, zach.ware priority: low severity: normal stage: needs patch status: open title: make distclean clobbers Lib/

[issue18844] allow weights in random.choice

2016-09-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Davin. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-b

[issue26359] CPython build options for out-of-the box performance

2016-09-06 Thread Brett Cannon
Brett Cannon added the comment: Leaving this open in case someone wants to backport to 2.7. -- versions: -Python 3.5, Python 3.6 ___ Python tracker ___ _

[issue26359] CPython build options for out-of-the box performance

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e61cc86df03 by Brett Cannon in branch '3.5': Issue #26359: Add the --with-optimizations flag. https://hg.python.org/cpython/rev/1e61cc86df03 New changeset f9b52b31f1b4 by Brett Cannon in branch 'default': Merge for #26359 https://hg.python.org/cpyt

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2016-09-06 Thread Benjamin Peterson
New submission from Benjamin Peterson: ubsan complains about unaligned access when structs include "long double". An example error: runtime error: member access within misaligned address 0x7f77dbba9798 for type 'struct CDataObject', which requires 16 byte alignment This is because (on x86

[issue3100] weakref subclass segfault

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3d8109fe6d82 by Gregory P. Smith in branch 'default': Correct a comment in the test referencing the wrong issue number (issue3100 https://hg.python.org/cpython/rev/3d8109fe6d82 -- nosy: +python-dev ___ Py

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

2016-09-06 Thread Steve Dower
Steve Dower added the comment: Also see PEP 529 for the latest updates there. This is likely to be accepted as experimental for 3.6.0b1-3, and we'll commit to either the new default or a compatible default for b4. -- Added file: http://bugs.python.org/file44414/27781_1.patch _

[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2016-09-06 Thread koobs
koobs added the comment: Re-open and assign for regressions. Observed in all koobs-freebsd* buildbots (9/10/11) and build types. Issue is in default branch (add version 3.7) First failing test run: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Non-Debug%203.x/builds/110

[issue27985] Implement PEP 526

2016-09-06 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Here is the patch for PEP 526 implementation -- keywords: +patch nosy: +levkivskyi Added file: http://bugs.python.org/file44415/hg-pep-526.diff ___ Python tracker

[issue26307] no PGO for built-in modules with `make profile-opt`

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 75dae0b2ccb3 by Gregory P. Smith in branch '2.7': Fixes issue26307: The profile-opt build now applys PGO to the built-in modules. https://hg.python.org/cpython/rev/75dae0b2ccb3 -- ___ Python tracker

[issue27985] Implement PEP 526

2016-09-06 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Oops, sorry, forgot to add new files when converting from git to hg, here is the full patch. -- Added file: http://bugs.python.org/file44416/hg-pep-526.diff ___ Python tracker __

[issue25596] Use scandir() to speed up the glob module

2016-09-06 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks Serhiy! --Guido (mobile) On Sep 6, 2016 12:35 PM, "Roundup Robot" wrote: > > Roundup Robot added the comment: > > New changeset cb7ee9d9cddd by Serhiy Storchaka in branch 'default': > Issue #25596: Optimized glob() and iglob() functions in the > http

[issue27972] Confusing error during cyclic yield

2016-09-06 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for the report. I've never seen this before, so I doubt it is a common mistake. Yury have you ever seen this? --Guido (mobile) -- ___ Python tracker _

[issue27778] PEP 524: Add os.getrandom()

2016-09-06 Thread Martin Panter
Martin Panter added the comment: HAVE_GETRANDOM_SYSCALL seems to be a compile-time library check, not a runtime check. I compiled and run on Linux 3.15.5, and os.getrandom() exists but raises ENOSYS: == ERROR: test_getrandom0

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread Martin Panter
Martin Panter added the comment: Maybe good to adjust the other mentions of universal_newlines, e.g. for check_output(). The Posix version of the multiple-pipe _communicate() method probably needs adjusting too. Test case: >>> check_output(("true",), encoding="ascii", input="") # Should be te

[issue27988] email iter_attachments can mutate the payload

2016-09-06 Thread R. David Murray
New submission from R. David Murray: In the right (wrong) circumstances the iter_attachments function may mutate the payload list. The fix is simple (make a copy before operating on it). Attached is a patch with test. -- files: iter_attachments_mutation.patch keywords: patch messages

[issue27988] email iter_attachments can mutate the payload

2016-09-06 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27570] Avoid memcpy(. . ., NULL, 0) etc calls

2016-09-06 Thread Martin Panter
Martin Panter added the comment: Looks like revisions 5f3f6f1fb73a and ec537f9f468f may have fixed the listobject cases. Also 66feda02f2a5 looks relevant. Benjamin, maybe you are interested in other bits of my patches :) -- nosy: +benjamin.peterson ___

[issue27989] incomplete signature with help function using typing

2016-09-06 Thread David E. Franco G.
New submission from David E. Franco G.: the issue is that when calling help on a function annotated with typing, all the relevant information is lost, for example from typing import List, Any, Iterator, Tuple def foo(data:List[Any]) -> Iterator[ Tuple[int,Any] ]: ... when calling help on

[issue27350] Compact and ordered dict

2016-09-06 Thread INADA Naoki
INADA Naoki added the comment: Update the patch to use standard int types instead of adding PY_INT16_T ref: https://bugs.python.org/issue17884 -- Added file: http://bugs.python.org/file44418/compact-dict.patch ___ Python tracker

[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2016-09-06 Thread Eric Snow
Eric Snow added the comment: I have verified that this is still a problem (basically 3.6b1). Fatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/opt/python3.6/lib/python3.6/encodings/__init__.py", line 99, in search_function File ""

[issue27984] singledispatch register should typecheck its argument

2016-09-06 Thread Nick Coghlan
Nick Coghlan added the comment: Catching the erroneous registration rather than silently ignoring it sounds like the right thing to do here to me as well. I'm actually surprised that code isn't already throwing an exception later on, as "isinstance" itself does fail with non-types: >>> from e

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-09-06 Thread Larry Hastings
Larry Hastings added the comment: > The difference between a security feature and a security fix > is incredibly hard to differentiate. I'm not buying this argument. > For instance, with 3DES being de-recommended (and removed in future > OpenSSLs) that leaves basically only AES-GCM and AES-CBC

[issue27776] PEP 524: Make os.urandom() blocking on Linux

2016-09-06 Thread Nick Coghlan
Nick Coghlan added the comment: If /dev/urandom isn't available, Python refusing to start is likely to be one of the least of the system's problems, so Py_FatalError sounds reasonable to me - my +1 for a fallback above was a matter of "sounds good if you can find a way to make it work". Thank

<    1   2   3   >