[issue10505] test_compileall: failure on Windows

2010-11-22 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: On Windows, test_compileall fails due to #10197: == FAIL: test_quiet (test.test_compileall.CommandLineTests

[issue10453] Add -h/--help option to compileall

2010-11-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: On Windows, test_compileall fails due to #10197. The patch uses subprocess.check_output() instead. Technically, now byte strings are compared instead of strings, but that should not matter for the outcome. -- nosy: +skrah Added

[issue9189] Improve CFLAGS handling

2010-11-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Since I was the one who reopened this: The issues I found were fixed in r85358 and #9047 seems to be ok now. Setting to pending. -- resolution: - fixed stage: - committed/rejected status: open - pending

[issue10520] Build with --enable-shared fails

2010-11-24 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: skrah priority: normal severity: normal status: open title: Build with --enable-shared fails ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10520

[issue10520] Build with --enable-shared fails

2010-11-24 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: Building the modules fails if --enable-shared is used. The linker picks up an existing library from /usr/local/lib, which has not been compiled with -fPIC: gcc -pthread -shared build/temp.linux-x86_64-3.2/home/stefan/svn/py3k/Modules

[issue10520] Build with --enable-shared fails

2010-11-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Since I'm on Linux, I did a prior install into /usr/local. But I'm pretty sure that BSD ports (which you might view as the system install) also use /usr/local. -- ___ Python tracker rep

[issue10453] Add -h/--help option to compileall

2010-11-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Yes, the patch is tested on Windows. Feel free to commit it if you have a chance. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10453

[issue10383] test_os leaks under Windows

2010-11-27 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Fixed original leaks in r86804, r86806 and r86804. Fixed additional leaks in r86829. -- components: +Extension Modules -Library (Lib), Windows resolution: - fixed stage: - committed/rejected status: open - closed versions

[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

2010-11-27 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: On FreeBSD, the config variable LDSHARED contains the literal '${LDFLAGS}', causing this failure in test_distutils: 'test_get_outputs (distutils.tests.test_build_ext.BuildExtTestCase) ... gcc: ': No such file or directory ERROR

[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

2010-11-27 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- keywords: +buildbot -needs review, patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10547

[issue10550] Windows: leak in test_concurrent_futures

2010-11-27 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: C:\Users\stefan\svn\py3k_64PCbuild\amd64\python_d.exe Lib\test\regrtest.py -R : test_concurrent_futures [1/1] test_concurrent_futures beginning 9 repetitions 123456789 . test_concurrent_futures leaked [6912, 6912, 6912, 6912

[issue10550] Windows: leak in test_concurrent_futures

2010-11-27 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: posixmodule_listdir.patch fixes a leak in test_macpath. test_concurrent_futures still leaks. -- keywords: +patch Added file: http://bugs.python.org/file19839/posixmodule_listdir.patch

[issue10550] Windows: leak in test_concurrent_futures

2010-11-27 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +bquinlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10550 ___ ___ Python-bugs-list

[issue10550] Windows: leak in test_concurrent_futures

2010-11-27 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Committed posixmodule_listdir.patch in r86843. Unfortunately this is unrelated to the test_concurrent_futures leak. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue10555] AIX 5.3 - GCC - Python 2.7 Shared Library Support - Fatal Python error: Interpreter not initialized (version mismatch?)

2010-11-27 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Anurag, could you check out #941346 and see if there is anything that might help? I think this is AIX specific. -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

2010-11-27 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Upgrading to critical, since I just verified that C extensions in general don't build on FreeBSD due to this issue. Sorry for bringing this up on the release day, it's a coincidence that I discovered it today... -- priority

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Checked python-3.1.2.msi with f-prot, no viruses. Checked download with firefox (which claims to do a short virus scan), no results. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org

[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-11-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Thinking about it, declaring PyMODINIT_FUNC as void would be a huge step backwards. Using PyMODINIT_FUNC is the correct way of doing things. The current situation punishes developers who actually read the docs. If a C module stops

[issue8710] test_xpickle: compat tests: workaround for missing test_support

2010-11-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Right, Debian's solution is quite reasonable. Closing as wont_fix. -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http

[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

2010-11-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: r86848: backported r85422, as required by the changes in r85358. Antoine, there are some remaining {LDFLAGS}, two in the Darwin sections, one in the OpenBSD section. I think all of those should be removed as well. Do you agree

[issue10557] Malformed error message from float()

2010-11-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: PyUnicode_EncodeDecimal() is either unnecessary or should be exposed as a codec. I'm depending on PyUnicode_EncodeDecimal in cdecimal. In fact, it saved me quite a bit of trouble. I wouldn't be surprised if other extension writers use

[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

2010-11-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: [Antoine] I didn't want to mess with these things too much. I guess you can try and we'll see. You're right, it's better not to touch the Darwin stuff. The 2.7 buildbots are green (including the FreeBSD ones!). I also tested

[issue10557] Malformed error message from float()

2010-11-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: (Anyone knows whether Arabic numbers are written right to left or left to right? What is the proper decimal point character?) Thousands separator: U+066C Decimal point: U+066B ١٢٣٬١٢٣٫١٢ should be: 123,123.12 Wikipedia says

[issue10557] Malformed error message from float()

2010-11-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: UnicodeEncodeError: 'decimal' codec can't encode character '\u066b' Hmm, looks like a bug? I think U+066B is correct. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-11-30 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Without the patch, you see the warning if test_build_ext is run in verbose mode. With the patch, the warning disappears. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue10557] Malformed error message from float()

2010-12-02 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Alexander Belopolsky rep...@bugs.python.org wrote: On Thu, Dec 2, 2010 at 4:34 PM, Marc-Andre Lemburg rep...@bugs.python.org wrote: ..  * Please change the API _PyUnicode_NormalizeDecimal() to   PyUnicode_ConvertToASCIIDecimal

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2010-12-08 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: I'm not sure if this is a documentation issue or a bug. If watchexp=0, quantize() also allows any number of digits: x = Decimal(6885998238912213556789006667970467609814) y = Decimal(1e2) x.quantize(y) Traceback (most recent call

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2010-12-08 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: NaNs, however, are decapitated: x = Decimal(NaN5357671565858315212612021522416387828577) y = 0 x.quantize(y, watchexp=0) Decimal('NaN8315212612021522416387828577') -- ___ Python tracker

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

2010-12-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Before anyone does any further testing: Tarek, can this go into distutils 2.7/3.2 (after 3.2 has been released)? Due to the popularity of this issue I think it might be worthwhile to make an exception and ignore the distutils freeze

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: [Alexander] if sys.getenv('PYTHONSEGVHANDLER'): import segvhandler segvhandler.enable() +1 If this doesn't find support, I'd name sys.setsegfaultenabled() sys.setsegvhandlerenabled() or sys.enable_segvhandler

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: STINNER Victor rep...@bugs.python.org wrote: Note: To avoid the signal-safe requirement, another solution is to use sigsetjmp()+siglongjmp(). FWIW, there is a caveat in the OpenBSD man page concerning the use of siglongjmp(): http

[issue10847] Distutils drops -fno-strict-aliasing when CFLAGS are set

2011-01-06 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: When CFLAGS are set, distutils drops -fno-strict-aliasing (among other flags): $ python2.7 setup.py build ... gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/usr/local

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2011-01-08 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9880 ___ ___ Python-bugs-list

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2011-01-08 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I narrowed this issue down to -ftree-vectorize, which is part of -O3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9880

[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: If OrderedDict is used, the test case quickly uses 8GB of memory. With this change (I'm not suggesting this as a fix!), the timings are normal: Index: Lib/ConfigParser.py

[issue11106] python 2.6.6 and python 2.7.1 cannot be built successfully because of an segment fault on NetBSD-5.1-sparc

2011-02-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: This seems to be a duplicate of #7424. -- nosy: +skrah resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - segmentation fault in listextend during install

[issue7424] segmentation fault in listextend during install

2011-02-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: See also: http://gnats.netbsd.org/42627 -- nosy: +H.Xu, haypo, loewis, skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7424

[issue11128] decimal.py: to_integral() corner cases

2011-02-05 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: Hi, to_integral() should behave like quantize() for negative exponents: Otherwise (the operand has a negative exponent) the result is the same as using the quantize operation using the given operand as the left-hand-operand, 1E+0

[issue11131] decimal.py: plus/minus with ROUND_FLOOR

2011-02-05 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: Another exciting corner case in plus/minus: The operations are evaluated using the same rules as add and subtract; the operations plus(a) and minus(a) (where a and b refer to any numbers) are calculated as the operations add(’0

[issue969718] BASECFLAGS are not passed to module build line

2011-02-05 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Éric, the Debian patch looks good to me and it solves my build problem. The only question I have is why EXTRA_CFLAGS still go behind CFLAGS and cannot be overridden via the environment. But as it is, the patch is an improvement. I'm

[issue969718] BASECFLAGS are not passed to module build line

2011-02-05 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Antoine Pitrou rep...@bugs.python.org wrote: Why is OPT duplicated in get_config_vars(...)? I missed that, thanks. Why do OPT and BASECFLAGS environ vars override their Makefile values instead of accumulating with them? I think

[issue969718] BASECFLAGS are not passed to module build line

2011-02-06 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: EXTRA_CFLAGS were removed in r38848. Is it necessary to configure OPT, BASECFLAGS and EXTRA_CFLAGS via the environment? I think it might be sufficient to take CFLAGS from the Makefile and append the environment CFLAGS. Chris, would

[issue11128] decimal.py: to_integral() corner cases

2011-02-07 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: For the record, I prefer Python's behavior. The quantize() definition does not work well for arbitrary precision input and leads to situations like: Precision: 1 Maxexponent: 1 Minexponent: -1 tointegral 101 - 101 tointegral 101.0

[issue11131] decimal.py: plus/minus with ROUND_FLOOR

2011-02-07 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The patch and the test cases look good, but the implicit context must be looked up earlier now (see the altered patch). I just realize that there aren't any regression tests for this sort of situation, since for the main tests we

[issue969718] BASECFLAGS are not passed to module build line

2011-02-07 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Chris Lambacher rep...@bugs.python.org wrote: I was cross-compiling to a target architecture that does not support the -march option so I would not be able to provide a different one as override. Just out of curiosity: You are cross

[issue11167] Overflow in unicode_hash

2011-02-10 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: Due to an integer overflow in unicode_hash, the python interpreter crashes if built with -ftrapv: ./configure --with-pydebug CFLAGS=-ftrapv Starting program: /home/stefan/svn/py3k/python [Thread debugging using libthread_db enabled

[issue11167] Overflow in unicode_hash

2011-02-10 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Ok, this is known, see #1621. Closing. -- resolution: - duplicate status: open - closed superseder: - Do not assume signed integer overflow behavior ___ Python tracker rep...@bugs.python.org

[issue1621] Do not assume signed integer overflow behavior

2011-02-10 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1621 ___ ___ Python-bugs-list

[issue11167] Overflow in unicode_hash

2011-02-10 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Marc-Andre Lemburg rep...@bugs.python.org wrote: Marc-Andre Lemburg m...@egenix.com added the comment: Could you try the same in Python 2.7 ? It's the same, just in stringobject.c. Many hash functions have this issue

[issue11288] Python installed from MSI doesn't work

2011-02-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Works fine for me (Windows 7, 64-bit, 32-bit Python-3.2). I do have the plain US English version. Do you have localized versions? -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http

[issue11295] On Windows, Python crashes on ANSI / Windows-formatted source files

2011-02-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Python works fine with Notepad generated scripts. I think this is a CGI issue. Try following this tutorial: http://www.imladris.com/Scripts/PythonForWindows.html If you still suspect a bug, you should provide the exact CGI script

[issue1481] test_uuid is warning about unreliable functions

2010-05-13 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1481 ___ ___ Python

[issue6419] Broken test_kqueue.py on OpenBSD

2010-05-13 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6419 ___ ___ Python-bugs-list

[issue7449] A number tests crash if python is compiled --without-threads

2010-05-13 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Victor, I think one more skip is required in test_socketserver. -- nosy: +skrah resolution: fixed - status: closed - open Added file: http://bugs.python.org/file17317/nothreads-socketserver-shutdown.patch

[issue6419] Broken test_kqueue.py on OpenBSD

2010-05-14 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The same patch was applied to the Python port by OpenBSD developer Damien Miller: http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/python/2.6/patches/patch-Lib_test_test_kqueue_py Mark, would it be ok in this situation to apply

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-05-14 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Luckily, the OpenBSD failures are caused by issues in libpthread. This means that some skips could be added (as for FreeBSD), but I'll open a separate issue for that. Thanks for the comments on the patch. I add two new patches

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-05-14 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file17335/issue8424-trunk-skiptest.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8424

[issue8710] test_xpickle: compat tests: workaround for missing test_support

2010-05-14 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: When the system python does not have the Lib/test directory, the compat tests are failing. == ERROR: test_attribute_name_interning

[issue3771] test_httpservers intermittent failure, test_post and EINTR

2010-05-14 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The EINTR issue should be fixed in trunk (issue1628205). Have you by any chance run the test suite on trunk in the meantime? -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http

[issue8710] test_xpickle: compat tests: workaround for missing test_support

2010-05-14 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The compat tests check that pickling in the newly compiled Python version is compatible with pickling in installed Python versions. The installed versions may or may not have a test directory. For example, the 2.6 port in OpenBSD does

[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-14 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: [Added OpenBSD Python port maintainers to the nosy list.] I've identified a number of tests that all pass when Python is compiled without threads, but fail otherwise. The failures are probably caused by libpthread issues in OpenBSD

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

2010-05-14 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: On OpenBSD, SIGINT handling in the REPL is delayed until further input: Python 2.7b2+ (trunk:81162, May 14 2010, 14:47:52) [GCC 3.3.5 (propolice)] on openbsd4 Type help, copyright, credits or license for more information. = here

[issue6419] Broken test_kqueue.py on OpenBSD

2010-05-14 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Mark, thanks. - The patch is good on OpenBSD-4.5-i386-Celeron, but I get additional failures on OpenBSD-4.7-beta-amd64-QEMU. This could be the result of running a beta under qemu. Henry, could you confirm if the patch works on amd64

[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-15 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I can't pinpoint the exact causes for each individual test failure. I assumed that they are caused by threading/signal issues, because the tests pass when Python is compiled --without-threads. But here's a list of possible culprits

[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-15 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The FreeBSD-6.4-RELEASE-i386 buildbot has similar libpthread issues. This is just in: == FAIL: test_send_signal (test.test_subprocess.POSIXProcessTestCase

[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-15 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The gentoo-3.x buildbot also shows the threading problems again: test test_subprocess failed -- Traceback (most recent call last): File /home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/test_subprocess.py, line 770

[issue8540] Make Context._clamp public in decimal module

2010-05-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I'm busy implementing the IEEE754 contexts for cdecimal. To keep things in sync, it would be nice to agree how they should be created. Suggestions: 1) c = Decimal64Context 2) c = Context(Decimal64) 3) ? I have a preference for 2

[issue8786] Add support for IEEE 754 contexts to decimal module.

2010-05-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Some context from issue 8540: [Stefan Krah] I'm busy implementing the IEEE754 contexts for cdecimal. To keep things in sync, it would be nice to agree how they should be created. Suggestions: 1) c = Decimal64Context 2) c

[issue8786] Add support for IEEE 754 contexts to decimal module.

2010-05-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Mark Dickinson rep...@bugs.python.org wrote: It's Table 3.6 (Decimal interchange format parameters) in the final version of IEEE 754; Thanks! I think this is not in the draft I have. +1 for IEEEContext(n). Could we have module

[issue8540] Make Context._clamp public in decimal module

2010-05-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The patch looks good, +1 for applying it. I'm not a native speaker, but probably: are subject to clamping this manner = are subject to clamping in this manner -- ___ Python tracker rep

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

2010-05-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I agree with all points. Could you fix it directly if at all possible? Of course eventually I'd do it, it might take some time until I get around to it though. -- ___ Python tracker rep

[issue3864] 26.rc1: test_signal issue on FreeBSD 6.3

2010-06-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: On 2.6, the tests aren't skipped if test_support.verbose is 0. David, if the fix looks good to you I can apply it. test_itimer_virtual: timeout: likely cause: machine too slow or load too high. test test_signal failed -- Traceback

[issue7384] curses crash on FreeBSD

2010-06-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I think it would be nice to get this into 2.7. I don't expect buildbot failures, since the 2.7 patch is essentially the same as the py3k version, which has been tested extensively. -- Added file: http://bugs.python.org/file17528

[issue7384] curses crash on FreeBSD

2010-06-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Mark, thanks. Committed in r81669; I'll keep an eye on the buildbots. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7384

[issue3864] 26.rc1: test_signal issue on FreeBSD 6.3

2010-06-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Thanks for looking at the patch! Committed in r81676. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3864

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-06-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I can't find buildbot failures related to this any longer, so I'm closing this one. -- stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8932] test_capi fails --without-threads

2010-06-07 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: test_capi fails when compiled --without-threads: test test_capi failed -- Traceback (most recent call last): File /usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_capi.py, line 49, in test_no_FatalError_infinite_loop

[issue8719] buildbot: segfault on FreeBSD (signal 11)

2010-06-07 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I ran a test --without-threads: test_runpy and test_exceptions passed, test_sys was not reached: test_sqlite Fatal error 'Cannot allocate red zone for initial thread' at line 384 in file /usr/src/lib/libthr/thread/thr_init.c (errno

[issue7384] curses crash on FreeBSD

2010-06-08 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Committed in r81669,r81672,r81683 (trunk) and r81830,81831 (py3k). What to do with the releases? To recap, the fix is: 1) Detect if readline is already linked against ncurses and if so, skip any further selection. This must

[issue8932] test_capi fails --without-threads

2010-06-09 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- keywords: +patch Added file: http://bugs.python.org/file17594/issue8932.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8932

[issue8932] test_capi fails --without-threads

2010-06-09 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Committed in r81857. Blocked for release31-maint (requires additional fixes). -- resolution: - accepted stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep

[issue8947] Provide as_integer_ratio() method to Decimal

2010-06-09 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8947 ___ ___ Python-bugs-list

[issue8976] subprocess module causes segmentation fault

2010-06-11 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: python version: 2.4.3 I'd suggest to try this with Python 2.6 or later. 2.4 and 2.5 are in security-fix only mode. -- nosy: +skrah versions: -Python 2.5 ___ Python tracker rep

[issue8857] socket.getaddrinfo needs tests

2010-06-14 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: FreeBSD/Qemu: ipv6 is ok, but this fails: == FAIL: testGetaddrinfo (__main__.GeneralModuleTests

[issue8857] socket.getaddrinfo needs tests

2010-06-17 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Btw, socket.has_ipv6 documentation should be more clear about the fact that having it == True doesn't necessarily mean IPv6 is actually supported. Strange indeed. socket.has_ipv6 checks whether ENABLE_IPV6 was defined at compile time

[issue8857] socket.getaddrinfo needs tests

2010-06-17 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: But why is that an attribute of a socket object? Please pretend I did not write this. ;) Anyway, getaddrinfo() on FreeBSD/Qemu gives this: socket.getaddrinfo('localhost', 21) [(2, 2, 17, '', ('127.0.0.1', 21)), (2, 1, 6

[issue7384] curses crash on FreeBSD

2010-06-17 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Committed a conservative version implementing part 1) in r82017 (2.6) and r82019 (3.1). Part 2) can be enabled by uncommenting a couple of lines in setup.py. The buildbots look good, but I'm setting this to 'pending' in case someone

[issue9020] 2.7: eval hangs on AIX

2010-06-19 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Py_CHARMASK should return a non-negative integer. As I understand it: tokenizer.c:tok_get around line 1368: while (Py_ISALNUM(c) || c == '_') { c = tok_nextc(tok); } 1) tok_nextc(tok) returns EOF (correct

[issue9020] Specification of Py_CHARMASK

2010-06-19 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: You can simulate this on Linux by compiling with: BASECFLAGS=-funsigned-char Then: Index: Parser/tokenizer.c === --- Parser/tokenizer.c (revision 81682) +++ Parser

[issue9020] 2.7: eval hangs on AIX

2010-06-19 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Martin v. Löwis rep...@bugs.python.org wrote: Of course, it is dubious why EOF is not tested separately rather than passing it to Py_ISALNUM(). Micro-optimization? At least a comment should be added. No, I think this is an error

[issue9036] Simplify Py_CHARMASK

2010-06-20 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: This feature request is extracted from issue 9020, where Py_CHARMASK(c) was used on EOF, producing different results depending on whether __CHAR_UNSIGNED__ is defined or not. The preferred fix for issue 9020 is to check for EOF before

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-06-21 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Reopening since test failures are reported on python-dev: [...] test_uuid test test_uuid failed -- Traceback (most recent call last): File /private/tmp/Python-2.7rc2/Lib/test/test_uuid.py, line 472, in testIssue8621

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-06-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: It is disputed on http://openradar.appspot.com/radar?id=334401 that this is an OS bug. If I understand correctly, the test program is not guaranteed to work if threads are involved. See also: http://webcache.googleusercontent.com/search

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-06-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Bill, could you try to add this to the tests and see if they also fail when you run them standalone? Index: Lib/test/test_uuid.py === --- Lib/test/test_uuid.py

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-06-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Ronald Oussoren rep...@bugs.python.org wrote: Stefan: we already new that, see msg105018. This issue was closed as fixed because the uuid module contains a workaround for this issue (by not using the broken C API on OSX 10.6). Ok

[issue9020] 2.7: eval hangs on AIX

2010-06-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Re: EOF checking in Py_ISXXX() for consistency with C functions. After reflecting on this a bit I think it's ultimately not a good idea. While it is possible to do the EOF check, the macros would then take either an int in [EOF, 0

[issue8930] messed up formatting after reindenting

2010-06-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Patch for ceval.c. If you agree with the macro indentation (starting in line 815) I can commit it and port it to the other branches. -- keywords: +patch nosy: +skrah Added file: http://bugs.python.org/file17752/trunk-ceval

[issue8930] messed up formatting after reindenting

2010-06-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Antoine, thanks. ceval.c fixes committed in r82177, r82179, r82181 and r82182. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8930

[issue9067] Use macros from pyctype.h

2010-06-24 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: While investigating issue 9020, I noticed that there are several places where the pyctype.h macros could/should be used. -- messages: 108505 nosy: eric.smith, skrah priority: normal severity: normal status: open title: Use

[issue9020] 2.7: eval hangs on AIX

2010-06-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Committed fix in r82191. Thanks Sridhar for tracking this down. New issues emerging from this one: 1) Simplify Py_CHARMASK: issue 9036 2) Use macros from pyctype.h: issue 9067 Additionally, I noticed that the macros

  1   2   3   4   5   6   7   8   9   10   >