[issue35436] Add missing PyErr_NoMemory() calls

2018-12-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10257 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35436] Add missing PyErr_NoMemory() calls

2018-12-07 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +10256 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35431] The math module should provide a function for computing binomial coefficients

2018-12-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Mathematically, `binomial(n, k)` for `k > n` is defined as 0. -- ___ Python tracker ___ ___

[issue34977] Release Windows Store app containing Python

2018-12-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10255 stage: commit review -> patch review ___ Python tracker ___ ___

[issue35431] The math module should provide a function for computing binomial coefficients

2018-12-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that it is better to add this function in a new module imath, which could contain other integer functions: factorial, gcs, as_integer_ration, isqrt, isprime, primes. See https://mail.python.org/pipermail/python-ideas/2018-July/051917.html

[issue35437] Almost all Windows buildbots are failing to compile

2018-12-07 Thread STINNER Victor
STINNER Victor added the comment: > https://buildbot.python.org/all/#/builders/17/builds/494 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 10.0.15063.0 was not found. Install

[issue35431] The math module should provide a function for computing binomial coefficients

2018-12-07 Thread kellerfuchs
kellerfuchs added the comment: @Raymond Hettinger: > it's worth considering whether the function should be called "binomial", > "choose", "combinations", or "comb" Here goes the bike shed! :) Kidding, this is a pretty important ergonomics/discoverability concern, and I hadn't given it much

[issue35437] Almost all Windows buildbots are failing to compile

2018-12-07 Thread STINNER Victor
STINNER Victor added the comment: > https://buildbot.python.org/all/#/builders/121/builds/782 41>d:\buildarea\3.7.bolen-windows10\build\pc\python_uwp.cpp(9): fatal error C1083: Cannot open include file: 'winrt\Windows.ApplicationModel.h': No such file or directory

[issue35431] The math module should provide a function for computing binomial coefficients

2018-12-07 Thread kellerfuchs
Change by kellerfuchs : -- keywords: +patch pull_requests: +10253 stage: -> patch review ___ Python tracker ___ ___

[issue35428] xml.etree.ElementTree.tostring violates W3 standards allowing encoding='unicode' without error

2018-12-07 Thread Stefan Behnel
Stefan Behnel added the comment: What exactly is the problem here? encoding='unicode' will never appear in the XML declaration, and thus will never be "presented to XML processors". It is up to the user to deal with encodings in this case, which I think is fine. It's them who asked for the

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2018-12-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10252 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35411] FTP tests of test_urllib2net fail on Travis CI: 425 Security: Bad IP connecting.

2018-12-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10251 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35437] Almost all Windows buildbots are failing to compile

2018-12-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: More broken buildbots: https://buildbot.python.org/all/#/builders/32/builds/1867 -- ___ Python tracker ___

[issue35426] test_signal.test_interprocess_signal() race condition

2018-12-07 Thread STINNER Victor
STINNER Victor added the comment: I forgot the URL to the build: https://buildbot.python.org/all/#/builders/170/builds/175 -- ___ Python tracker ___

[issue35436] Add missing PyErr_NoMemory() calls

2018-12-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4c49da0cb7434c676d70b9ccf38aca82ac0d64a9 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-35436: Add missing PyErr_NoMemory() calls and other minor bug fixes. (GH-11015)

[issue35437] Almost all Windows buildbots are failing to compile

2018-12-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Reverting that commit seem to work: https://buildbot.python.org/all/#/builders/91/builds/9 -- ___ Python tracker ___

[issue35346] Modernize Lib/platform.py code

2018-12-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3a521f0b6167628f975c773b56c7daf8d33d6f40 by Victor Stinner in branch 'master': bpo-35346, platform: replace os.popen() with subprocess (GH-10786) https://github.com/python/cpython/commit/3a521f0b6167628f975c773b56c7daf8d33d6f40 --

[issue35437] Almost all Windows buildbots are failing to compile

2018-12-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: https://github.com/python/cpython/commit/468a15aaf9206448a744fc5eab3fc21f51966aad -- versions: -Python 3.6 ___ Python tracker ___

[issue35437] Almost all Windows buildbots are failing to compile

2018-12-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +ned.deily versions: +Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue35437] Almost all Windows buildbots are failing to compile

2018-12-07 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Almost all Windows buildbots are failing to compile Python: https://buildbot.python.org/all/#/builders/130/builds/525 https://buildbot.python.org/all/#/builders/113/builds/825 https://buildbot.python.org/all/#/builders/121/builds/782

[issue35411] FTP tests of test_urllib2net fail on Travis CI: 425 Security: Bad IP connecting.

2018-12-07 Thread STINNER Victor
STINNER Victor added the comment: > test_urllib2net still fails on Travis CI. See for example > https://api.travis-ci.org/v3/job/464509821/log.txt. Do you have a reference to the pull request? "ERROR: test_ftp_default_timeout (test.test_urllib2net.TimeoutTest)" It seems like Travis CI ran

[issue35431] The math module should provide a function for computing binomial coefficients

2018-12-07 Thread Mark Dickinson
Mark Dickinson added the comment: There's also the question of what inputs should be considered valid: `binomial(n, k)` for `k > n` should either return 0 or be a `ValueError`, but which? Same question for `k < 0`. There's a symmetry argument for allowing `k < 0` if you allow `k > n`, but I

[issue35431] The math module should provide a function for computing binomial coefficients

2018-12-07 Thread Mark Dickinson
Mark Dickinson added the comment: For some ranges of inputs, it may make sense to use the apparently naive implementation `factorial(n) // factorial(k) // factorial(n - k)`. The current factorial implementation is significantly optimised, and using it directly may be faster than using an

[issue35435] Documentation of 3.3 is available

2018-12-07 Thread Julien Palard
Julien Palard added the comment: > I expect that the only thing we could do is put a prominent note at the top > of each page "This is an unsupported version of the docs, for the latest > version see blah blah blah" and link to the most recent version. I'm +1 on this, and it can even help

<    1   2