[issue13452] PyUnicode_EncodeDecimal: reject error handlers different than strict

2011-11-22 Thread Stefan Krah
Stefan Krah added the comment: I'm only using the function with the NULL error handler. If I had to use 'xmlcharrefreplace', presumably I'd overallocate 'output' for the worst case scenario: sizeof("�") per encoded character. It's

[issue7652] Merge C version of decimal into py3k.

2011-11-30 Thread Stefan Krah
Stefan Krah added the comment: Binary versus decimal - > There is already gmpy and bigfloat, based on the heavily optimized GMP > library, > for example. Is it a license issue? Can't we reuse GMP/MPFR to offer a > Decimal API? _decimal is a PE

[issue7652] Merge C version of decimal into py3k.

2011-11-30 Thread Stefan Krah
Stefan Krah added the comment: Mark Dickinson wrote: > The only problem from my perspective is getting someone to find time to > review such a massive patch. I've been wondering whether we could get away > with some kind of 'statistical' review: do a large-scale rev

[issue7652] Merge C version of decimal into py3k.

2011-11-30 Thread Stefan Krah
Stefan Krah added the comment: Antoine Pitrou wrote: > It is also helped by the fact you are a core developer and we trust you to > be here to do maintenance :) Sure. The specification doesn't really change, so the work will hopefully be limited. :) > I think it's still p

[issue7652] Merge C version of decimal into py3k.

2011-11-30 Thread Stefan Krah
Stefan Krah added the comment: Raymond Hettinger wrote: > We've been wanting this for a long time. > > Strong +1 from me. Thank you, Raymond! -- ___ Python tracker <http://bugs.pyt

[issue7652] Merge C version of decimal into py3k.

2011-11-30 Thread Stefan Krah
Stefan Krah added the comment: Amaury Forgeot d'Arc wrote: > I can help with the review. Is http://bugs.python.org/review/7652/show a > good starting point? I already have some comments. Yes, that would be great. Apart from two or three changes that I still need to push patch s

[issue7652] Merge C version of decimal into py3k.

2011-11-30 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file23822/bba956250186.diff ___ Python tracker <http://bugs.python.org/issue7652> ___ ___ Python-bugs-list m

[issue7652] Merge C version of decimal into py3k.

2011-11-30 Thread Stefan Krah
Stefan Krah added the comment: Stefan Krah wrote: > Yes, that would be great. Apart from two or three changes that I still > need to push patch set 4 is the latest version. Hmm, no. I'll create a slightly newer patch from Oct. 1st. -- ___

[issue7652] Merge C version of decimal into py3k.

2011-12-01 Thread Stefan Krah
Stefan Krah added the comment: [Amaury] > Overall, I think that the "mpd" C library should be better separated from the > _decimal module (a bit like _ctypes, with the libffi library): its own > configure > & makefile, its own test suite... which are not necessarily

[issue13522] Document error return values for PyFloat_* and PyComplex_*

2011-12-03 Thread Stefan Krah
New submission from Stefan Krah : A couple of -1.0 error return codes aren't documented, see for example PyFloat_AsDouble() and PyComplex_AsCComplex(). -- assignee: docs@python components: Documentation keywords: easy messages: 148789 nosy: docs@python, mark.dickinson, skrah pri

[issue12965] longobject: documentation improvements

2011-12-03 Thread Stefan Krah
Stefan Krah added the comment: > Ultimately, I think it would make sense to remove all __int__ > conversions from Objects/longobject.c; +1 I think this API cleanup is worth some (probably very limited) breakage in third party m

[issue13522] Document error return values for PyFloat_* and PyComplex_*

2011-12-03 Thread Stefan Krah
Stefan Krah added the comment: Good point. - I just had to figure out if the pattern Py_complex c = PyComplex_AsCComplex(w); if (c.real == -1.0 && PyErr_Occurred()) { ... will always be reliable in the future. The source of PyComplex_AsCComplex() suggests that it will

[issue13547] Clean Lib/_sysconfigdata.py and Modules/_testembed

2011-12-07 Thread Stefan Krah
New submission from Stefan Krah : I think that `make distclean` should remove Lib/_sysconfigdata.py and Modules/_testembed. On second thought, `make clean` should probably also remove those. -- components: Build messages: 148969 nosy: skrah priority: normal severity: normal stage: needs

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

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

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-12-08 Thread Stefan Krah
Stefan Krah added the comment: localeconv_wchar.c runs fine on Ubuntu with hu_HU and fi_FI. I tried on OpenSolaris, but I only have UTF-8 locales. The package with ISO locales seems to be SUNWlang-cs-extra, but Oracle took down http://pkg.opensolaris.org/release

[issue13547] Clean Lib/_sysconfigdata.py and Modules/_testembed

2011-12-09 Thread Stefan Krah
Stefan Krah added the comment: I guess this still needs to be fixed for Visual Studio. -- ___ Python tracker <http://bugs.python.org/issue13547> ___ ___ Pytho

[issue13560] Add PyUnicode_DecodeLocale and PyUnicode_DecodeLocaleAndSize

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

[issue13547] Clean Lib/_sysconfigdata.py and Modules/_testembed

2011-12-09 Thread Stefan Krah
Stefan Krah added the comment: Excellent, closing then. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue13570] Expose faster unicode<->ascii functions in the C-API

2011-12-09 Thread Stefan Krah
New submission from Stefan Krah : I just ran the telco benchmark ... http://www.bytereef.org/mpdecimal/quickstart.html#telco-benchmark ... on _decimal to see how the PEP-393 changes affect the module. The benchmark reads numbers from a binary file, does some calculations and prints the

[issue13570] Expose faster unicode<->ascii functions in the C-API

2011-12-10 Thread Stefan Krah
Stefan Krah added the comment: > I prefer to not expose such function or someone will use it without > understanding exactly how dangerous it is. OK. - I'm afraid that I made an error in the benchmarks, since I accidentally used a changed version of telco.py, namely: # t i

[issue13570] Expose faster unicode<->ascii functions in the C-API

2011-12-11 Thread Stefan Krah
Stefan Krah added the comment: Sorry, the title of the issue isn't correct any more. The revised issue is that in 3.3 a) outfil.write("%s\n" % t) is about 11% slower than in Python2.7 and 8% slower than in Python3.2. On the other hand in 3.3 the hack b) outfil.write(str(t)

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2011-12-13 Thread Stefan Krah
Stefan Krah added the comment: I just tried out http://www.bitvise.com/winsshd , which is free for personal and noncommercial use. If you run the tests via an ssh connection, WinSSHD automatically translates pop-ups into error messages: C:\Users\stefan\cdecimal\PCbuild>python.exe -m test -u

[issue7652] Merge C version of decimal into py3k.

2011-12-14 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file23959/be8a59fcba49.diff ___ Python tracker <http://bugs.python.org/issue7652> ___ ___ Python-bugs-list m

[issue7652] Merge C version of decimal into py3k.

2011-12-15 Thread Stefan Krah
Stefan Krah added the comment: Amaury has asked for more comments (and I agree). However, I'm not sure what level of detail would be appropriate. As an example, I've posted the full proof of the x87 modular multiplication in umodarith.h. Even with the Coq parts stripped, this woul

[issue7652] Merge C version of decimal into py3k.

2011-12-15 Thread Stefan Krah
Stefan Krah added the comment: Stefan Krah wrote: > Would you prefer that level of detail or should I just post the core > of the algorithm? Argh. s/post/add to comments in umodarith.h/ -- ___ Python tracker <http://bugs.python.org/

[issue7652] Merge C version of decimal into py3k.

2011-12-16 Thread Stefan Krah
Stefan Krah added the comment: > For my part, a two-lines description of the purpose of file is enough. OK, I'll go for small comments in the files themselves and put big ones in separate files. -- ___ Python tracker <http://bugs

[issue13669] XATTR_SIZE_MAX and XATTR_LIST_MAX undefined on kfreebsd/debian with eglibc

2011-12-28 Thread Stefan Krah
Stefan Krah added the comment: So the problem occurs on: http://www.debian.org/ports/kfreebsd-gnu/ Did I get that right? Is __FreeBSD__ defined on that system? I'm not sure though if we should start supporting hybrid systems. -- ___ P

[issue13706] Unicode fill characters no longer work in numeric formatting

2012-01-03 Thread Stefan Krah
New submission from Stefan Krah : It used to be possible to specify Unicode fill characters in numeric formatting: Python 3.3.0a0 (default:1dd6908df8f5, Jul 16 2011, 11:16:00) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for mo

[issue13706] Unicode fill characters no longer work in numeric formatting

2012-01-03 Thread Stefan Krah
Stefan Krah added the comment: Hum, somehow I always refuse to acknowledge that ASCII is a subset of Unicode. :) -- ___ Python tracker <http://bugs.python.org/issue13

[issue13706] non-ascii fill characters no longer work in numeric formatting

2012-01-03 Thread Stefan Krah
Changes by Stefan Krah : -- title: Unicode fill characters no longer work in numeric formatting -> non-ascii fill characters no longer work in numeric formatting ___ Python tracker <http://bugs.python.org/issu

[issue13706] non-ascii fill characters no longer work in formatting

2012-01-03 Thread Stefan Krah
Stefan Krah added the comment: Actually the issue is not restricted to numeric formatting. It's not possible to pad a Unicode string with a non-ascii whitespace: >>> format("abcd", "\u2007<7") Traceback (most recent call last): File "", line 1,

[issue7098] g formatting for decimal types should always strip trailing zeros.

2012-01-04 Thread Stefan Krah
Stefan Krah added the comment: [Mark] > So I think the current code is correct. I agree with this. Currently the 'g' format is like to_sci_string() with the added possibility of adjusting the number of significant digits. It's probably hard to come up with a better way

[issue13703] Hash collision security issue

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

[issue13718] Format Specification Mini-Language does not accept comma for percent value

2012-01-09 Thread Stefan Krah
Stefan Krah added the comment: [[fill]align][sign][#][0][width][,][.precision][type] The ',' must be before [.precision]: >>> '{:,.2%}'.format(55.537568) '5,553.76%' In my opinion this is not a bug. -- nosy: +skrah __

[issue12176] Compiling Python 2.7.1 on Ubuntu 11.04 (Natty Narwhale)

2011-05-25 Thread Stefan Krah
Stefan Krah added the comment: This should have been fixed in issue 11715. Could you try to build from a mercurial checkout? -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue12

[issue12176] Compiling Python 2.7.1 on Ubuntu 11.04 (Natty Narwhale)

2011-05-25 Thread Stefan Krah
Stefan Krah added the comment: Thanks for testing. I guess we can close this one then. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue12180] test_packaging: failures --without-threads

2011-05-25 Thread Stefan Krah
New submission from Stefan Krah : There are still a couple of issues on the Fedora buildbot. Most of them are caused by the absence of threading. -- components: Tests keywords: buildbot messages: 136890 nosy: skrah, tarek priority: normal severity: normal status: open title

[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

[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

[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 >

[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&

[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

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