[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah
Stefan Krah added the comment: I guess if some of the pickling stuff get's rewritten, we can drop __name__. The other thing is that traditionally the types were "decimal.Decimal" etc., so I'm not sure if it is good idea to have "_decimal.Decimal" and "_py

[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah
Stefan Krah added the comment: _decimal already lies about its name (for pickling). -- ___ Python tracker <http://bugs.python.org/issue19232> ___ ___ Python-bug

[issue19232] Speed up _decimal import

2013-10-12 Thread Stefan Krah
Stefan Krah added the comment: I can't apply the patch that was created with diff --git, so here is another one that is less readable but applies. -- Added file: http://bugs.python.org/file32066/issue19232-2.patch ___ Python tracker

[issue19232] Speed up _decimal import

2013-10-13 Thread Stefan Krah
Stefan Krah added the comment: Antoine Pitrou wrote: > You can apply it using "hg import --no-commit", I think. mercurial 2.1 throws an exception even though the patch was created with that version. Now I upgraded to 2.7.2 and it works. Rietveld also seems to choke on the fi

[issue19229] operator.py: move the Python implementation in the else block of try/except ImportError

2013-10-13 Thread Stefan Krah
Stefan Krah added the comment: To be fair, for the startup time I can't really detect any difference between importing _operator directly and the current setup. -- ___ Python tracker <http://bugs.python.org/is

[issue19232] Speed up _decimal import

2013-10-14 Thread Stefan Krah
Stefan Krah added the comment: About IDLE I can't say anything, but I'm not entirely sure if the PEP-399 import method is easier to understand for users, see e.g.: http://stackoverflow.com/questions/13194384/instantiate-decimal-class I get the impression that the posters at first di

[issue19254] Python implementation of PBKDF2_HMAC

2013-10-14 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue19254> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-16 Thread Stefan Krah
Stefan Krah added the comment: trap() is a bit ambiguous, since in floating point operations it means that something is actually raised and not suppressed. So one could write: from decimal import * c = getcontext() c.traps[Inexact] = True >>> Decimal(9) / 11 # raises now! with tra

[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-16 Thread Stefan Krah
Stefan Krah added the comment: Zero Piraeus wrote: > 'Ignore' and 'suppress' are not synonyms: I wrote "synonyms here", meaning that in *this context* they are practically synonyms. "suppress" describes the mechanics more pr

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-17 Thread Stefan Krah
Stefan Krah added the comment: Unfortunately the tests pass when I run them manually. On my FreeBSD bot thsi may be relevant: o LC_* is "C". o The filesystem encoding is ascii. -- nosy: +skrah ___ Python tracker <http://bu

[issue15237] Add capsule API to _decimal

2013-10-17 Thread Stefan Krah
Stefan Krah added the comment: I've looked at this, and the question is: Do we really need a capsule API? All relevant symbols in _decimal start with Py* and shouldn't need to be static. -- ___ Python tracker <http://bugs.python.o

[issue15237] Add capsule API to _decimal

2013-10-18 Thread Stefan Krah
Stefan Krah added the comment: I believe you, but I'd like to understand why. :) It seems to me that a module and also PyInit_xxx() can be loaded portably. Say the handles to the module are cached somewhere after loading and initializing. I think this already happens in Python/dynload_sh

[issue18777] Cannot compile _ssl.c using openssl > 1.0

2013-10-18 Thread Stefan Krah
Stefan Krah added the comment: The hpux bot fails at the compile stage: http://buildbot.python.org/all/builders/IA64%20HP-UX%2011iv3%20%5BSB%5D%203.x/builds/2152/steps/compile/logs/stdio ld -b build/temp.hp-ux-B.11.31-ia64-3.4-pydebug/home/cpython/buildslave/3.x.snakebite-hpux11iv3-ia64-1

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Stefan Krah
Stefan Krah added the comment: A test order problem is indeed unlikely: I ran the tests as the buildbot user with the same random seed and they passed. Let's blame the buildbot software. ;) -- ___ Python tracker <http://bugs.python.org/is

[issue15237] Add capsule API to _decimal

2013-10-18 Thread Stefan Krah
Stefan Krah added the comment: Marc-Andre Lemburg wrote: > This may work on Linux (and probably does if you use the right > DL flags), but I don't think this works reliably or at all on other > platforms such as Windows. Symbols from shared libs are not necessarily > avail

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Stefan Krah
Stefan Krah added the comment: The --without-threads buildbot fails, so I guess all tests need to be skipped in that case: http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/5333/steps/test/logs/stdio -- nosy: +skrah

[issue19285] test_asyncio failures on FreeBSD

2013-10-18 Thread Stefan Krah
New submission from Stefan Krah: I'm splitting this off of #19262, since certain failures (hanging for one hour) remind me of #15599, which is an issue of epic proportions. Also it should not be a release blocker, since threading failures under FreeBSD-9 (running under KVM!) aren'

[issue19285] test_asyncio failures on FreeBSD

2013-10-18 Thread Stefan Krah
Stefan Krah added the comment: If the FreeBSD-9.0 bot is heavily loaded, some tests have to be relaxed (see patch). I can make them conditional on FreeBSD if you prefer. The hanging still occurs sporadically. -- ___ Python tracker <h

[issue19285] test_asyncio failures on FreeBSD

2013-10-18 Thread Stefan Krah
Changes by Stefan Krah : -- keywords: +patch Added file: http://bugs.python.org/file32209/issue19285.patch ___ Python tracker <http://bugs.python.org/issue19

[issue19295] Make asyncio work without threads

2013-10-19 Thread Stefan Krah
New submission from Stefan Krah: I'm referring to msg200288. I guess this is low priority, since not many people will want to use asyncio on a build --without-threads. -- keywords: buildbot messages: 200399 nosy: gvanrossum, skrah priority: low severity: normal stage: needs

[issue19295] Make asyncio work without threads

2013-10-19 Thread Stefan Krah
Stefan Krah added the comment: Meanwhile, the patch addresses the buildbot failure. I currently don't have access to the machine with my ssh-key, so I can't commit the patch right now. -- keywords: +patch Added file: http://bugs.python.org/file3/issue1

[issue19297] test_asyncio: unclosed sockets

2013-10-19 Thread Stefan Krah
New submission from Stefan Krah: unittest produces the following resource warnings: $ ./python -m test -uall test_asyncio [1/1] test_asyncio /home/stefan/hg/master/Lib/unittest/case.py:571: ResourceWarning: unclosed testMethod() /home/stefan/hg/master/Lib/unittest/case.py:571

[issue19297] test_asyncio: unclosed sockets

2013-10-19 Thread Stefan Krah
Stefan Krah added the comment: Yes, the fix can certainly be delayed -- it's just a minor thing that's as little distracting. -- ___ Python tracker <http://bugs.python.o

[issue19293] test_asyncio failures on AIX

2013-10-19 Thread Stefan Krah
Stefan Krah added the comment: I think the failure is not only on AIX. The FreeBSD bots had similar failures, and here is one on PPC Linux: http://buildbot.python.org/all/builders/PPC64%20PowerLinux%203.x/builds/881/steps/test/logs/stdio Timeout (1:00:00)! Thread 0x008074e46670: File

[issue19285] test_asyncio failures on FreeBSD

2013-10-19 Thread Stefan Krah
Stefan Krah added the comment: Ok, the timings have been adjusted, so I'm making #19293 a superseder for the hanging issue. -- resolution: -> duplicate status: open -> closed superseder: -> test_asyncio failures on AIX ___ Python

[issue19293] test_asyncio hanging for 1 hour

2013-10-19 Thread Stefan Krah
Changes by Stefan Krah : -- title: test_asyncio failures on AIX -> test_asyncio hanging for 1 hour ___ Python tracker <http://bugs.python.org/issue19293> ___ _

[issue19295] Make asyncio work without threads

2013-10-20 Thread Stefan Krah
Stefan Krah added the comment: > Not sure if I'll ever want to support this... I think it can be closed as "wont-fix". We had a poll on python-dev about --without-threads a while ago, and the only systems that needed it were older OpenBSD systems and a Fujitsu supercompute

[issue11871] test_default_timeout() of test_threading.BarrierTests failure: BrokenBarrierError

2013-10-20 Thread Stefan Krah
Stefan Krah added the comment: It looks like it happened again: http://buildbot.python.org/all/builders/x86%20Gentoo%20Non-Debug%203.x/builds/5223/steps/test/logs/stdio == ERROR: test_default_timeout

[issue10977] Concrete object C API considered harmful to subclasses of builtin types

2013-10-21 Thread Stefan Krah
Stefan Krah added the comment: I'm also in favor of a clean separation between the concrete and abstract APIs (see also #12965). Why can't the concrete functions be locked down with *CheckExact()? If there's any breakage in third party modules, it's easy to fix (probably

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-21 Thread Stefan Krah
Stefan Krah added the comment: The build --without-doc-strings still fails on the FreeBSD-9.0 bot. Antoine, could we make that option official on my build slave? Currently I'm subverting the build system by exporting an environment variable. It does not seem to be a heavy maintenance b

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-21 Thread Stefan Krah
Stefan Krah added the comment: Antoine Pitrou wrote: > Done. Can you please watch for failures and ensure they get fixed? Thanks! Yes, I'll keep an eye on it. -- ___ Python tracker <http://bugs.python.org

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Matej Cepl wrote: > Is this the same as when tests with python-3.3.2 fails on me with RHEL-6? If LC_CTYPE is UTF-8 and LC_NUMERIC something like ISO-8859-2 then it's the same issue. -- ___ Python tracke

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Here's the fix for --without-doc-strings (can't commit right now). -- Added file: http://bugs.python.org/file32297/issue19030-without-docstrings.patch ___ Python tracker <http://bugs.python.o

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Matej Cepl wrote: > To #200912: now, system locale is UTF-8 all the way: > santiago:python3 (el6) $ locale > LANG=en_US.utf8 > LC_CTYPE="en_US.utf8" > LC_NUMERIC=en_IE.utf8 > LC_TIME=en_IE.utf8 > LC_COLLATE="en_US.utf8&quo

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Matej Cepl wrote: > >>> import locale > >>> locale.localeconv() > {'p_cs_precedes': 127, 'n_sep_by_space': 127, 'n_sign_posn': 127, > 'n_cs_precedes': 127, 'grouping': [], '

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Ethan Furman wrote: > Stefan, do the other tests in PydocWithMetaClasses continue to work on your > FreeBSD 9.0 box without docstrings? Because they all fail on my Linux Ubuntu > 13.04 box. I tested on Debian, and the remaining tests seem to work (

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor wrote: > The following PostgreSQL issue looks to be the same than this Python issue: > http://www.postgresql.org/message-id/20100422015552.4b7e0754...@cvs.postgresql.org > > The fix changes temporarly the LC_CTYPE encoding: So d

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Victor, thanks for the comments. I also think we should set LC_CTYPE closer to the actual call to mbstowcs(), otherwise there are many API calls in between. So it should happen somewhere in PyUnicode_DecodeLocaleAndSize(). Perhaps we can create

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Matej Cepl wrote: > santiago:optimized (el6) $ ./python -m test test_format > [1/1] test_format > 1 test OK. It looks like some other test in the test suite did not restore a changed locale. If you're motivated enough, you could try if it still

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor wrote: > "So it should happen somewhere in PyUnicode_DecodeLocaleAndSize(). Perhaps we > can create _PyUnicode_DecodeLocaleAndSize() which would take an LC_CTYPE > parameter?" > > For this issue, it means that Python

[issue19353] on RHEL6 simple build fails with test_linux_constants (test.test_resource.ResourceTest)

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Christian, could you have a look? I think this was added in #19324. -- nosy: +christian.heimes, skrah ___ Python tracker <http://bugs.python.org/issue19

[issue19354] test_format fails on RHEL-6

2013-10-22 Thread Stefan Krah
New submission from Stefan Krah: Lifting this from #7442: "Very plain checkout of git and ./configure && make && make test leads to another failed test, but not this one (issue #19353). So either we do something wrong in all those Fedora patches, or this has been fixed si

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Here's a quick-and-dirty version of mbstowcs_l(). The difference in the benchmark to the plain mbstowcs() is 0.82s vs 0.55s. In the context of a Python function this is unlikely to be measurable. -- ___ Python tr

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file32306/mbstowcs_l.c ___ Python tracker <http://bugs.python.org/issue7442> ___ ___ Python-bugs-list mailin

[issue16632] Enable DEP and ASLR

2013-10-24 Thread Stefan Krah
Stefan Krah added the comment: > I see a crash in test_capi and a couple of crashes > in test_faulthandler but these don't seem to be related. Perhaps the same as #9116. -- nosy: +skrah ___ Python tracker <http://bugs.python.

[issue19390] clinic.py: unhandled syntax error

2013-10-25 Thread Stefan Krah
New submission from Stefan Krah: The attached syntax error should probably be handled by clinic.py. -- components: Demos and Tools files: syntax-err-1.patch keywords: patch messages: 201246 nosy: skrah priority: normal severity: normal status: open title: clinic.py: unhandled syntax

[issue19390] clinic.py: unhandled syntax error

2013-10-25 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +larry ___ Python tracker <http://bugs.python.org/issue19390> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19390] clinic.py: unhandled syntax error

2013-10-25 Thread Stefan Krah
Stefan Krah added the comment: Larry Hastings wrote: > You're proposing that Clinic allow => ? No, but it should print an error message and exit. Currently it silently generates garbage which does not compile. [I've noticed that you handle many other syntax e

[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-26 Thread Stefan Krah
Stefan Krah added the comment: Yeah, HAVE_DOCSTRINGS was added when we were not sure whether to skip C and Python docstrings separately. I agree that the right thing is to have both requires_c_docstrings and requires_py_docstrings. -- ___ Python

[issue19412] Add a test.support decorator for tests that require C level docstrings

2013-10-26 Thread Stefan Krah
Stefan Krah added the comment: For reference see #17041 and msg180774. Separating the decorators makes things clearer (after all we're dealing with extremely obscure features here), merging them could mean less work. -- ___ Python tracker

[issue10241] gc fixes for module m_copy attribute

2013-10-26 Thread Stefan Krah
Stefan Krah added the comment: I'm getting a couple of Valgrind leaks, starting with 1edff836c954: valgrind --suppressions=Misc/valgrind-python.supp --leak-check=full ./python -c "pass" All of them seem to be in _PySys_Init(). -- nosy: +skrah Added file: http://

[issue10241] gc fixes for module m_copy attribute

2013-10-27 Thread Stefan Krah
Stefan Krah added the comment: One example of a leaked object is "hexversion", from sysmodule.c:1615. I tried adding it to sys_deletes[] in import.c, but it did not help. See valgrind.out for other leaks. -- ___ Python trac

[issue10241] gc fixes for module m_copy attribute

2013-10-27 Thread Stefan Krah
Stefan Krah added the comment: IMO we have two references to many newly created values in _PySys_Init(): SET_SYS_FROM_STRING("hexversion", PyLong_FromLong(PY_VERSION_HEX)); One from PyLong_FromLong() and the other from PyDict_SetItemString() in the

[issue18520] Fixes bugs found by pyfailmalloc during Python initialization

2013-10-27 Thread Stefan Krah
Stefan Krah added the comment: Victor, could you look at the end of #10241? Starting from 31796b188bec, many values in _PySys_Init() have 2 references. Why is that required? -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue18

[issue10241] gc fixes for module m_copy attribute

2013-10-27 Thread Stefan Krah
Stefan Krah added the comment: See also 31796b188bec. -- ___ Python tracker <http://bugs.python.org/issue10241> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10241] gc fixes for module m_copy attribute

2013-10-27 Thread Stefan Krah
Stefan Krah added the comment: Antoine Pitrou wrote: > Does pulling the Py_DECREF before the "if" fix the leaks? Yes, but I get an additional failure in test_capi. Apparently not all values require the DECREF. Got to look on a case

[issue18520] Fixes bugs found by pyfailmalloc during Python initialization

2013-10-27 Thread Stefan Krah
Stefan Krah added the comment: Ah, thanks. I was wondering if there was some obscure reason that escaped me. -- ___ Python tracker <http://bugs.python.org/issue18

[issue10241] gc fixes for module m_copy attribute

2013-10-27 Thread Stefan Krah
Stefan Krah added the comment: Valgrind is happy after the recent 5eb00460e6e8. -- ___ Python tracker <http://bugs.python.org/issue10241> ___ ___ Python-bug

[issue3367] Uninitialized value read in parsetok.c

2013-10-27 Thread Stefan Krah
Stefan Krah added the comment: Serhiy, probably a false positive: https://bugs.kde.org/show_bug.cgi?id=298281 -- ___ Python tracker <http://bugs.python.org/issue3

[issue19420] Leak in _hashopenssl.c

2013-10-28 Thread Stefan Krah
New submission from Stefan Krah: There's a leak in _hashopenssl.c. Patch attached. -- files: _hashopenssl.patch keywords: patch messages: 201527 nosy: skrah priority: normal severity: normal status: open title: Leak in _hashopenssl.c Added file: http://bugs.python.org/file

[issue19432] test_multiprocessing_fork failures

2013-10-29 Thread Stefan Krah
New submission from Stefan Krah: I'm getting the following test_multiprocessing_fork failures on Debian Wheezy. Perhaps this is related to #19227: test_default_timeout (test.test_multiprocessing_fork.WithThreadsTestBarrier) ... Exception in thread Thread-344: Traceback (most recent call

[issue19432] test_multiprocessing_fork failures

2013-10-29 Thread Stefan Krah
Stefan Krah added the comment: The issue is probably different from #19227, since it already occurs with 4e79c3ae8a12. -- components: +Extension Modules nosy: +sbt stage: -> needs patch type: -> behavior versions: +Python 3.3, Python 3.4 ___

[issue19432] test_multiprocessing_fork failures

2013-10-29 Thread Stefan Krah
Stefan Krah added the comment: I've seen the failure very often, without any particular load. Now I noticed that during test_tools there were several ksoftirqd processes consuming 20% CPU on 4 cores. That seemed unusual to me, so I followed the advice of a certain MIT koan and reb

[issue19229] operator.py: move the Python implementation in the else block of try/except ImportError

2013-10-29 Thread Stefan Krah
Stefan Krah added the comment: I understand the desire to speed things up, but either the four-line facade module or else a single module is probably required by PEP-399. -- title: operator.py: move the Python implementation in the else block of try/except ImportError -> operator

[issue19437] More failures found by pyfailmalloc

2013-11-01 Thread Stefan Krah
Stefan Krah added the comment: Since this is tagged "crash", I'm curious if you managed to crash _decimal. The unhandled return in convert_op_cmp should result in AtrributeError("object does not have a numerator attribute"). The exception that wasn't set in dec_f

[issue19437] More failures found by pyfailmalloc

2013-11-02 Thread Stefan Krah
Stefan Krah added the comment: Ok, I found it. It was an assert() in debug mode that the MemoryError from PyObject_IsInstance() was swallowed. In production mode AttributeError would have been raised. Program received signal SIGABRT, Aborted. 0x771e0475 in *__GI_raise (sig=) at

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-11-04 Thread Stefan Krah
Stefan Krah added the comment: Yes, I saw the comments. I'm still wondering if we should just write an mbstowcs_l() function instead. Even then, there would still be a small chance that a C extension that creates its own thread picks up the wrong LC_

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-11-04 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor wrote: > What is this locale_t type used for the locale parameter of mbstowcs_l()? > Are you sure that it is a string? According to this patch, it looks like a > structure: > http://www.winehq.org/pipermail/wine-cvs/2010-May/067264.ht

[issue19533] Unloading docstrings from memory if -OO is given

2013-11-09 Thread Stefan Krah
Stefan Krah added the comment: R. David Murray wrote: > So the question is, if there is no longer a reference to the docstring, why > isn't it garbage collected? (I tested adding a gc.collect(), and it didn't > make any difference.) I think it probably is garbage coll

[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-10 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue19537> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19533] Unloading docstrings from memory if -OO is given

2013-11-10 Thread Stefan Krah
Stefan Krah added the comment: It looks like the memory management is based directly on Py_Arenas: def f(): """squeamish ossifrage""" pass Breakpoint 1, PyArena_Free (arena=0x9a5120) at Python/pyarena.c:159 159 assert(arena); (gdb) p arena-&g

[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-10 Thread Stefan Krah
Stefan Krah added the comment: Andreas Schwab wrote: > (gdb) p sizeof(PyASCIIObject) > $1 = 22 m68k again? ;) -- ___ Python tracker <http://bugs.python.org/i

[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-11 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker <http://bugs.python.org/issue19537> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread Stefan Krah
Stefan Krah added the comment: The comment says that semaphores are broken up to FreeBSD-8, so linking with -lrt is disabled. This looks correct to me and our FreeBSD 9 and 10 buildbots work. If you have a specific problem, please re-open the issue. -- nosy: +skrah resolution

[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread Stefan Krah
Changes by Stefan Krah : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue19554> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread Stefan Krah
Stefan Krah added the comment: I looked at patch set 1, which actually *reduced* functionality for FreeBSD >= 9. Now there is a second patch set, so I'm re-opening. -- ___ Python tracker <http://bugs.python.org

[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: invalid -> stage: committed/rejected -> status: closed -> open ___ Python tracker <http://bugs.python.or

[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread Stefan Krah
Changes by Stefan Krah : -- dependencies: +Automatically regenerate platform-specific modules nosy: +lemburg ___ Python tracker <http://bugs.python.org/issue19

[issue12619] Automatically regenerate platform-specific modules

2013-11-11 Thread Stefan Krah
Stefan Krah added the comment: See also #19554. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue12619> ___ ___ Python-bugs-list mailing list Unsub

[issue19577] memoryview bind (the opposite of release)

2013-11-14 Thread Stefan Krah
Stefan Krah added the comment: -1 on complicating the code further. It would be possible to pass an existing memoryview to mbuf_add_view(). That would save the line mv = memory_alloc(). But: a) You need to check that ndim is correct (shape, strides and suboffsets are allocated via

[issue19577] memoryview bind (the opposite of release)

2013-11-14 Thread Stefan Krah
Stefan Krah added the comment: You could experiment with multiple freelists, one for each ndim. I'm skeptical however that the gain will be substantial. I've tried freelists for _decimal and the gain was in the order of 2% (no

[issue19568] bytearray_setslice_linear() leaves the bytearray in an inconsistent state on memory allocation failure

2013-11-14 Thread Stefan Krah
Stefan Krah added the comment: > With the patch, the deletion succeeded even if you get a MemoryError. The > bytearray object is consistent. It's just that its buffer could be smaller > (it wastes memory). I think intuitively I'd expect the object to be unmodified if

[issue19568] bytearray_setslice_linear() leaves the bytearray in an inconsistent state on memory allocation failure

2013-11-14 Thread Stefan Krah
Stefan Krah added the comment: Can you suppress the MemoryError if deletion succeeds? That would be ok IMO. -- ___ Python tracker <http://bugs.python.org/issue19

[issue19577] memoryview bind (the opposite of release)

2013-11-15 Thread Stefan Krah
Stefan Krah added the comment: To my surprise, this line is 10% faster with a freelist: ./python -m timeit -s "import array; a = array.array('B', [0]*100); m = memoryview(a)" "m[30:40]" I think the reason is that PyOb

[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-18 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/issue19638> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13090] test_multiprocessing: memory leaks

2013-11-18 Thread Stefan Krah
Stefan Krah added the comment: The leaks still exist here. -- ___ Python tracker <http://bugs.python.org/issue13090> ___ ___ Python-bugs-list mailing list Unsub

[issue19655] Replace the ASDL parser carried with CPython

2013-11-19 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue19655> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19686] possible unnecessary memoryview copies?

2013-11-22 Thread Stefan Krah
Stefan Krah added the comment: David is correct: No data is copied, but new memoryview objects with different shape and strides are created. That is relatively cheap. -- nosy: +skrah resolution: -> invalid stage: -> committed/rejected status: open -> closed type: en

[issue19723] Argument Clinic should add markers for humans

2013-11-22 Thread Stefan Krah
Stefan Krah added the comment: I think it's possible to get used to the markers. However, to bikeshed a little, I would prefer "preprocessor" instead of "clinic", since jokes tend to wear off if one sees then too often. -- nosy: +skrah _

[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-24 Thread Stefan Krah
Stefan Krah added the comment: Development of libmpdec has effectively happened on hg.python.org since I included _decimal. That's also one of the reasons why there isn't any public VCS. The mailing list isn't archived because I'm using ezmlm and ezmlm's retrieva

[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-24 Thread Stefan Krah
Stefan Krah added the comment: I have prepared Python-3.3+ for use with libmpdec.so.2: cbd78679080b 9d07b3eb34e3 Here is a prerelease for mpdecimal: http://www.bytereef.org/software/mpdecimal/releases/mpdecimal-2.4-rc1.tar.gz sha256sum

[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-24 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +Arfrever ___ Python tracker <http://bugs.python.org/issue19732> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-25 Thread Stefan Krah
Stefan Krah added the comment: Matthias Klose wrote: > 2.4~rc1: > - configure.ac should call AC_CANONICAL_HOST, config,guess and >config.sub should be included. Hmm. configure.ac doesn't use any of the variables set by that macro, and this appears to work: ./configure --h

[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-25 Thread Stefan Krah
Stefan Krah added the comment: Matthias Klose wrote: > > ./configure --host=arm CC=arm-linux-gnueabi-gcc-4.7 > > sure, but this should work without explicitly setting CC. I can't get it to work without passing CC even with config.guess and config.sub. If you want it to work,

[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-25 Thread Stefan Krah
Stefan Krah added the comment: Apparently the build failed because only arm-linux-gnueabi-gcc-4.7 was installed but not arm-linux-gnueabi-gcc. But the cross build succeeds with the original 2.4-rc1, except that arm-linux-gnueabi-ar isn't picked up: $ ./configure --host=arm-linux-gn

[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-25 Thread Stefan Krah
Stefan Krah added the comment: > (gdb) p sizeof(PyASCIIObject) > $1 = 22 If the only issue is that the size should be 24 instead of 22, could we perhaps add an unused uint16_t to the struct just for this architecture? -- nosy: +skrah ___

[issue19732] python fails to build when configured with --with-system-libmpdec

2013-11-25 Thread Stefan Krah
Stefan Krah added the comment: I've fixed cross-compiling and a couple of small issues in the repo from msg20434. Cross-compiling seems to work also without config-guess, but I've included it anyway. -- ___ Python tracker <http://bu

[issue19803] memoryview complain ctypes byte array are not native single character

2013-11-27 Thread Stefan Krah
Stefan Krah added the comment: Memoryview currently only knows the types from the struct module. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue19

[issue19803] memoryview complain ctypes byte array are not native single character

2013-11-29 Thread Stefan Krah
Stefan Krah added the comment: >>> class B1(ctypes.Structure): ... _fields_ = [("data", ctypes.c_uint8 * 256), ] ... _pack_ = 1 ... >>> a= B1() >>> x = memoryview(a) >>> x.format 'B' In the first case the format is 

[issue19803] memoryview complain ctypes byte array are not native single character

2013-12-02 Thread Stefan Krah
Stefan Krah added the comment: Memoryview sends a *request* to ctypes to fill in a Py_buffer struct according to the buffer *protocol*. IOW, memoryview knows nothing about ctypes. For some reason ctypes fills in 'B' as the format if _pack_ is set. I do not know if that is intended

<    18   19   20   21   22   23   24   25   26   27   >