[issue26762] test_multiprocessing_spawn leaves processes running in background

2016-04-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +haypo, serhiy.storchaka ___ Python tracker ___

[issue26535] Minor typo in the docs for struct.unpack

2016-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems you forgot to send a patch. -- ___ Python tracker ___ ___

[issue26745] Redundant code in _PyObject_GenericSetAttrWithDict

2016-04-14 Thread Martin Panter
Martin Panter added the comment: This code mirrors code in the Get function, but that function inspects tp_descr_get (not set) instead. As I understand it, this is the difference between “data” descriptors and “non-data” descriptors. So I think the change is okay. -- nosy:

[issue26757] test_urllib2net.test_http_basic() timeout after 15 min on

2016-04-14 Thread Martin Panter
Martin Panter added the comment: By “mock the query”, do you mean swap out the socket for a pretend socket object? Another option would be to connect to a server on localhost running on the background, like I did for the fileno() problem. Looks like this test_http_basic() was intended to

[issue25654] test_multiprocessing_spawn ResourceWarning with -Werror

2016-04-14 Thread Martin Panter
Martin Panter added the comment: Opened Issue 26762 about the leftover processes. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue15984] Wrong documentation for PyUnicode_FromObject() and PyUnicode_FromEncodedObject()

2016-04-14 Thread Martin Panter
Martin Panter added the comment: I also tweaked the PyUnicode_FromEncodedObject() documentation to avoid the word “coerce” and to fix up outdated stuff. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python

[issue26535] Minor typo in the docs for struct.unpack

2016-04-14 Thread Martin Panter
Martin Panter added the comment: Here is a new patch: * Use “The buffer’s size in bytes” wording * Avoid brackets inside brackets * Fix the three unpack functions and corresponding methods * Also fix doc strings -- stage: needs patch -> patch review

[issue26761] winsound module very unstable in Windows 10

2016-04-14 Thread Zachary Ware
Zachary Ware added the comment: Glad I could guide you to a solution :) -- stage: -> resolved ___ Python tracker ___

[issue26761] winsound module very unstable in Windows 10

2016-04-14 Thread Ganning Liu
Ganning Liu added the comment: Thanks Zachary, it's not a bug! -- status: pending -> closed ___ Python tracker ___

[issue26762] test_multiprocessing_spawn leaves processes running in background

2016-04-14 Thread Ned Deily
Changes by Ned Deily : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing

[issue26762] test_multiprocessing_spawn leaves processes running in background

2016-04-14 Thread Martin Panter
New submission from Martin Panter: I noticed that this test leaves processes running in the background for a moment after the parent Python process exits. They disappear pretty quickly, but even so, it seems like a bad design. However I am not familiar with the multiprocessing module, so

[issue26753] Obmalloc lock LOCK_INIT and LOCK_FINI are never used

2016-04-14 Thread Tim Peters
Tim Peters added the comment: Right, these macros were in the original module (by Vladimir Marangozov). They've never done anything - never been tested. Over the years I removed other layers of macro indirection (while other people added more ;-) ), but left these alone because they point

[issue19985] Not so correct error message when initializing Struct with ill argument

2016-04-14 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +Document whether it's safe to use bytes for struct format string -Not so correct error message when initializing Struct with ill argument ___ Python tracker

[issue26761] winsound module very unstable in Windows 10

2016-04-14 Thread Zachary Ware
Zachary Ware added the comment: This looks very like a case of shadowing a standard library module. Just before your call to Beep(), try "print(winsound.__file__)". If it's not "C:\SomePathToPython\DLLs\winsound.pyd" (with an appropriate real path in place of "SomePathToPython"), it's the

[issue15984] Wrong documentation for PyUnicode_FromObject() and PyUnicode_FromEncodedObject()

2016-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset af655e73f7bd by Martin Panter in branch '3.5': Issue #15984: Correct PyUnicode_FromObject() and _FromEncodedObject() docs https://hg.python.org/cpython/rev/af655e73f7bd New changeset 570ada02d0f0 by Martin Panter in branch 'default': Issue #15984:

[issue26761] winsound module very unstable in Windows 10

2016-04-14 Thread Ganning Liu
New submission from Ganning Liu: Cannot using winsound.Beep() in .py file (run as module), get error information like: Traceback (most recent call last): File "C:\Users\liuga\Desktop\sound.py", line 2, in winsound.Beep(230,200) AttributeError: module 'winsound' has no attribute 'Beep'

[issue26721] Avoid socketserver.StreamRequestHandler.wfile doing partial writes

2016-04-14 Thread Martin Panter
Martin Panter added the comment: If a user calls makefile(bufsize=0), they may have written that based on Python 2’s behaviour of always doing full writes. But in Python 3 this is indirectly documented as doing partial writes: makefile() args interpreted as for open, and open() buffering

[issue19985] Not so correct error message when initializing Struct with ill argument

2016-04-14 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +Not so correct error message when initializing Struct with ill argument ___ Python tracker

[issue26743] Unable to import random with python2.7 on power pc based machine

2016-04-14 Thread Raghu
Raghu added the comment: @stinner, my host doesn't have internet connection and it doesn't have gcc installed. I don't know how to install gcc in windriverlinux. In famous linux distributions like ubuntu and centos, i install gcc using 'yum install gcc' or 'apt-get install gcc' commands.

[issue26743] Unable to import random with python2.7 on power pc based machine

2016-04-14 Thread Raghu
Raghu added the comment: Couple more outputs: /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ #if defined AC_APPLE_UNIVERSAL_BUILD # if defined __BIG_ENDIAN__ # define

[issue26638] Avoid warnings about missing CLI options when building documentation

2016-04-14 Thread Martin Panter
Martin Panter added the comment: I’m not an expert on Sphinx. Maybe could help with disabling these warnings. Considering there are so many false positives, it might be best to disable the warning. Though my patch

[issue26743] Unable to import random with python2.7 on power pc based machine

2016-04-14 Thread Raghu
Raghu added the comment: Here is one output: root@fpc0:~# grep IEEE /usr/include/python2.7/pyconfig-32.h /* Define if C doubles are 64-bit IEEE 754 binary format, stored in ARM /* #undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 */ /* Define if C doubles are 64-bit IEEE 754 binary format, stored with

[issue26743] Unable to import random with python2.7 on power pc based machine

2016-04-14 Thread STINNER Victor
STINNER Victor added the comment: I guess that Serhiy is looking for these variables defined in pyconfig.h: --- /* Define if C doubles are 64-bit IEEE 754 binary format, stored in ARM mixed-endian order (byte order 45670123) */ #undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 /* Define if C doubles

[issue26743] Unable to import random with python2.7 on power pc based machine

2016-04-14 Thread Raghu
Raghu added the comment: The keys ENDIAN and IEEE are not available. -- ___ Python tracker ___ ___

[issue26748] enum.Enum is False-y

2016-04-14 Thread Ethan Furman
Ethan Furman added the comment: Enum classes are now Truth-y in 3.4, 3.5, enum34, and aenum. :) -- assignee: -> ethan.furman resolution: -> fixed stage: -> resolved status: open -> closed versions: -Python 2.7 ___ Python tracker

[issue26743] Unable to import random with python2.7 on power pc based machine

2016-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fields with ENDIAN or IEEE in key. -- ___ Python tracker ___ ___

[issue26743] Unable to import random with python2.7 on power pc based machine

2016-04-14 Thread Raghu
Raghu added the comment: Hi, This is my work system and I don't know if I am allowed to send out the complete output of "print sysconfig.get_config_vars()". could you please let me know which fields you are looking for? -- ___ Python tracker

[issue26755] Update version{added,changed} docs in devguide

2016-04-14 Thread Georg Brandl
Georg Brandl added the comment: Now that "added" doesn't mention the second argument, the "This one *must* have the second argument (explanation of the change)." should be changed. Otherwise +1. -- ___ Python tracker

[issue26759] PyBytes_FromObject accepts arbitrary iterable

2016-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Other *_FromObject public API functions: PyUnicode_FromObject() -- Very strict. Accepts only str subclasses. PyByteArray_FromObject() -- Very lenient! Calls the bytearray() constructor, accepts even an integer! PyMemoryView_FromObject() -- No surprises.

[issue26759] PyBytes_FromObject accepts arbitrary iterable

2016-04-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Note that there is alternative API function PyObject_Bytes(), that accepts > same arguments as the bytes() constructor, except an integer, and supports > the buffer protocol, the iterable protocol, and in additional supports the > __bytes__() special

[issue26760] Document PyFrameObject

2016-04-14 Thread Brett Cannon
New submission from Brett Cannon: Can be as simple as https://docs.python.org/3/c-api/code.html#c.PyCodeObject . Key point is to have it in the index so people don't wonder what the deal is with the type when noticing it as a parameter to a function. -- assignee: brett.cannon

[issue26759] PyBytes_FromObject accepts arbitrary iterable

2016-04-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: PyBytes_FromObject creates a bytes object from an object that implements the buffer or the iterable protocol. But only using the buffer protocol is documented. We should either document the current behavior (the documentation of int.from_bytes() can be

[issue26756] fileinput handling of unicode errors from standard input

2016-04-14 Thread Joel Barry
Joel Barry added the comment: I was suggesting that the openhook could somehow be applied to a *reopening* of sys.stdin. Something like this: 326c326,329 < self._file = sys.stdin --- > if self._openhook: > self._file =

[issue26756] fileinput handling of unicode errors from standard input

2016-04-14 Thread SilentGhost
SilentGhost added the comment: While documentation seems not entirely clear, the openhook only applies to files. I'm not sure what is the logic behind the suggested change, what would openhook do in your situation? -- components: +Library (Lib) nosy: +SilentGhost, serhiy.storchaka

[issue26758] Unnecessary format string handling for no argument slot wrappers in typeobject.c

2016-04-14 Thread SilentGhost
Changes by SilentGhost : -- nosy: +serhiy.storchaka type: -> behavior ___ Python tracker ___

[issue25942] subprocess.call SIGKILLs too liberally

2016-04-14 Thread Mike Pomraning
Mike Pomraning added the comment: #2 and #4 are the only predictable and palatable options, I think. Ignore the patch that started this issue. -- ___ Python tracker

[issue26758] Unnecessary format string handling for no argument slot wrappers in typeobject.c

2016-04-14 Thread Josh Rosenberg
New submission from Josh Rosenberg: Right now, in typeobject.c, the call_method and call_maybe utility functions have a fast path for no argument methods, where a NULL or "" format string just calls PyTuple_New(0) directly instead of wasting time parsing Py_VaBuildValue. Problem is, nothing

[issue26706] Update OpenSSL version in readme

2016-04-14 Thread Zachary Ware
Zachary Ware added the comment: Thanks, Shaun! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26465] Upgrade OpenSSL shipped with python installers

2016-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3a3b30c310e5 by Zachary Ware in branch '2.7': Issue #26465: Update VS9.0 build files for OpenSSL 1.0.2g https://hg.python.org/cpython/rev/3a3b30c310e5 -- ___ Python tracker

[issue26706] Update OpenSSL version in readme

2016-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4936b2723471 by Zachary Ware in branch '3.5': Issue #26706: Update OpenSSL version in PCbuild/readme.txt https://hg.python.org/cpython/rev/4936b2723471 New changeset 430f5a23a853 by Zachary Ware in branch 'default': Closes #26706: Merge with 3.5

[issue26359] CPython build options for out-of-the box performance

2016-04-14 Thread Brett Cannon
Brett Cannon added the comment: What if we added a --with-optimizations flag to build --with-pgo, --with-lto, and avoid having to run `make` twice thanks to `make`/`make profileopt`? That way the default build is still quick and reasonable but gain a simple way to use the right flags and

[issue26058] PEP 509: Add ma_version to PyDictObject

2016-04-14 Thread STINNER Victor
STINNER Victor added the comment: The implementation is outdated: ma_version was renamed to ma_version_tag in the latest version of the PEP 509. -- ___ Python tracker

[issue26757] test_urllib2net.test_http_basic() timeout after 15 min on

2016-04-14 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +florin.papa, zach.ware ___ Python tracker ___ ___

[issue26757] test_urllib2net.test_http_basic() timeout after 15 min on

2016-04-14 Thread STINNER Victor
STINNER Victor added the comment: It looks deliberate to test the HTTP query with *no* timeout. Sadly, it looks like it's ok that an HTTP query takes longer than 15 minutes! Can't we mock the query to only test that the socket timeout is None? Move the test from test_urllib2net to

[issue26757] test_urllib2net.test_http_basic() timeout after 15 min on

2016-04-14 Thread STINNER Victor
STINNER Victor added the comment: See also issue #21069 "test_fileno of test_urllibnet intermittently fails". -- ___ Python tracker ___

[issue26757] test_urllib2net.test_http_basic() timeout after 15 min on

2016-04-14 Thread STINNER Victor
New submission from STINNER Victor: Timeout seen on "x86-64 Ubuntu 15.10 Skylake CPU 3.5" buildbot: http://buildbot.python.org/all/builders/x86-64%20Ubuntu%2015.10%20Skylake%20CPU%203.5/builds/357/steps/test/logs/stdio [215/398] test_urllib2net Timeout (0:15:00)! Thread 0x7f71354be700

[issue24165] Free list for single-digits ints

2016-04-14 Thread Larry Hastings
Larry Hastings added the comment: FWIW, the patch still cleanly applies, but now a couple tests in posix fail because the assertion text has changed. -- ___ Python tracker

[issue26756] fileinput handling of unicode errors from standard input

2016-04-14 Thread Joel Barry
New submission from Joel Barry: The openhook for fileinput currently will not be called when the input is from sys.stdin. However, if the input contains invalid UTF-8 sequences, a program with a hook that specifies errors='replace' will not behave as expected: $ cat x.py import fileinput

[issue26359] CPython build options for out-of-the box performance

2016-04-14 Thread Steve Dower
Steve Dower added the comment: FWIW, I'm also against enabling it by default due to the extended build time. There are plenty of reasons to build Python with the non-debug ABI that don't require extended optimizations. Production builds are the exception I believe, not the rule. --

[issue26749] Update devguide to include Fedora's DNF

2016-04-14 Thread Luiz Poleto
Luiz Poleto added the comment: Nice! Thanks! On Thu, Apr 14, 2016, 5:16 AM Berker Peksag wrote: > > Berker Peksag added the comment: > > Committed in 0ed2497e5aa4. Thanks for the patch, Luiz. > > -- > components: +Devguide -Documentation > nosy: +berker.peksag,

[issue23214] BufferedReader.read1(size) signature incompatible with BufferedIOBase.read1(size=-1)

2016-04-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue25654] test_multiprocessing_spawn ResourceWarning with -Werror

2016-04-14 Thread STINNER Victor
STINNER Victor added the comment: Since the initial issue is fixed (test failures when using -Werror), I suggest to close this issue. > BTW the spurious background processes are still there (visible if you run > “ps” or “pstree” immediately after the test finishes), but they no longer >

[issue26638] Avoid warnings about missing CLI options when building documentation

2016-04-14 Thread STINNER Victor
STINNER Victor added the comment: > FTR the warnings that I am fixing were apparently enabled in Sphinx 1.3.4, > reverted in 1.3.6, and added in 1.4. Would it be possible to turn off the warning? Doc/using/cmdline.py uses ".. cmdoption::". If we cannot turn off the warning on option, maybe

[issue26747] types.InstanceType only for old style class only in 2.7

2016-04-14 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- nosy: +berker.peksag resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue26747] types.InstanceType only for old style class only in 2.7

2016-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset b684298671f9 by Berker Peksag in branch '2.7': Issue #26747: Document that InstanceTypes only works for old-style classes https://hg.python.org/cpython/rev/b684298671f9 -- nosy: +python-dev ___ Python

[issue26721] Avoid socketserver.StreamRequestHandler.wfile doing partial writes

2016-04-14 Thread STINNER Victor
STINNER Victor added the comment: > I recall a "write1" function which was well defined: limited to 1 syscall, > don't try (or maybe only on the very specific case of EINTR). But I'm not > sure that it still exists in the io module of Python 3. Oops, in fact it is read1:

[issue26721] Avoid socketserver.StreamRequestHandler.wfile doing partial writes

2016-04-14 Thread STINNER Victor
STINNER Victor added the comment: FYI I recently worked on a issue with partial write in eventlet on Python 3: * https://github.com/eventlet/eventlet/issues/274 * https://github.com/eventlet/eventlet/issues/295 By the way, I opened #26292 "Raw I/O writelines() broken for non-blocking I/O" as a

[issue26721] Avoid socketserver.StreamRequestHandler.wfile doing partial writes

2016-04-14 Thread STINNER Victor
STINNER Victor added the comment: Hum, since long time ago, Python has issues with partial write. It's hard to guess if a write will always write all data, store the data on partial write, or simply ignore remaining data on partial write. I recall a "write1" function which was well defined:

[issue15984] Wrong documentation for PyUnicode_FromObject() and PyUnicode_FromEncodedObject()

2016-04-14 Thread STINNER Victor
STINNER Victor added the comment: from_object_v4.patch LGTM, nice enhancement. -- ___ Python tracker ___ ___

[issue17339] bytes() TypeError message is misleadingly narrow

2016-04-14 Thread Martin Panter
Martin Panter added the comment: The int.from_bytes() behaviour seems to have been documented from the beginning, so maybe it was intended. -- ___ Python tracker

[issue26752] Mock(2.0.0).assert_has_calls() raise AssertionError in two same calls

2016-04-14 Thread SilentGhost
Changes by SilentGhost : -- nosy: +michael.foord ___ Python tracker ___ ___

[issue20607] multiprocessing cx_Freeze windows GUI bug (& easy fixes)

2016-04-14 Thread Alwin Kahlert
Alwin Kahlert added the comment: I have also trouble with this bug. It wasn't fixed in Python 3.4 and Python 3.5. It should be reopened. -- nosy: +Alwin Kahlert ___ Python tracker

[issue26754] PyUnicode_FSDecoder() accepts arbitrary iterable

2016-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PyUnicode_FSDecoder() is used in following functions in the stdlib: compile() symtable.symtable() parser.compile() parser.compilest() zipimporter.zipimporter() _imp.load_dynamic() (before 3.5) This is behavior of PyUnicode_FSDecoder() from the start

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-04-14 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Maybe an workflow like the one proposed in issue #26359 can be helpful in these development phases. -- ___ Python tracker

[issue26754] PyUnicode_FSDecoder() accepts arbitrary iterable

2016-04-14 Thread Martin Panter
Martin Panter added the comment: I agree it is a bit strange. It looks like it is a victim of PyBytes_FromObject() doing more than it says; its documentation only mentions the buffer protocol, not accepting iterables. -- nosy: +martin.panter ___

[issue26755] Update version{added,changed} docs in devguide

2016-04-14 Thread Berker Peksag
New submission from Berker Peksag: This is a follow-up from issue 26366: "the original intention was to use "versionadded" where the API item is completely new. So "The parameter x was added" in a function is using "versionchanged" because only an aspect of the function's signature was

[issue26057] Avoid nonneeded use of PyUnicode_FromObject()

2016-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 19dec08e54a8 by Serhiy Storchaka in branch 'default': Issues #26716, #26057: Regenerate Argument Clinic code. https://hg.python.org/cpython/rev/19dec08e54a8 -- ___ Python tracker

[issue26716] EINTR handling in fcntl

2016-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9ffe055f2b0e by Serhiy Storchaka in branch '3.5': Issue #26716: Regenerate Argument Clinic code. https://hg.python.org/cpython/rev/9ffe055f2b0e New changeset 19dec08e54a8 by Serhiy Storchaka in branch 'default': Issues #26716, #26057: Regenerate

[issue26749] Update devguide to include Fedora's DNF

2016-04-14 Thread Berker Peksag
Berker Peksag added the comment: Committed in 0ed2497e5aa4. Thanks for the patch, Luiz. -- components: +Devguide -Documentation nosy: +berker.peksag, ezio.melotti, willingc resolution: -> fixed stage: -> resolved status: open -> closed ___ Python

[issue26749] Update devguide to include Fedora's DNF

2016-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0ed2497e5aa4 by Berker Peksag in branch 'default': Issue #26749: Update devguide to include DNF package manager https://hg.python.org/devguide/rev/0ed2497e5aa4 -- nosy: +python-dev ___ Python tracker

[issue26754] PyUnicode_FSDecoder() accepts arbitrary iterable

2016-04-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: I agree this doens't make sense. -- nosy: +pitrou ___ Python tracker ___

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-04-14 Thread Stefan Krah
Stefan Krah added the comment: On Thu, Apr 14, 2016 at 08:55:25AM +, Stefan Krah wrote: > I use it all the time in development: ... where "it" refers to "./configure && make", not to PGO. -- ___ Python tracker

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-04-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 14.04.2016 10:39, Alecsandru Patrascu wrote: > > @Stefan and @Marc, you say that people don't want to wait for PGO to build > when running ./configure && make, but why? Even though many developers use > it, this mode is not intended for development, it

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-04-14 Thread Stefan Krah
Stefan Krah added the comment: On Thu, Apr 14, 2016 at 08:39:20AM +, Alecsandru Patrascu wrote: > @Stefan and @Marc, you say that people don't want to wait for PGO to build > when running ./configure && make, but why? Even though many developers use > it, this mode is not intended for

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-04-14 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: @Stefan and @Marc, you say that people don't want to wait for PGO to build when running ./configure && make, but why? Even though many developers use it, this mode is not intended for development, it is production level and should be run once (or at leas

[issue26359] CPython build options for out-of-the box performance

2016-04-14 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Maybe that end users are lazy and want to type just `make` and let things happen magically behind the scenes :-) -- ___ Python tracker

[issue26753] Obmalloc lock LOCK_INIT and LOCK_FINI are never used

2016-04-14 Thread Larry Hastings
Larry Hastings added the comment: There's already a comment saying that the macros are empty because the GIL protects obmalloc from parallelization. I'd be happy to improve the code and add calls for LOCK_INIT and LOCK_FINI in the proper places. You don't have to do it. Since this isn't

[issue26753] Obmalloc lock LOCK_INIT and LOCK_FINI are never used

2016-04-14 Thread STINNER Victor
STINNER Victor added the comment: These macros are very old, I didn't write them. They are not used since the API rely on the GIL. Do you want to remove them? I think that it's ok to keep them, just in case, if tomorrow we want to support multiple allocations in parallel. Maybe a comment

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2016-04-14 Thread Christian Tanzer
Christian Tanzer added the comment: This issue is getting old. Is there any way to solve this for Python 3.6? -- ___ Python tracker ___

[issue26743] Unable to import random with python2.7 on power pc based machine

2016-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the output of `import sysconfig; print sysconfig.get_config_vars()`? -- ___ Python tracker ___

[issue26754] PyUnicode_FSDecoder() accepts arbitrary iterable

2016-04-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: PyUnicode_FSDecoder() accepts not only str and bytes or bytes-like object, but arbitrary iterable, e.g. list. Example: >>> compile('', [116, 101, 115, 116], 'exec') at 0xb6fb1340, file "test", line 1> I think accepting arbitrary iterables is

[issue26753] Obmalloc lock LOCK_INIT and LOCK_FINI are never used

2016-04-14 Thread Larry Hastings
New submission from Larry Hastings: Obmalloc now has theoretical support for locking. I say theoretical because I'm not convinced it's ever been used. The interface is defined through five macros: SIMPLELOCK_DECL SIMPLELOCK_INIT SIMPLELOCK_FINI SIMPLELOCK_LOCK

[issue26743] Unable to import random with python2.7 on power pc based machine

2016-04-14 Thread Raghu
Raghu added the comment: There is no output for `python -m sysconfig` -- ___ Python tracker ___ ___

[issue26752] Mock(2.0.0).assert_has_calls() raise AssertionError in two same calls

2016-04-14 Thread James
New submission from James: >>> import mock >>> print mock.__version__ 2.0.0 >>> = test.py from mock import Mock,call class BB(object): def __init__(self):pass def print_b(self):pass def print_bb(self,tsk_id):pass bMock = Mock(return_value=Mock(spec=BB))

[issue26359] CPython build options for out-of-the box performance

2016-04-14 Thread Stefan Krah
Stefan Krah added the comment: Not acceptable, I'm afraid. See #25702. I'm not sure why it is considered so bothersome to type --with-pgo and --with-lto for the rare case of a real production build. -- ___ Python tracker

[issue26743] Unable to import random with python2.7 on power pc based machine

2016-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the output of `python -m sysconfig`? Python 2.7.3 is too old. May be this issue was already fixed in newer versions. Can you install 2.7.11? -- ___ Python tracker

[issue26359] CPython build options for out-of-the box performance

2016-04-14 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Hello Victor, Indeed, the best outcome is to have PGO, LTO, etc enabled by default when running ./configure && make, for production level. I also feel that they should be on by default, if only developers would use the debug version. Do you think that

[issue26748] enum.Enum is False-y

2016-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 772805538caf by Ethan Furman in branch '3.4': Issue26748: Enum classes should evaluate as True https://hg.python.org/cpython/rev/772805538caf New changeset f840608f79da by Ethan Furman in branch '3.5': Issue26748: Enum classes should evaluate as