[issue12177] re.match raises MemoryError

2011-05-25 Thread Stefan Krah
Stefan Krah added the comment: Confirmed. The test case quickly uses 8GB of memory. -- nosy: +ezio.melotti, pitrou, skrah stage: -> needs patch versions: +Python 3.1, Python 3.3 ___ Python tracker <http://bugs.python.org/issu

[issue10330] trace module doesn't work without threads

2011-05-25 Thread Stefan Krah
Stefan Krah added the comment: test_trace still fails on 2.7 on the no-threads bot: http://www.python.org/dev/buildbot/all/builders/AMD64%20Fedora%20without%20threads%202.7/builds/22/steps/test/logs/stdio Could you have a short look at the patch. I think it should be correct; the tests pass

[issue8583] Hardcoded namespace_separator in the cElementTree.XMLParser

2011-05-28 Thread Stefan Behnel
Stefan Behnel added the comment: I don't see this having much to do with the DRY principle. It's "explicit is better than implicit" and "better safe than sorry" that applies here. -- ___ Python tracker <

[issue12210] test_smtplib: intermittent failures on FreeBSD

2011-05-29 Thread Stefan Krah
New submission from Stefan Krah : With Python 2.7, the FreeBSD AMD64 bot has sporadic failures in test_smtplib. Since these failures don't occur in other branches, I wonder if the timeout of 3 seconds is too low in 2.7. The timeout is 15 seconds in 3.3. test test_smtplib failed -- Trac

[issue12210] test_smtplib: intermittent failures on FreeBSD

2011-05-29 Thread Stefan Krah
Stefan Krah added the comment: Indeed, increasing the timeout to 15 solves the problem (I ran the test with the -F option for about 100 times). Since the timeout has been increased before to deal with flaky tests (52682bd738a7), I guess it's ok to do the same for 2.7. -- key

[issue12210] test_smtplib: intermittent failures on FreeBSD

2011-05-29 Thread Stefan Krah
Stefan Krah added the comment: Hmm, testVRFY occurs twice, once with timeout=15 and once with timeout=3. So there might be another reason why the test passes on 3.3 but not on 2.7. Anyway, increasing the timeout to 15 throughout does solve (or suppress) the problem

[issue12221] segfaults with unexpanded $Revision$ id's in release candidate tarballs

2011-05-31 Thread Stefan Krah
Stefan Krah added the comment: See also: Issue 11439 -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue12221> ___ ___ Python-bugs-list mailin

[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread Stefan Krah
Stefan Krah added the comment: > Distutils doesn't validate PyPI server certificate, so this change > doesn't prevent from MITM attacks, but at least it makes package > submissions over wireless channels and public networks safer. Is that so? It's been a while, but I

[issue12250] regrtest: make --timeout explicit

2011-06-03 Thread Stefan Krah
New submission from Stefan Krah : The implicit timeout in regrtest.py makes it harder to write automated test scripts for 3rd party modules. First, you have to remember to set --timeout=0 for long running tests. Then, you have to remember not to use the --timeout option when compiling --without

[issue12250] regrtest: make --timeout explicit

2011-06-03 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor wrote: > > The implicit timeout in regrtest.py makes it harder to write automated > > test scripts for 3rd party modules. First, you have to remember to > > set --timeout=0 for long running tests. > > Ah? Which test is

[issue12226] use secured channel for uploading packages to pypi

2011-06-03 Thread Stefan Krah
Stefan Krah added the comment: I think there should be a warning that the connection is unauthenticated (i.e. not secure). Users tend to be upset if they see 'https' and later find out that no certificates were verified. A reasonably secure alternative is to publish the p

[issue12080] decimal.py: performance in _power_exact

2011-06-04 Thread Stefan Krah
Stefan Krah added the comment: Mark Dickinson wrote: > Here's a patch. Stefan, could you please review? Mark, sorry for not replying earlier. The patch looks great. I've also tested the patch in practice: I ran 700,000,000 random tests with an exponent range of [-9, 999

[issue7511] msvc9compiler.py: ValueError: [u'path']

2011-06-06 Thread Stefan Krah
Stefan Krah added the comment: Hmm, in http://bugs.python.org/issue7511#msg106420 Tarek appeared to be supportive of the patch. Re DISTUTILS_USE_SDK: I don't think many users are aware of this variable. Also, it is not needed at all; it is sufficient to execute vcvars64.bat manually b

[issue12271] Python 2.7.x on IA64 running SLES 11 SP1

2011-06-06 Thread Stefan Krah
Stefan Krah added the comment: panel.h is not found. You'll need to install the package that provides libpanel together with the header files: error: panel.h: No such file or directory This does not look like a Python bug, so I'll set the issue to 'pending'. You can

[issue7511] msvc9compiler.py: ValueError: [u'path']

2011-06-06 Thread Stefan Krah
Stefan Krah added the comment: Marc-Andre Lemburg wrote: > Wouldn't it be better to have distutils tell the user about the > possible options, instead of guessing and then possibly compiling > extensions which later on don't import or import, but don't work > as e

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2011-06-07 Thread Stefan Krah
Stefan Krah added the comment: Marc-Andre Lemburg wrote: > >> >> Regarding the latest patch: This is not the right approach, since > >> >> find_vcvarsall() is supposed to return the path to the vcvarsall.bat > >> >> file and not an architecture sp

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Changes by Stefan Krah : Removed file: http://bugs.python.org/file15854/py3k_help_unify.diff ___ Python tracker <http://bugs.python.org/issue7652> ___ ___ Python-bug

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Changes by Stefan Krah : Removed file: http://bugs.python.org/file15855/trunk_help_unify.diff ___ Python tracker <http://bugs.python.org/issue7652> ___ ___ Python-bug

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Changes by Stefan Krah : -- hgrepos: +25 ___ Python tracker <http://bugs.python.org/issue7652> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file22303/ad05c2fdb3b2.diff ___ Python tracker <http://bugs.python.org/issue7652> ___ ___ Python-bugs-list m

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Changes by Stefan Krah : Removed file: http://bugs.python.org/file22303/ad05c2fdb3b2.diff ___ Python tracker <http://bugs.python.org/issue7652> ___ ___ Python-bugs-list m

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file22304/9a10e3232445.diff ___ Python tracker <http://bugs.python.org/issue7652> ___ ___ Python-bugs-list m

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Stefan Krah added the comment: Just a couple of remarks about the diff I created: The changes to decimal.py are exploratory (i.e. done quite hastily) and serve the purpose to fulfill PEP-399. library/cdecimal.rst is completely out of date. The rest should be very stable

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Changes by Stefan Krah : -- stage: -> patch review ___ Python tracker <http://bugs.python.org/issue7652> ___ ___ Python-bugs-list mailing list Unsubscri

[issue12090] 3.2: build --without-threads fails

2011-06-18 Thread Stefan Krah
Stefan Krah added the comment: Yes, this is fixed in 3.2. I just left the issue open as a reminder for the release branch. -- resolution: -> fixed stage: -> committed/rejected ___ Python tracker <http://bugs.python.org/i

[issue3067] setlocale fails with unicode strings on Py2 and with byte strings on Py3

2011-06-18 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue3067> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue7652] Merge C version of decimal into py3k.

2011-06-18 Thread Stefan Krah
Changes by Stefan Krah : Removed file: http://bugs.python.org/file22304/9a10e3232445.diff ___ Python tracker <http://bugs.python.org/issue7652> ___ ___ Python-bugs-list m

[issue7652] Merge C version of decimal into py3k.

2011-06-18 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file22404/49433f35a5f8.diff ___ Python tracker <http://bugs.python.org/issue7652> ___ ___ Python-bugs-list m

[issue7652] Merge C version of decimal into py3k.

2011-06-18 Thread Stefan Krah
Stefan Krah added the comment: The latest patch is based on a relatively stable revision of 3.3. To my knowledge, _decimal.c and decimal.py are now fully compatible in the sense of PEP-399. libmpdec o New test suite with comprehensive tests against decNumber. o Full

[issue12358] validate server certificate when uploading packages to PyPI

2011-06-19 Thread Stefan Krah
Stefan Krah added the comment: I agree with Éric: This is a duplicate. -- nosy: +skrah resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue11439] subversion keyword breakage

2011-06-20 Thread Stefan Krah
Stefan Krah added the comment: Building matplotlib with the 2.7.2 release fails due to this issue: Traceback (most recent call last): File "setup.py", line 162, in if check_for_tk() or (options['build_tkagg'] is True): File "/home/stefan/src/matplotlib-1.0.1/s

[issue12090] 3.2: build --without-threads fails

2011-06-20 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor wrote: > > Yes, this is fixed in 3.2. > > I just left the issue open as a reminder for the release branch. > > The issue is still open, can it be closed? What do you mean by "release > branch"? This one: http:

[issue10206] python program starting with unmatched quote spews spaces to stdout

2011-06-23 Thread Stefan Krah
Stefan Krah added the comment: I remember that I could reproduce it at the time. The issue was indeed fixed in r85904. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue10

[issue4608] urllib.request.urlopen does not return an iterable object

2011-06-25 Thread Stefan Schwarzer
Stefan Schwarzer added the comment: It turned out that although the addinfourl instance had the `__iter__` attribute in `addbase.__init__` correctly assigned, `__iter__` wasn't found by the `iter` builtin. It seems that `iter` always tries to use the `__iter__` method of the _class

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-26 Thread Stefan Krah
Stefan Krah added the comment: [Nick] > Another idea we may want to revisit is the PyManagedBuffer concept, > which would be a true PyObject that existed solely to simplify sharing > of Py_buffer structs. > If memoryview used such an object internally, then copying and slicing >

[issue1067702] urllib fails with multiple ftp transfers

2011-06-26 Thread Stefan Schwarzer
Stefan Schwarzer added the comment: I was able to get some error output with the code of the OP. However, I only saw the "opposite" message, such as: Retrieval of 'ftp://ftp.gnome.org/pub/debian/dists/stable/main/source/Sources.bz2' failed with error: [Errno ftp err

[issue1067702] urllib fails with multiple ftp transfers

2011-06-26 Thread Stefan Schwarzer
Stefan Schwarzer added the comment: > I converted the script to be executable with manual intervention (see > attachment). This should have been "without manual intervention". :) -- ___ Python tracker <http://bugs.pyth

[issue1067702] urllib fails with multiple ftp transfers

2011-06-26 Thread Stefan Schwarzer
Stefan Schwarzer added the comment: I can confirm the bug for the Python 2.7 tip (changeset b11e7bc76d07) after using the script urllibftpbug-non-interactive.py. -- ___ Python tracker <http://bugs.python.org/issue1067

[issue1067702] urllib fails with multiple ftp transfers

2011-06-26 Thread Stefan Schwarzer
Stefan Schwarzer added the comment: After running the adapted test script three times for Python 3 tip (changeset c5b0585624ef), I didn't get an error message / exception. -- Added file: http://bugs.python.org/file22485/urllibftpbug-non-interactive-p

[issue1067702] urllib fails with multiple ftp transfers

2011-06-26 Thread Stefan Schwarzer
Stefan Schwarzer added the comment: The traceback and its context for the exception raised in Python 2.7 is: ... ### 99

[issue1067702] urllib fails with multiple ftp transfers

2011-06-27 Thread Stefan Schwarzer
Stefan Schwarzer added the comment: Hi Senthil, I don't yet understand what was going on before it resulted in the traceback. I also don't understand _why_ the patch fixes _this_ bug. (That's not to say it doesn't, but I think it's not obvious either. :-) ) Were

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Stefan Krah
Stefan Krah added the comment: Nick, you know a lot about this issue and I'm probably missing many things here. I misunderstood your concept of PyManagedBuffer, so my previous posting might have been hard to understand. I'd appreciate if you (or anyone in this thread) could comm

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Stefan Krah
Stefan Krah added the comment: Pauli Virtanen wrote: > skrah writes: > > For example, an exporting object could provide a sliced view by adding > > a getslicedbufferproc to PyBufferProcs: > > > > int PyObject_GetSlicedBuffer(PyO

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Stefan Krah
Stefan Krah added the comment: Nick Coghlan wrote: [Snip liberally] > The lifecycle problem is unrelated to the details of the buffer *contents* though - it's entirely about the fact that clients can't safely copy all those pointers (as some may refer to addresses inside th

[issue12430] Pip fails to fetch from mirror if PyPi checksum times out

2011-06-28 Thread Stefan Krah
Stefan Krah added the comment: Hello, The PyPI bug tracker is over here (you can find the link on the front page of http://pypi.python.org/pypi): http://sourceforge.net/tracker/?group_id=66150&atid=513503 That said, having checksums come from the master server exclusively seems li

[issue12468] longjmp causes uninitialized stack frame

2011-07-01 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue12468> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12474] Invalid read in symtable.c

2011-07-02 Thread Stefan Krah
New submission from Stefan Krah : After 151142c0c5b1 Valgrind finds an invalid read in symtable.c, line 907: st->st_cur = (PySTEntryObject *)PyList_GET_ITEM(st->st_stack, size - 2); ==14301== Memcheck, a memory error detector ==14301== Copyright (C) 2002-2010, and GNU GPL'd

[issue12481] test_faulthandler: popups on Windows/Debug/x64

2011-07-03 Thread Stefan Krah
New submission from Stefan Krah : I'm getting the dreaded "python_d.exe has stopped working" popups in test_faulthandler on Windows 7 + VisualStudioPro + "Debug|x64". -- components: Tests messages: 139691 nosy: haypo, skrah priority: normal severity:

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2011-07-03 Thread Stefan Krah
Stefan Krah added the comment: For test_capi the patch in #9116 works. For test_faulthandler it doesn't, unfortunately. -- ___ Python tracker <http://bugs.python.org/is

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2011-07-03 Thread Stefan Krah
Stefan Krah added the comment: "Instead of skipping the test, I prefer to disable temporary the popup by setting the right registry key (and then restore the previous value or delete the key)." Do you mean that the user should change/restore the key or that the Python tests should

[issue5619] Pass MS CRT debug flags into subprocesses

2011-07-03 Thread Stefan Krah
Stefan Krah added the comment: Related issues with patches: #9116 and #11732 -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue5619> ___ ___ Pytho

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Stefan Krah
Stefan Krah added the comment: In order to have a basis for discussion, I've set up a repo at http://hg.python.org/features/pep-3118#memoryview with an implementation of PyManagedBuffer. The whole test suite passes, also with refleak counting and Valgrind. Review is most welcome. I

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file22564/bbe70ca4e0e5.diff ___ Python tracker <http://bugs.python.org/issue10181> ___ ___ Python-bugs-list m

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Stefan Krah
Stefan Krah added the comment: Nick Coghlan wrote: > The reason redirecting all requests to the underlying object doesn't work > is because repeated calls to getbuffer on mutable objects are allowed to > return *different* answers. Assume we have a mutable array type that al

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Stefan Krah
Stefan Krah added the comment: Pauli Virtanen wrote: > Comment on the patch: it seems you do not track the re-export count in > memory_getbuf: > > a = memoryview(obj) > b = numpy.asarray(a) > a.release() > b[0] = 123 # <-- BOOM: the buffer was already

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-04 Thread Stefan Krah
Stefan Krah added the comment: [I agree that multi-dimensional support should not be part of this patch. I was thinking about creating a separate branch for that.] Nick Coghlan wrote: > As far as the rule of disallowing shape changes while a buffer is exported, > I actually think th

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Stefan Krah
Stefan Krah added the comment: Nick, Pauli, thanks for all the comments. I'm busy implementing the easy changes; then it'll be easier to deal with the flags issues. Pauli: Does numpy use the (undocumented) smalltable array in the Py_buffer structure? We would like

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file22577/718801740bde.diff ___ Python tracker <http://bugs.python.org/issue10181> ___ ___ Python-bugs-list m

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Stefan Krah
Stefan Krah added the comment: I've uploaded a revised version that addresses several suggestions. I think we have agreement on those now: - Officially ditch smalltable. - Comment static storage fields inside PyMemoryViewObject. - Improve refcounting in PyMemoryView_FromB

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Stefan Krah
Stefan Krah added the comment: I'm slightly confused about the implication chain in the flags. PyBUF_STRIDES seem to allow for discontiguous arrays, yet STRIDES -> ND -> C_CONTIGUOUS. PyB

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Stefan Krah
Stefan Krah added the comment: Antoine Pitrou wrote: > My issue is that until now sliced memoryviews are independent objects > and are not affected by the releasing of the original memoryview. With > this patch, they are, and that's why I'm advocating for a subtler >

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-06 Thread Stefan Krah
Stefan Krah added the comment: Antoine is right, this needs to be fixed. I think that for *practical* purposes, the existing release() method already behaves like a tryrelease() method: Traceback (most recent call last): File "", line 1, in BufferError: Existing exports of da

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-06 Thread Stefan Krah
Stefan Krah added the comment: [The first part of the message again, this time via the web interface.] Antoine is right, this needs to be fixed. I think that for *practical* purposes, the existing release() method already behaves like a tryrelease() method: >>> b = bytearray(b&

[issue12560] libpython.so not built on OpenBSD

2011-07-14 Thread Stefan Sperling
New submission from Stefan Sperling : In Python-2.7.2 (I have not checked other versions, sorry), the configure script doesn't not define LDLIBRARY on OpenBSD. Because of this libpython.so does not get built. -- components: Build files: python-2.7.2-configure.diff keywords:

[issue12555] PEP 3151 implementation

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

[issue12560] libpython.so not built on OpenBSD

2011-07-14 Thread Stefan Krah
Changes by Stefan Krah : -- assignee: -> skrah nosy: +skrah ___ Python tracker <http://bugs.python.org/issue12560> ___ ___ Python-bugs-list mailing list Un

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Stefan Krah
Stefan Krah added the comment: Behavior for mixed operations varies greatly between Python versions. The first table over here lists the differences and should be valid for decimal.py: http://www.bytereef.org/mpdecimal/doc/cdecimal/index.html#floatoperation-signal As an extension, cdecimal

[issue12593] define OpenBSD in configure.in if Py_ENABLE_SHARED == 1

2011-07-20 Thread Stefan Krah
Stefan Krah added the comment: This is a duplicate of #12560. -- nosy: +skrah resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> libpython.so not built on OpenBSD type: -> behavior ___

[issue12560] libpython.so not built on OpenBSD

2011-07-20 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +rpointel ___ Python tracker <http://bugs.python.org/issue12560> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12560] libpython.so not built on OpenBSD

2011-07-23 Thread Stefan Krah
Stefan Krah added the comment: Unassigning: I tested on OpenBSD 4.5 and get other (probably unrelated errors). -- assignee: skrah -> ___ Python tracker <http://bugs.python.org/issu

[issue8714] Delayed signals in the REPL on OpenBSD (possibly libpthread related)

2011-07-23 Thread Stefan Krah
Stefan Krah added the comment: I know, the OpenBSD libpthread has problems. I listed some possible candidates in #8712. For instance: http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/lang/python/2.6/patches/Attic/patch-Lib_test_test_signal_py?rev=1.3;content-type=text%2Fplain The

[issue8714] Delayed signals in the REPL on OpenBSD (possibly libpthread related)

2011-07-23 Thread Stefan Krah
Stefan Krah added the comment: I forgot: readline support is enabled, and there are known problems: http://marc.info/?t=12832732933&r=1&w=2 -- ___ Python tracker <http://bugs.python.or

[issue6419] Broken test_kqueue.py on OpenBSD

2011-07-25 Thread Stefan Krah
Stefan Krah added the comment: No, I didn't commit it. Currently I don't have an amd64 OpenBSD install to do further testing. The problem could be #12181, it could also be qemu, which sometimes has issues with OpenBSD. -- ___ Python trac

[issue12560] libpython.so not built on OpenBSD

2011-07-25 Thread Stefan Krah
Stefan Krah added the comment: For the record: The other failures I mentioned were almost certainly OpenBSD 4.5 / autoconf specific, so I didn't bother. Cairo has a workaround, but I think that goes too far. http://cairo.sourcearchive.com/documentation/1.9.4/cairo-atomic-private_8h-source

[issue1813] Codec lookup failing under turkish locale

2011-07-26 Thread Stefan Krah
Stefan Krah added the comment: The Fedora bot fails because here ... locale.setlocale(locale.LC_CTYPE, loc) loc = ('tr_TR', 'ISO8859-9'), and apparently setlocale can only handle "tr_TR", but not "tr_TR.ISO8859-9": 144 if (locale

[issue1813] Codec lookup failing under turkish locale

2011-07-26 Thread Stefan Krah
Stefan Krah added the comment: Stefan Krah wrote: > (gdb) p result = setlocale(category, "tr_TR.ISO8859-9") > $8 = 0x0 > (gdb) p result = setlocale(category, "tr_TR") > $9 = 0x96d770 "tr_TR" > (gdb) p locale > $10 = 0x70f6a5b0 "tr_TR.

[issue1813] Codec lookup failing under turkish locale

2011-07-26 Thread Stefan Krah
Stefan Krah added the comment: Yes, it's a bug. This works: #include #include int main(void) { char *s; printf("%s\n", setlocale(LC_CTYPE, "tr_TR.ISO8859-9")); printf("%s\n", setlocale(LC_CTYPE, NULL)); s = setlocale(LC_CTYPE, "tr_

[issue1813] Codec lookup failing under turkish locale

2011-07-28 Thread Stefan Krah
Stefan Krah added the comment: Fedora bug report: https://bugzilla.redhat.com/show_bug.cgi?id=726536 -- ___ Python tracker <http://bugs.python.org/issue1

[issue1813] Codec lookup failing under turkish locale

2011-08-02 Thread Stefan Krah
Stefan Krah added the comment: Unrelated to the Fedora issue: The test is currently skipped on the FreeBSD bot, but completes successfully with: diff -r 0b52b6f1bfab Lib/test/test_locale.py --- a/Lib/test/test_locale.py Tue Aug 02 10:16:45 2011 +0200 +++ b/Lib/test/test_locale.py Tue Aug

[issue1813] Codec lookup failing under turkish locale

2011-08-02 Thread Stefan Krah
Stefan Krah added the comment: As I wrote on python-dev, this test also fails on Debian lenny, which has the same setlocale() bug as Fedora. So, indeed the test should be skipped on a multitude of platforms. -- ___ Python tracker <h

[issue1813] Codec lookup failing under turkish locale

2011-08-02 Thread Stefan Krah
Stefan Krah added the comment: [Re-opening to fix the skips] Yes, the test works on: Ubuntu Lucid (libc-2.11.1), OpenSUSE (libc-2.11.1), FreeBSD-8.2 Failure: Fedora 14 (libc-2.13), Debian lenny (libc-2.7), Gentoo (libc-2.13-r2) So perhaps this test should be marked as expected

[issue7424] segmentation fault in listextend during install

2011-08-03 Thread Stefan Krah
Stefan Krah added the comment: Just a guess: it might be a stack overflow. Could you try to reduce Py_DEFAULT_RECURSION_LIMIT in Python/ceval.c and see if you get a RuntimeError instead? See also: issue #1212900 -- ___ Python tracker <h

[issue10588] imp.find_module raises unexpected SyntaxError

2011-08-09 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue10588> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

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

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-08-10 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file22873/78fb1181787a.diff ___ Python tracker <http://bugs.python.org/issue10181> ___ ___ Python-bugs-list m

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-08-10 Thread Stefan Krah
Stefan Krah added the comment: I thought it might be productive to switch to documentation/test driven development for PEP-3118 in general. So I updated the documentation, trying to spell out the responsibilities of both exporter and consumer as clearly as possible. In order to have a PEP-3118

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2011-08-10 Thread Stefan Krah
Stefan Krah added the comment: This should be fixed with the ManagedBuffer implementation from #10181. -- dependencies: +Problems with Py_buffer management in memoryobject.c (and elsewhere?) nosy: +skrah ___ Python tracker <http://bugs.python.

[issue8305] memoview[0] creates an invalid view if ndim != 1

2011-08-10 Thread Stefan Krah
Stefan Krah added the comment: The crash is fixed in the features/pep-3118 repo: >>> from numpy import array >>> y=array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]) >>> y.shape = 3,4 >>> view=memoryview(y) >>> view2 = view[0] Traceback (

[issue7433] MemoryView memory_getbuf causes segfaults, double call to tp_releasebuffer

2011-08-10 Thread Stefan Krah
Stefan Krah added the comment: This should be fixed in features/pep-3118. -- dependencies: +Problems with Py_buffer management in memoryobject.c (and elsewhere?) nosy: +skrah ___ Python tracker <http://bugs.python.org/issue7

[issue10746] ctypes c_long & c_bool have incorrect PEP-3118 type codes

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

[issue12730] Python's casemapping functions are untrustworthy due to narrow/wide build issues

2011-08-11 Thread Stefan Krah
Changes by Stefan Krah : -- Removed message: http://bugs.python.org/msg141927 ___ Python tracker <http://bugs.python.org/issue12730> ___ ___ Python-bugs-list m

[issue12740] Add struct.Struct.nmemb

2011-08-12 Thread Stefan Krah
New submission from Stefan Krah : It is somewhat complicated to calculate the number of members in a Struct, so I propose to add Struct.nmemb (in 3.3, 3.2 and 2.7): >>> import struct >>> s = struct.Struct("Pxx3L3s") >>> s.size 47 >>> s.nmemb 5

[issue12740] Add struct.Struct.nmemb

2011-08-14 Thread Stefan Krah
Stefan Krah added the comment: I like random tests in the stdlib, otherwise the same thing gets tested over and over again. `make buildbottest` prints the seed, and you can do it for a single test as well: $ ./python -m test -r test_heapq Using random seed 5857004 [1/1] test_heapq 1 test OK

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

2011-08-14 Thread Stefan Krah
Stefan Krah added the comment: Thanks for the patch. I agree with the interpretation of the format string. One thing is unclear though: Using this interpretation the multi-dimensional array notation in format strings only seems useful for pointers to arrays. The PEP isn't so clear on

[issue12740] Add struct.Struct.nmemb

2011-08-14 Thread Stefan Krah
Stefan Krah added the comment: Just to throw in a new name: Struct.nitems would also be possible. -- ___ Python tracker <http://bugs.python.org/issue12

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-08-14 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +amaury.forgeotdarc, belopolsky ___ Python tracker <http://bugs.python.org/issue11835> ___ ___ Python-bugs-list mailin

[issue12740] Add struct.Struct.nmemb

2011-08-16 Thread Stefan Krah
Stefan Krah added the comment: Including the format string in the error output is a good idea. Meador, was this a constructed failure to show the output or did it really occur? -- ___ Python tracker <http://bugs.python.org/issue12

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-08-16 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file22909/70a8ccd53ade.diff ___ Python tracker <http://bugs.python.org/issue10181> ___ ___ Python-bugs-list m

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-08-16 Thread Stefan Krah
Stefan Krah added the comment: 70a8ccd53ade fixes conversion of NumPy-style arrays to a suboffset representation. The previous representation did not work for slicing non-contiguous arrays with backward strides. Also, I've added long comments that hopefully explain how slicing with arbi

[issue10293] PyMemoryView object has obsolete members

2011-08-19 Thread Stefan Krah
Stefan Krah added the comment: I think PyBUF_SHADOW was the renamed version of PyBUF_UPDATEIFCOPY from the PEP. :) -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue10

<    1   2   3   4   5   6   7   8   9   10   >