[issue35858] Consider adding the option of running shell/console commands inside the REPL

2019-02-01 Thread jcrmatos
jcrmatos added the comment: I will, thanks. -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-li

[issue35869] io.BufferReader.read() returns None

2019-02-01 Thread Martin Panter
Martin Panter added the comment: This is covered by Issue 13322. There are a few other BufferedReader methods that contradict the documentation for non-blocking mode. A while ago I posted a patch to change the implementation to match the documentation, but nobody reviewed it or gave their opi

[issue35862] Change the environment for a new process

2019-02-01 Thread Eryk Sun
Eryk Sun added the comment: > Because sometimes when a process is implicitly started by some 3rd > party library (i.e. COM via pythonwin here) the "old", unchanged > environment is retained as the process itself doesn't care if > os.environ was changed or not, the original environment cannot

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-02-01 Thread Marc Schlaich
New submission from Marc Schlaich : Creating a venv from the python.exe from another venv does not work since 3.7.2 on Windows. This is probably related to the change bpo-34977: venv on Windows will now use a python.exe redirector rather than copying the actual binaries from the base envi

[issue35868] Support ALL_PROXY environment variable in urllib

2019-02-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The all_proxy setting is used by other software as well, see for example the manpage for curl and this feature request for requests . Adding support for all_proxy to urllib sounds like a useful feature to me

[issue35873] Controlling venv from venv no longer works in 3.7.2

2019-02-01 Thread Marc Schlaich
New submission from Marc Schlaich : Controlling a venv from the python.exe from another venv does not work since 3.7.2 on Windows. This is probably related to the change bpo-34977: venv on Windows will now use a python.exe redirector rather than copying the actual binaries from the base e

[issue35874] Clarify that the (...) convertor to PyArg_ParseTuple... accepts any sequence.

2019-02-01 Thread Antony Lee
New submission from Antony Lee : The documentation for the accepted types for each format unit in PyArg_ParseTuple (and its variants) is usually quite detailed; compare for example y* (bytes-like object) [Py_buffer] This variant on s* doesn’t accept Unicode objects, only bytes-like obj

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 80c5dfe74b4402d0a220c9227f262ec6fde1d7fc by Victor Stinner (Joannah Nanjekye) in branch 'master': bpo-35537: Add setsid parameter to os.posix_spawn() and os.posix_spawnp() (GH-11608) https://github.com/python/cpython/commit/80c5dfe74b4402d0a220

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11583 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11583, 11584 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11583, 11584, 11585 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11586, 11587 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11586 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11586, 11587, 11588 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1e39b83f24ffade3e0ca1a8004b461354f64ae08 by Victor Stinner in branch 'master': bpo-35537: Skip test_start_new_session() of posix_spawn (GH-11718) https://github.com/python/cpython/commit/1e39b83f24ffade3e0ca1a8004b461354f64ae08 -- ___

[issue35875] Crash - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-01 Thread Bangert
New submission from Bangert : Windows 7 x64 Visual Studio 2017 15.9.6 netframework 4.7 conda 3.6 x64 On project load both extensions algos and joint crash. -- components: Extension Modules files: Conda-Algos-Joint-Crash.jpg messages: 334663 nosy: AxelArnoldBangert priority: normal se

[issue35876] test_start_new_session for posix_spawnp fails

2019-02-01 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Example failure: https://buildbot.python.org/all/#/builders/141/builds/1142/steps/4/logs/stdio = ERROR: test_start_new_session (test.test_posix.TestPosixSpawn) --

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

2019-02-01 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : I thought to open a separate report itself in order to keep the original issue not cluttered with questions since it could be used for other docs. Sorry for my report there. Original report as per msg334341 . It seems parens are mandatory while us

[issue35876] test_start_new_session for posix_spawnp fails

2019-02-01 Thread STINNER Victor
STINNER Victor added the comment: I skipped the test with commit 1e39b83f24ffade3e0ca1a8004b461354f64ae08. But the test still needs to be fixed. Joannah Nanjekye wrote the new test and I'm mentoring her, so I would prefer that she fix the test. -- nosy: +nanjekyejoannah, vstinner _

[issue35875] Crash - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please add a minimal reproducer for this without any external dependencies? I couldn't see any references to the extensions you have mentioned in the title in CPython repo. Please add in a description over how this is a problem with CPython

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

2019-02-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +11589, 11590, 11591, 11592 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

2019-02-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +11589, 11590 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

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

2019-02-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +11589 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

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

2019-02-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +11589, 11590, 11592 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11593 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11593, 11594, 11595 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue35876] test_start_new_session for posix_spawnp fails

2019-02-01 Thread STINNER Victor
STINNER Victor added the comment: > Joannah Nanjekye wrote the new test and I'm mentoring her, so I would prefer > that she fix the test. Oh wait, when I looked at the test, it's way more complex to implement that what I expected! So I decided to rewrite the test myself. -- ___

[issue35876] test_start_new_session for posix_spawnp fails

2019-02-01 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +11597 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11593, 11594 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue35875] Crash - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-01 Thread STINNER Victor
STINNER Victor added the comment: You should try to get a traceback where the crash occurs using faulthandler: https://pythondev.readthedocs.io/debug_tools.html#faulthandler Other ways to get more info in case of a crash: https://pythondev.readthedocs.io/crash.html -- nosy: +vstinner

[issue35878] ast.c: end_col_offset may be used uninitialized in this function

2019-02-01 Thread STINNER Victor
New submission from STINNER Victor : https://buildbot.python.org/all/#builders/103/builds/2023 There are many "end_col_offset may be used uninitialized in this function" warnings. Example: In file included from Python/ast.c:7:0: Python/ast.c: In function ‘ast_for_funcdef_impl’: ./Include/Pytho

[issue35537] use os.posix_spawn in subprocess

2019-02-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11593, 11594, 11595, 11596 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue35879] test_type_comments leaks references

2019-02-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue35879] test_type_comments leaks references

2019-02-01 Thread STINNER Victor
New submission from STINNER Victor : https://buildbot.python.org/all/#/builders/1/builds/490 https://buildbot.python.org/all/#/builders/80/builds/499 test_type_comments leaked [37, 37, 37] references, sum=111 test_type_comments leaked [11, 12, 11] memory blocks, sum=34 Example: vstinner@apu$

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

2019-02-01 Thread Jurjen N.E. Bos
New submission from Jurjen N.E. Bos : The documentation of math.sin (and related trig functions) doesn't speak about backward error. In cPython, as far as I can see, there is no backward error at all, which is quite uncommon. This may vary between implementations; many math libraries of other

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

2019-02-01 Thread Mark Dickinson
Mark Dickinson added the comment: There's not a whole lot that we can usefully say about the accuracy of `math.sin`, since CPython just wraps C's sin function. So we just inherit the behaviour of the platform libm. I don't think I understand what you mean by "backward error" in this context.

[issue35861] test_named_expressions raises SyntaxWarning

2019-02-01 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- keywords: +patch pull_requests: +11598 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35861] test_named_expressions raises SyntaxWarning

2019-02-01 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- keywords: +patch, patch pull_requests: +11598, 11599 stage: needs patch -> patch review ___ Python tracker ___ _

[issue35861] test_named_expressions raises SyntaxWarning

2019-02-01 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- keywords: +patch, patch, patch pull_requests: +11598, 11599, 11600 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-02-01 Thread Eryk Sun
Eryk Sun added the comment: The __PYVENV_LAUNCHER__ variable gets set by each launcher instance. We get one launcher process for every level of nesting, and the last launcher to run sets the final value that will be seen by the real python.exe. Possibly the launcher could resolve the home va

[issue35863] email.headers wraps headers badly

2019-02-01 Thread Jon Ribbens
Jon Ribbens added the comment: I did read the RFCs. I suspect the [CFWS] in the msg-id is for the benefit of the references production which contains a list of msg-ids. The 78-character suggested line length limit is explicitly noted as being for display purposes, and therefore is of little

[issue35881] test_type_comments leaks references and memory blocks

2019-02-01 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : The refleak buildbots have detected that test_type_comments is leaking references. Example failure: https://buildbot.python.org/all/#/builders/1/builds/490/steps/4/logs/stdio test_type_comments leaked [37, 37, 37] references, sum=111 test_type_comme

[issue35875] Crash - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-01 Thread Bangert
Bangert added the comment: 1. This behaviour has no effect to/on my project. All works fine. 2. I removed only #algos.cp36-win_amd64.pyd C:\Users\SabrinaBangert\AppData\Local\conda\conda\envs\conda\Lib\site-packages\pandas\_libs #algos.cp36-win_amd64.pyd C:\Users\SabrinaBangert\AppData\Local\

[issue35875] Crash - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-01 Thread Bangert
Bangert added the comment: here is requirements.txt as a screenshot and the second half of the packages in conda 3.6 -- Added file: https://bugs.python.org/file48094/Conda-Algos-Joint-Crash-03.jpg ___ Python tracker

[issue35881] test_type_comments leaks references and memory blocks

2019-02-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This looks like the same as https://bugs.python.org/issue35879 -- nosy: +vstinner, xtreak ___ Python tracker ___ __

[issue35881] test_type_comments leaks references and memory blocks

2019-02-01 Thread STINNER Victor
STINNER Victor added the comment: > This looks like the same as https://bugs.python.org/issue35879 Yeah, as usual Pablo is way too slow: he posted the same bug 1h30 after me. -- ___ Python tracker _

[issue35879] test_type_comments leaks references

2019-02-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue35881] test_type_comments leaks references and memory blocks

2019-02-01 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> test_type_comments leaks references ___ Python tracker ___ __

[issue35881] test_type_comments leaks references and memory blocks

2019-02-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Yeah, as usual, Pablo is way too slow: he posted the same bug 1h30 after me. :( -- ___ Python tracker ___ _

[issue35879] test_type_comments leaks references

2019-02-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >From the duplicate (https://bugs.python.org/issue35881) : After some hours of debugging, I have identified the (possible) cause of the majority of the refleaks. The type_comments created in ast.c with new_type_comment() never reaches 0 reference co

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

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

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

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

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

[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

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

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

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

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

[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] https://github.com/python/cpython/commit/0bb4bdf0d93b301407774c4ffd6df54cff947df8#diff-a

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

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

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

[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 (https://pip

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

[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 ___ ___ Python-bugs-lis

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

[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

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

[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: https://mail.p

[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

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

[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 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
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... https://www.wolframalpha.com/input/?i=sin%282^500%29&assumption=%22TrigR

[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, patch, patch pull_requests: +11603, 11604, 11605 stage: needs patch -> patch review ___ Python tracker ___ ___

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

[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, &PyId_type_comment, value) == -1) goto failed; Py_DECREF(value); ast2obj_string inc

[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 = ast2obj_string(o->type_

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

[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: https://mail.python.or

[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: https://mail.python

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

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

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

[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) https://github.com/python/cpython/commit/3a32e3bf880f0842ac73d18285f5a1caa902a2

[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: https://mail.python

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

[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) https://github.com/python/cpython/commit/075de6cf6cb0f5f4d3711fc07f023a9a7a0

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

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

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

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

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

[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

[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

  1   2   >