[issue1138] Fixer needed for __future__ imports

2007-11-23 Thread Christian Heimes

Changes by Christian Heimes:


--
keywords: +py3k
versions: +Python 3.0

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



[issue1034] [patch] Add 2to3 support for displaying warnings as Python comments

2007-11-23 Thread Christian Heimes

Changes by Christian Heimes:


--
keywords: +py3k
versions: +Python 3.0

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



[issue1755179] Deadlocks with fork() and multithreading

2007-11-23 Thread Christian Heimes

Christian Heimes added the comment:

It sounds like the importer dead lock problem. These problems are almost
impossible to unit test because they are usually race conditions.

I don't see a problem in moving the import to the module name space.
errno is a built-in module and the import isn't costly.

--
nosy: +tiran

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



[issue1746656] IPv6 Interface naming/indexing functions

2007-11-23 Thread Christian Heimes

Christian Heimes added the comment:

How do you know that the patch is working when you don't know how to
test it? Nobody is going to apply new features without unit tests.

--
nosy: +tiran

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1746656
_
___
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-23 Thread Christian Heimes

Christian Heimes added the comment:

I agree. Python can't stop the developer from doing stupid things. We
could remove Py_TPFLAGS_BASETYPE from the module type but that could
cause incompatibilities with existing code.

I'm assigning the bug to our beloved dictator to ask for his opinion.

--
assignee:  - gvanrossum
nosy: +gvanrossum, tiran
resolution:  - wont fix
status: open - pending


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



[issue1767787] MSVC++8 x86 tkinter build patch for trunk

2007-11-23 Thread Christian Heimes

Christian Heimes added the comment:

I've fixed the builds a while ago.

--
nosy: +tiran
resolution:  - fixed
status: open - closed

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



[issue1189216] zipfile module and 2G boundary

2007-11-23 Thread Christian Heimes

Changes by Christian Heimes:


--
components: +Library (Lib) -None
versions: +Python 2.6, Python 3.0

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



[issue1731068] Importing a submodule fails after unloading its parent

2007-11-23 Thread Christian Heimes

Christian Heimes added the comment:

Yes, it's fixed in Python 2.5 and newer.

--
nosy: +tiran
resolution:  - out of date
status: open - closed

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



[issue1620174] Improve platform.py usability on Windows

2007-11-23 Thread Christian Heimes

Changes by Christian Heimes:


--
components: +Library (Lib) -None
versions: +Python 2.6

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



[issue1735632] Add O_NOATIME to os module

2007-11-23 Thread Christian Heimes

Changes by Christian Heimes:


--
versions: +Python 2.6, Python 3.0

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



[issue1230540] sys.excepthook doesn't work in threads

2007-11-23 Thread Christian Heimes

Changes by Christian Heimes:


--
versions: +Python 2.5, Python 2.6 -Python 2.4

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



[issue1490] Bug in eval() function

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

Martin v. Löwis added the comment:

Why do you think this is a bug? 08 really is a syntax error, and 010
really means 8.

--
nosy: +loewis
resolution:  - invalid
status: open - closed

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



[issue1675455] Use getaddrinfo() in urllib2.py for IPv6 support

2007-11-23 Thread Christian Heimes

Changes by Christian Heimes:


--
versions: +Python 2.6, Python 3.0

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1675455
_
___
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-23 Thread Thomas Herve

Thomas Herve added the comment:

1315 is a duplicate of this, and I end up with a very similar solution.

--
nosy: +therve

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



[issue1315] Bug in pstats.print_callers

2007-11-23 Thread Thomas Herve

Thomas Herve added the comment:

The real bug is in fact in add_callers, where it concatenates tuples
instead of adding the values. I'll try to write a test this week-end if
nobody beats me to it.

The attached is against current trunk.

--
nosy: +therve
Added file: http://bugs.python.org/file8797/1315.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1315
__Index: Lib/pstats.py
===
--- Lib/pstats.py   (revision 59136)
+++ Lib/pstats.py   (working copy)
@@ -512,7 +512,7 @@
 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
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1474] PCbuild9 patch for trunk

2007-11-23 Thread Christian Heimes

Changes by Christian Heimes:


--
resolution:  - fixed
status: open - closed

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



[issue1402] Interpreter cleanup: order of _PyGILState_Fini and PyInterpreterState_Clear

2007-11-23 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

I managed to reproduce the problem consistently with the following code:

import ctypes, sys, time, thread

# Module globals are cleared before __del__ is run
# So save the functions in class dict
class C:
ensure = ctypes.pythonapi.PyGILState_Ensure
release = ctypes.pythonapi.PyGILState_Release
def __del__(self):
state = self.ensure()
self.release(state)

def waitingThread():
x = C()
time.sleep(100)

thread.start_new_thread(waitingThread, ())
time.sleep(1)
sys.exit(42)


On exit, PyInterpreterState_Clear stops the sleeping thread and free its
local variables. But at this time _PyGILState_Fini has already been
called...

The initial patch also corrects this problem. I join another patch,
which adds the above code in a testcase.

Ready to check-in, but can someone have a look?

--
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file8798/test_gilstate.patch

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

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



[issue1488] PCBuild9 _ssl.vcproj improperly launches build

2007-11-23 Thread Christian Heimes

Changes by Christian Heimes:


--
status: pending - closed

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



[issue1488] PCBuild9 _ssl.vcproj improperly launches build

2007-11-23 Thread Joseph Armbruster

Joseph Armbruster added the comment:

Looks like the libpaths were pointing to out32 instead of out32.dll. 
Although that may have been due to my switch from nt.mak to ntdll.mak.

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



[issue1492] BaseHTTPServer hard-codes Content-Type for error messages

2007-11-23 Thread samwyse

Changes by samwyse:


--
components: +Library (Lib)
type:  - behavior
versions: +Python 2.4, Python 2.5, Python 2.6, Python 3.0

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



[issue1620174] Improve platform.py usability on Windows

2007-11-23 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Rejecting the patch, since it hasn't been updated.

--
resolution:  - rejected
status: open - closed

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



[issue1754273] Deprecation warning for (NOTEQUAL)

2007-11-23 Thread Christian Heimes

Christian Heimes added the comment:

Applied in r59132
Thanks!

--
nosy: +tiran
resolution:  - fixed
status: open - closed

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



[issue1315] Bug in pstats.print_callers

2007-11-23 Thread Thomas Herve

Thomas Herve added the comment:

Oh I didn't see, but this one should probably closed as duplicate of 1269.

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



[issue1486] Idle tab command completion

2007-11-23 Thread Grant Delaney

Grant Delaney added the comment:

You can remove this issue. It was a compile problem on my side, missing
libs etc.

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



[issue1754271] Deprecation warning for `backticks`

2007-11-23 Thread Christian Heimes

Christian Heimes added the comment:

Applied in r59132
Thanks!

--
nosy: +tiran
resolution:  - fixed
status: open - closed

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



[issue1491] BaseHTTPServer incorrectly implements response code 100

2007-11-23 Thread samwyse

New submission from samwyse:

RFC 2616 sec 8.2.3 states, An origin server that sends a 100 (Continue)
response MUST ultimately send a final status code, once the request body
is received and processed, unless it terminates the transport connection
prematurely.  The obvious way to do this is to invoke the
'send_response' method twice, once with a code of 100, then with the
final code.  However, BaseHTTPServer will always send two headers
('Server' and 'Date') when it send a response.  One possible fix is to
add an option to the method to suppress sending headers; another is to
add the following code to the 'send_response' method, immediately prior
to the calls to 'self.send_header':

if code == 100:
return

The more paranoid among us may wish to use this code instead:

if code == 100:
expectation = self.headers.get('Expect', )
if expectation.lower() == '100-continue':
return

--
components: Library (Lib)
messages: 57783
nosy: samwyse
severity: normal
status: open
title: BaseHTTPServer incorrectly implements response code 100
type: behavior
versions: Python 2.4, Python 2.5, Python 2.6, Python 3.0

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



[issue1492] BaseHTTPServer hard-codes Content-Type for error messages

2007-11-23 Thread samwyse

New submission from samwyse:

The send_error method always sends a Content-Type of 'text/html'.  Other
content types are both possible and desirable.  For example, someone
writing a REST server might wish to send XML error messages.  Following
the example of DEFAULT_ERROR_MESSAGE, I propose adding the following in
the appropriate places:

91a92,94
 # Default error content-type
 DEFAULT_ERROR_TYPE = 'text/html'

345c348
 self.send_header(Content-Type, text/html)
---
 self.send_header(Content-Type, error_message_type)
351a355
 error_message_type = DEFAULT_ERROR_TYPE

--
messages: 57784
nosy: samwyse
severity: normal
status: open
title: BaseHTTPServer hard-codes Content-Type for error messages

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



[issue1488] PCBuild9 _ssl.vcproj improperly launches build

2007-11-23 Thread Joseph Armbruster

Joseph Armbruster added the comment:

Whoops.  This may have been an error on my part.  nt.mak I think bombed
for me except it was probably due to some of my tinkering.  My apologies.

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



[issue1429818] trace.py needs to know about doctests

2007-11-23 Thread Skip Montanaro

Skip Montanaro added the comment:

Applied in r59317 (trunk) and r59318 (release25-maint).

--
assignee:  - skip.montanaro
nosy: +skip.montanaro
resolution:  - accepted
status: open - closed

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



[issue1486] Idle tab command completion

2007-11-23 Thread Facundo Batista

Facundo Batista added the comment:

Rejected as requested by the OP.

--
resolution:  - rejected
status: open - closed

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



[issue1256] subprocess Popen wait() function hangs when stdout is 20480

2007-11-23 Thread Ivan Pozdeev

Ivan Pozdeev added the comment:

I suggest adding this as a note to the subprocess module documentation instead. 
The 17.1.2 Popen Objects section seems to be the right place.

--
nosy: +Vano

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



[issue1409] new keyword-only function parameters interact badly with nested functions

2007-11-23 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

Corrected as r59155.
Thanks for the report!

--
nosy: +amaury.forgeotdarc
resolution:  - fixed
status: open - closed

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



[issue1770416] Decimal.__int__ overflows for large values

2007-11-23 Thread Facundo Batista

Facundo Batista added the comment:

This was fixed at the same time than issue 1772851.

int(D(1e1234567890987654321)) stills take too long, but this is fault
of doing 10**1234567890987654321 to convert it to an int.

Note that hash(D(1e1234567890987654321)) is fast now.

--
resolution:  - fixed
status: open - closed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1770416
_
___
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-23 Thread Christian Heimes

New submission from Christian Heimes:

Here is a first patch to remove unbound method objects.

6 tests failed:
test_descr test_inspect test_pyclbr test_typechecks test_unittest
test_weakref

--
assignee: gvanrossum
components: Interpreter Core
files: py3k_remove_unbound.patch
keywords: patch, py3k
messages: 57798
nosy: gvanrossum, tiran
priority: high
severity: normal
status: open
title: Patch to remove unbound methods
type: rfe
versions: Python 3.0
Added file: http://bugs.python.org/file8799/py3k_remove_unbound.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1493
__Index: Objects/funcobject.c
===
--- Objects/funcobject.c	(Revision 59163)
+++ Objects/funcobject.c	(Arbeitskopie)
@@ -643,8 +643,10 @@
 static PyObject *
 func_descr_get(PyObject *func, PyObject *obj, PyObject *type)
 {
-	if (obj == Py_None)
-		obj = NULL;
+	if (obj == Py_None || obj == NULL) {
+		Py_INCREF(func);
+		return func;
+	}
 	return PyMethod_New(func, obj, type);
 }
 
Index: Lib/DocXMLRPCServer.py
===
--- Lib/DocXMLRPCServer.py	(Revision 59163)
+++ Lib/DocXMLRPCServer.py	(Arbeitskopie)
@@ -74,7 +74,7 @@
 title = 'a name=%sstrong%s/strong/a' % (anchor, name)
 
 if inspect.ismethod(object):
-args, varargs, varkw, defaults = inspect.getargspec(object.im_func)
+args, varargs, varkw, defaults = inspect.getargspec(object)
 # exclude the argument bound to the instance, it will be
 # confusing to the non-Python user
 argspec = inspect.formatargspec (
Index: Lib/test/test_extcall.py
===
--- Lib/test/test_extcall.py	(Revision 59163)
+++ Lib/test/test_extcall.py	(Arbeitskopie)
@@ -231,18 +231,8 @@
 x = Foo()
 print(Foo.method(*(x, 1, 2)))
 print(Foo.method(x, *(1, 2)))
-try:
-print(Foo.method(*(1, 2, 3)))
-except TypeError as err:
-pass
-else:
-print('expected a TypeError for unbound method call')
-try:
-print(Foo.method(1, *(2, 3)))
-except TypeError as err:
-pass
-else:
-print('expected a TypeError for unbound method call')
+print(Foo.method(*(1, 2, 3)))
+print(Foo.method(1, *(2, 3)))
 
 # A PyCFunction that takes only positional parameters should allow an
 # empty keyword dictionary to pass without a complaint, but raise a
Index: Lib/test/test_repr.py
===
--- Lib/test/test_repr.py	(Revision 59163)
+++ Lib/test/test_repr.py	(Arbeitskopie)
@@ -280,8 +280,8 @@
 ''')
 from areallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation import qux
 # Unbound methods first
-eq(repr(qux..amethod),
-'unbound method .amethod')
+self.failUnless(repr(qux..amethod).startswith(
+'function amethod'))
 # Bound method next
 iqux = qux.()
 self.failUnless(repr(iqux.amethod).startswith(
Index: Lib/test/test_descrtut.py
===
--- Lib/test/test_descrtut.py	(Revision 59163)
+++ Lib/test/test_descrtut.py	(Arbeitskopie)
@@ -444,9 +444,7 @@
 ... B.foo(self)
 
  C().foo()
-Traceback (most recent call last):
- ...
-TypeError: unbound method foo() must be called with B instance as first argument (got C instance instead)
+called A.foo()
 
  class C(A):
 ... def foo(self):
Index: Lib/test/test_descr.py
===
--- Lib/test/test_descr.py	(Revision 59163)
+++ Lib/test/test_descr.py	(Arbeitskopie)
@@ -280,12 +280,12 @@
 
 c = C()
 vereq(interesting(dir(c)), cstuff)
-verify('im_self' in dir(C.Cmethod))
+#verify('im_self' in dir(C.Cmethod))
 
 c.cdata = 2
 c.cmethod = lambda self: 0
 vereq(interesting(dir(c)), cstuff + ['cdata', 'cmethod'])
-verify('im_self' in dir(c.Cmethod))
+#verify('im_self' in dir(c.Cmethod))
 
 class A(C):
 Adata = 1
@@ -293,13