[issue32986] multiprocessing, default assumption of Pool size unhelpful

2019-02-25 Thread Eryk Sun
Change by Eryk Sun : -- nosy: +eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36116] test_multiprocessing_spawn fails on AMD64 Windows8 3.x

2019-02-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: It seems that return code 3221225477 in Windows is: #define STATUS_ACCESS_VIOLATION ((NTSTATUS)0xC005L) so this is a segfault in the manager. -- nosy: +pitrou ___ Python tracker

[issue36116] test_multiprocessing_spawn fails on AMD64 Windows8 3.x

2019-02-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: It also fails on Windows 7: https://buildbot.python.org/all/#/builders/58/builds/1983/steps/3/logs/stdio -- ___ Python tracker ___

[issue36116] test_multiprocessing_spawn fails on AMD64 Windows8 3.x

2019-02-25 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : test test_multiprocessing_spawn failed test_import (test.test_multiprocessing_spawn._TestImportStar) ... ok == FAIL: test_mymanager_context

[issue36103] Increase shutil.COPY_BUFSIZE

2019-02-25 Thread Inada Naoki
Inada Naoki added the comment: > > desbma added the comment: > > If you do a benchmark by reading from a file, and then writing to /dev/null > several times, without clearing caches, you are measuring *only* the syscall > overhead: > * input data is read from the Linux page cache, not the

[issue36115] test_ctypes leaks references and memory blocks

2019-02-25 Thread miss-islington
miss-islington added the comment: New changeset d5a551c2694e32835bcdafc01d611f3227ca36b3 by Miss Islington (bot) (Benjamin Peterson) in branch 'master': closes bpo-36115: Fix some reference leaks in typeobject.c. (GH-12045)

[issue36106] resolve sinpi() name clash with libm

2019-02-25 Thread miss-islington
miss-islington added the comment: New changeset 4e6646fef5d2cc53422e4eca0b18201ed5a5c4b6 by Miss Islington (bot) in branch '3.7': bpo-36106: Resolve sinpi name clash with libm (IEEE-754 violation). (GH-12027) https://github.com/python/cpython/commit/4e6646fef5d2cc53422e4eca0b18201ed5a5c4b6

[issue36115] test_ctypes leaks references and memory blocks

2019-02-25 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +12072 stage: -> patch review ___ Python tracker ___ ___

[issue36115] test_ctypes leaks references and memory blocks

2019-02-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: PR12045 fixes this -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36114] test_multiprocessing_spawn changes the execution environment

2019-02-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg336620 ___ Python tracker ___ ___ Python-bugs-list

[issue36114] test_multiprocessing_spawn changes the execution environment

2019-02-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: PR12045 fixes this -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36115] test_ctypes leaks references and memory blocks

2019-02-25 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : https://buildbot.python.org/all/#/builders/1/builds/515 OK (skipped=89) . test_ctypes leaked [72, 72, 72] references, sum=216 test_ctypes leaked [26, 26, 26] memory blocks, sum=78 2 tests failed again: test_ctypes test_inspect == Tests result:

[issue36114] test_multiprocessing_spawn changes the execution environment

2019-02-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +koobs -pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36114] test_multiprocessing_spawn changes the execution environment

2019-02-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36106] resolve sinpi() name clash with libm

2019-02-25 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +12071 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36106] resolve sinpi() name clash with libm

2019-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f57cd8288dbe6aba99c057f37ad6d58f8db75350 by Serhiy Storchaka (Dima Pasechnik) in branch 'master': bpo-36106: Resolve sinpi name clash with libm (IEEE-754 violation). (GH-12027)

[issue36111] Non-zero `offset`s are no longer acceptable with SEEK_END/SEEK_CUR implementation of `seek` in python3 when in text mode, breaking py 2.x behavior/POSIX

2019-02-25 Thread Inada Naoki
Inada Naoki added the comment: If you want byte IO, you can use "rb" mode. You can seek on it. -- nosy: +inada.naoki ___ Python tracker ___

[issue36111] Non-zero `offset`s are no longer acceptable with SEEK_END/SEEK_CUR implementation of `seek` in python3 when in text mode, breaking py 2.x behavior/POSIX

2019-02-25 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36114] test_multiprocessing_spawn changes the execution environment

2019-02-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Another failure: https://buildbot.python.org/all/#/builders/168/builds/633 -- ___ Python tracker ___

[issue36114] test_multiprocessing_spawn changes the execution environment

2019-02-25 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : OK (skipped=32) Warning -- files was modified by test_multiprocessing_spawn Before: [] After: ['python.core'] https://buildbot.python.org/all/#/builders/168/builds/632/steps/4/logs/stdio -- components: Tests messages: 336615 nosy:

[issue36109] test_descr fails on AMD64 Windows8 3.x buildbots

2019-02-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: A lot of buildbots were failing for this test so a lot of them will become green after ff3d39faa8aa28308cc5eae6843eaac514da8fd8. -- ___ Python tracker

[issue36109] test_descr fails on AMD64 Windows8 3.x buildbots

2019-02-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36109] test_descr fails on AMD64 Windows8 3.x buildbots

2019-02-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ff3d39faa8aa28308cc5eae6843eaac514da8fd8 by Pablo Galindo (Serhiy Storchaka) in branch 'master': bpo-36109: Fix random test_descr failure. (GH-12044) https://github.com/python/cpython/commit/ff3d39faa8aa28308cc5eae6843eaac514da8fd8

[issue36109] test_descr fails on AMD64 Windows8 3.x buildbots

2019-02-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ok, actually this turns to be much easier: Sometimes __eq__ was also called twice but now as we use PyDict_GetItemWithError instead of PyDict_GetItem, if the extra __eq__ happens as a consequence of a dict lookup the error is ignored so that was the

[issue13497] Fix for broken nice test on non-broken platforms with pedantic compilers

2019-02-25 Thread miss-islington
miss-islington added the comment: New changeset 2055ebb940a737b1375435209c37eae535f062f9 by Miss Islington (bot) in branch '3.7': closes bpo-13497: Fix `broken nice` configure test. (GH-12041) https://github.com/python/cpython/commit/2055ebb940a737b1375435209c37eae535f062f9 --

[issue13497] Fix for broken nice test on non-broken platforms with pedantic compilers

2019-02-25 Thread miss-islington
miss-islington added the comment: New changeset a0f656d310bdd086f1e186bc7a4174e4068f by Miss Islington (bot) in branch '2.7': closes bpo-13497: Fix `broken nice` configure test. (GH-12041) https://github.com/python/cpython/commit/a0f656d310bdd086f1e186bc7a4174e4068f --

[issue36109] test_descr fails on AMD64 Windows8 3.x buildbots

2019-02-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Although 12044 fixes the problem, something a bit more fundamental may have changed. I have spent time investigating why this is happening and the problem is that in the line: self.assertEqual(c.attr, 1) Evil.__eq__ is invoked twice where before it

[issue36109] test_descr fails on AMD64 Windows8 3.x buildbots

2019-02-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Although PR12004 fixes the problem, something a bit more fundamental may have changed. I have spent time investigating why this is happening and the problem is that in the line: self.assertEqual(c.attr, 1) Evil.__eq__ is invoked twice where before

[issue36109] test_descr fails on AMD64 Windows8 3.x buildbots

2019-02-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg336608 ___ Python tracker ___ ___ Python-bugs-list

[issue36109] test_descr fails on AMD64 Windows8 3.x buildbots

2019-02-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +12070 stage: -> patch review ___ Python tracker ___ ___

[issue13497] Fix for broken nice test on non-broken platforms with pedantic compilers

2019-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +12069 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13497] Fix for broken nice test on non-broken platforms with pedantic compilers

2019-02-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 90c6facebd5666fec85f125ee2795b48b30319a4 by Benjamin Peterson (ngie-eign) in branch 'master': closes bpo-13497: Fix `broken nice` configure test. (GH-12041) https://github.com/python/cpython/commit/90c6facebd5666fec85f125ee2795b48b30319a4

[issue13497] Fix for broken nice test on non-broken platforms with pedantic compilers

2019-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +12068 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36111] Non-zero `offset`s are no longer acceptable with SEEK_END/SEEK_CUR implementation of `seek` in python3 when in text mode, breaking py 2.x behavior/POSIX

2019-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This does not have relation to POSIX, since POSIX says nothing about Unicode files. "Text mode" in POSIX means binary files with converted newlines. This mode is not supported in Python 3. -- nosy: +serhiy.storchaka

[issue36113] Problem With SciPy Computation of sigma

2019-02-25 Thread Berker Peksag
Berker Peksag added the comment: This tracker is for issues with the Python programming language and its standard library. SciPy is not part of the standard library. Please use SciPy project's support channels to get help for your problem. Thank you! -- nosy: +berker.peksag

[issue36113] Problem With SciPy Computation of sigma

2019-02-25 Thread N. Srinivasan
New submission from N. Srinivasan : """ Construct normal probability plot """ import math import scipy.stats as ss import numpy as np import matplotlib.pyplot as plt import seaborn as sns import prettytable from random import seed seed(100) mu = 0.0 sigma = 1.0 x =

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-02-25 Thread Eric Snow
Eric Snow added the comment: ...so it doesn't appear that my PR introduces a performance regression. -- ___ Python tracker ___ ___

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-02-25 Thread Eric Snow
Eric Snow added the comment: Here's what I did (more or less): $ python3 -m pip install --user perf $ python3 -m perf system tune $ git clone g...@github.com:python/performance.git $ git clone g...@github.com:python/cpython.git $ cd cpython $ git checkout

[issue36111] Non-zero `offset`s are no longer acceptable with SEEK_END/SEEK_CUR implementation of `seek` in python3 when in text mode, breaking py 2.x behavior/POSIX

2019-02-25 Thread Enji Cooper
Change by Enji Cooper : -- title: Non-zero `offset`s are no longer acceptable with implementation of `seek` in some cases with python3 when in text mode; should be per POSIX -> Non-zero `offset`s are no longer acceptable with SEEK_END/SEEK_CUR implementation of `seek` in python3

[issue36111] Non-zero `offset`s are no longer acceptable with implementation of `seek` in some cases with python3 when in text mode; should be per POSIX

2019-02-25 Thread Enji Cooper
Change by Enji Cooper : -- title: Negative `offset` values are no longer acceptable with implementation of `seek` with python3 when in text mode; should be per POSIX -> Non-zero `offset`s are no longer acceptable with implementation of `seek` in some cases with python3 when in text

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2019-02-25 Thread Jarry Shaw
Jarry Shaw added the comment: Chris' patch works on macOS 10.14 (Mojave); but after it terminates, tty attributes are not restored (new-lines are missing). btw, I've implemented a workaround library with solution through either `ps` command or `psutil` package, see `ptyng` on PyPI.

[issue35512] patch.dict resolves in_dict eagerly (should be late resolved)

2019-02-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing this as resolved. @jaraco this just made it to 3.8.0 alpha 2, feel free to reopen this if needed. Thanks Mario and Chris for review and merge :) -- ___ Python tracker

[issue35512] patch.dict resolves in_dict eagerly (should be late resolved)

2019-02-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36075] python 2to3 conversion tool is generating file with extra line for every input line

2019-02-25 Thread Saba Kauser
Saba Kauser added the comment: Did anyone get a chance to look at my case? Thanks, Saba. -- ___ Python tracker ___ ___

[issue34785] pty.spawn -- auto-termination after child process is dead (a zombie)

2019-02-25 Thread Jarry Shaw
Jarry Shaw added the comment: This issue is duplicated with issue26228, sorry. -- stage: patch review -> resolved status: pending -> closed ___ Python tracker ___

[issue36112] os.path.realpath on windows and substed drives

2019-02-25 Thread Eryk Sun
Eryk Sun added the comment: In Windows, realpath is currently an alias for abspath. Issue 14094 has a pending PR that implements realpath, but it's waiting on improved tests and final approval. I'm afraid it won't make it into 3.8. I suggest using the resolve() method of a pathlib.Path. For

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-02-25 Thread Eric Snow
Eric Snow added the comment: At least, it *might* be a performance regression. Here are the two commits I tried: after: ef4ac967e2f3a9a18330cc6abe14adb4bc3d0465 (PR #11617, from this issue) before: 463572c8beb59fd9d6850440af48a5c5f4c0c0c9 (the one right before) After building each (a

[issue36102] TestSharedMemory fails on AMD64 FreeBSD CURRENT Shared 3.x

2019-02-25 Thread Eryk Sun
Eryk Sun added the comment: > Given that this requirement is not universal and because a leading > slash controls other behaviors on platforms like Windows Forward slash has no special meaning anywhere in the names of NT objects, such as memory Section objects (aka file-mapping objects) and

[issue13497] Fix for broken nice test on non-broken platforms with pedantic compilers

2019-02-25 Thread Enji Cooper
Change by Enji Cooper : -- pull_requests: +12067 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: > If others agree that it is sufficiently easy, we can assign > the task to Cheryl. It's only easy if we clearly specify what we want to occur. Deciding what the right behavior should be is not a beginner skill. Proposed spec: ''' Modify the API

[issue8747] Autoconf tests in python not portably correct

2019-02-25 Thread Enji Cooper
Enji Cooper added the comment: This issue has been superseded by other work. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue34791] xml package does not obey sys.flags.ignore_environment

2019-02-25 Thread Larry Hastings
Larry Hastings added the comment: New changeset 7cd08cf62086a8a2d84fd825dfcd8bfe33bf1986 by larryhastings (Victor Stinner) in branch '3.5': bpo-34791: xml package obeys ignore env flags (GH-9544) (#11871) https://github.com/python/cpython/commit/7cd08cf62086a8a2d84fd825dfcd8bfe33bf1986

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

2019-02-25 Thread Eric Snow
Eric Snow added the comment: On Mon, Feb 25, 2019 at 3:02 AM STINNER Victor wrote: > But that's where I suggested to test "popular C extensions" with a C API > change before merging it. It's ok if issues are discovered later, but the > author of backward incompatible C API changes should

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

2019-02-25 Thread Eric Snow
Eric Snow added the comment: @Armin, thanks for fixing things on your end so quickly. :) Adding PyInterpreterState.dict and a public getter function (a la PyThreadState) is probably fine. I'm just not sure how that relates to the problem with cffi's use of the "builtins" field. If it

[issue34656] [CVE-2018-20406] memory exhaustion in Modules/_pickle.c:1393

2019-02-25 Thread Larry Hastings
Larry Hastings added the comment: New changeset ef33dd6036aafbd3f06c1d56e2b1a81dae3da63c by larryhastings (Victor Stinner) in branch '3.5': closes bpo-34656: Avoid relying on signed overflow in _pickle memos. (GH-9261) (#11869)

[issue36111] Negative `offset` values are no longer acceptable with implementation of `seek` with python3 when in text mode; should be per POSIX

2019-02-25 Thread Enji Cooper
Change by Enji Cooper : -- versions: +Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue36111] Negative `offset` values are no longer acceptable with implementation of `seek` with python3 when in text mode; should be per POSIX

2019-02-25 Thread Enji Cooper
Enji Cooper added the comment: Opening and seeking using SEEK_END worked in text mode with python 2.7. I'm not terribly sure why 3.x should depart from this behavior: >>> fp = open("configure", "rt"); fp.seek(-100, os.SEEK_END) >>> fp.tell() 501076 --

[issue35746] [ssl][CVE-2019-5010] TALOS-2018-0758 Denial of Service

2019-02-25 Thread Larry Hastings
Larry Hastings added the comment: New changeset efec7631edf3b9480dc3988c97ffef94df8800da by larryhastings (Victor Stinner) in branch '3.5': bpo-35746: Fix segfault in ssl's cert parser (GH-11569) (#11867) https://github.com/python/cpython/commit/efec7631edf3b9480dc3988c97ffef94df8800da

[issue24643] VS 2015 pyconfig.h #define timezone _timezone conflicts with timeb.h

2019-02-25 Thread miss-islington
miss-islington added the comment: New changeset 0b3019a02e60171e9b7edb261e1234109001819c by Miss Islington (bot) in branch '3.7': bpo-24643: Fix "GH-define timezone _timezone" clashes on Windows (GH-12019) https://github.com/python/cpython/commit/0b3019a02e60171e9b7edb261e1234109001819c

[issue35033] Column or row spanning cells are not implemented.

2019-02-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Apologies, I didn't realize it would be in the major version; I checked since there had been minor release versions since this ticket. I'll check again once the major release is out. Thanks! -- ___ Python

[issue35802] os.stat / os.lstat always present, but code checks hastattr(os, 'stat') / hasattr(os, 'lstat')

2019-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: A BB failed. Looks like it's unrelated with this change: https://buildbot.python.org/all/#/builders/99/builds/2198 -- nosy: +giampaolo.rodola ___ Python tracker

[issue24643] VS 2015 pyconfig.h #define timezone _timezone conflicts with timeb.h

2019-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +12066 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35033] Column or row spanning cells are not implemented.

2019-02-25 Thread Julien Palard
Julien Palard added the comment: IIRC this will be released in the next major sphinx version, planned for around march. -- ___ Python tracker ___

[issue24643] VS 2015 pyconfig.h #define timezone _timezone conflicts with timeb.h

2019-02-25 Thread Steve Dower
Steve Dower added the comment: New changeset 6673decfa0fb078f60587f5cb5e98460eea137c2 by Steve Dower (Zackery Spytz) in branch 'master': bpo-24643: Fix "#define timezone _timezone" clashes on Windows (GH-12019) https://github.com/python/cpython/commit/6673decfa0fb078f60587f5cb5e98460eea137c2

[issue35033] Column or row spanning cells are not implemented.

2019-02-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: > https://github.com/sphinx-doc/sphinx/pull/5559 has been merged, let's wait > for a release of Sphinx and we'll be able to build Python 3.8 documentation > as text again. I tried running the sphinx-build command using Sphinx 1.8.4 and I got the same

[issue25337] weakref.finalize documentation refers to old interpreter shutdown behavior

2019-02-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Adding @pitrou to the nosylist as he implemented PEP442 in issue 18112. If he agrees with the proposed change, then I believe this can be marked as 'easy'. -- nosy: +cheryl.sabella, pitrou versions: +Python 3.7, Python 3.8 -Python 3.4, Python 3.5,

[issue36046] support dropping privileges when running subprocesses

2019-02-25 Thread Patrick McLean
Patrick McLean added the comment: Alexey, here are my responses to your points: 1) This is intentional, this is for dropping privileges before running some (possibly untrusted) command, we do not want to leave a path for the subprocess to gain root back. If there is a subprocess that needs

[issue24235] ABCs don't fail metaclass instantiation

2019-02-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Closing as a duplicate as Luiz suggested. -- nosy: +cheryl.sabella resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> abstract class instantiable when subclassing built-in types

[issue34791] xml package does not obey sys.flags.ignore_environment

2019-02-25 Thread Larry Hastings
Larry Hastings added the comment: New changeset 765d333512e9b58da4a4431595a0e81517ef0443 by larryhastings (Victor Stinner) in branch '3.4': bpo-34791: xml package obeys ignore env flags (GH-9544) (#11872) https://github.com/python/cpython/commit/765d333512e9b58da4a4431595a0e81517ef0443

[issue36110] test_descr: test_vicious_descriptor_nonsense() fails randomly

2019-02-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I was faster this time ;) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36110] test_descr: test_vicious_descriptor_nonsense() fails randomly

2019-02-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Duplicate of https://bugs.python.org/issue36109 -- nosy: +pablogsal ___ Python tracker ___

[issue36110] test_descr: test_vicious_descriptor_nonsense() fails randomly

2019-02-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___

[issue36112] os.path.realpath on windows and substed drives

2019-02-25 Thread Totte Karlsson
New submission from Totte Karlsson : Python's os.path.realpath, when used with a substed drive on the Windows platform, don't resolve the substed path to the *real* path. For example creating a substed drive like this: subst z: C:\Users\Public\Desktop and checking for the real path in

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: What do people think about leaving this as an "Easy First Issue" for the sprint? If others agree that it is sufficiently easy, we can assign the task to Cheryl. It should be fairly easy: mode calls an internal function _counts which is not public and not

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

2019-02-25 Thread Larry Hastings
Larry Hastings added the comment: New changeset 8bcbc7896d1fe1c289bae339d408fdf1472a00fa by larryhastings (Victor Stinner) in branch '3.5': bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) (#11874)

[issue36102] TestSharedMemory fails on AMD64 FreeBSD CURRENT Shared 3.x

2019-02-25 Thread STINNER Victor
STINNER Victor added the comment: FYI the test also failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.x: https://buildbot.python.org/all/#/builders/167/builds/600 I will keep on eye on this buildbot worker as well ;-) -- ___ Python tracker

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: Executive summary: - let's change the behaviour of mode to return a single mode rather than raise an exception if there are multimodes; - and let's do it without a depreciation period. Further comments in no particular order: I agree that in practice the

[issue35802] os.stat / os.lstat always present, but code checks hastattr(os, 'stat') / hasattr(os, 'lstat')

2019-02-25 Thread Anthony Sottile
Change by Anthony Sottile : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue36102] TestSharedMemory fails on AMD64 FreeBSD CURRENT Shared 3.x

2019-02-25 Thread Davin Potts
Davin Potts added the comment: Closing. Thank you Giampaolo for jumping in so quickly to review! Thank you Victor for catching this on the buildbot. Though what is this talk of "_if_ the color changes"? ;) -- resolution: -> fixed stage: patch review -> resolved status: open ->

[issue36111] Negative `offset` values are no longer acceptable with implementation of `seek` with python3 when in text mode; should be per POSIX

2019-02-25 Thread Enji Cooper
Change by Enji Cooper : -- title: Negative `offset` values are no longer acceptable with implementation of `seek` with python3; should be per POSIX -> Negative `offset` values are no longer acceptable with implementation of `seek` with python3 when in text mode; should be per POSIX

[issue34656] [CVE-2018-20406] memory exhaustion in Modules/_pickle.c:1393

2019-02-25 Thread Larry Hastings
Larry Hastings added the comment: New changeset 4b42d575bf0fb01192b3ec54b7e224b238691527 by larryhastings (Victor Stinner) in branch '3.4': [3.4] bpo-34656: Avoid relying on signed overflow in _pickle memos (GH-9261) (#11870)

[issue36111] Negative `offset` values are no longer acceptable with implementation of `seek` with python3; should be per POSIX

2019-02-25 Thread Enji Cooper
Enji Cooper added the comment: ?! Being blunt: why should opening a file in binary vs text mode matter? POSIX doesn't make this distinction. Per the pydoc (https://docs.python.org/2/library/functions.html#open): > The default is to use text mode, which may convert '\n' characters to a >

[issue36102] TestSharedMemory fails on AMD64 FreeBSD CURRENT Shared 3.x

2019-02-25 Thread Davin Potts
Davin Potts added the comment: New changeset aadef2b41600cb6a4f845cdc4cea001c916d8745 by Davin Potts in branch 'master': bpo-36102: Prepend slash to all POSIX shared memory block names (#12036) https://github.com/python/cpython/commit/aadef2b41600cb6a4f845cdc4cea001c916d8745 --

[issue36102] TestSharedMemory fails on AMD64 FreeBSD CURRENT Shared 3.x

2019-02-25 Thread Rohit travels and tours
Change by Rohit travels and tours : -- type: -> resource usage ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36111] Negative `offset` values are no longer acceptable with implementation of `seek` with python3; should be per POSIX

2019-02-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: I believe you will find that this is because you opened the file in text mode, which means Unicode, not bytes. If you open it in binary mode, the POSIX spec applies: py> fp = open("sample", "rb"); fp.seek(-100, os.SEEK_END) 350 Supported values for

[issue36111] Negative `offset` values are no longer acceptable with implementation of `seek` with python3; should be per POSIX

2019-02-25 Thread Enji Cooper
New submission from Enji Cooper : I tried using os.SEEK_END in a technical interview, but unfortunately, that didn't work with python 3.x: pinklady:cpython ngie$ python3 Python 3.7.2 (default, Feb 12 2019, 08:15:36) [Clang 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "copyright",

[issue36030] add internal API function to create tuple without items array initialization

2019-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset f1b9abe35f75393351b3d954a392122a3f8f6951 by Victor Stinner (Sergey Fedoseev) in branch 'master': bpo-36030: Remove _PyStack_AsTuple() and _PyStack_AsTupleSlice() (GH-12032)

[issue36109] test_descr fails on AMD64 Windows8 3.x buildbots

2019-02-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: It seems that this is a race condition created as a consequence of: https://github.com/python/cpython/pull/2/files -- nosy: +serhiy.storchaka ___ Python tracker

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-02-25 Thread STINNER Victor
STINNER Victor added the comment: It seems like the change introduced a regression: bpo-36110. -- ___ Python tracker ___ ___

[issue36110] test_descr: test_vicious_descriptor_nonsense() fails randomly

2019-02-25 Thread STINNER Victor
New submission from STINNER Victor : test_vicious_descriptor_nonsense() started to fails randomly: $ ./python -m test -j0 -F test_descr test_descr test_descr test_descr test_descr test_descr Run tests in parallel using 10 child processes 0:00:03 load avg: 1.24 [1/6] test_descr passed 0:00:03

[issue36102] TestSharedMemory fails on AMD64 FreeBSD CURRENT Shared 3.x

2019-02-25 Thread STINNER Victor
STINNER Victor added the comment: Apply the patch, we will see if the buildbot color changes :-) -- ___ Python tracker ___ ___

[issue35746] [ssl][CVE-2019-5010] TALOS-2018-0758 Denial of Service

2019-02-25 Thread Larry Hastings
Larry Hastings added the comment: New changeset 6c655ce34ae54adb8eef22b73108e22cc381cb8d by larryhastings (Victor Stinner) in branch '3.4': bpo-35746: Fix segfault in ssl's cert parser (GH-11569) (#11868) https://github.com/python/cpython/commit/6c655ce34ae54adb8eef22b73108e22cc381cb8d

[issue36109] test_descr fails on AMD64 Windows8 3.x buildbots

2019-02-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I can reproduce this locally. How has this not being spotted by the CI: ❯ ./python.exe -m test test_descr Run tests sequentially 0:00:00 load avg: 3.82 [1/1] test_descr test test_descr failed -- Traceback (most recent call last): File

[issue20177] Derby #8: Convert 28 sites to Argument Clinic across 2 files

2019-02-25 Thread Nikolaus Rath
Nikolaus Rath added the comment: Sorry, no. I have long lost context and interest in this. -- ___ Python tracker ___ ___

[issue35512] patch.dict resolves in_dict eagerly (should be late resolved)

2019-02-25 Thread Chris Withers
Chris Withers added the comment: New changeset ea199b90bb61866cd3c2f154341d1eb0d5c4a710 by Chris Withers (Miss Islington (bot)) in branch '3.7': bpo-35512: Resolve string target to patch.dict decorator during function call GHGH-12000 (#12021)

[issue36109] test_descr fails on AMD64 Windows8 3.x buildbots

2019-02-25 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : https://buildbot.python.org/all/#/builders/32/builds/2198 == ERROR: test_vicious_descriptor_nonsense (test.test_descr.ClassPropertiesAndMethods)

[issue36102] TestSharedMemory fails on AMD64 FreeBSD CURRENT Shared 3.x

2019-02-25 Thread Davin Potts
Change by Davin Potts : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36102] TestSharedMemory fails on AMD64 FreeBSD CURRENT Shared 3.x

2019-02-25 Thread Davin Potts
Davin Potts added the comment: I have locally tested GH-12036 on all 5 of the aforementioned OSes and all are made happy by the patch. Victor: If we want to go ahead and apply this patch right away to hopefully make the FreeBSD buildbot go green, the nature of this change is sufficiently

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2019-02-25 Thread Larry Hastings
Larry Hastings added the comment: New changeset 41b48e71ac8a71f56694b548f118bd20ce203410 by larryhastings (stratakis) in branch '3.5': [3.5] bpo-34623: Use XML_SetHashSalt in _elementtree (#9933) https://github.com/python/cpython/commit/41b48e71ac8a71f56694b548f118bd20ce203410 --

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2019-02-25 Thread Larry Hastings
Larry Hastings added the comment: New changeset d16eaf36795da48b930b80b20d3805bc27820712 by larryhastings (stratakis) in branch '3.4': [3.4] bpo-34623: Use XML_SetHashSalt in _elementtree (#9953) https://github.com/python/cpython/commit/d16eaf36795da48b930b80b20d3805bc27820712 --

  1   2   >