[issue35888] ssl module - could not get the server certificate w/o completed handshake

2019-02-01 Thread Lee Eric
New submission from Lee Eric : Hi, I'm not sure if this is the right place to ask after I exhausted several communication ways. I'm trying to use standard ssl module to get the server certificate details. If I understand correctly, the certificate I can get only when the TLS/SSL handshake

[issue35813] shared memory construct to avoid need for serialization between processes

2019-02-01 Thread Davin Potts
Davin Potts added the comment: New changeset e5ef45b8f519a9be9965590e1a0a587ff584c180 by Davin Potts in branch 'master': bpo-35813: Added shared_memory submodule of multiprocessing. (#11664) https://github.com/python/cpython/commit/e5ef45b8f519a9be9965590e1a0a587ff584c180 --

[issue35780] Recheck logic in the C version of the lru_cache()

2019-02-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +11630, 11631, 11632 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35780] Recheck logic in the C version of the lru_cache()

2019-02-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +11630, 11631 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35780] Recheck logic in the C version of the lru_cache()

2019-02-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +11630 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34235] PyArg_ParseTupleAndKeywords: support required keyword arguments

2019-02-01 Thread Michael Sullivan
Michael Sullivan added the comment: How about adding another sigil that indicates that subsequent keyword-only arguments are required? So then your example becomes (using ` as a totally strawman option): PyArg_ParseTupleAndKeywords(args, kwds, "O|O$O`O", kwlist, , , , ) It's a little

[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-02-01 Thread Nina Zakharenko
Change by Nina Zakharenko : -- keywords: +patch pull_requests: +11629 stage: test needed -> patch review ___ Python tracker ___ ___

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread Nina Zakharenko
Change by Nina Zakharenko : -- pull_requests: +11626, 11627 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread Nina Zakharenko
Change by Nina Zakharenko : -- pull_requests: +11626, 11627, 11628 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread Nina Zakharenko
Change by Nina Zakharenko : -- pull_requests: +11626 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35887] Doc string for updating the frozen version of importlib in _bootstrap.py incorrect

2019-02-01 Thread Nina Zakharenko
New submission from Nina Zakharenko : In the process of creating a fix for issue #35321, I noticed what I believe to be a documentation omission. In Lib/importlib/_bootstrap.py the top level comment states that: # IMPORTANT: Whenever making changes to this module, be sure to run # a

[issue35886] Move PyInterpreterState into Include/internal/pycore_pystate.h

2019-02-01 Thread Eric Snow
Eric Snow added the comment: FWIW, I was hoping to the same for PyThreadState but it looks like 6 of its fields are exposed in "stable" header files via the following macros: # Include/object.h Py_TRASHCAN_SAFE_BEGIN Py_TRASHCAN_SAFE_END Include.ceval.h Py_EnterRecursiveCall

[issue35886] Move PyInterpreterState into Include/internal/pycore_pystate.h

2019-02-01 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch, patch, patch pull_requests: +11623, 11624, 11625 stage: needs patch -> patch review ___ Python tracker ___

[issue35886] Move PyInterpreterState into Include/internal/pycore_pystate.h

2019-02-01 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch, patch pull_requests: +11623, 11624 stage: needs patch -> patch review ___ Python tracker ___

[issue35886] Move PyInterpreterState into Include/internal/pycore_pystate.h

2019-02-01 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +11623 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35839] Suggestion: Ignore sys.modules entries with no __spec__ attribute in find_spec

2019-02-01 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35886] Move PyInterpreterState into Include/internal/pycore_pystate.h

2019-02-01 Thread Eric Snow
New submission from Eric Snow : In November Victor created the Include/cpython directory and moved a decent amount of public (but not limited) API there. This included the PyInterpreterState struct. I'd like to move it into the "internal" headers since it is somewhat coupled to the

[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-02-01 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35845] Can't read a F-contiguous memoryview in physical order

2019-02-01 Thread Stefan Krah
Change by Stefan Krah : -- keywords: +patch pull_requests: +11620 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35845] Can't read a F-contiguous memoryview in physical order

2019-02-01 Thread Stefan Krah
Change by Stefan Krah : -- keywords: +patch, patch pull_requests: +11620, 11621 stage: needs patch -> patch review ___ Python tracker ___

[issue35845] Can't read a F-contiguous memoryview in physical order

2019-02-01 Thread Stefan Krah
Change by Stefan Krah : -- keywords: +patch, patch, patch pull_requests: +11620, 11621, 11622 stage: needs patch -> patch review ___ Python tracker ___

[issue24177] Add https?_proxy support to http.client

2019-02-01 Thread Demian Brecht
Change by Demian Brecht : -- keywords: +patch, patch pull_requests: +11617, 11618 stage: needs patch -> patch review ___ Python tracker ___

[issue24177] Add https?_proxy support to http.client

2019-02-01 Thread Demian Brecht
Change by Demian Brecht : -- keywords: +patch, patch, patch pull_requests: +11617, 11618, 11619 stage: needs patch -> patch review ___ Python tracker ___

[issue24177] Add https?_proxy support to http.client

2019-02-01 Thread Demian Brecht
Change by Demian Brecht : -- keywords: +patch pull_requests: +11617 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35883] Change invalid unicode characters to replacement characters in argv

2019-02-01 Thread Eryk Sun
Eryk Sun added the comment: In Unix, Python 3.6 decodes the char * command line arguments via mbstowcs. In Linux, I see the following misbehavior of mbstowcs when decoding an overlong UTF-8 sequence: >>> mbstowcs = ctypes.CDLL(None, use_errno=True).mbstowcs >>> arg = bytes(x + 128

[issue17972] inspect module docs omits many functions

2019-02-01 Thread kernc
Change by kernc : -- nosy: +kernc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35880] math.sin has no backward error; this isn't documented

2019-02-01 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> needs patch versions: -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue35879] test_type_comments leaks references

2019-02-01 Thread Guido van Rossum
Change by Guido van Rossum : -- assignee: -> gvanrossum resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue35879] test_type_comments leaks references

2019-02-01 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset d2b4c19d53f5f021fb1c7c32d48033a92ac4fe49 by Guido van Rossum in branch 'master': bpo-35879: Fix type comment leaks (GH-11728) https://github.com/python/cpython/commit/d2b4c19d53f5f021fb1c7c32d48033a92ac4fe49 --

[issue35879] test_type_comments leaks references

2019-02-01 Thread Guido van Rossum
Guido van Rossum added the comment: Found it! You need to call PyArena_AddPyObject(). I racked my brain and finally found the example code I needed at the end of new_identifier(). Please review quickly so we won't ship 3.8.0a1 with a memory leak. --

[issue35879] test_type_comments leaks references

2019-02-01 Thread Guido van Rossum
Change by Guido van Rossum : -- keywords: +patch, patch, patch pull_requests: +11614, 11615, 11616 stage: -> patch review ___ Python tracker ___

[issue35879] test_type_comments leaks references

2019-02-01 Thread Guido van Rossum
Change by Guido van Rossum : -- keywords: +patch, patch pull_requests: +11614, 11615 stage: -> patch review ___ Python tracker ___

[issue35879] test_type_comments leaks references

2019-02-01 Thread Guido van Rossum
Change by Guido van Rossum : -- keywords: +patch pull_requests: +11614 stage: -> patch review ___ Python tracker ___ ___

[issue35885] configparser: indentation

2019-02-01 Thread mrs.red
New submission from mrs.red : The configparser module does not have an option for indentation. I would like to indent the keys by tabs. Maybe we could implement an option for that? I already have some example code for it. -- components: Library (Lib) messages: 334729 nosy: mrs.red

[issue34886] subprocess.run throws exception when input and stdin are passed as kwargs

2019-02-01 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I opened a PR with @josh.r proposed change. -- nosy: +remi.lapeyre ___ Python tracker ___ ___

[issue34886] subprocess.run throws exception when input and stdin are passed as kwargs

2019-02-01 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11611 stage: -> patch review ___ Python tracker ___ ___

[issue34886] subprocess.run throws exception when input and stdin are passed as kwargs

2019-02-01 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch, patch pull_requests: +11611, 11612, 11613 stage: -> patch review ___ Python tracker ___

[issue34886] subprocess.run throws exception when input and stdin are passed as kwargs

2019-02-01 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch pull_requests: +11611, 11612 stage: -> patch review ___ Python tracker ___ ___

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks a lot Guido and Emily for guidance on this issue. Happy to see this for alpha release :) -- ___ Python tracker ___

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Emily Morehouse
Change by Emily Morehouse : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Emily Morehouse
Emily Morehouse added the comment: New changeset ac19081c26eaa7de3e6aabeb789ddc2e7cdd5b24 by Emily Morehouse in branch 'master': bpo-35877: Add test for while loop named expression without parentheses (GH-11726)

[issue35861] test_named_expressions raises SyntaxWarning

2019-02-01 Thread Emily Morehouse
Change by Emily Morehouse : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Emily Morehouse
Emily Morehouse added the comment: Thanks, Karthikeyan! I added an additional test to make sure this gets coverage. I'll close out this issue once tests pass and I can merge that. -- ___ Python tracker

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Emily Morehouse
Change by Emily Morehouse : -- pull_requests: +11608, 11609, 11610 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Emily Morehouse
Change by Emily Morehouse : -- pull_requests: +11608 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Emily Morehouse
Change by Emily Morehouse : -- pull_requests: +11608, 11609 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Emily Morehouse
Emily Morehouse added the comment: New changeset d4fceaafb8e3f8700d9ec6ab37a51e903392f74f by Emily Morehouse (Xtreak) in branch 'master': bpo-35877: Make parenthesis optional for named expression in while statement (GH-11724)

[issue35879] test_type_comments leaks references

2019-02-01 Thread Guido van Rossum
Guido van Rossum added the comment: In the meantime here's the fix for the '# type: ignore' leak. https://github.com/gvanrossum/cpython/commit/ef3b9e952906aab8f5452ebcf3b9e359d35615b4 -- ___ Python tracker

[issue35879] test_type_comments leaks references

2019-02-01 Thread Guido van Rossum
Guido van Rossum added the comment: I have been trying to do the same thing and likewise, no luck understanding yet how type comments are different here. -- ___ Python tracker

[issue35879] test_type_comments leaks references

2019-02-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I'm almost sure this is not the correct fix, but I think these findings point to that object as the one being leaked. I do not understand how this object should be deallocated and where, I am trying to follow how the other PyObject* (name) is

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-02-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 85d83ec7c99727476c79feb5c34c65264a99144e by Raymond Hettinger (Amador Pahim) in branch 'master': bpo-35864: fix namedtuple._asdict() docstring (GH-11720) https://github.com/python/cpython/commit/85d83ec7c99727476c79feb5c34c65264a99144e

[issue35884] Add variable access benchmark to Tools/Scripts

2019-02-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's what the output looks like (here am comparing a fresh Py3.8 with Clang versus the same build with GCC-8): $ make distclean && ./configure && make $ py Tools/scripts/var_access_benchmark.py Speed of different kinds of variable accesses: 4.2 μs

[issue35884] Add variable access benchmark to Tools/Scripts

2019-02-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +11606 stage: -> patch review ___ Python tracker ___ ___

[issue35884] Add variable access benchmark to Tools/Scripts

2019-02-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch, patch pull_requests: +11606, 11607 stage: -> patch review ___ Python tracker ___

[issue35879] test_type_comments leaks references

2019-02-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Note: the extra DECREF will fail in other tests because it will deallocate None if ast2obj_object returns Py_None because the comment is NULL. -- ___ Python tracker

[issue35879] test_type_comments leaks references

2019-02-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Hu I may be missing something but these is what I am seeing: BASELINE ❯ ./python.exe -m test test_type_comments -R 10:10 Run tests sequentially 0:00:00 load avg: 2.30 [1/1] test_type_comments beginning 20 repetitions

[issue35884] Add variable access benchmark to Tools/Scripts

2019-02-01 Thread Raymond Hettinger
New submission from Raymond Hettinger : Adding a short script that I've found useful many times over the past decade. It has allowed my to quickly notice performance regressions and has helped identify places in need of optimization work. It is also useful for building a empirical mental

[issue35861] test_named_expressions raises SyntaxWarning

2019-02-01 Thread Emily Morehouse
Emily Morehouse added the comment: New changeset 075de6cf6cb0f5f4d3711fc07f023a9a7a0a816b by Emily Morehouse (Joannah Nanjekye) in branch 'master': bpo-35861: Fix SyntaxWarning in test_named_expressions.py (GH-11722)

[issue35883] Change invalid unicode characters to replacement characters in argv

2019-02-01 Thread SilentGhost
Change by SilentGhost : -- nosy: +ncoghlan versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35258] Consider enabling -Wmissing-prototypes

2019-02-01 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35766] Merge typed_ast back into CPython

2019-02-01 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 3a32e3bf880f0842ac73d18285f5a1caa902a2ca by Guido van Rossum in branch 'master': bpo-35766 follow-up: Kill half-support for FunctionType in PyAST_obj2mod (#11714)

[issue35879] test_type_comments leaks references

2019-02-01 Thread Guido van Rossum
Guido van Rossum added the comment: > ast2obj_string increments it once and the setattr does it again and then > there is only one Py_DECREF. Actually I don't understand how this is the leak. Adding another Py_DECREF(value) causes an immediate crash. I've been trying to follow other paths

[issue35883] Change invalid unicode characters to replacement characters in argv

2019-02-01 Thread Neui
Neui added the comment: I'd say that the terminal is not really relevant here, but rather the locale settings because it uses wide string functions. Prefixing it with LC_ALL=C produces the same output as you had on my Ubuntu machine. I also get that output when running it in Cygwin (and

[issue35773] test_bdb fails on AIX bot (regression)

2019-02-01 Thread Michael Felt
Michael Felt added the comment: OK. New info. Back in the time of issue 34347 I installed some extra filesets to support UTF-8 on the virtual machine (aka partition) that I have the bot on. On systems where this fileset is not installed this test does not fail. Shall dig further - in a

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2019-02-01 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35829] datetime: parse "Z" timezone suffix in fromisoformat()

2019-02-01 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35880] math.sin has no backward error; this isn't documented

2019-02-01 Thread Tim Peters
Tim Peters added the comment: As Mark said, the behavior of Python's floating-point math functions (not just trig, but also log, pow, exp, ...) is inherited almost entirely from the platform C's math libraries. Python itself guarantees nothing about what `math.sin(x)` returns for any `x` -

[issue35879] test_type_comments leaks references

2019-02-01 Thread Guido van Rossum
Guido van Rossum added the comment: OK, let me make a PR, I found another leak for type:ignore. On Fri, Feb 1, 2019 at 9:22 AM Pablo Galindo Salgado wrote: > > Pablo Galindo Salgado added the comment: > > The extra referenced happen here in Python-ast.c : > > value =

[issue35879] test_type_comments leaks references

2019-02-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The extra referenced happen here in Python-ast.c : value = ast2obj_string(o->type_comment); if (!value) goto failed; if (_PyObject_SetAttrId(result, _type_comment, value) == -1) goto failed; Py_DECREF(value); ast2obj_string

[issue35883] Change invalid unicode characters to replacement characters in argv

2019-02-01 Thread SilentGhost
SilentGhost added the comment: Hm, this seems to be due to how the terminal emulator handles those special characters, actually. I can reproduce in another terminal. -- ___ Python tracker

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch, patch, patch pull_requests: +11603, 11604, 11605 stage: needs patch -> patch review ___ Python tracker ___

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch, patch pull_requests: +11603, 11604 stage: needs patch -> patch review ___ Python tracker ___

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +11603 stage: needs patch -> patch review ___ Python tracker ___

[issue35880] math.sin has no backward error; this isn't documented

2019-02-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: > sin(1<<500) is correctly computed as 0.42925739234242827 py> math.sin(1<<500) 0.9996230490249484 Wolfram Alpha says it is 0.429257392342428277735329299112473759079115476327819897...

[issue35883] Change invalid unicode characters to replacement characters in argv

2019-02-01 Thread SilentGhost
SilentGhost added the comment: I'm on 4.15.0-44-generic and I cannot reproduce the crash. I get "python3: can't open file '��': [Errno 2] No such file or directory" Could you try this on a different machine / installation? -- nosy: +SilentGhost type: behavior -> crash

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Thanks, Karthikeyan! Can you submit that as a PR? Sure, I will submit the patch with tests for the same. Thanks -- ___ Python tracker

[issue35883] Change invalid unicode characters to replacement characters in argv

2019-02-01 Thread Neui
New submission from Neui : When an invalid unicode character is given to argv (cli arguments), then python abort()s with an fatal error about an character not in range (ValueError: character U+7fffbeba is not in range [U+; U+10]). I am wondering if this behaviour should change to

[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2019-02-01 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +11601, 11602 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35879] test_type_comments leaks references

2019-02-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2019-02-01 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +11601 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35879] test_type_comments leaks references

2019-02-01 Thread Guido van Rossum
Guido van Rossum added the comment: I can confirm it, but I don't understand it yet. Somehow the type_comment fields get an extra reference count and are never freed. How are other string fields handled? -- ___ Python tracker

[issue34028] Python 3.7.0 wont compile with SSL Support 1.1.0 > alledged missing X509_VERIFY_PARAM_set1_host() support

2019-02-01 Thread Kent Scheidegger
Kent Scheidegger added the comment: I was unable to get it working even with all the suggestions in this thread. I have a shared account on a system with only Python 2.7 and an old version of openssl. I have write access only to my user directory. I installed a new openssl in a local

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, Karthikeyan! Can you submit that as a PR? -- ___ Python tracker ___ ___

[issue25592] distutils docs: data_files always uses sys.prefix

2019-02-01 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: (note typo in the above: /tmp/prefix/pip should be /tmp/prefix/bin/pip) -- ___ Python tracker ___

[issue25592] distutils docs: data_files always uses sys.prefix

2019-02-01 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Could you still give it a quick check? I did just that. For reference, these are the steps: - Checkout the "2.7" branch of the cpython git repo - ./configure --prefix=/tmp/prefix --exec-prefix=/tmp/eprefix && make && make install - Install pip

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-02-01 Thread Eric Snow
Eric Snow added the comment: FWIW, both PEP 468 (kwargs order) and PEP 520 (class definition order) specify order-preserving mapping rather than dict. The main difference is that they are about language features rather than something out of the stdlib. :) --

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-02-01 Thread Eric Snow
Eric Snow added the comment: If you prefer, I'd be glad to open separate issues for either thing. -- ___ Python tracker ___ ___

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-02-01 Thread Eric Snow
Eric Snow added the comment: Also, there's a potentially misleading detail that you might consider correcting in the text. However, making it correct might make it slightly less clear, so it's a bit of a judgement call on how important it is to be explicit here. (FWIW, I think it's worth

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-02-01 Thread Eric Snow
Eric Snow added the comment: Thanks for doing this, Raymond! FYI, I found a couple of places where it still refers to OrderedDict: 1. in the doc entry in collections.rst [1] 2. in the docstring [2] [1]

[issue30670] pprint for dict in sorted order or insert order?

2019-02-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/library/pprint.html > Dictionaries are sorted by key before the display is computed. https://mail.python.org/pipermail/python-dev/2017-December/151369.html . There was some discussion in the thread about this being a

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Emily, I think this would be as simple as making a tiny change to > Grammar/Grammar and running make regen-grammar. Can you take care of that? Thanks, can confirm that this fixes the issue. I changed test to namedexpr_test for while statement in

[issue35863] email.headers wraps headers badly

2019-02-01 Thread R. David Murray
R. David Murray added the comment: Well, "display" in the context of email includes looking at the raw email serialized as a text file. This is something one can do in most mailers. I use nmh as my mailer, which only shows raw headers, so I myself would be personally affected if headers

[issue35853] Extend the functools module with more higher order function combinators

2019-02-01 Thread Tobias Pleyer
Tobias Pleyer added the comment: Thank you for your quick and detailed answer. It appears I slightly misunderstood the purpose of the functools module. However kudos for your great effort to push the Python language forward. Best regards Tobias --

[issue30670] pprint for dict in sorted order or insert order?

2019-02-01 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi josephsmeng, dict order preservation is now used in a lot of place in Python. I will post a patch to make pprint use insertion order in a few hours. -- nosy: +remi.lapeyre ___ Python tracker

[issue35877] parenthesis is mandatory for named expressions in while statement

2019-02-01 Thread Guido van Rossum
Guido van Rossum added the comment: Emily, I think this would be as simple as making a tiny change to Grammar/Grammar and running make regen-grammar. Can you take care of that? -- assignee: -> emilyemorehouse stage: -> needs patch ___ Python

[issue35882] distutils fails with UnicodeEncodeError with strange filename in package_data

2019-02-01 Thread Jody McIntyre
New submission from Jody McIntyre : I encountered an error while installing savReaderWriter using pip from a Dockerfile, reported as https://bitbucket.org/fomcl/savreaderwriter/issues/73/pip-install-fails-for-non-utf-8-encoding This is actually an issue with distutils. Steps to reproduce:

[issue35881] test_type_comments leaks references and memory blocks

2019-02-01 Thread STINNER Victor
STINNER Victor added the comment: > :( I'm kidding :-) Sorry for not reviewing emails from buildbot-status. -- ___ Python tracker ___

[issue35431] Add a function for computing binomial coefficients to the math module

2019-02-01 Thread kellerfuchs
kellerfuchs added the comment: > Given that people clarified they prefer comb(), and that people conspicuously > didn't comment on it being entirely-opaque to people who do not elready know > what it is, I guess there is indeed consensus. commit afb3d36e82b8d690a410fa9dca8029a8fad42984

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 325e4bac5ab49f47ec60242d3242647605193a2e by Victor Stinner in branch 'master': bpo-35537: Fix function name in os.posix_spawnp() errors (GH-11719) https://github.com/python/cpython/commit/325e4bac5ab49f47ec60242d3242647605193a2e --

[issue35431] Add a function for computing binomial coefficients to the math module

2019-02-01 Thread kellerfuchs
kellerfuchs added the comment: @Steven > > This involved a few changes, which seem to reflect the consensus here: > > - raise ValueError if k>n ; > > - rename the function to math.combinations. > [...] > > As far as I can tell from the discussions here, Steven and you stated a > > preference

  1   2   >