[issue2554] test_ioctl failed Python 2.6a2 Solaris 10 SUN C

2013-05-26 Thread Jean Brouwers
Jean Brouwers added the comment: I haven't retested that yet, but I will as soon as can. /Jean Bouwers On May 26, 2013, at 7:57 AM, Mark Lawrence rep...@bugs.python.org wrote: Mark Lawrence added the comment: is this still a problem with 2.7 or 3.x? -- nosy: +BreamoreBoy

[issue2813] No float formatting in PyString_FromFormat

2010-07-18 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Mark L, No, I do not intend to take this issue further. Rather the opposite, it should probably be paired down based on the recent comments. Specifically, use PyOS_double_to_string, remove support for long double and perhaps more. Also

[issue3163] module struct support for ssize_t and size_t

2010-07-15 Thread Jean Brouwers
Changes by Jean Brouwers mrje...@gmail.com: Removed file: http://bugs.python.org/file18006/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3163

[issue3163] module struct support for ssize_t and size_t

2010-07-15 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: It would be sufficient to support size_t/ssize_t in native mode for my usage. The workaround I have been using is in this recipe http://code.activestate.com/recipes/546530/ in the function calcsize. That maps the 'z' and 'Z' format

[issue3163] module struct support for ssize_t and size_t

2010-07-14 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Yes I am and I will get back to you on this after check my (old) notes. /Jean On Wed, Jul 14, 2010 at 12:08 PM, Mark Dickinson rep...@bugs.python.orgwrote: Mark Dickinson dicki...@gmail.com added the comment: Jean, if you're still around

[issue4388] test_cmd_line fails on MacOS X

2009-06-14 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: This test still fails and is the only failure with Python 3.1rc2 on MacOS X 10.4.11 Tiger (Intel). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4388

[issue3407] test_urllib2_localnet fails on MacOS X 10.4.11 (Intel)

2009-06-14 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: This test passes with Python 3.1rc2 on MacOS X 10.4.11 Tiger (Intel). % ./python.exe Python 3.1rc2 (r31rc2:73411, Jun 14 2009, 09:27:12) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type help, copyright, credits or license for more

[issue3407] test_urllib2_localnet fails on MacOS X 10.4.11 (Intel)

2009-06-14 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: The test also passes on Python 2.6.2 on MacOS X 10.4.11 Tiger (Intel): % ./python.exe Python 2.6.2 (r262:71600, Apr 15 2009, 21:47:16) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type help, copyright, credits or license for more

[issue5798] test_asynchat fails on Mac OSX

2009-06-04 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Well, with fresh build of Python 3.1rc1 on MacOS X 10.4.11 Tiger (Intel) test_asynchat.py rev 73183 still seems to fail, perhaps differently. Here is 3 different results. First, rev 73183: % ./python.exe Lib/test/test_asynchat73183.py

[issue5798] test_asynchat fails on Mac OSX

2009-06-04 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Correct. With new Lib/asyncore.py file rev 73183 all 23 tests in the original test_asynchat.py pass in Python 3.1rc1 built from source on MacOS X 10.4.11 Tiger (Intel). % ./python.exe Lib/test/test_asynchat.py test_close_when_done (__main__

[issue2919] Merge profile/cProfile in 3.0

2009-06-02 Thread Jean Brouwers
Changes by Jean Brouwers mrje...@gmail.com: Removed file: http://bugs.python.org/file14131/profile_module.tgz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2919

[issue2919] Merge profile/cProfile in 3.0

2009-06-02 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Fixed a couple of typos in the README and _profile_hires.c files of the attached profile_module2.tgz tar ball. -- Added file: http://bugs.python.org/file14156/profile_module2.tgz ___ Python tracker

[issue2919] Merge profile/cProfile in 3.0

2009-05-31 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Attached is *an* attempt to combine the old profile/cProfile modules into a single one called profile. Only the C and Python source and test files are included, not any documentation files. More details are in the README file, copied below

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-31 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Another thought on the hires timer to make the hires time and hires time units available as 2 other functions in the time module. For example, function time.ticks() returns the hires time stamp as an int. Function time.ticks2secs(t) converts

[issue2919] Merge profile/cProfile in 3.0

2009-05-31 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: I just added another comment about the high-resolution timer in http://bugs.python.org/issue2281. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2919

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-18 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Here a small, standalone test program of the hires timer code from _lsprof4.c. The results from 10 different builds are included in the comment. -- Added file: http://bugs.python.org/file14006/hpTime.c

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-18 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Both the hires_lsprof4.tgz and hpTime.c files have been updated with a change in the PowerPC asm code. The previous implementation used a loop: label and that may cause duplicate symbols when compiled at optimization levels of -O3 and above

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-18 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Another test build and result has been added to the hpTime.c comment. -- Added file: http://bugs.python.org/file14012/hpTime.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-18 Thread Jean Brouwers
Changes by Jean Brouwers mrje...@gmail.com: Removed file: http://bugs.python.org/file14004/hires_lsprof4.tgz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2281

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-18 Thread Jean Brouwers
Changes by Jean Brouwers mrje...@gmail.com: Removed file: http://bugs.python.org/file14006/hpTime.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2281

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Attached is yet another version of the Modules/_lsprof.c source, called _lsprof4.c. This one adds support for the hires timer on 32- and 64-bit Intel and PowerPC processors iff compiled with GNU C. With _lsprof4.c, the high precision profile

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Changes by Jean Brouwers mrje...@gmail.com: Removed file: http://bugs.python.org/file14001/hires_lsprof4.tgz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2281

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: There were two problems with _lsprof4.c. Attached is the corrected file and the forward diff with _lsprof.c rev 6670. -- Added file: http://bugs.python.org/file14004/hires_lsprof4.tgz ___ Python

[issue5956] test_distutils fails for Python 3.1b1 on MacOS X

2009-05-16 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Possible, I do not know and had never seen this before. Also, I just installed the latest (free) version 13.0.3 (Intel Build 165) of Stuffit Expander and the problem does *not* occur. But the older Stuffit 11.0.2 (Intel Build 627) still

[issue5956] test_distutils fails for Python 3.1b1 on MacOS X

2009-05-15 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Here are the answers to your questions. % python Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type help, copyright, credits or license for more information. f = open('Lib/distutils

[issue5956] test_distutils fails for Python 3.1b1 on MacOS X

2009-05-13 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Indeed, this is Python 3.1b1 built from source on MacOS X 10.4.1 Tiger (Intel). MacOS considers some of these win*.exe files directories. See the attached picture and below. % ls -l Python-3.1b1/Lib/distutils/command/win* -rw-r--r-- 1

[issue5956] test_distutils fails for Python 3.1b1 on MacOS X

2009-05-13 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Another attempt to attach the image. -- Added file: http://bugs.python.org/file13979/Issue5956.jpg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5956

[issue5798] test_asynchat fails on Mac OSX

2009-05-08 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Indeed, the unmodified test_asynchat.py now passes in Python 3.1b1. The readwrite function in asyncore looks like this now: def readwrite(obj, flags): try: if flags (select.POLLHUP | select.POLLERR | select.POLLNVAL

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Here is a (new?) failure of test_asynchat with Python 3.1b1 on MacOS X 10.4.11 (Intel). % make test test test_asynchat produced unexpected output: ** *** lines 2-16

[issue5956] test_distutils fails for Python 3.1b1 on MacOS X

2009-05-07 Thread Jean Brouwers
New submission from Jean Brouwers mrje...@gmail.com: % make test test_distutils test test_distutils failed -- Traceback (most recent call last): File ../Python-3.1b1/Lib/distutils/tests/test_bdist_wininst.py, line 23, in test_get_exe_bytes exe_file = cmd.get_exe_bytes() File

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: I reran the test_synchat.py test after patching to the Lib/asyncore.py and Lib/test/test-asynchat.py files of Python-3.1b1 on MacOS X 10.4.11 (Intel). The test now hangs in ... test_string_producer (__main__.TestAsynchat) ... ok

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Understood. On Thu, May 7, 2009 at 5:18 PM, Josiah Carlson rep...@bugs.python.orgwrote: Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: As an aside, I was testing against trunk, not 3.1b1

[issue5870] subprocess.DEVNULL

2009-04-28 Thread Jean Brouwers
New submission from Jean Brouwers mrje...@gmail.com: The subprocess module exposes the PIPE and STDOUT constants to be used for the stdin, stdout or stderr keyword arguments. Often, stderr needs to be redirected to /dev/null (on posix). It would nice if another constant was available

[issue3167] math test fails on Solaris 10

2008-12-09 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: It looks like the patch did fix the problems. Attached are the results for 32- and 64-bit Python 2.6.1 with and without the patch, all built with SUN's compilers on Solaris 10 (Opteron). The math log tests failed with the 32-bit build before

[issue3167] math test fails on Solaris 10

2008-12-09 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: Added file: http://bugs.python.org/file12308/Python-2.6.1-64bit-Solaris10-math_patch.log ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3167

[issue4388] test_cmd_line fails on MacOS X

2008-11-22 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: The test was originally run with % echo $LANG tcsh: LANG: Undefined variable. The same failure occurs with LANG set to C % env LANG=C ../Python-3.0rc3/python.exe Lib/test/test_cmd_line.py test_directories (__main__.CmdLineTest) ... ok

[issue4388] test_cmd_line fails on MacOS X

2008-11-22 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: The results from this script import os, sys print('Python %s' % sys.version.split()[0]) print('env[LANG]: %s' % os.environ.get('LANG', 'not set')) print('default encoding: %s' % sys.getdefaultencoding()) print('filesystem encoding: %s

[issue2218] Enhanced hotshot profiler with high-resolution timer

2008-10-07 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: -- versions: +Python 2.5.3 -Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2218 ___ ___ Python

[issue2281] Enhanced cPython profiler with high-resolution timer

2008-10-07 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: -- versions: +Python 2.5.3 -Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2281 ___ ___ Python

[issue3163] module struct support for ssize_t and size_t

2008-10-07 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: -- versions: +Python 2.5.3 -Python 2.7 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3163 ___ ___ Python

[issue3163] module struct support for ssize_t and size_t

2008-10-07 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: -- versions: +Python 2.7 -Python 2.5.3 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3163 ___ ___ Python

[issue2281] Enhanced cPython profiler with high-resolution timer

2008-10-07 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: -- versions: +Python 2.7 -Python 2.5.3 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2281 ___ ___ Python

[issue2218] Enhanced hotshot profiler with high-resolution timer

2008-10-07 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: -- versions: +Python 2.7 -Python 2.5.3 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2218 ___ ___ Python

[issue3509] La Lutte, Je Vais Vous Montrer Mon Piquer!

2008-08-06 Thread Jean Brouwers
New submission from Jean Brouwers [EMAIL PROTECTED]: Soyez heureux avec votre taille et de rendre votre partenaire heureux et satisfait. Alors que VPXL elargissement chirurgie est couteux et parfois dangereux, pilules pourrait facilement etre oublie de prendre et d'autres produits sont le

[issue3407] test_urllib2_localnet fails on MacOS X 10.4.11 (Intel)

2008-07-18 Thread Jean Brouwers
New submission from Jean Brouwers [EMAIL PROTECTED]: The test_urllib2_localnet fails on MacOS X 10.4.11 (Intel) with Python 2.6b2 (and 3.0b2), see below. The same test also failed for Python 2.6b1 but was not reported as a test failure. % ./python.exe Python 2.6b2 (r26b2:65082, Jul 18

[issue3167] math test fails on Solaris 10

2008-07-08 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: The /lib/libm.so.* files on my Solaris 10 (Opteron) box are equally old: ll /lib/libm.so* lrwxrwxrwx 1 root root 9 Sep 7 2006 /lib/libm.so - libm.so.2* -rwxr-xr-x 1 root bin 13536 Jan 22 2005 /lib/libm.so.1 -rwxr-xr-x 1 root bin

[issue3168] cmath test fails on Solaris 10

2008-07-04 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Below is the reply from SUN. It was indeed a bug which has been fixed already. I have not yet applied the patches to my SUN compilers and tried again. /Jean Begin forwarded message: From: Sun Microsystems [EMAIL PROTECTED] Date: July 1

[issue3167] math test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: For comparison, 64-bit -xO5 Python build: Python 2.6b1 (r26b1:64398, Jun 28 2008, 12:50:06) [C] on sunos5 Type help, copyright, credits or license for more information. import cmath cmath.exp(710.0 + 1.5j) Traceback (most recent call last

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: I have not yet been able to duplicate the problem in a smaller test case, but I did stumble into a fix. Changing the following statement in the cmath_log function from if (PyTuple_GET_SIZE(args) == 2) x = c_quot(x

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Attached is a test case which does demonstrate the problem. See the top of that file. I will post this at the SUN C Forum. Added file: http://bugs.python.org/file10774/SunC-64bit-xO5-bug.c ___ Python

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10774/SunC-64bit-xO5-bug.c ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3168

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Without changing the cmath_log code, another workaround is to compile Python with optimization level -xO2 or less for 64-bit using Sun C. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3168

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: There is another, perhaps related issue on Solaris. The compiler warns that function finite is implicitly defined. Commenting out this line in pyconfig.h as /* #define HAVE_FINITE 1 */ make that warning go away. If there is no function

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Keep in mind also, these Python builds are compiled with the SUN compilers, i.e. the ./configure command line includes --without-gcc. If we do change the CC- and LINKFLAGS, those changes should only apply in that particular case. Using

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: The 32-but results are the same when built with -xO5. Python 2.6b1 (r26b1:64398, Jun 28 2008, 10:43:53) [C] on sunos5 Type help, copyright, credits or license for more information. import cmath cmath.log(100.0) (4.6051701859880918+0j

[issue3168] cmath test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: For 32-bit, see the latest posts at http://bugs.python.org/issue3167. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3168

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: The SUN compiler versions cc -V cc: Sun C 5.8 2005/10/13 usage: cc [ options] files. Use 'cc -flags' for details CC -V CC: Sun C++ 5.8 2005/10/13 Both define the following symbols: #define __SUNPRO_C 0x580 #define __SunOS_5_10

[issue3168] cmath test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Forgot to mention, both 64-bit builds above includes -xlibmieee in the BASECFLAGS and LDFLAGS ./configure symbols (not LDSHARED!). The complete .configure command line was (with OPT adjusted accordingly): env CCSHARED=-KPIC LDSHARED=cc

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Sorry, my previous post was wrong. The LDSHARED symbol did NOT include - xlibmieee. Only the BASECFLAGS and the LDFLAGS. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3167

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: I applied your patch to freshly updated configure and configure.in files and ran ./configure --without-gcc on Solaris. The resulting Makefile has empty BASECFLAGS and LDFLAGS. Here is the snippet: # Compiler options OPT

[issue3168] cmath test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: This is pretty bizarre, take a look at the following, 64-bit Pyhon 2.6b1 -xO5. Python 2.6b1 (r26b1:64398, Jun 28 2008, 12:50:06) [C] on sunos5 Type help, copyright, credits or license for more information. import math math.log(100.0, 2.0

[issue3168] cmath test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Trying to isolate and duplicate the problem with c_quot isn't quite working. See the attached c_quot.c file and the results at the end. Added file: http://bugs.python.org/file10762/c_quot.c ___ Python

[issue3167] math test fails on Solaris 10

2008-06-28 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Yep, that one works. As before, using ./configure --without-gcc ... BASECFLAGS= -xlibmieee CFLAGS= $(BASECFLAGS) $(OPT) $(EXTRA_CFLAGS) # Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to # be able

[issue3167] math test fails on Solaris 10

2008-06-27 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: The 64-bit version did the right thing, all along. The 32-bit result is correct only when compiled with option -xlibmieee. But the latter sets errno value to EDOM and that should be 0, rather remain unmodified

[issue3168] cmath test fails on Solaris 10

2008-06-27 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: 3 different Python 2.6b1 builds: 1) 64-bit Python 2.6b1 on Solaris 10 built with SUN C (no -xlibmieee): Python 2.6b1 (r26b1:64398, Jun 19 2008, 20:27:39) [C] on sunos5 Type help, copyright, credits or license for more information. import

[issue3167] math test fails on Solaris 10

2008-06-27 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: The patch http://bugs.python.org/file10754/issue3167.patch does not work. The -xlibmieee flag is included in the cc command lines, like cc -c -xtarget=native -xlibmieee -DNDEBUG -xO5 -I. However, the resulting build produces to wrong

[issue3167] math test fails on Solaris 10

2008-06-25 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Unless I am doing something wrong, that flag does not fix the problem. #include errno.h #include math.h #include stdio.h int main(int argc, char *argv[]) { errno = 0; printf(%f %d\n, log(-HUGE_VAL), errno); errno = 0; printf(%f

[issue3167] math test fails on Solaris 10

2008-06-25 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Sorry, the flag *does* make a difference. Ignoring errno, the results for 32- and 64-bit do match. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3167

[issue2813] No float formatting in PyString_FromFormat

2008-06-24 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Here is another patch for PyString_FromFormat* adding support for 'l' and 'z' type specifications for the '%x' format and an optional '#' to prepend '0x' to the hex result. In addition, the '%p' format is handled as '%#x'. Updates for the c

[issue3167] math test fails on Solaris 10

2008-06-24 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Right on! With errno = 0; in between both calls: -Inf 33 Inf 0 /Jean On Tue, Jun 24, 2008 at 1:17 PM, Mark Dickinson [EMAIL PROTECTED] wrote: Mark Dickinson [EMAIL PROTECTED] added the comment: On Mon, Jun 23, 2008 at 5:25 PM, Jean

[issue3167] math test fails on Solaris 10

2008-06-24 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Mark, Take a look at the SUN forum, there is a (long) answer. http://forum.java.sun.com/thread.jspa?threadID=5308106tstart=0 /Jean On Tue, Jun 24, 2008 at 3:37 PM, Jean Brouwers [EMAIL PROTECTED] wrote: Jean Brouwers [EMAIL PROTECTED

[issue2813] No float formatting in PyString_FromFormat

2008-06-23 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: The tests for PyString_FromFormat are in file Modules/_testcapimodule.c. Attached is yet another update of the patch, this one also includes 3 tests for the new %f format specification added to file Modules/_testcapimodule.c. Added file

[issue2813] No float formatting in PyString_FromFormat

2008-06-23 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10705/stringobject_format_Lf.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2813

[issue3167] math test fails on Solaris 10

2008-06-23 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Here is a simple test case, demonstrating the issue. #include errno.h #include math.h #include stdio.h int main(int argc, char *argv[]) { printf(%f %d\n, log(-HUGE_VAL), errno); printf(%f %d\n, log( HUGE_VAL), errno); } result

[issue3172] test macos skipped unexpected on linux2

2008-06-22 Thread Jean Brouwers
New submission from Jean Brouwers [EMAIL PROTECTED]: Test test_macos is reported as an unexpected skip on linux2 by Python 2.6b1 make test. 35 tests skipped: ... test_macos test_macostools ... ... 2 skips unexpected on linux2: test_tcl test_macos $ uname -a Linux ... 2.6.9-11

[issue3167] math test fails on Solaris 10

2008-06-22 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Here is that in from 32- and 64-bit Python 2.6b1: ./python (32-bit) Python 2.6b1 (r26b1:64398, Jun 20 2008, 09:20:49) [C] on sunos5 Type help, copyright, credits or license for more information. import math math.log(float('-inf')) -inf

[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Attached is another patch for file Objects/stringobject.c(relative to Python 2.6b1) which supports the double %f and long double %LF formats. However, %Lf is included only if symbol LDBL_DIG is defined in header file float.h

[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10702/stringobject_format_Lf.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2813

[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10703/stringobject_format_Lf.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2813

[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Another rev of the patch now including updates to 2 documentation files: Doc/c-api/exceptions.rst and Doc/c-api/string.rst. As before the patch is relative to the source of Python 2.6b1. Where should test cases for the new formats

[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10703/stringobject_format_Lf.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2813

[issue3132] implement PEP 3118 struct changes

2008-06-21 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: If the struct changes are made, add also 2 formats for C types ssize_t and size_t, perhaps 'z' resp. 'Z'. In particular since on platforms sizeof(size_t) != sizeof(long). -- nosy: +MrJean1

[issue3163] module struct support for ssize_t and size_t

2008-06-21 Thread Jean Brouwers
New submission from Jean Brouwers [EMAIL PROTECTED]: Attached is a (simplistic) patch for the struct module to support C types ssize_t and size_t with format characters 'z' resp. 'Z'. The patch updates Python 2.6b1 files Modules/_struct.c and Doc/library/struct.rst. Note, format character 'Z

[issue3163] module struct support for ssize_t and size_t

2008-06-21 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Please ignore the first patch. Use the rev2 patch which includes an update for test file Lib/test/test_struct.py as well. Added file: http://bugs.python.org/file10690/struct_size_t.rev2.patch ___ Python

[issue3163] module struct support for ssize_t and size_t

2008-06-21 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10687/struct_size_t.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3163

[issue3167] math test fails on Solaris 10

2008-06-21 Thread Jean Brouwers
New submission from Jean Brouwers [EMAIL PROTECTED]: There are 2 math test failures with 32-bit Python 2.6b1 and 3.0b1 on Solaris 10 both built with Sun's C compiler. The failures do *not* occur for the 64-bit builds. The same compiler options are used for all these builds (except -xtarget

[issue3168] cmath test fails on Solaris 10

2008-06-21 Thread Jean Brouwers
New submission from Jean Brouwers [EMAIL PROTECTED]: There is on cmath test failure with 64-bit Python 2.6b1 and 3.0b1 on Solaris 10. The failure does not occur in the 32-bit builds. All builds are compiled with Sun's C compiler using the same options (except -xtarget=native vs -xtarget

[issue2813] No float formatting in PyString_FromFormat

2008-06-21 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Attached is a patch attempting to provide support for %f with precision in PyString_FromFormat* based on file Objects/stringobject.c of Python 2.6b1. Note, only %f is support but %lf is not and silently ignored. -- keywords: +patch

[issue2813] No float formatting in PyString_FromFormat

2008-06-21 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10696/stringobject_format_f.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2813

[issue2813] No float formatting in PyString_FromFormat

2008-06-21 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10697/stringobject_format_f.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2813

[issue3149] multiprocessing build fails on Solaris 10

2008-06-20 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: One more comment on SEM_VALUE_MAX for Solaris. _POSIX_SEM_VALUE_MAX is defined in limits.h on Solaris and that header file must be included. Better might be to use _SEM_VALUE_MAX which is defined in param.h and that header files needs

[issue3148] multiprocessing test hangs

2008-06-19 Thread Jean Brouwers
New submission from Jean Brouwers [EMAIL PROTECTED]: The test_multiprocessing hangs with both Python 2.6b1 and 3.0b1 on MacOS X 10.4.11 (Intel) but only when using make test. However, the test runs and passes in both builds if run separately, e.g. with ./python Lib/test

[issue3148] multiprocessing test hangs

2008-06-19 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Sorry, this issue has already been raised in #3088. Please ignore. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3148

[issue3149] multiprocessing build fails on Solaris 10

2008-06-19 Thread Jean Brouwers
New submission from Jean Brouwers [EMAIL PROTECTED]: The multiprocessing module fails to build on Solaris 10 when using the Sun C compiler. The failure is due to one missing symbol SEM_VALUE_MAX. Defining that symbol (e.g. as _POSIX_SEM_VALUE_MAX) builds the _multiprocessing module

[issue2898] Add memory footprint query

2008-06-18 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Three questions on the sizeof.patch: 1) In the first line of function dict_sizeof() + res = sizeof(PyDictObject) + sizeof(mp-ma_table); is the sizeof(mp-ma_table) counted twice? 2) Since functions list_sizeof and dict_sizeof

[issue2819] Full precision summation

2008-05-22 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10406/test_math_sum11.py __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2819 __ ___ Python

[issue2819] Full precision summation

2008-05-22 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Here is rev 12 of the mathmodule.c patch. It is the same as rev 11 but with additional code removed as requested: - no FLT_RADIX 2 check - no errno illustration in _do_sum_add2() - no _do_sum() callback function argument - no option 'start

[issue2819] Full precision summation

2008-05-22 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10408/test_math_sum12.py __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2819 __ ___ Python

[issue2819] Full precision summation

2008-05-22 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Here is another, cleaner revision 19 of the same mathmodule.c patch and the corresponding test_math_sum19.py script. /Jean Brouwers Added file: http://bugs.python.org/file10410/mathmodule19.c.2.6a3.diff

[issue2819] Full precision summation

2008-05-22 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10411/test_math_sum19.py __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2819 __ ___ Python

  1   2   >