[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread miss-islington
miss-islington added the comment: New changeset 8b5d191386350d28a0f20283dcb366cf50f82b97 by Miss Islington (bot) in branch '3.6': bpo-33967: Fix wrong use of assertRaises (GH-8306) https://github.com/python/cpython/commit/8b5d191386350d28a0f20283dcb366cf50f82b97 --

[issue32545] Unable to install Python 3.7.0a4 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2018-07-16 Thread Amin Radjabov
Amin Radjabov added the comment: yes I try to install to all user, but I have no any other python installations in my OS. I succeeded to install it to just me. -- ___ Python tracker

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread miss-islington
miss-islington added the comment: New changeset 892df9d15aae08d4033faeb34698e3c550c85854 by Miss Islington (bot) in branch '3.7': bpo-33967: Fix wrong use of assertRaises (GH-8306) https://github.com/python/cpython/commit/892df9d15aae08d4033faeb34698e3c550c85854 --

[issue34134] multiprocessing memory huge usage

2018-07-16 Thread INADA Naoki
INADA Naoki added the comment: Do you imap or imap_unorderd? They are intended for use with iterator, including generator. -- nosy: +inada.naoki ___ Python tracker ___

[issue34135] The results of time.tzname print broken.

2018-07-16 Thread 김태환
New submission from 김태환 : When I call time.tzname at Korean Windows. (Microsoft Windows 10 Pro(10.0.17134 Build 17134)) It prints like below. This problem occurred Python 2 and 3 both. >>> import time >>> time.tzname ('´ëÇѹα¹ Ç¥ÁؽÃ', '´ëÇѹα¹ Àϱ¤ Àý¾à ½Ã°£') I used chardet for getting

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +7844 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +7843 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread INADA Naoki
INADA Naoki added the comment: New changeset 56d8f57b83a37b05a6f2fbc3e141bbc1ba6cb3a2 by INADA Naoki in branch 'master': bpo-33967: Fix wrong use of assertRaises (GH-8306) https://github.com/python/cpython/commit/56d8f57b83a37b05a6f2fbc3e141bbc1ba6cb3a2 --

[issue34134] multiprocessing memory huge usage

2018-07-16 Thread Windson Yang
New submission from Windson Yang : I'm using macOX and I got huge memory usage when using generator with multiprocess. (see file) I think this is because (https://github.com/python/cpython/blob/master/Lib/multiprocessing/pool.py#L383) if not hasattr(iterable, '__len__'):

[issue34132] Obscure netrc parser "bug"

2018-07-16 Thread Xiang Zhang
Change by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34132] Obscure netrc parser "bug"

2018-07-16 Thread bbayles
Change by bbayles : -- nosy: +bbayles ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34123] ambiguous documentation for dict.popitem

2018-07-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34123] ambiguous documentation for dict.popitem

2018-07-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset bfa8a358e2cec40484c4655138ca3c6b10f8462a by Raymond Hettinger (Miss Islington (bot)) in branch '3.7': bpo-34123: Fix missed documentation update for dict.popitem(). (GH-8292) (GH#8307)

[issue34118] Fix some class entries in 'Built-in Functions'

2018-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: SO user abarnert, who I presume is bpo abarnert (Andrew Barnert) claims that "Create a new dictionary. The dict object is the dictionary class." sounds a bit like dict returns the dictionary class. It is different from "Return a new set object, ... . set

[issue31342] test.bisect module causes tests to fail

2018-07-16 Thread Neil Schemenauer
Neil Schemenauer added the comment: Yes, it looks like the same issue as bpo-29512. Renaming test.bisect is the simplest solution. I have trained myself to run "python -m test.regrtest " so this issue doesn't affect me any more. However, I think it was a trap that will catch some people.

[issue34133] ValueError should not be documented as being restricted to only "a built-in operation or function"

2018-07-16 Thread Nathaniel Manista
New submission from Nathaniel Manista : The documentation for ValueError currently describes it as being "Raised when a built-in operation or function receives an argument that has the right type but an inappropriate value, and the situation is not described by a more precise exception such

[issue34130] test_signal: test_warn_on_full_buffer() failed on AppVeyor

2018-07-16 Thread Nathaniel Smith
Nathaniel Smith added the comment: Huh, that's weird. My first thought was some kind of race condition, but... raise_signal uses raise(), which on Windows should be invoking the signal handler synchronously, so the warning should definitely be printed before raise_signal() returns. Could

[issue34123] ambiguous documentation for dict.popitem

2018-07-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 01b7d5898262dbe0e9edb321b3be9a34da196f6f by Raymond Hettinger in branch 'master': bpo-34123: Fix missed documentation update for dict.popitem(). (GH-8292) https://github.com/python/cpython/commit/01b7d5898262dbe0e9edb321b3be9a34da196f6f

[issue34123] ambiguous documentation for dict.popitem

2018-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +7842 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34130] test_signal: test_warn_on_full_buffer() failed on AppVeyor

2018-07-16 Thread STINNER Victor
STINNER Victor added the comment: Traceback (most recent call last): File "", line 39, in AssertionError According to the traceback, the captured stderr ('err' variable) is an empty string. The test uses test.support.capture_stderr() which replaces sys.stderr. The signal module calls

[issue34130] test_signal: test_warn_on_full_buffer() failed on AppVeyor

2018-07-16 Thread STINNER Victor
STINNER Victor added the comment: The test failed at: # Fill the send buffer try: while True: write.send(b"x") except BlockingIOError: pass # By default, we get a warning when a signal arrives signal.set_wakeup_fd(write.fileno()) with

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +7840, 7841 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +7840 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34126] Profiling certain invalid calls crashes Python

2018-07-16 Thread ppperry
Change by ppperry : -- title: Profiling certain invalid calls crash Python -> Profiling certain invalid calls crashes Python ___ Python tracker ___

[issue26270] Support for read()/write()/select() on asyncio

2018-07-16 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26270] Support for read()/write()/select() on asyncio

2018-07-16 Thread smheidrich
Change by smheidrich : -- nosy: +smheidrich ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34132] Obscure netrc parser "bug"

2018-07-16 Thread Skip Montanaro
Change by Skip Montanaro : Added file: https://bugs.python.org/file47697/netrc-blank-comment ___ Python tracker ___ ___ Python-bugs-list

[issue34132] Obscure netrc parser "bug"

2018-07-16 Thread Skip Montanaro
New submission from Skip Montanaro : Not sure I can really call this a bug, however there is a behavioral change between 2.7 and at least 3.6 and 3.7 (probably earlier versions of the 3.x series as well). There is no spec for .netrc files that I can find, certainly nothing which mentions

[issue34131] test_threading: BarrierTests.test_default_timeout() failed on AppVeyor

2018-07-16 Thread STINNER Victor
New submission from STINNER Victor : test_threading.BarrierTests.test_default_timeout() failed on AppVeyor. Related issues: * bpo-11871, commit d4d1d068dcf4e1aaf93772ccc0824207a21606e5: change timeout * bpo-30316 https://ci.appveyor.com/project/python/cpython/build/3.8build19370

[issue8799] Hang in lib/test/test_threading.py

2018-07-16 Thread STINNER Victor
STINNER Victor added the comment: This issue discussed different things: * test_threading was unable: I didn't see such failure the last 12 months, and I backported enhancements from master to 2.7, so I consider this issue as fixed * documentation of threading locks: fixed * Except on

[issue18605] 2.7: test_threading hangs on Solaris 9

2018-07-16 Thread STINNER Victor
STINNER Victor added the comment: There is no more Solaris buildbot, there is no useful information to debug this issue, so I close the issue. -- nosy: +vstinner resolution: -> out of date stage: -> resolved status: open -> closed ___ Python

[issue34130] test_signal: test_warn_on_full_buffer() failed on AppVeyor

2018-07-16 Thread STINNER Victor
New submission from STINNER Victor : test_signal.test_warn_on_full_buffer() failed on AppVeyor. https://ci.appveyor.com/project/python/cpython/build/3.8build19372 == FAIL: test_warn_on_full_buffer

[issue34096] [2.7] test_audioop.test_max() failed: AssertionError: -2147483648 != 2147483648L

2018-07-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: yep. i'm going to close this, it seems arch specific. there isn't much we can realistically do to prevent people overriding things to their peril for configure or make. :) -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue31342] test.bisect module causes tests to fail

2018-07-16 Thread STINNER Victor
STINNER Victor added the comment: > This is still broken, IMHO. Either we should rename test.bisect (...) I renamed it: commit 823c295efa4efea93cadc640ed6122cd9d86cec4 Author: Victor Stinner Date: Wed May 30 17:24:40 2018 +0200 bpo-29512: Rename Lib/test/bisect.py to bisect_cmd.py

[issue21622] ctypes.util incorrectly fails for libraries without DT_SONAME

2018-07-16 Thread Tianon
Tianon added the comment: This was reported on the Docker image for Python in https://github.com/docker-library/python/issues/111, with the note that it affects the Twisted inotify implementation, so it'd be really neat to see a proper patch in Python (instead of the very

[issue22708] httplib/http.client in method _tunnel used HTTP/1.0 CONNECT method

2018-07-16 Thread Michael Handler
Change by Michael Handler : -- pull_requests: +7839 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34118] Fix some class entries in 'Built-in Functions'

2018-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was forgetting that this is a Python, not CPython doc. So I agree to not tag the iterator classes as such. For all I know, PyPy might use (compiled?) generator functions. And if we were to allow use of Cython, say, for CPython, we might try that. How

[issue34129] CGITB does not mangle variables names

2018-07-16 Thread Pavel Jurkas
Change by Pavel Jurkas : -- pull_requests: +7838 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34129] CGITB does not mangle variables names

2018-07-16 Thread Pavel Jurkas
Pavel Jurkas added the comment: https://github.com/python/cpython/pull/8304 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28909] Adding LTTng-UST tracing support

2018-07-16 Thread Francis Deslauriers
Francis Deslauriers added the comment: Hi all, It seems that, as of right now, the thing blocking this patchset from going forward is the name of the intrumentation point. Two naming approached were suggested: - Keeping PyDtrace* - Changing to PyProbe* I prefer the PyProbe

[issue32430] Simplify Modules/Setup{,.dist,.local}

2018-07-16 Thread STINNER Victor
STINNER Victor added the comment: Thank you Antoine for fixing this issue! This issue annoyed me forever, but I never tried to fix it. It was very annoying when using git bisect for example. -- ___ Python tracker

[issue34096] [2.7] test_audioop.test_max() failed: AssertionError: -2147483648 != 2147483648L

2018-07-16 Thread Erich Eckner
Erich Eckner added the comment: ah, that would explain, why we don't get it set automatically on archlinux32 - there's "export OPT=$CFLAGS" right infront of ./configure ... - so $OPT is set and thus, -fwrapv is not appended -- ___ Python tracker

[issue34096] [2.7] test_audioop.test_max() failed: AssertionError: -2147483648 != 2147483648L

2018-07-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: https://github.com/python/cpython/blob/2.7/configure.ac#L1067 appears to add -fwrapv as desired if the gcc or clang version being used supports it. -- ___ Python tracker

[issue34096] [2.7] test_audioop.test_max() failed: AssertionError: -2147483648 != 2147483648L

2018-07-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: IIRC that we decided that CPython and extension modules always require -fwrapv. -- ___ Python tracker ___

[issue34128] Do not block threads when pickle/unpickle

2018-07-16 Thread ppperry
ppperry added the comment: um, something doesn't make sense about this. the python implementation of pickle never released the GIL (it can't, by definition -- it's written in python). The C implementation releasing the GIL wouldn't make sense, as the pickle api involves calls into python

[issue32814] smtplib.send_message mishandles 8BITMIME RFC 6152

2018-07-16 Thread Segev Finer
Change by Segev Finer : -- keywords: +patch pull_requests: +7837 stage: -> patch review ___ Python tracker ___ ___

[issue34129] CGITB does not mangle variables names

2018-07-16 Thread Pavel Jurkas
Pavel Jurkas added the comment: https://github.com/python/cpython/pull/8302 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34129] CGITB does not mangle variables names

2018-07-16 Thread Pavel Jurkas
Change by Pavel Jurkas : -- pull_requests: +7836 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34124] email.message_from_binary_file documentation is broken

2018-07-16 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report and for the patch, Jon. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31342] test.bisect module causes tests to fail

2018-07-16 Thread Neil Schemenauer
Neil Schemenauer added the comment: This is still broken, IMHO. Either we should rename test.bisect or we should remove all of the 'if __name__ == "__main__"' part of the test scripts. You can't run the tests reliably as scripts anymore. Doing so puts Lib/test into sys.path. Then,

[issue34124] email.message_from_binary_file documentation is broken

2018-07-16 Thread Berker Peksag
Berker Peksag added the comment: New changeset f1ab9cac909449ad85595245fa49b8660214cd0e by Berker Peksag (Miss Islington (bot)) in branch '3.6': bpo-34124: Fix markup of message_from_binary_file() signature (GH-8297)

[issue32554] random.seed(tuple) uses the randomized hash function and so is not reproductible

2018-07-16 Thread Lee Griffiths
Lee Griffiths added the comment: a) This below issue added doc to py2.7 that calls out PYTHONHASHSEED, but py doesn't currently contain those words https://bugs.python.org/issue27706 It'd be useful to have the something whether the "behaviour" is fixed or not, as providing other objects

[issue34129] CGITB does not mangle variables names

2018-07-16 Thread Pavel Jurkas
Pavel Jurkas added the comment: https://github.com/python/cpython/pull/8301 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34129] CGITB does not mangle variables names

2018-07-16 Thread Pavel Jurkas
Change by Pavel Jurkas : -- keywords: +patch pull_requests: +7835 stage: -> patch review ___ Python tracker ___ ___

[issue34129] CGITB does not mangle variables names

2018-07-16 Thread Pavel Jurkas
New submission from Pavel Jurkas : CGITB does not mangle private variables names. So they are displayed as undefined even though they are defined. Example: self.__core undefined -- messages: 321757 nosy: pjurkas priority: normal severity: normal status: open title: CGITB does not

[issue29710] Incorrect representation caveat on bitwise operation docs

2018-07-16 Thread Tim Peters
Tim Peters added the comment: Ya, Mark's got a point there. Perhaps s/the internal/a finite two's complement/ ? -- ___ Python tracker ___

[issue34126] Profiling certain invalid calls crash Python

2018-07-16 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +7834 stage: -> patch review ___ Python tracker ___ ___

[issue34128] Do not block threads when pickle/unpickle

2018-07-16 Thread Martin Bammer
New submission from Martin Bammer : Hi, the old and slow python implementation of pickle didn't block background thread. But the newer C-implementation blocks other threads while dump/load is running. Wouldn't it be possible to allow other threads during this time? Especially could load/loads

[issue34126] Profiling certain invalid calls crash Python

2018-07-16 Thread ppperry
Change by ppperry : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29710] Incorrect representation caveat on bitwise operation docs

2018-07-16 Thread Mark Dickinson
Mark Dickinson added the comment: The wording for change 1 looks fine to me. For change 2, the mention of the internal representation is misleading, since the internal representation of (long) integers in current CPython is effectively sign-magnitude, and so there are some shenanigans to

[issue34124] email.message_from_binary_file documentation is broken

2018-07-16 Thread Berker Peksag
Berker Peksag added the comment: New changeset 43c2fabb2fe7760be462e008b39169cf16c28b4c by Berker Peksag (Miss Islington (bot)) in branch '3.7': bpo-34124: Fix markup of message_from_binary_file() signature (GH-8297)

[issue34127] Gramatically incorrect error message for some descriptor calls with wrong number of arguments

2018-07-16 Thread ppperry
New submission from ppperry : `{}.get()` Traceback (most recent call last): File "", line 1, in TypeError: get expected at least 1 arguments, got 0 Shouldn't that be "TypeError: get expected at least 1 argument, got 0" instead? -- components: Interpreter Core messages: 321752 nosy:

[issue34126] Profiling certain invalid calls crash Python

2018-07-16 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Also: >>> import sys; sys.setprofile(lambda *args: None) >>> dict.get([], "foo") Segmentation fault -- title: Profiling dict.get() crashes Python -> Profiling certain invalid calls crash Python ___

[issue28643] Broken makefile depends for profile-opt target

2018-07-16 Thread Neil Schemenauer
Neil Schemenauer added the comment: Closing this as the current makefile works much better in this regard, at least based on my experience. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34126] Profiling dict.get() crashes Python

2018-07-16 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Simple patch coming up... -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34124] email.message_from_binary_file documentation is broken

2018-07-16 Thread Berker Peksag
Berker Peksag added the comment: New changeset c9265c1534b7e62bb9b15460d0420c0c3bb57ff9 by Berker Peksag (Jon Ribbens) in branch 'master': bpo-34124: Fix markup of message_from_binary_file() signature (GH-8297) https://github.com/python/cpython/commit/c9265c1534b7e62bb9b15460d0420c0c3bb57ff9

[issue34126] Profiling dict.get() crashes Python

2018-07-16 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : >>> import sys; sys.setprofile(lambda *args:None) >>> dict.get() Segmentation fault -- components: Interpreter Core messages: 321747 nosy: jdemeyer priority: normal severity: normal status: open title: Profiling dict.get() crashes Python versions:

[issue34125] Profiling depends on whether **kwargs is given

2018-07-16 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : Enable profiling for C functions: >>> def prof(frame, typ, arg): ... if typ.startswith("c_"): ... print(arg, typ) >>> import sys; sys.setprofile(prof) and notice how profiling depends on **kwargs: >>> list.append([], None)

[issue34124] email.message_from_binary_file documentation is broken

2018-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +7833 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34124] email.message_from_binary_file documentation is broken

2018-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +7832 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32430] Simplify Modules/Setup{,.dist,.local}

2018-07-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: With PR #8229 pushed the distinction between Setup.dist and Setup has disappeared: you have a Modules/Setup file in the source tree and that's where you do any changes, which you are responsible to track yourself (e.g. using a patch file or a git fork).

[issue32430] Simplify Modules/Setup{,.dist,.local}

2018-07-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 961d54c5c1916c09883ebcf7191babc969e5a5cf by Antoine Pitrou in branch 'master': bpo-32430: Rename Modules/Setup.dist to Modules/Setup (GH-8229) https://github.com/python/cpython/commit/961d54c5c1916c09883ebcf7191babc969e5a5cf --

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The purpose of using assertRaisesRegexp() was testing the error message. assertRaises() doesn't do this. Needed to restore the appropriate assertion method, but using a non-deprecated alias: assertRaisesRegex(). -- nosy: +serhiy.storchaka

[issue32545] Unable to install Python 3.7.0a4 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2018-07-16 Thread Steve Dower
Steve Dower added the comment: Amin, it looks like you are trying to upgrade an all-users install of an earlier version of Python 3.7 (one of the betas?) to a just-for-me install. If you know which older version you have installed, or you can find it in Programs and Features, I'd suggest

[issue34123] ambiguous documentation for dict.popitem

2018-07-16 Thread Armin Rigo
Armin Rigo added the comment: Agreed with Raymond. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31652] make install fails: no module _ctypes

2018-07-16 Thread Bryan
Bryan added the comment: Similar error on CentOS 7 ModuleNotFoundError: No module named '_ctypes' Install -- yum install libffi-devel Repeat: ./configure --enable-optimizations make altinstall Results: Collecting setuptools Collecting pip Installing collected packages: setuptools, pip

[issue33073] Add as_integer_ratio() to int() objects

2018-07-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Nofar, do you want to continue to work on this or should I reassign? -- ___ Python tracker ___

[issue34124] email.message_from_binary_file documentation is broken

2018-07-16 Thread Berker Peksag
Change by Berker Peksag : -- type: compile error -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33073] Add as_integer_ratio() to int() objects

2018-07-16 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34088] [EASY] sndhdr.what() throws exceptions on unknown files

2018-07-16 Thread Ammar Askar
Ammar Askar added the comment: Hey Lysandros. Take a look at https://github.com/python/cpython/blob/master/Lib/wave.py#L126-L139 Notice how there's a Chunk made from the `file` argument but then another Chunk created using the previous chunk as a file. While it might seem like

[issue34095] [2.7] test_idle fails with: /usr/bin/xvfb-run: line 181: 3617 Segmentation fault

2018-07-16 Thread Erich Eckner
Erich Eckner added the comment: ok, some update: 1st: running the complete test suite with xvfb fails (as already reported): > LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \ xvfb-run "${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall ... 0:02:14 load avg:

[issue34095] [2.7] test_idle fails with: /usr/bin/xvfb-run: line 181: 3617 Segmentation fault

2018-07-16 Thread Erich Eckner
Erich Eckner added the comment: > Can you try to get the Python traceback and/or C traceback using gdb? Sry, I can't - I don't know how to use gdb :-( Is there some one-line command which makes gdb start xvfb-run and attach to it? Or do I need to start xvfb-run and separately attach gdb to

[issue34096] [2.7] test_audioop.test_max() failed: AssertionError: -2147483648 != 2147483648L

2018-07-16 Thread STINNER Victor
STINNER Victor added the comment: Mark, Serhiy, Gregory and other fanboys of Undefined Behaviour: it seems like audioop is miscompiled on x86 (32-bit) without -fwrapv :-) -- nosy: +gregory.p.smith, mark.dickinson, serhiy.storchaka ___ Python

[issue34124] email.message_from_binary_file documentation is broken

2018-07-16 Thread Jon Ribbens
Change by Jon Ribbens : -- keywords: +patch pull_requests: +7831 stage: -> patch review ___ Python tracker ___ ___

[issue32545] Unable to install Python 3.7.0a4 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2018-07-16 Thread Amin Radjabov
Amin Radjabov added the comment: log -- Added file: https://bugs.python.org/file47695/Python 3.7.0 (32-bit)_20180628184532.log ___ Python tracker ___

[issue34124] email.message_from_binary_file documentation is broken

2018-07-16 Thread Jon Ribbens
New submission from Jon Ribbens : The documentation for email.message_from_binary_file is missing a line-continuation backslash at the end of the `.. function::` line which means the output formatting is mangled and it has no permalink. -- assignee: docs@python components:

[issue34118] Fix some class entries in 'Built-in Functions'

2018-07-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I propose that the 2nd 3 follow the model of the 1st 3, This makes sense and would read a little better. > Classes enumerate, filter, map, memoryview, range, reversed, > tuple, and zip are untagged. I think, to be consistent, > that they should all

[issue34096] [2.7] test_audioop.test_max() failed: AssertionError: -2147483648 != 2147483648L

2018-07-16 Thread Erich Eckner
Erich Eckner added the comment: yes, you were absolutely right: just adding "-fwrapv" to $OPT is enough. Ok, is this something, we at archlinux32 need to opt in for, or is this something, that the configure script should add for x86? -- ___

[issue32780] ctypes: memoryview gives incorrect PEP3118 format strings for both packed and unpacked structs

2018-07-16 Thread Carl Banks
Carl Banks added the comment: I guess I'll weigh in since I was pinged. I agree with the approach in the patch. All the memoryview does is to use the format field verbatim from the underlying buffer, so if the format field is inaccurate then the only thing to do is to fix the object

[issue33073] Add as_integer_ratio() to int() objects

2018-07-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: I put the easy tag here because it was suitable for our mentees and because it is isn't a very difficult task (literally, this is the definition of "easy"). FWIW, it is not "triaging" when the tag was set by a seasoned core developer who was familiar

[issue34116] Move all bytes/bytearray/int/float/complex documentation to Built-in Types

2018-07-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: I disagree that this would be an improvement. The current organization has worked well for us. In particular, some of the these types sometimes used like functions that produce a type (this is where the builtin functions docs do a good job). In the

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0a820a203032e3b1b9413afba45acd8f79f27f81 by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261) (GH-8296)

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-16 Thread Ammar Askar
Ammar Askar added the comment: I don't think taking instantaneous values instead of averaging will work out too well. For reference I've attached a screenshot. It has sampled values at every second on an unloaded computer and then with running prime95 for cpu stress testing. The load tends

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 336c9539a90e0f5df5bcc5b444b8400a58820583 by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261) (GH-8295)

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-16 Thread STINNER Victor
STINNER Victor added the comment: https://docs.microsoft.com/en-us/sql/relational-databases/performance-monitor/monitor-cpu-usage?view=sql-server-2017 Processor Queue Length: Corresponds to the number of threads waiting for processor time. A processor bottleneck develops when threads of a

[issue33111] Merely importing tkinter breaks parallel code (multiprocessing, sharedmem)

2018-07-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: macOS users, feel free to propose a doc PR for multiprocessing. -- assignee: -> docs@python components: +Documentation nosy: +docs@python versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +7830 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +7829 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34096] [2.7] test_audioop.test_max() failed: AssertionError: -2147483648 != 2147483648L

2018-07-16 Thread STINNER Victor
STINNER Victor added the comment: > yes, indeed, I just tested with your three flags-variables set and the > build+test succeeded - I'll have to figure out what the minimal change is, > though :-) Yeah, it would be great if you can find the C flag which fixes your issue. I bet on -fwrapv.

[issue33911] [EASY] test_docxmlrpc fails when run with -Werror

2018-07-16 Thread STINNER Victor
STINNER Victor added the comment: Nicolas Noé: Thank you for your change! I merged it in master, and backported it to Python 3.7. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

  1   2   >