[issue1468] MSI installer does not include SSL test .pem files

2007-11-25 Thread Martin v. Löwis

Martin v. Löwis added the comment:

I verified the installer; this problem is now fixed.

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1468
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1348] httplib closes socket, then tries to read from it

2007-11-25 Thread vila

vila added the comment:

The title of this bug is scary.

httplib rightly close the socket because that's the way to transfer the
responsibility of the close to the user of the HttpResponse object.

The close MUST stays there.

I do encounter a bug related to that close while trying to use the ssl
module in python2.6.

I'm willing to help fixing it but *this* bug may not be the right place
to do so (even if related).

I'm a bit lost on how to help right now since the involved changes seems
to occur in both python3.0 and python2.6 and I'm currently targeting 2.4
and 2.5.

--
nosy: +vila

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1348
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1497] Patch to remove API to create new unbound methods

2007-11-25 Thread Christian Heimes

Changes by Christian Heimes:


--
components: Interpreter Core
files: py3k_remove_newunbound.patch
keywords: patch, py3k
nosy: georg.brandl, tiran
priority: high
severity: normal
status: open
title: Patch to remove API to create new unbound methods
versions: Python 3.0
Added file: http://bugs.python.org/file8805/py3k_remove_newunbound.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1497
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1269] Exception in pstats print_callers()

2007-11-25 Thread Thomas Herve

Thomas Herve added the comment:

Here's my patch against trunk, with one test. Please review!

--
versions: +Python 2.6
Added file: http://bugs.python.org/file8806/1269.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1269
__Index: Lib/pstats.py
===
--- Lib/pstats.py   (revision 59183)
+++ Lib/pstats.py   (working copy)
@@ -512,7 +512,8 @@
 new_callers[func] = caller
 for func, caller in source.iteritems():
 if func in new_callers:
-new_callers[func] = caller + new_callers[func]
+new_callers[func] = tuple([i[0] + i[1] for i in
+   zip(caller, new_callers[func])])
 else:
 new_callers[func] = caller
 return new_callers
Index: Lib/test/test_pstats.py
===
--- Lib/test/test_pstats.py (revision 0)
+++ Lib/test/test_pstats.py (revision 0)
@@ -0,0 +1,26 @@
+import unittest
+from test import test_support
+import pstats
+
+
+
+class AddCallersTestCase(unittest.TestCase):
+Tests for pstats.add_callers helper.
+
+def test_combine_results(self):
+pstats.add_callers should combine the call results of both target
+and source by adding the call time. See issue1269.
+target = {a: (1, 2, 3, 4)}
+source = {a: (1, 2, 3, 4), b: (5, 6, 7, 8)}
+new_callers = pstats.add_callers(target, source)
+self.assertEqual(new_callers, {'a': (2, 4, 6, 8), 'b': (5, 6, 7, 8)})
+
+
+def test_main():
+test_support.run_unittest(
+AddCallersTestCase
+)
+
+
+if __name__ == __main__:
+test_main()
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1117670] profiler: Bad return and Bad call errors with exceptions

2007-11-25 Thread Thomas Herve

Thomas Herve added the comment:

Ping to close this?

--
nosy: +therve

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1117670
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1117670] profiler: Bad return and Bad call errors with exceptions

2007-11-25 Thread Georg Brandl

Georg Brandl added the comment:

With pleasure.

--
nosy: +georg.brandl
resolution:  - fixed
status: open - closed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1117670
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1734164] sqlite3 causes memory read error

2007-11-25 Thread Gerhard Häring

Gerhard Häring added the comment:

Fixed in revision 59184.

--
resolution:  - fixed
status: open - closed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1734164
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1412] test_subprocess fails on SuSE 10

2007-11-25 Thread Christian Heimes

Christian Heimes added the comment:

I've fixed a bug in py3k and 2.6 where a test in test_shutil has removed
an empty TMP directory. I regard the issue as a minor inconvenience. We
can't work around every edge case.

--
resolution:  - works for me
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1412
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1067] test_smtplib failures (caused by asyncore)

2007-11-25 Thread Skip Montanaro

Changes by Skip Montanaro:


--
nosy: +skip.montanaro

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1067
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1225584] crash in gcmodule.c on python reinitialization

2007-11-25 Thread ita

ita added the comment:

The following still crashes (python 2.5.1):

for (int i=0; i1000; ++i)
{
Py_Initialize();
PyRun_SimpleString(import tarfile\n);
Py_Finalize();
}

Bindings such as Swig are adding weird hacks just for avoiding the
finalize call and resetting the variables. Not being able to start from
a clean interpreter is unacceptable.

--
nosy: +ita

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1225584
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1381] cmath is numerically unsound

2007-11-25 Thread Mark Dickinson

Mark Dickinson added the comment:

Here is (quite a large) patch, cmath.patch, that fixes a variety of 
problems in the current cmath module.  A summary of the changes:

* sqrt, log, acos, acosh, asin, asinh, atan, atanh no longer produce 
overflow errors for very large inputs

* exp, cos, sin, tan, cosh, sinh, tanh produce valid answers in some cases
where they incorrectly overflowed before.

* sqrt and log are more accurate for tiny numbers

* numeric problems in some functions (especially asinh and asin) should
have been fixed

* the branch cuts for asinh have been moved to the standard positions

* the direction of continuity for the branch cuts of tan, tanh have been 
fixed

* on systems with full hardware and system support for signed zeros (most 
modern systems), functions with a branch cut are continuous on both sides 
of the branch cut.  (As recommended by the C99 standard, amongst others.)

The patch includes documentation updates, but there are still no tests.  
(My current tests make heavy use of the MPFR library, and assume IEEE-754 
format doubles, so need to be seriously reworked.)  The tests are on my to-
do list, but I'm unlikely to find time for them before the new year.  In 
the meantime, I'd very much appreciate any feedback on this patch, if 
anyone has the time/energy/inclination to look at it.  (Andreas:  are you 
in a position to give this a test-run?)

Added file: http://bugs.python.org/file8807/cmath.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1381
__Index: configure
===
--- configure   (revision 59184)
+++ configure   (working copy)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 58653 .
+# From configure.in Revision: 58784 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61 for python 2.6.
 #
@@ -15226,11 +15226,14 @@
 
 
 
-for ac_func in alarm bind_textdomain_codeset chflags chown clock confstr \
- ctermid execv fork fpathconf ftime ftruncate \
+
+
+
+for ac_func in alarm asinh bind_textdomain_codeset chflags chown clock \
+ confstr copysign ctermid execv fork fpathconf ftime ftruncate \
  gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
  getpriority getpwent getspnam getspent getsid getwd \
- kill killpg lchflags lchown lstat mkfifo mknod mktime \
+ kill killpg lchflags lchown log1p lstat mkfifo mknod mktime \
  mremap nice pathconf pause plock poll pthread_init \
  putenv readlink realpath \
  select setegid seteuid setgid \
Index: configure.in
===
--- configure.in(revision 59184)
+++ configure.in(working copy)
@@ -2303,11 +2303,11 @@
 AC_MSG_RESULT(MACHDEP_OBJS)
 
 # checks for library functions
-AC_CHECK_FUNCS(alarm bind_textdomain_codeset chflags chown clock confstr \
- ctermid execv fork fpathconf ftime ftruncate \
+AC_CHECK_FUNCS(alarm asinh bind_textdomain_codeset chflags chown clock \
+ confstr copysign ctermid execv fork fpathconf ftime ftruncate \
  gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
  getpriority getpwent getspnam getspent getsid getwd \
- kill killpg lchflags lchown lstat mkfifo mknod mktime \
+ kill killpg lchflags lchown log1p lstat mkfifo mknod mktime \
  mremap nice pathconf pause plock poll pthread_init \
  putenv readlink realpath \
  select setegid seteuid setgid \
Index: Doc/library/cmath.rst
===
--- Doc/library/cmath.rst   (revision 59184)
+++ Doc/library/cmath.rst   (working copy)
@@ -14,6 +14,15 @@
 floating-point number, respectively, and the function is then applied to the
 result of the conversion.
 
+.. note::
+
+   On platforms with hardware and system-level support for signed
+   zeros, functions involving branch cuts are continuous on *both*
+   sides of the branch cut: the sign of the zero distinguishes one
+   side of the branch cut from the other.  On platforms that do not
+   support signed zeros the continuity is as specified below.
+
+
 The functions are:
 
 
@@ -37,32 +46,37 @@
 
 .. function:: asinh(x)
 
-   Return the hyperbolic arc sine of *x*. There are two branch cuts, extending
-   left from ``±1j`` to ``±∞j``, both continuous from above. These branch 
cuts
-   should be considered a bug to be corrected in a future release. The correct
-   branch cuts should extend along the imaginary axis, one from ``1j`` up to
-   ``∞j`` and continuous from the right, and one from ``-1j`` down to 
``-∞j``
-   and continuous from the left.
+   Return the hyperbolic arc sine of *x*. There are two branch cuts:
+   One extends from ``1j`` along the imaginary axis to ``∞j``,
+   continuous from the right.  The other extends from ``-1j`` along
+   the imaginary axis to ``-∞j``, continuous from the left.
 
+   .. 

[issue1358] Compile error on OS X 10.5

2007-11-25 Thread Guido van Rossum

Guido van Rossum added the comment:

IMO it should be set to 10.4 since we want binaries that run on that
platform too.  Is this something we can fix in the configure script?

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1358
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue765228] Subclassing from Modules

2007-11-25 Thread Guido van Rossum

Guido van Rossum added the comment:

I don't see an issue to be fixed here; adding special tests in order to
provide more detailed error messages is rarely a good idea.

Also, PEP 8 has said for years now that modules should *not* be named
the same as classes.  Yes, there are a few such modules in the standard
library.  They're historical mistakes that will be fixed in 3.0.

--
status: pending - closed


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue765228

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1496] add str.maketrans()

2007-11-25 Thread Guido van Rossum

Guido van Rossum added the comment:

Looks good from a functionality POV.

I wonder if we couldn't change the dict though to always map ordinals to
strings?  Deletions can be mapped to .  We could warn about non-string
values in the 2.6 version of this code, and make it a (lazy) error in 3.0.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1496
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1493] Patch to remove unbound methods

2007-11-25 Thread Guido van Rossum

Guido van Rossum added the comment:

On Nov 24, 2007 11:37 AM, Christian Heimes [EMAIL PROTECTED] wrote:
 Do you still believe in the tooth fairy, too? :p

Yes, and in the Easter Bunny, Santa Claus, and Sinterklaas. But in
this particular case I believe in Kaboutertjes. (Dutch gnomes.) And it
turns out I was right. :-)

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1493
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com