[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2012-09-22 Thread Stefan Krah
Stefan Krah added the comment: Hmm, the bug is in the 32-bit build. The 64-bit build is fine. Or do you mean MMX registers? -- ___ Python tracker <http://bugs.python.org/issue15

[issue16002] AIX buildbot compile errors

2012-09-22 Thread Stefan Krah
New submission from Stefan Krah: According to issue #9799 configuring --without-computed-gotos might solve the AIX compile error. -- components: Build keywords: buildbot messages: 171013 nosy: skrah, trent priority: normal severity: normal status: open title: AIX buildbot compile errors

[issue16002] AIX buildbot compile errors

2012-09-23 Thread Stefan Krah
Stefan Krah added the comment: I tested --without-computed-gotos on the AIX machine and that solves the problem. Antoine, I understood that ./configure parameters can only be changed on the build master. Could you add --without-computed-gotos? -- nosy: +pitrou

[issue16002] AIX buildbot compile errors

2012-09-23 Thread Stefan Krah
Stefan Krah added the comment: Thanks! -- ___ Python tracker <http://bugs.python.org/issue16002> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16008] [OS bug] DragonFly buildbot locale failures

2012-09-23 Thread Stefan Krah
New submission from Stefan Krah: The locale failures on the DragonFly buildbot are caused by an OS bug: bugs.dragonflybsd.org/issues/2415 I'm opening an issue so that this is recorded and other people hopefully won't waste time debugging the failures. I intend to close the issue as

[issue16002] AIX buildbot compile errors

2012-09-23 Thread Stefan Krah
Stefan Krah added the comment: The compile errors are fixed, let's open separate issues for the test failures. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.pyth

[issue15835] HP-UX build needs to be tweaked to pick up PATH_MAX

2012-09-23 Thread Stefan Krah
Stefan Krah added the comment: PATH_MAX seems to be a mess on HP-UX: It's only defined in limits.h if _INCLUDE_XOPEN_SOURCE_PRE_500 is defined. But MAXPATHLEN is always defined in sys/param.h, so I suggest to use that (patch attached). Other projects take a similar approach by just def

[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-09-24 Thread Stefan Krah
Stefan Krah added the comment: test_threaded_import also takes around 5 min on Windows. I think we should go for 0.1 on all platforms. -- ___ Python tracker <http://bugs.python.org/issue15

[issue15963] Improve ./configure's support for 32/64-bit debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary UNIX systems (Solaris/HP-UX/AIX et al).

2012-09-24 Thread Stefan Krah
Stefan Krah added the comment: I'm glad I found this. Without the long incantation _decimal is seriously miscompiled on SPARC/Solaris 10/Sun Studio 12.3. I was using just ... ./configure --without-gcc CFLAGS=-m64 LDFLAGS=-m64 ..., and that seems to trigger an optimizer bug that pro

[issue16008] [OS bug] DragonFly buildbot locale failures

2012-09-24 Thread Stefan Krah
Stefan Krah added the comment: Closing since this an OS bug. -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue16035] Segmentation fault in test suite of apsw

2012-09-25 Thread Stefan Krah
Stefan Krah added the comment: I don't get a segfault, but a fatal error. Here's the back trace (unfortunately I've no time to debug this further today; sqlite is the latest version compiled from source): #0 0x771e6a75 in *__GI_raise (sig=) at ../nptl/sysdeps/unix/sys

[issue16002] AIX buildbot compile errors

2012-09-25 Thread Stefan Krah
Stefan Krah added the comment: Hi Trent, nice setup BTW! Trent Nelson wrote: > Hi Stefan, quick question: how did you invoke ./configure on the AIX box? > The reason for asking is that a7/arsenic is a little quirky, you need to > run a zsh subroutine via `_xlc 12` to set up the rig

[issue16035] Segmentation fault in test suite of apsw

2012-09-25 Thread Stefan Krah
Stefan Krah added the comment: [Adding the apsw author to the cc.] Antoine is right, no Python bug here. I think we can close this. -- nosy: +rogerbinns stage: -> committed/rejected status: pending -> closed ___ Python tracker

[issue16080] test_decimal causes other tests to fail with LC_ALL=fr_FR

2012-09-28 Thread Stefan Krah
Stefan Krah added the comment: Thanks for the report. -- The locale wasn't properly reset in test_wide_char_separator_decimal_point(). Should be fixed now. -- nosy: +skrah resolution: -> fixed stage: -> committed/rejected status: open -> closed type

[issue16080] test_decimal causes other tests to fail with LC_ALL=fr_FR

2012-09-28 Thread Stefan Krah
Stefan Krah added the comment: Here we go. The new code fails if ps_AF isn't available. -- resolution: fixed -> stage: committed/rejected -> status: closed -> open ___ Python tracker <http://bugs.pyth

[issue16093] Documentation: links to 3.3

2012-09-30 Thread Stefan Krah
New submission from Stefan Krah: A couple of links still need to be updated: http://docs.python.org/ Python 3.3 says "in development" and points to 3.4. http://docs.python.org/dev/ Python 3.3 is missing. -- assignee: docs@python components: Documentation messages: 1

[issue16089] _elementtree causes segfault in GC

2012-09-30 Thread Stefan Krah
Stefan Krah added the comment: I can't reproduce this, so just a wild guess: Does the segfault still happen if you replace Py_XDECREF() with Py_CLEAR() in xmlparser_gc_clear()? -- nosy: +skrah ___ Python tracker <http://bugs.python.org/is

[issue16089] _elementtree causes segfault in GC

2012-09-30 Thread Stefan Krah
Stefan Krah added the comment: I'm now able to reproduce the issue with a non-debug build. As Christian says, using Py_CLEAR() does not help (though I wonder if it shouldn't be used anyway). Reverting part of 20b8f0ee3d64 "fixes" the segfault, see the attached diff. I don&

[issue16089] _elementtree causes segfault in GC

2012-09-30 Thread Stefan Krah
Stefan Krah added the comment: Do note that the patch is somewhat cargo-cult. I don't understand yet why it works; it may very well just silence the real problem. -- ___ Python tracker <http://bugs.python.org/is

[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-09-30 Thread Stefan Krah
Stefan Krah added the comment: For once a Linux bot shows the failure that is the topic of this issue: http://buildbot.python.org/all/builders/x86%20Gentoo%20Non-Debug%203.x/builds/3101/steps/test/logs/stdio == FAIL

[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-10-01 Thread Stefan Krah
Stefan Krah added the comment: I can't reproduce it either even on the machine that magically caught every problem in #15781. FWIW, the Gentoo bot also had a completely isolated segfault in test_ssl lately. Antoine, are you OK with setting the switch interval to 1e-5 for all plat

[issue16089] _elementtree causes segfault in GC

2012-10-02 Thread Stefan Krah
Stefan Krah added the comment: Nice find. -- The Python version does this: _Element = _ElementInterface = Element So (naively) I would think the same should be done for the C version after importing Element. But then one runs into the object layouts conflict that you mentioned. On the

[issue812369] module shutdown procedure based on GC

2012-10-05 Thread Stefan Friesel
Stefan Friesel added the comment: What is the status of this? Does the patch need more reviewing? -- nosy: +Stefan.Friesel ___ Python tracker <http://bugs.python.org/issue812

[issue16143] Building with configure option "--without-doc-strings" crashes first time through PyUnicode_DecodeUTF8Stateful

2012-10-05 Thread Stefan Krah
Stefan Krah added the comment: This seems related to #9242: _Py_InitializeEx_Private() calls _Py_ReadyTypes(), which uses the Unicode API, well before actually calling _PyUnicode_Init(). -- nosy: +georg.brandl, skrah priority: normal -> release blocker stage: -> needs

[issue16143] Building with configure option "--without-doc-strings" crashes first time through PyUnicode_DecodeUTF8Stateful

2012-10-05 Thread Stefan Krah
Stefan Krah added the comment: Sorry, wrong issue number: Related to #10156. -- ___ Python tracker <http://bugs.python.org/issue16143> ___ ___ Python-bugs-list m

[issue10156] Initialization of globals in unicodeobject.c

2012-10-05 Thread Stefan Krah
Stefan Krah added the comment: See also #16143. -- versions: +Python 3.3, Python 3.4 ___ Python tracker <http://bugs.python.org/issue10156> ___ ___ Python-bug

[issue16145] Abort in _csv module

2012-10-05 Thread Stefan Krah
Stefan Krah added the comment: In general APSW does not look ready for the Python 3.3 Unicode implementation. Example: src/statementcache.c:217 Py_UNICODE *out; PyObject *res=PyUnicode_FromUnicode(NULL, size); Python 3.3 docs: "If the buffer is NULL, PyUnicode_READY() must be c

[issue16145] Abort in _csv module

2012-10-05 Thread Stefan Krah
Stefan Krah added the comment: R. David Murray wrote: > My understanding was that code that calls the public APIs should continue to > work. Is this a new requirement in 3.3, or is it that it has always been a > requirement but code could get away without the ready before? I

[issue16145] Abort in _csv module

2012-10-05 Thread Stefan Krah
Stefan Krah added the comment: David is right, the existing (APSW) code should continue to work. I think we need to add a couple of PyUnicode_READY() to some functions in Modules/_csv.c. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16145] Abort in _csv module

2012-10-06 Thread Stefan Krah
Stefan Krah added the comment: Here's a patch. Victor, I guess I have a feature request for fusil: It would be nice if fusil also generated legacy strings (or does it already do so?). -- keywords: +patch Added file: http://bugs.python.org/file27454/issue16145

[issue16145] Abort in _csv module

2012-10-06 Thread Stefan Krah
Stefan Krah added the comment: > The PEPs and doc said the C API would remain backwards compatible. Roger: Yes, you don't need to change anything. I was misled by the PyUnicode_AsUnicode() docs, thinking that the responsibility to call PyUnicode_READY() also applies if the generated

[issue16148] Implement PEP 424

2012-10-06 Thread Stefan Krah
Stefan Krah added the comment: a7ec0a1b0f7c broke the Windows buildbots: In Visual Studio variables can only be declared at the top of a block. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue16

[issue16153] PyUnicode_FromFormatV() must fail if the format string is invalid

2012-10-07 Thread Stefan Krah
Stefan Krah added the comment: I don't know the reason for the previous behavior, but it's documented: http://docs.python.org/dev/c-api/unicode.html?highlight=pyunicode_fromformatv#PyUnicode_FromFormat "An unrecognized format character causes all the rest of the format string t

[issue16275] test_ctypes fails on Solaris 10 SPARC 2.7 (nitrogen/s10) (Sun C compiler)

2012-10-18 Thread Stefan Krah
Stefan Krah added the comment: --with-system-ffi should probably solve some problems, see #12927. The summary of that issue is that the unpatched libffi is not compatible with suncc and any issues should be reported upstream (at least that was Meador's and my own opinion). --

[issue14394] Add speed improvement note to the decimal docs.

2012-10-21 Thread Stefan Krah
Stefan Krah added the comment: Closing as out-of-date. -- resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue16310] zipfile: allow surrogates in filenames

2012-10-24 Thread Stefan Holek
New submission from Stefan Holek: Please allow for surrogates in the zipfile module like it was done for tarfile in #8390. Currently zipfile breaks when encountering surrogates: Traceback (most recent call last): File "/usr/local/python3.3/lib/python3.3/zipfile.py", li

[issue16310] zipfile: allow surrogates in filenames

2012-10-24 Thread Stefan Holek
Stefan Holek added the comment: A little more context perhaps: The use-case is building Python distributions containing non-ASCII filenames. These seemingly "invalid" filenames can occur in real-life when the files have been created by, say, a 'git clone' operation. So

[issue16310] zipfile: allow surrogates in filenames

2012-10-25 Thread Stefan Holek
Stefan Holek added the comment: What we are trying to do is make distribute work with non-ASCII filenames, and this is one of the things we ran into. Fact 1: Filenames are bytes, whether you like it or not. Treating them as strings is going to give you more trouble than dragging the bytes

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-28 Thread Stefan Krah
Stefan Krah added the comment: FWIW, Solaris 9 has EOL status: http://www.oracle.com/technetwork/server-storage/solaris10/overview/index-138972.html I suspect we might as well close this issue, since the motivation to work on it will be pretty low in general

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-28 Thread Stefan Krah
Stefan Krah added the comment: Right, they distinguish between EOL and "Extended Support Phase": http://www.oracle.com/technetwork/server-storage/solaris10/overview/general-137378.html -- ___ Python tracker <http://bugs.python.

[issue16310] zipfile: allow surrogates in filenames

2012-10-30 Thread Stefan Holek
Stefan Holek added the comment: > It's possible to distribute Python packages with non-ASCII filenames. Well, it wasn't until very recently (distribute 0.6.29): https://bitbucket.org/tarek/distribute/issue/303/no-support-for-unicode-manifest-files Unless we are not talking about t

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-13 Thread Stefan Krah
Stefan Krah added the comment: Mark Dickinson wrote: > I wonder whether we can sneak this in after 3.4 is released? +1. m68k affects a relatively small group of people, and Andreas Schwab is the gcc m68k port maintainer, so ... -- ___ Pyt

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-03-15 Thread Stefan Behnel
Stefan Behnel added the comment: Agreed that this should be done. The XInclude spec suggests that the processing is transitive. Also, lxml does it that way, in both the libxml2 based implementation and the ElementInclude compatibility module. https://github.com/lxml/lxml/blob/master/src/lxml

[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2014-03-19 Thread Stefan Krah
Stefan Krah added the comment: It looks like there's typo: Psuedo => Pseudo. (Unless the first one is an alternate spelling I'm not aware of.) -- ___ Python tracker <http://bugs.pytho

[issue21028] ElementTree objects should support all the same methods as Element objects

2014-03-23 Thread Stefan Behnel
Stefan Behnel added the comment: catalog = xml.etree.ElementTree.parse('books.xml') # This succeeds for book in catalog.findall('book'): print(book.tag) This is a bit of a convenience break in the API. The "normal" way to do it would be either c

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-23 Thread Stefan Krah
Stefan Krah added the comment: So far there are only very few m68k patches. Additionally, the patches are well researched and sometimes highlight ANSI C violations. The submitters of the patches are highly competent and apparently take testing seriously. I see no reason to reject the

[issue19537] Fix misalignment in fastsearch_memchr_1char

2014-03-23 Thread Stefan Krah
Stefan Krah added the comment: Yes, ยง6.7.2.1: A bit-field declaration with no declarator, but only a colon and a width, indicates an unnamed bit-field. With a footnote: 105) An unnamed bit-field structure member is useful for padding to conform to externally imposed layouts. Unnamed

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-23 Thread Stefan Krah
Changes by Stefan Krah : -- stage: -> patch review versions: +Python 3.5 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue20904> ___ ___ Python-

[issue19537] Fix misalignment in fastsearch_memchr_1char

2014-03-24 Thread Stefan Krah
Stefan Krah added the comment: Mark Lawrence, stop playing off committers against each other. This is outright trolling. -- ___ Python tracker <http://bugs.python.org/issue19

[issue16535] json encoder unable to handle decimal

2014-03-24 Thread Stefan Krah
Stefan Krah added the comment: I think we should really apply #19232. At least that would take care of the import issue. -- ___ Python tracker <http://bugs.python.org/issue16

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-24 Thread Stefan Krah
Stefan Krah added the comment: Benjamin Peterson wrote: > I don't want to scare away contributors. I think this is a very important point. Initially I was skeptical about m68k, too (msg182388), but I've completely changed my opinion due to the nature of the patches. So far, th

[issue20375] ElementTree: Document handling processing instructions

2014-03-25 Thread Stefan Behnel
Stefan Behnel added the comment: I think you attached the wrong file. -- ___ Python tracker <http://bugs.python.org/issue20375> ___ ___ Python-bugs-list mailin

[issue21121] -Werror=declaration-after-statement is added even for extension modules through setup.py

2014-04-01 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +larry priority: normal -> high ___ Python tracker <http://bugs.python.org/issue21121> ___ ___ Python-bugs-list mai

[issue21028] ElementTree objects should support all the same methods as Element objects

2014-04-01 Thread Stefan Behnel
Stefan Behnel added the comment: > Add all the element methods to the elementtree object. Ok, but why? An ElementTree object *is not* an Element. It's a representation of a document that *has* a root Element. It makes sense for a document to allow searches over its content, and the Ele

[issue21028] ElementTree objects should support all the same methods as Element objects

2014-04-02 Thread Stefan Behnel
Stefan Behnel added the comment: > I don't see any benefit from having this code fail: > > from xml.etree.ElementTree import parse > > catalog = parse('books.xml') > for book in catalog: > print book.get('id') Why would you

[issue21028] ElementTree objects should support all the same methods as Element objects

2014-04-02 Thread Stefan Behnel
Stefan Behnel added the comment: > How about just making a sensibly-behaving __iter__ for ElementTree? Well, the problem is to determine what "sensibly-behaving" is. I can see three options. 1) tree.iter() == tree.getroot().iter() 2) iter(tree.getroot()) 3) iter([tree.get

[issue17705] Fill Character cannot be \0

2014-04-03 Thread Stefan Krah
Stefan Krah added the comment: This looks like a duplicate of #12546. -- resolution: -> duplicate stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.5 -Python 2.7, Python 3.3 ___ Python track

[issue17705] Fill Character cannot be \0

2014-04-03 Thread Stefan Krah
Changes by Stefan Krah : -- superseder: -> builtin __format__ methods cannot fill with \x00 char ___ Python tracker <http://bugs.python.org/issue17705> ___ _

[issue20361] -W command line options and PYTHONWARNINGS environmental variable should not override -b / -bb command line options

2014-04-03 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker <http://bugs.python.org/issue20361> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20355] -W command line options should have higher priority than PYTHONWARNINGS environmental variable

2014-04-03 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker <http://bugs.python.org/issue20355> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19354] test_format fails on RHEL-6

2014-04-03 Thread Stefan Krah
Stefan Krah added the comment: Is this still an issue? -- status: open -> pending ___ Python tracker <http://bugs.python.org/issue19354> ___ ___ Python-bugs-lis

[issue18062] m68k FPU precision issue

2014-04-03 Thread Stefan Krah
Stefan Krah added the comment: Can we somehow merge this issue with #20904? -- ___ Python tracker <http://bugs.python.org/issue18062> ___ ___ Python-bugs-list m

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread Stefan Krah
Stefan Krah added the comment: If the asm instructions silently fail, I'd say add a test to ./configure that detects the broken versions of the emulator in question. Or don't bother and tell people to use the proper version of th

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-07 Thread Stefan Krah
Stefan Krah added the comment: FreeBSD 9 is failing as well: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%203.x/builds/6583/steps/test/logs/stdio -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue21

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2014-04-07 Thread Stefan Krah
Stefan Krah added the comment: Did you compile with "-fp-model strict"? IIRC icc is not IEEE-754 compliant by default. -- nosy: +skrah ___ Python tracker <http://bugs.python.o

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2014-04-07 Thread Stefan Krah
Stefan Krah added the comment: I agree we should add "-fp-model strict" to the icc build flags, provided that there is a way that it does not show up in the distutils flags. Apparently icc users want unsafe fast math by default, so this flag should probably not be enforced in extens

[issue21177] ValueError: byte must be in range(0, 256)

2014-04-08 Thread Stefan Krah
Stefan Krah added the comment: I think it's possible to misunderstand this error message if the reader does not realize that range(0, 256) is to be taken literally. Perhaps we should just use closed intervals of the form [0, 255] everywhere. -- nosy: +

[issue20539] math.factorial may throw OverflowError

2014-04-10 Thread Stefan Krah
Stefan Krah added the comment: OverflowError during initialization dates back to the early days of Python: http://hg.python.org/cpython/rev/0437738279a8 Integer arithmetic actually did raise OverflowError back then: >>> 2 * 22 Traceback (most recent

[issue20539] math.factorial may throw OverflowError

2014-04-10 Thread Stefan Krah
Stefan Krah added the comment: Mark Dickinson wrote: > > the whole idea of OverflowError seems slightly outdated. > > Well, not entirely. It's still got a place for overflow of mathematical > operations, and I think it's clearly the correct exception in that case

[issue21177] ValueError: byte must be in range(0, 256)

2014-04-10 Thread Stefan Krah
Stefan Krah added the comment: There's no real problem. I find "must be in the range [0, 255]" easier to understand, but I also would not make a big effort to change this. As for me, we can close this issue. -- ___ Python

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-10 Thread Stefan Krah
Stefan Krah added the comment: This is for FreeBSD-9 (which, to be fair, has EOL status): [stefan@freebsd-amd64 ~]$ openssl ciphers -v DHE-RSA-AES256-SHA SSLv3 Kx=DH Au=RSA Enc=AES(256) Mac=SHA1 DHE-DSS-AES256-SHA SSLv3 Kx=DH Au=DSS Enc=AES(256) Mac=SHA1 AES256-SHA

[issue21177] ValueError: byte must be in range(0, 256)

2014-04-11 Thread Stefan Krah
Stefan Krah added the comment: Antoine Pitrou wrote: > > I suggested "must be in the range [0; 255]" which is not a valid Python > > list: ";" is the instruction operator and there is "range" word in front of > > the "list". In my opinio

[issue16991] Add OrderedDict written in C

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

[issue17088] ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used

2014-04-13 Thread Stefan Behnel
Stefan Behnel added the comment: @gene_wood: that's unrelated. This ticket is about attributes being rejected incorrectly. Fixing the example of the OP: >>> from xml.etree.ElementTree import * >>> svg = ElementTree(XML(""" ... htt

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-14 Thread Stefan Krah
Stefan Krah added the comment: FreeBSD 9.0 has the same broken install: $ openssl version OpenSSL 0.9.8y 5 Feb 2013 $ ls /usr/include/openssl/ecd* /usr/include/openssl/ecdh.h /usr/include/openssl/ecdsa.h I'm inclined to view this as

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue21233> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21227] Decimal class error messages for integer division aren't good

2014-04-15 Thread Stefan Krah
Changes by Stefan Krah : -- assignee: docs@python -> skrah nosy: +skrah ___ Python tracker <http://bugs.python.org/issue21227> ___ ___ Python-bugs-list mai

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: I left a Rietveld comment, which probably did not get mailed. -- ___ Python tracker <http://bugs.python.org/issue21233> ___ ___

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: In case anyone wonders why the FreeBSD bot works again: I've installed OpenSSL from source. -- ___ Python tracker <http://bugs.python.org/is

[issue21121] -Werror=declaration-after-statement is added even for extension modules through setup.py

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: Here is a patch. I do not see a really nice way to deal with the problem. The cleanest way I found was to introduce a new Makefile variable CFLAGS_NODIST and use that in the interpreter and stdlib build. -- keywords: +patch nosy: +skrah Added file: http

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: Mark, if you agree that "fp-model strict" should not show up in the distutils CFLAGS once Python is installed, the issue now depends on #21121. -- dependencies: +-Werror=declaration-after-statement is added even for extension modules throug

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: Antoine Pitrou wrote: > Did you install the same version? No, I used the latest version + FIPS. Since FreeBSD 9.0 is EOL, I did not feel like investigating too much. :) -- ___ Python tracker <http://bugs.pyth

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: It is hard to get fine grained error messages in _decimal, since the errors come from libmpdec. A clean solution would require changes to libmpdec, and I'm reluctant to do that right now. It is certainly possible to document DivisionImpossibl

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: Meanwhile, the pure Python decimal versions prior to Python 3.2 have better error messages. Right now in Python 3.3+ it is hard to import the Python version without going into contortions, but that may be fixed in #19232. -- dependencies: +Speed up

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: My apologies if that wasn't clear: "fine grained" refers to the exception messages. A function can raise InvalidOperation for different reasons. decimal.py gives a specific error message in each case. libmpdec just signals the standard conforming I

[issue19232] Speed up _decimal import

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: I would like to go ahead with this. As Antoine mentioned, most people don't diagnose import problems, especially when they compare Python 2 against Python 3. As it turns out, the slowdown is even significant in a simple tcpserver application that starts a P

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: In the case of DivisionImpossible it would actually be possible to use the error message 'quotient too large in //, % or divmod'. But that's just one condition. In the case of InvalidOperation there are something like 30 different

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: Raymond Hettinger wrote: > > It is certainly possible to document DivisionImpossible etc. > > This should not be done. We've made strong efforts to not extend the Decimal > Arithmetic Specification. The exceptions are already there: Python

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: I quite agree, and it's hard to tell what users want. Basically I'm afraid of a bug report "C extension using unsafe math got slower in Python-3.5". I would find either decision reasonable. -- ___ P

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: leewz wrote: > - Error message for `DivisionImpossible` is > [] > instead of an actual error message. No, the error message for the *signal* that is raised (InvalidOperation) lists the *condition* that triggered the signal (DivisionImposs

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: The idea behind the list as the exception message is this: If multiple conditions would have raised the signal they are all listed, while the "highest ranking" signal is the one that is ultimately raised. >>> from decimal import * >>>

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: Larry Hastings wrote: > Andreas, is there someone who would normally check this in for you, or should > I do it? Traditionally Mark commits the floating point stuff. :) -- ___ Python tracker <http://bugs.p

[issue18304] ElementTree -- provide a way to ignore namespace in tags and seaches

2014-04-17 Thread Stefan Behnel
Stefan Behnel added the comment: You can already use iterparse for this. it = ET.iterparse('somefile.xml') for _, el in it: el.tag = el.tag.split('}', 1)[1] # strip all namespaces root = it.root As I said, this would be a little friendlier with suppor

[issue21333] Document recommended exception for objects that shouldn't be pickled

2014-04-22 Thread Stefan Schwarzer
New submission from Stefan Schwarzer: I recently was confused whether to raise a `PicklingError` or `TypeError` in `__getstate__` if objects of my class can't and shouldn't be pickled. [1] Terry Reedy advised I should use `TypeError`. [2] I wonder if the `pickle` module document

[issue21348] File "C:\Python27\lib\distutils\msvc9compiler.py", line 295, in query_vcvarsal l raise ValueError(str(list(result.keys()))) ValueError: [u'path']

2014-04-25 Thread Stefan Krah
Stefan Krah added the comment: This looks like a duplicate of #7511. -- nosy: +skrah resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> msvc9compiler.py: ValueError when trying to compile with VC Express __

[issue17145] memoryview(array.array)

2014-04-26 Thread Stefan Krah
Stefan Krah added the comment: I pushed a minimal patch that focuses on the array.array issue. For broader changes, I suggest to use #14198 (though it is unlikely tha anyone will work on it). -- resolution: -> fixed stage: patch review -> resolved status: open -&g

[issue14198] Backport parts of the new memoryview documentation

2014-04-26 Thread Stefan Krah
Changes by Stefan Krah : -- assignee: skrah -> ___ Python tracker <http://bugs.python.org/issue14198> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-27 Thread Stefan Krah
Stefan Krah added the comment: Just to add another data point, I don't find the calloc() API cumbersome. -- ___ Python tracker <http://bugs.python.org/is

[issue20230] structseq types should expose _fields

2014-04-27 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue20230> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2014-04-27 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue1820> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    24   25   26   27   28   29   30   31   32   33   >