[issue5679] cleanUp stack for unittest

2009-04-05 Thread Garrett Cooper

Garrett Cooper  added the comment:

I think some perspective is required on this enhancement request. I
originally filed this issue -- http://bugs.python.org/issue5538 --
because of the unneeded complexity involved with duplicating
teardown-related code in setUp because of a step in setUp failing.

>From my perspective, there are two issues:

- setUp failing doesn't cleanup on failure unless the test writer
explicitly adds cleanup logic.
- cleanup shouldn't partially replace tearDown -- either supplement it
or completely replace it longterm. Otherwise the unittest code and
expectations associated with it will potentially confuse end users.

Another thought: Why not have an option for defining a method called
`incrementalTearDown', which replaces `tearDown' from a functional
standpoint? A method like that would clearly convey that this is
designed to replace tearDown, it's not the same functionally, and would
ease migration over the long-term if people chose to use this design
when writing testcases.

I personally think that doing something like this would be trivial (yet
novel) functionality as it makes more sense than the current
implementation of setUp->test->tearDown.

--
nosy: +yaneurabeya

___
Python tracker 

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



[issue5679] cleanUp stack for unittest

2009-04-05 Thread Robert Collins

Robert Collins  added the comment:

On Sun, 2009-04-05 at 07:25 +, Garrett Cooper wrote:
> Garrett Cooper  added the comment:
> 
> I think some perspective is required on this enhancement request. I
> originally filed this issue -- http://bugs.python.org/issue5538 --
> because of the unneeded complexity involved with duplicating
> teardown-related code in setUp because of a step in setUp failing.

Indeed, and in bzr and other unittest extension libraries one of the
first things done is to make tearDown be called always.

> >From my perspective, there are two issues:
> 
> - setUp failing doesn't cleanup on failure unless the test writer
> explicitly adds cleanup logic.

the proposed patch in 5679 runs cleanups always, so this shouldn't be an
issue with the addCleanup functionality.

> - cleanup shouldn't partially replace tearDown -- either supplement it
> or completely replace it longterm. Otherwise the unittest code and
> expectations associated with it will potentially confuse end users.

I'm conceptually fine with this, certainly I've not written a tearDown
for tests in bzr in a very long time.

> Another thought: Why not have an option for defining a method called
> `incrementalTearDown', which replaces `tearDown' from a functional
> standpoint? A method like that would clearly convey that this is
> designed to replace tearDown, it's not the same functionally, and would
> ease migration over the long-term if people chose to use this design
> when writing testcases.

Its much more complex than addCleanup [it will be tied to the MRO], not
as flexible (and in big suites that starts to matter a lot), and unable
to trivially hook into actually used resources [which addCleanup does].

-Rob

--

___
Python tracker 

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



[issue5688] inability to ignore multiline warnings -- request to add re.DOTALL to re.compile

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

I don't really understand this; first, the regex doesn't have to match
the entire warning message (and I hope the important things are in the
first line, otherwise the warning message is bad) and second, it's
always possible to use ``(.|\n)`` instead of plain ``.``. Ah yes, third,
there are also inline flags: ``(?s)``.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue5689] please support lzma compression as an extension and in the tarfile module

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

If we support LZMA, we should do so on all platforms; it kind of
restricts usefulness to only have it on some.  Maybe the LZMA code in
one of the many archival tools in existence that supports it is not LGPL'd?

--
nosy: +georg.brandl

___
Python tracker 

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



[issue5696] test_telnetlib augmentation

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

FWIW, it works here too with 0.0 and 0.1 seconds (it's Linux x86).

--
nosy: +georg.brandl

___
Python tracker 

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



[issue1742940] can't run single lamba funcs as unittest

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

This is fixed in at least 2.6 and trunk.

--
nosy: +georg.brandl
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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




[issue5679] cleanUp stack for unittest

2009-04-05 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Our experience in bzr (we use this heavily, and migrated to it
> incrementally across our 17K fixture suite) is that we rarely need to
> use cleanups on dependent resources, and when we need to it has been
> very easy to migrate the dependent resource to use cleanups as well.

I'm baffled. If you say you don't care about the order, why are you
arguing at all?

[...]
> sequence 2: cleanup before teardown prevents using cleanups in base
> class setup methods

The point is that sequence 2 can already be emulated using careful
"try...finally" in tearDown, while sequence 1 cannot. That is, sequence
1 *needs* the addCleanup, while for sequence 2 it is a mere additional
convenience.

--

___
Python tracker 

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



[issue5442] [3.1alpha1,2] test_importlib fails on Mac OSX 10.5.6

2009-04-05 Thread Ismail Donmez

Ismail Donmez  added the comment:

Still fails with 3.1 alpha2:

==
ERROR: test_is_package 
(importlib.test.frozen.test_loader.InspectLoaderTests)
--
Traceback (most recent call last):
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/frozen/test_loader.py", line 80, in 
test_is_package
result = machinery.FrozenImporter.is_package(name)
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/_bootstrap.py", line 191, in wrapper
return fxn(self, fullname)
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/_bootstrap.py", line 301, in is_package
return imp.is_frozen_package(fullname)
AttributeError: 'module' object has no attribute 'is_frozen_package'

==
ERROR: test_lacking_parent 
(importlib.test.source.test_abc_loader.PyLoaderTests)
--
Traceback (most recent call last):
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 162, in 
test_lacking_parent
__loader__=mock)
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 128, in 
eq_attrs
"{} attribute: {} != {}".format(attr, found, val))
ValueError: zero length field name in format

==
ERROR: test_module (importlib.test.source.test_abc_loader.PyLoaderTests)
--
Traceback (most recent call last):
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 138, in 
test_module
__loader__=mock)
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 128, in 
eq_attrs
"{} attribute: {} != {}".format(attr, found, val))
ValueError: zero length field name in format

==
ERROR: test_package 
(importlib.test.source.test_abc_loader.PyLoaderTests)
--
Traceback (most recent call last):
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 151, in 
test_package
__loader__=mock)
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 128, in 
eq_attrs
"{} attribute: {} != {}".format(attr, found, val))
ValueError: zero length field name in format

==
ERROR: test_lacking_parent 
(importlib.test.source.test_abc_loader.PyPycLoaderTests)
--
Traceback (most recent call last):
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 270, in 
test_lacking_parent
mock, name = super().test_lacking_parent()
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 162, in 
test_lacking_parent
__loader__=mock)
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 128, in 
eq_attrs
"{} attribute: {} != {}".format(attr, found, val))
ValueError: zero length field name in format

==
ERROR: test_module 
(importlib.test.source.test_abc_loader.PyPycLoaderTests)
--
Traceback (most recent call last):
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 262, in 
test_module
mock, name = super().test_module()
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 138, in 
test_module
__loader__=mock)
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 128, in 
eq_attrs
"{} attribute: {} != {}".format(attr, found, val))
ValueError: zero length field name in format

==
ERROR: test_package 
(importlib.test.source.test_abc_loader.PyPycLoaderTests)
--
Traceback (most recent call last):
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 266, in 
test_package
mock, name = super().test_package()
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 151, in 
test_package
__loader__=mock)
  File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 128, in 
eq_attrs
"{} attribute: {} != {}".format(attr, found, val))
ValueEr

[issue1707768] os.path.normpath changes path (chops of trailing slash)

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

The amount of discussion on this bug is already an indication that the
proposed change is questionable.  Combine this with
backwards-compatibility concerns, and it's enough reason not to change this.

--
nosy: +georg.brandl
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue1718017] posixpath and friends have uses that should be documented

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Should be covered with r71216.

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

___
Python tracker 

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



[issue5694] spurious output in test_distutils

2009-04-05 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

Antoine, I can't reproduce this with the current trunk and py3k branch. 

how do you launch the tests ?

--

___
Python tracker 

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



[issue1726172] ftplib.py: IndexError in voidresp occasionally

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed in r71217. Thanks!

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

___
Python tracker 

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



[issue1732662] socket makefile objects are not independent

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Closing as "works for me".

--
nosy: +georg.brandl
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue1742837] Documentation for BaseHTTPServer.HTTPServer

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Should be covered now in r71212.

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

___
Python tracker 

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



[issue5695] test_logging fails when run twice in a row

2009-04-05 Thread Vinay Sajip

Vinay Sajip  added the comment:

The problem was caused by the logging.captureWarnings(True) call being
left outside the "with warnings.catch_warnings()" during Brett's change
to test_logging (r70975). Since logging.captureWarnings grabs
warnings.showwarning, in order for warnings.catch_warnings to restore
things to how they were before, ISTM that this capture needs to be
inside the with.

Fix checked into trunk (r71221).

--
nosy: +brett.cannon
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue5606] The makefile dependencies listing formatter.h are wrong

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Committed as r71223.

--
nosy: +georg.brandl
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue1538556] PyThreadState_SetAsyncExc bug

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Agreed.

--
nosy: +georg.brandl
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue1538691] Patch cElementTree to export CurrentLineNumber

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Which will be synced into core at some point, I guess?

--
nosy: +georg.brandl
resolution:  -> postponed
status: open -> pending

___
Python tracker 

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



[issue5586] The documentation of os.makedirs is misleading

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Actually, it works as documented:

>>> import os
>>> os.makedirs("/tmp")
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python2.6/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '/tmp'

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

___
Python tracker 

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



[issue5615] linking fails when configured --without-threads

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed 2.6 and 3k in r71222 and r71224, respectively.

--
nosy: +georg.brandl
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue5579] Display for OrderedDict

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

I don't think this is going to fly -- 1. because we don't lightly add
new syntax for every data type and 2. because it doesn't scale beyond
simple keys and values.  A list of tuples is explicit and works fine.

--
nosy: +georg.brandl
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue5580] Strange error message in Python/getargs.c

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed in r71225.

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

___
Python tracker 

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



[issue1659410] Minor AST tweaks

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Note that change #1 is already implemented as of r62051.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue5611] Auto-detect indentation in C source in vimrc

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

You should restrict the search to the first 100 lines or so, if
possible.  Many of our C files have inconsistent indentation, and using
this script with such a file, automatically relying on it to do the
right thing, will result in even more inconsistencies.  Restricting the
search to the beginning of a file greatly reduces the probability of it
finding a stray tab indentation.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue5686] Float formatting with no type code produces incorrect output for exponential notation

2009-04-05 Thread Eric Smith

Eric Smith  added the comment:

This isn't testing what I thought it was testing. I'd forgotten that
format(x, '') is exactly equivalent to str(x).

The better test is using a format string of '<':
>>> 1e200.__format__('<')
'1.0e+200'
>>> 1e200.__format__(' invalid
status: open -> closed

___
Python tracker 

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



[issue5533] unittest can't deal with packages

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Your script is flawed in two parts:

* it doesn't filter the return value of listdir(), which leads to each
test being executed twice in the presence of .pyc files

* __import__("foo.bar") does *not* return the foo.bar submodule, but the
foo module.

But that is all not relevant because your run_tests is not even called
if unittest finds command line arguments that give test names. See
unittest.TestProgram.parseArgs.

--
nosy: +georg.brandl
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue1473979] test test_capi crashed -- thread.error: can't allocate lock

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Can you retry with a new Python release?

--
nosy: +georg.brandl
resolution:  -> out of date
status: open -> pending

___
Python tracker 

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



[issue1477450] test_bsddb skipped -- Failed to load on HP-UX 11.2i

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Seems like that's the case.

--
nosy: +georg.brandl
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue1470540] XMLGenerator creates a mess with UTF-16

2009-04-05 Thread Georg Brandl

Changes by Georg Brandl :


--
dependencies:  -Bugfix for #1470540 (XMLGenerator cannot output UTF-16)
resolution:  -> duplicate
status: open -> closed
superseder:  -> Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

___
Python tracker 

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



[issue1457119] Unifying pickle and cPickle exception class hierarchies

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

This is fine in Py3k, where there is only one set of pickling exceptions
that can be raised.  In 2.x it's best not to break backwards
compatibility right now.

--
nosy: +georg.brandl
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue1438185] os.renames() crashes NTFS junctions

2009-04-05 Thread Georg Brandl

Changes by Georg Brandl :


--
dependencies:  -os.renames() crashes NTFS junctions
resolution:  -> duplicate
status: open -> closed
superseder:  -> os.renames() crashes NTFS junctions

___
Python tracker 

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



[issue1436206] CGIHTTPServer doesn't handle path names with embeded space

2009-04-05 Thread Georg Brandl

Changes by Georg Brandl :


--
dependencies:  -CGIHTTPServer doesn't handle path names with embeded space
resolution:  -> duplicate
status: open -> closed
superseder:  -> CGIHTTPServer doesn't handle path names with embeded space

___
Python tracker 

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



[issue5679] cleanUp stack for unittest

2009-04-05 Thread Robert Collins

Robert Collins  added the comment:

On Sun, 2009-04-05 at 10:15 +, Antoine Pitrou wrote:
> Antoine Pitrou  added the comment:
> 
> > Our experience in bzr (we use this heavily, and migrated to it
> > incrementally across our 17K fixture suite) is that we rarely need to
> > use cleanups on dependent resources, and when we need to it has been
> > very easy to migrate the dependent resource to use cleanups as well.
> 
> I'm baffled. If you say you don't care about the order, why are you
> arguing at all?

I didn't say I don't care; I do - I care that it is robust and hard to
misuse. Having addCleanup() when called from a tearDown lead to cleanups
not being called would be an easy route to misuse.

> [...]
> > sequence 2: cleanup before teardown prevents using cleanups in base
> > class setup methods
> 
> The point is that sequence 2 can already be emulated using careful
> "try...finally" in tearDown, while sequence 1 cannot. That is, sequence
> 1 *needs* the addCleanup, while for sequence 2 it is a mere additional
> convenience.

I don't understand; neither sequence works - they are showing how any
choice [that retains the current simple proposed mechanism] cannot
interact without some failure modes with tearDown. Whichever point we
choose to have cleanups execute can be entirely emulated using careful
try:finally: in tearDown methods, so surely this is not an argument for
either order.

-Rob

--

___
Python tracker 

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



[issue1396258] KeyboardInterrupt prevents return to Windows console

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Closing then.

--
nosy: +georg.brandl
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue1324770] Adding redblack tree to collections module

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Let's reject it then.

--
nosy: +georg.brandl
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue5679] cleanUp stack for unittest

2009-04-05 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> I don't understand; neither sequence works



>  - they are showing how any
> choice [that retains the current simple proposed mechanism] cannot
> interact without some failure modes with tearDown.

And I'm telling you one failure mode is more desireable than the other.

--

___
Python tracker 

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



[issue1438185] os.renames() crashes NTFS junctions

2009-04-05 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto :


--
superseder: os.renames() crashes NTFS junctions -> Patch for bug  1438185: 
os.renames deletes junction points

___
Python tracker 

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



[issue5694] spurious output in test_distutils

2009-04-05 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Antoine, I can't reproduce this with the current trunk and py3k branch. 
> 
> how do you launch the tests ?

By doing `./python -m test.regrtest test_distutils`

Apparently it happens in test_clean.cleanTestCase.test_simple_run.

--

___
Python tracker 

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



[issue1306484] compile() converts "filename" parameter to StringType

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

I don't think this will be dealt with in the 2.x series.  Python 3
already has support for Unicode file names, so it's out of date there.

--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue1326077] traceback.py formats SyntaxError differently

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed in trunk in r71237, 3k in r71239.

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

___
Python tracker 

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



[issue1283289] PyArg_ParseTupleAndKeywords gives misleading error message

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Looks like the new message is in 2.6 as well.

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

___
Python tracker 

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



[issue1298835] vendor-packages directory.

2009-04-05 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee:  -> tarek
nosy: +tarek

___
Python tracker 

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



[issue5508] maximum recursion depth exceeded in __subclasscheck__

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

The messages are now suppressed by the temporary bump of the recursion
limit in PyErr_GivenExceptionMatches.

--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue5370] unpickling vs. __getattr__

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Updated docs in r71240.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue5506] io.BytesIO doesn't support the buffer protocol

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Is this still unimplemented?

--
nosy: +georg.brandl

___
Python tracker 

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



[issue5461] python3 symlink

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Assigning to Benjamin to make sure that Python is installed as "python3"
starting with 3.1.

--
assignee:  -> benjamin.peterson
nosy: +benjamin.peterson, georg.brandl
priority:  -> release blocker

___
Python tracker 

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



[issue5471] os.path.expanduser('~') doesnt works correctly when HOME is '/'

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, committed in r71241.

--
nosy: +georg.brandl
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue5506] io.BytesIO doesn't support the buffer protocol

2009-04-05 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Yes.
I don't remember which use case I was thinking about when I suggested
this, but it may be useful to e.g. write() all the data to a file object
without actually making a copy (getvalue() does).

--

___
Python tracker 

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



[issue5697] heapq.nlargest does not perform stable sort

2009-04-05 Thread George Sakkis

New submission from George Sakkis :

According to the docs, heapq.nlargest should be equivalent to
sorted(iterable, key=key, reverse=True)[:n], and since sorted() is
stable, so should heapq.nlargest be. This is not the case:

>>> s =[
 ('Mike', -1),
 ('John', 3),
 ('George', 2),
 ('Adam', 3),
 ('Paul', -3),
 ('Peter', -2),
 ('Mary', -1)
]

>>> heapq.nlargest(2, s, key=lambda x:abs(x[1]))
[('Paul', -3), ('Adam', 3)]

>>> sorted(s, key=lambda x:abs(x[1]), reverse=True)[:2]
[('John', 3), ('Adam', 3)]


The fix should be easy:

--- heapq.py2009-04-04 23:27:53.12500 -0400
+++ heapq2.py   2009-04-05 10:51:32.18750 -0400
@@ -133 +133 @@
-from operator import itemgetter
+from operator import itemgetter, neg
@@ -334 +334 @@
-it = izip(imap(key, in1), count(), in2) # decorate
+it = izip(imap(key, in1), imap(neg, count()), in2)  # decorate

--
components: Library (Lib)
messages: 85508
nosy: gsakkis
severity: normal
status: open
title: heapq.nlargest does not perform stable sort
type: behavior
versions: Python 2.5

___
Python tracker 

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



[issue5698] pydoc -w doesn't produce proper HTML

2009-04-05 Thread Matthias Klose

New submission from Matthias Klose :

[forwarded from http://bugs.debian.org/411524]

"""
If you feed the output of pydoc -w [some module] to the w3 validator, it
complains about two issues:
firstly, the doctype is wrong. It should be:

not 
 in
the head
would probably do.
"""

--
assignee: georg.brandl
components: Documentation
files: pydoc.diff
keywords: needs review, patch, patch
messages: 85509
nosy: doko, georg.brandl
severity: normal
status: open
title: pydoc -w doesn't produce proper HTML
type: behavior
Added file: http://bugs.python.org/file13619/pydoc.diff

___
Python tracker 

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



[issue5453] pydoc -k fails (release30-maint patch)

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed in r71242.

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

___
Python tracker 

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



[issue5586] The documentation of os.makedirs is misleading

2009-04-05 Thread Mher Movsisyan

Mher Movsisyan  added the comment:

Sorry for confusion. I thought a "leaf directory" is an intermediate-level 
directory.

>>> import os
>>> os.makedirs("/tmp/a/b")
>>>

--

___
Python tracker 

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



[issue5699] Strange interaction between -m and pydoc

2009-04-05 Thread Georg Brandl

New submission from Georg Brandl :

If you use "python -m pydoc", pydoc will not find standard modules
written in Python.  This leads to a traceback for example using "python
-m pydoc -k sys".  Somehow, sys.path gets modified in a strange way,
which can be seen from

$ python -i -m pydoc
(...)
>>> import sys
>>> sys.path
[... does not include /lib/python2.6 or /Lib ...]

--
assignee: ncoghlan
messages: 85512
nosy: georg.brandl, ncoghlan
priority: normal
severity: normal
status: open
title: Strange interaction between -m and pydoc

___
Python tracker 

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



[issue5699] Strange interaction between -m and pydoc

2009-04-05 Thread Georg Brandl

Changes by Georg Brandl :


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

___
Python tracker 

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



[issue5443] trivial typo in itertools documentation

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Has been fixed in trunk for some time.

--
status: open -> closed

___
Python tracker 

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



[issue5436] test_distutils fails with official Mac OS X Installer Disk Image (3.0.1)

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Closing as fixed then.

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

___
Python tracker 

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



[issue5432] plistlib contains unescaped hex sequence in doc string

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed in r71243, thanks!

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

___
Python tracker 

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



[issue5416] str.replace does strange things when given a negative count

2009-04-05 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee:  -> georg.brandl
nosy: +georg.brandl

___
Python tracker 

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



[issue5406] asyncore doc issue

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Closing as "works for me".

--
nosy: +georg.brandl
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue5390] Item 'Python x.x.x' in Add/Remove Programs list still lacks an icon

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

It is also completely low-priority, and so it is perfectly
understandable that Martin wants to fix more important problems.

--
nosy: +georg.brandl
priority:  -> low

___
Python tracker 

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



[issue5364] documentation in epub format

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

In any case, this belongs in the Sphinx tracker:
http://bitbucket.org/birkenfeld/sphinx/issue/140/

--
resolution:  -> duplicate
status: open -> closed

___
Python tracker 

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



[issue5351] Python tutorial error

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

I still think that the section covers basic file I/O quite well, and
since this is not Python-specific at all, you'll be better served with
an introduction to programming in general if you want to know all about
working with files.

--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue5343] remove or make work pdb retval and rv

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

It seems to me that retval works quite well, provided you call it in the
frame where the return occurs:

> /home/gbr/devel/python/x.py(2)f()
-> return 123
(Pdb) step
--Return--
> /home/gbr/devel/python/x.py(2)f()->123
-> return 123
(Pdb) retval
123
(Pdb)

--
nosy: +georg.brandl
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue5330] profile and cProfile do not report C functions called with keyword arguments

2009-04-05 Thread Georg Brandl

Changes by Georg Brandl :


--
priority:  -> critical

___
Python tracker 

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



[issue5700] io.FileIO calls flush() after file closed

2009-04-05 Thread Brian Quinlan

New submission from Brian Quinlan :

>>> import io
>>> class MyIO(io.FileIO):
... def flush(self):
... print('closed:', self.closed)
...
>>> f = MyIO('test.out', 'wb')
>>> f.close()
closed: True

IMHO, calling flush() after the file has already been closed is
incorrect behaviour. Search for "Possible py3k io wierdness" on
python-dev for discussion.

--
components: Library (Lib)
files: remove_flush.diff
keywords: patch
messages: 85521
nosy: bquinlan
severity: normal
status: open
title: io.FileIO calls flush() after file closed
versions: Python 3.1
Added file: http://bugs.python.org/file13620/remove_flush.diff

___
Python tracker 

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



[issue5701] ZipFile returns compressed data stream when encountering unsupported compression method

2009-04-05 Thread Yngve AAdlandsvik

New submission from Yngve AAdlandsvik :

The attached .zip archive contains two uncompressed files (2!
SCHEME.Z64, 3!SCHEME.Z64) and two files compressed with IMPLODE (1!
SCHEME.Z64, 4!SCHEME.Z64), a compression method not currently supported 
in ZipFile.

When using ZipFile.read() on the latter files, the compressed data 
stream is returned, while I assume the proper response would be to 
throw an exception of some kind to signal that the method is 
unsupported.

--
components: Library (Lib)
files: Scheme.zip
messages: 85522
nosy: ymgve
severity: normal
status: open
title: ZipFile returns compressed data stream when encountering unsupported 
compression method
versions: Python 2.6
Added file: http://bugs.python.org/file13621/Scheme.zip

___
Python tracker 

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



[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-05 Thread George Sakkis

George Sakkis  added the comment:

Posted recipe at http://code.activestate.com/recipes/576712/. You were
right, the implementation gets significantly hairier but I think it's
worth having this option. It's also faster than using sorted/bisect as
len(seq)/N increases and there is no pathologically high number of ties
at the last position (as in your test case).

--

___
Python tracker 

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



[issue5455] csv module no longer works as expected when file opened in binary mode

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Setting #4847 as superseder.

--
nosy: +georg.brandl
resolution:  -> duplicate
status: open -> closed
superseder:  -> csv fails when file is opened in binary mode

___
Python tracker 

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



[issue2421] doc\make.bat fails for htmlhelp because of hardcoded filename

2009-04-05 Thread Georg Brandl

Changes by Georg Brandl :


--
resolution:  -> duplicate
status: open -> closed
superseder:  -> .chm build process on Windows doesn't use the right filename

___
Python tracker 

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



[issue5444] .chm build process on Windows doesn't use the right filename

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Committed in r71249.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue5376] Wrong ImportError message if module is not readable

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Since this is not supported anyway (and never was), closing as "won't fix".

--
nosy: +georg.brandl
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue5340] Change in cgi behavior breaks existing software

2009-04-05 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee:  -> facundobatista
nosy: +facundobatista

___
Python tracker 

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



[issue5285] hmac throws TypeErrors

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Python 3 behavior is correct.  Since HMAC operates on bytes, not text,
only bytes are accepted. In Python 2, the acceptance of Unicode strings
is more an accident than a feature.

--
nosy: +georg.brandl
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue5298] Inconsistency in C-API thread docs

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Should be clearer as of r71251.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue5299] PyGILState_Ensure()/PyGILState_Release() documentation incomplete?

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

I think the paragraph

   Every call to :cfunc:`PyGILState_Ensure` must be matched by a call to
   :cfunc:`PyGILState_Release` on the same thread.

says exactly what you want to know.

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

___
Python tracker 

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



[issue1217881] pydoc includes unnecessary files for a package.

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

I don't think that it is common practice to list submodules in __all__,
only names really exported from the package.  Therefore, this does not
seem like a good change to make.

--
nosy: +georg.brandl
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue1256786] slice object uses -1 as exclusive end-bound

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Closing as "won't fix".  There's another issue that deals with better
documentation for slicing semantics.

--
nosy: +georg.brandl
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue1249749] Encodings and aliases do not match runtime

2009-04-05 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee:  -> georg.brandl
nosy: +georg.brandl

___
Python tracker 

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



[issue1251026] cgitb gives wrong lineno inside try:..finally:

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Works for me as well.

--
nosy: +georg.brandl
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue1278102] help() broken, especially on Windows

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

This is out of date now that Python includes the documentation for those
keywords.

--
nosy: +georg.brandl
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue1446619] extended slice behavior inconsistent with docs

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

See also #1265100.

--

___
Python tracker 

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



[issue1265100] sequence slicing documentation incomplete

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

There's also #1446619, so closing as a duplicate.

--
nosy: +georg.brandl
resolution:  -> duplicate
status: open -> closed
superseder:  -> extended slice behavior inconsistent with docs

___
Python tracker 

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



[issue1229680] Tracing C function calls and keyword arguments

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Setting #5330 as a superseder, which also has a patch.

--
nosy: +georg.brandl
resolution:  -> duplicate
status: open -> closed
superseder:  -> profile and cProfile do not report C functions called with 
keyword arguments

___
Python tracker 

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



[issue5330] profile and cProfile do not report C functions called with keyword arguments

2009-04-05 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee:  -> nbastin
nosy: +nbastin

___
Python tracker 

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



[issue1144263] reload() is broken for C extension objects

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

I agree with Grant.  There seems to be no way this can be sanely
implemented with today's infrastructure.

--
nosy: +georg.brandl
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue1159139] cgi.py invalid REQUEST_METHOD set

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Turns out this is caused by setting REQUEST_METHOD to 'cgi', which is
completely unmotivated.  Not doing this lets the example script work fine.

--
nosy: +georg.brandl
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue1113244] Please add do-while guard to Py_DECREF etc.

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Assigning to Matthias since he added do-while(0) to Py_DECREF in r71229.

--
assignee:  -> doko
nosy: +doko, georg.brandl

___
Python tracker 

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



[issue1446619] extended slice behavior inconsistent with docs

2009-04-05 Thread Steven Bethard

Changes by Steven Bethard :


--
nosy: +bethard -bediviere.historic

___
Python tracker 

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



[issue993580] inspect.findsource does not call linecache.checkcache

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Setting it as a superseder, then.

--
dependencies:  -inspect.getsource doesn't update when a module is reloaded
nosy: +georg.brandl
resolution:  -> duplicate
status: open -> closed
superseder:  -> inspect.getsource doesn't update when a module is reloaded

___
Python tracker 

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



[issue1030499] os.path.join() does not raise TypeError

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

+1 for duck typing.

--
nosy: +georg.brandl
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue5685] use tarinfo module in distutils

2009-04-05 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

superseded by #1886

--
status: open -> closed
superseder:  -> Permit to easily use distutils "--formats=tar,gztar,bztar" on 
all systems

___
Python tracker 

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



[issue1886] Permit to easily use distutils "--formats=tar, gztar, bztar" on all systems

2009-04-05 Thread Tarek Ziadé

Changes by Tarek Ziadé :


--
priority: normal -> high
versions: +Python 3.1 -Python 2.6

___
Python tracker 

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



[issue2578] additional unittest type equality methods

2009-04-05 Thread Guido van Rossum

Changes by Guido van Rossum :


--
nosy:  -gvanrossum

___
Python tracker 

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



[issue836058] socket.send() on Win98 behaves as nonblocking when timeout is set

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Let's assume it is Win9x-only.

--
dependencies:  -Inappropriate error received using socket timeout on Windows.
nosy: +georg.brandl
resolution:  -> out of date
status: open -> closed
superseder:  -> Inappropriate error received using socket timeout on Windows.

___
Python tracker 

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



[issue831574] Solaris term.h needs curses.h

2009-04-05 Thread Georg Brandl

Changes by Georg Brandl :


--
status: open -> pending

___
Python tracker 

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



[issue2703] SimpleXMLRPCDispatcher.__init__ is not python2.4-backward-compatible

2009-04-05 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

I'm -0, but if the tests pass and Matthias wants to commit this to 2.6
and 2.7, it's fine with me.

--
assignee:  -> doko
nosy: +barry
resolution:  -> accepted
versions: +Python 2.7 -Python 2.5

___
Python tracker 

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



[issue813198] Migrate PEP material to docs

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

This issue is very unspecific, and much documentation has been added
since.  If something is still missing, a new issue should be opened.

--
nosy: +georg.brandl
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue809887] Improve pdb breakpoint feedback

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Why do you propose closing?

--
nosy: +georg.brandl

___
Python tracker 

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



[issue5694] spurious output in test_distutils

2009-04-05 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

fixed in r71253 and r71254

--
status: open -> closed

___
Python tracker 

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



[issue602893] cgitb tracebacks not accessible

2009-04-05 Thread Georg Brandl

Georg Brandl  added the comment:

Committed a similar patch in r71255.

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

___
Python tracker 

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



  1   2   >