[issue8750] Many of MutableSet's methods assume that the other parameter is not self

2010-08-22 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

The patch looks good.
Feel free to apply.

--
assignee: rhettinger - stutzbach

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



[issue9157] Allow inspection of used decorators on a function

2010-08-22 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

That's a lot of boilerplate for minimal gain. The Django commenter was right - 
proposals that start with everybody in the world needs to do X differently 
from the way they do it now for this to be useful aren't ever likely to gain 
much traction.

--

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



[issue9214] Most Set methods of KeysView and ItemsView do not work right

2010-08-22 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Fixed in r84252, r84252, and r84254.

--
priority: high - normal
resolution: accepted - fixed
status: open - closed

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



[issue9131] test_set_reprs in test_pprint is fragile

2010-08-22 Thread Raymond Hettinger

Changes by Raymond Hettinger rhettin...@users.sourceforge.net:


--
assignee: rhettinger - stutzbach

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



[issue9396] Standardise (and publish?) cache handling in standard library

2010-08-22 Thread Raymond Hettinger

Changes by Raymond Hettinger rhettin...@users.sourceforge.net:


--
resolution:  - fixed
status: open - closed

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



[issue7871] Duplicate test method in test_heapq

2010-08-22 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Fixed in r84255.

--
resolution:  - fixed
status: open - closed

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



[issue8743] set() operators don't work with collections.Set instances

2010-08-22 Thread Raymond Hettinger

Changes by Raymond Hettinger rhettin...@users.sourceforge.net:


--
priority: normal - high

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



[issue9251] Test for the import lock

2010-08-22 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

With the new setUp and tearDown methods, the threadedimp2 patch doesn't apply 
cleanly any more.

Looks good and passes for me - fixed patch attached.

Was I meant to still be looking at mtimport or threadimp, or have both of those 
been applied?

--
Added file: http://bugs.python.org/file18605/issue9251_threadimp_py3k_head.patch

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



[issue8403] dis.dis gives different results if Ctrl-C is pressed

2010-08-22 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Fixed in r84256.
Don't think this needs to be backported.

--
resolution:  - fixed
status: open - closed
versions: +Python 3.2 -Python 2.6, Python 2.7

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



[issue1284670] Allow to restrict ModuleFinder to get direct dependencies

2010-08-22 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

The generalist in me is inclined to suggest a depth parameter (with depth=1 
equivalent to direct dependencies only, and depth = None meaning all 
dependencies), but I must admit I don't have a concrete use case for the extra 
generality. So the simpler, recurse/don't recurse approach is probably a better 
option (building a depth-limited search on top of the recursion flag wouldn't 
be difficult anyway).

Aside from missing docs and unit test updates, the idea seems sound.

--

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



[issue1284670] Allow to restrict ModuleFinder to get direct dependencies

2010-08-22 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

Although I do find it a little concerning that there is no mention of 
sys.path_hooks or sys.meta_path in the modulefinder source code. I suspect this 
module only works correctly with vanilla filesystem based imports and can't 
handle anything imported via PEP 302.

--

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



[issue9396] Standardise (and publish?) cache handling in standard library

2010-08-22 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Raymond, out of curiosity, can you tell why you removed lfu_cache?

--

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



[issue1346874] httplib simply ignores CONTINUE

2010-08-22 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
assignee:  - orsenthil
nosy: +orsenthil

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



[issue1462440] socket and threading: udp multicast setsockopt fails

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

I can't reproduce this on Windows Vista can someone please confirm my findings.

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0

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



[issue1465646] test_grp test_pwd fail

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Can this be closed?

--
nosy: +BreamoreBoy

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



[issue1466065] base64 module ignores non-alphabet characters

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Attached patches against 2.7 and 3.2 contain doc and unit test changes so can 
someone please review and commit if acceptable.

--
nosy: +BreamoreBoy
stage: unit test needed - patch review
versions: +Python 3.1

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



[issue1467619] Header.decode_header eats up spaces

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Would someone like to comment on Georg's patch.

--
nosy: +BreamoreBoy
stage: unit test needed - patch review
versions: +Python 3.2 -Python 2.6, Python 3.0

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



[issue1467929] %-formatting and dicts

2010-08-22 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
stage:  - needs patch
versions: +Python 3.2

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



[issue9657] Add circular imports test

2010-08-22 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

It would be good if the test timed out rather than deadlocking in the face of a 
broken import lock.

I suggest:
1. Make the two test threads daemon threads
2. Specify a timeout to the join() calls
3. Use self.assertFalse(t1.is_alive()) and self.assertFalse(t2.is_alive()) to 
check the calls actually finished

For your #9260 testing, this looks like it may be a little probabilistic. I 
think you can make the deadlock a near certainty by defining your test modules 
and threads as follows:

# Create a circular import structure: A - C - B - D - A
circular_imports_modules = {
'A': if 1:
import ev
ev.evA.wait()
import time
time.sleep(%(delay)s)
x = 'a'
import C
,
'B': if 1:
import ev
ev.evB.wait()
import time
time.sleep(%(delay)s)
x = 'b'
import D
,
'C': import B,
'D': import A,
'ev': if 1:
 import threading;
 evA = threading.Event()
 evB = threading.Event()
 ,
}

def import_ab():
import ev
ev.evB.set()
import A
results.append(getattr(A, 'x', None))
def import_ba():
import ev
ev.evA.set()
import B
results.append(getattr(B, 'x', None))


(I've done a trick along these lines before, and the above doesn't look quite 
right. Maybe the details will come back to me if I sit on it for a while)

--

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



[issue1469629] __dict__ = self in subclass of dict causes a memory leak?

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

I've reproduced this problem with 2.7, 3.1 and 3.2.

--
nosy: +BreamoreBoy
stage: unit test needed - patch review
type: behavior - resource usage
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

The are no unit test or doc changes with the patch.  Can anyone answer Georg's 
question on msg66684?

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue1471934] Python libcrypt build problem on Solaris 8, 9, 10 and OpenSolaris

2010-08-22 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
stage: unit test needed - patch review
versions: +Python 3.1, Python 3.2 -Python 2.6

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



[issue1475692] replacing obj.__dict__ with a subclass of dict

2010-08-22 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
versions:  -Python 2.6

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



[issue1479255] Fix building with SWIG's -c++ option set in setup.py

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Is this still a problem?

--
assignee:  - tarek
nosy: +BreamoreBoy, tarek
stage:  - needs patch
type:  - behavior
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4

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



[issue9657] Add circular imports test

2010-08-22 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 It would be good if the test timed out rather than deadlocking in the
 face of a broken import lock.

I could do that indeed. I'm not sure it would be much better, though, because 
the lock will still be held and posterior tests may freeze mysteriously.

 For your #9260 testing, this looks like it may be a little probabilistic

It always freezes here (with the per-module lock). I guess on modern machines, 
0.5s is more than enough to launch a thread and parse a nearly empty Python 
module.

I should add a comment explaining a purpose of the test, though.

--

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



[issue1481032] patch smtplib:when SMTPDataError, rset crashes with sslerror

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

The change to the encode_plain method in the patch was done via #1075928 on 
2004-12-06.  The try/except change around a call to self.rset() was never 
implemented.

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue1481347] parse_makefile doesn't handle $$ correctly

2010-08-22 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
assignee:  - tarek

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



[issue1483545] Wave.py support for ulaw and alaw audio

2010-08-22 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
stage:  - unit test needed
versions: +Python 3.2 -Python 2.7, Python 3.1

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



[issue9251] Test for the import lock

2010-08-22 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 Was I meant to still be looking at mtimport or threadimp, or have both 
 of those been applied?

threadimp has already been committed.
As for mtimport, I'll try to refactor it into a proper unit test.

--

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



[issue1486713] HTMLParser : A auto-tolerant parsing mode

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

I think this should be closed as have other similar requests in the last few 
days.

--
nosy: +BreamoreBoy, fdrake

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



[issue1487481] Could BIND_FIRST be removed on HP-UX?

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Is this still valid?

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue1489246] 2.4.3 fails to find Tcl/Tk on Solaris 10 x86_64

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closed in reply to msg83914.

--
nosy: +BreamoreBoy
resolution:  - works for me
status: open - closed

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



[issue9251] Test for the import lock

2010-08-22 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

The new patch was committed in r84258, thanks Nick.

--

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



[issue9251] Test for the import lock

2010-08-22 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


Removed file: http://bugs.python.org/file17995/threadimp.patch

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



[issue9251] Test for the import lock

2010-08-22 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


Removed file: http://bugs.python.org/file18003/threadimp2.patch

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



[issue9251] Test for the import lock

2010-08-22 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


Removed file: 
http://bugs.python.org/file18605/issue9251_threadimp_py3k_head.patch

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



[issue1490929] urllib.retrieve's reporthook called with non-helpful value

2010-08-22 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
versions: +Python 3.2 -Python 2.7

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



[issue1492240] Socket-object convenience function: getpeercred().

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

No reply to msg111039, also see comments on msg50314.

--
resolution:  - rejected
status: open - closed

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



[issue1492704] distinct error type from shutil.move()

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

@Zooko are you interested in taking this forward?

--
nosy: +BreamoreBoy

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



[issue1495488] make altinstall installs pydoc

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Fixed on #1590.

--
nosy: +BreamoreBoy
resolution:  - duplicate
status: open - closed

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



[issue1495802] cygwin: popen3 lock up

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Any Cygwin/Windows people interested in this, or can it be closed?

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue1502517] crash in expat when compiling with --enable-profiling

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closed in reply to msg92323.

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

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



[issue1504333] sgmllib should allow angle brackets in quoted values

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

sgmllib has been deprecated since 2.6 and has been removed from py3k.

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

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



[issue849097] Request: getpos() for sgmllib

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

sgmllib has been deprecated since 2.6 and has been removed from py3k.

--
resolution:  - out of date
status: open - closed
versions: +Python 3.2 -Python 2.7

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



[issue1459279] sgmllib.SGMLparser and hexadecimal numeric character refs

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

sgmllib has been deprecated since 2.6 and has been removed from py3k.

--
resolution:  - out of date
status: open - closed
versions: +Python 3.2 -Python 2.7

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



[issue1508475] transparent gzip compression in liburl2

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

@Jakob could you provide an updated patch for py3k that includes unit test and 
doc changes?

--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 2.7

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



[issue1512124] OSX: debugger hangs IDLE

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Is this still an issue with later versions of Python and/or OSX?

--
nosy: +BreamoreBoy

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



[issue1512163] mailbox (2.5b1): locking doesn't work (esp. on FreeBSD)

2010-08-22 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Is this still an issue on later versions of Python and/or FreeBSD?

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue1512791] module wave does no rounding

2010-08-22 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
stage: unit test needed - patch review
versions: +Python 3.1

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



[issue1514420] Missing module code does spurious file search

2010-08-22 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0

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



[issue8990] array constructor and array.fromstring should accept bytearray.

2010-08-22 Thread Thomas Jollans

Changes by Thomas Jollans tho...@jollans.com:


Added file: http://bugs.python.org/file18606/tofrombytes.diff

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



[issue8990] array constructor and array.fromstring should accept bytearray.

2010-08-22 Thread Thomas Jollans

Changes by Thomas Jollans tho...@jollans.com:


Removed file: http://bugs.python.org/file18606/tofrombytes.diff

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



[issue9657] Add circular imports test

2010-08-22 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

Both good points - don't worry about it then. +1 to add to the test suite as-is.

--

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



[issue8990] array constructor and array.fromstring should accept bytearray.

2010-08-22 Thread Thomas Jollans

Thomas Jollans tho...@jollans.com added the comment:

Hello again, sorry for the absense.

Victor, thanks for the input. I've attached a new patch that checks the 
PyErr_WarnEx return value.

--
Added file: http://bugs.python.org/file18607/tofrombytes.diff

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



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-08-22 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
nosy: +giampaolo.rodola

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



[issue1495488] make altinstall installs pydoc

2010-08-22 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
superseder:  - make altinstall installs pydoc, idle, smtpd.py

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



[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-22 Thread Carsten Klein

New submission from Carsten Klein carsten.kl...@axn-software.de:

Example

class a(frozenset):
def __init__(self, iterable):
super(a, self).__init__(iterable)


i = a([1,2,3])
 __main__:3: DeprecationWarning: object.__init__() takes no parameters
 a([1, 2, 3])


This might be due to the fact that the frozenset type structure does not 
initialize the tp_init field in setobject.c, thus inheriting the original 
__init__ from object.

Subclassing set will not issue that warning as it actually defines the tp_init 
field to (initroc)set_init.

This holds true also for the Python 2.7 release and maybe also later releases.

Expected behaviour: do not output that warning message and provide an initproc 
for the tp_field.

--
components: None
messages: 114676
nosy: carsten.kl...@axn-software.de
priority: normal
severity: normal
status: open
title: frozenset, when subclassed will yield warning upon call to 
super(...).__init__(iterable)
type: behavior
versions: Python 2.6

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



[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-22 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thank you for the report. 2.6 is in security mode, it does not get bug fixes 
anymore. Can you reproduce the bug with 2.7, 3.1 and 3.2?

--
components: +Interpreter Core -None
nosy: +eric.araujo, rhettinger, stutzbach

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



[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-22 Thread Daniel Stutzbach

Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:

I can reproduce it in Python 3.1 and 3.2  I don't have a build of Python 2.7 
handy at the moment to test it there.

In Python 3.2 and 2.7, DeprecationWarnings are silenced by default.  I had to 
start Python 3.2 with -W always::DeprecationWarning to see the problem.

--

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



[issue1172011] BaseCookie should call value_decode from __getitem__

2010-08-22 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Mark, not many people follow the full bugs list (I'm don't anymore...I just 
happened to notice this one going by on the IRC channel).   Asking a question 
without adding appropriate people to nosy is therefore not all that likely to 
obtain a response, and a lack of response in that situation is not, IMO, 
sufficient grounds for closing an issue.  If you can't find someone to add to 
nosy, you could post to python-dev.

From a look at the code it appears to me that this is not valid.  value_decode 
is called by __ParseString which is called from 'load'.  The cookies are 
apparently stored in the dict as a Morsel that contains a both a 'real value' 
and the 'encoded value', and those pairs get created via individual sets (the 
call to __setitem__), when a load-from-string is done, or by *encoding* the 
real values when a load-from-dict is done (ie: a mass __setitem__).  

It seems like closing this as invalid is the correct action; however, the OP 
clearly observed a problem, but we don't have sufficient information to 
diagnose it.

Ryan, if you are still interested in/seeing this problem, can you supply a test 
case that demonstrates the issue you observed?  Otherwise we'll close the issue.

--
nosy: +orsenthil, r.david.murray
resolution:  - invalid
status: closed - pending

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



[issue1162477] Parsing failures in parsedate_tz

2010-08-22 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
assignee:  - r.david.murray

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



[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-22 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

This is correct. immutable types should use __new__, not __init__.

--
nosy: +benjamin.peterson
resolution:  - invalid
status: open - closed

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



[issue1512791] module wave does no rounding

2010-08-22 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

I'll take a look at this.

--
assignee:  - mark.dickinson
nosy: +mark.dickinson

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



[issue1486713] HTMLParser : A auto-tolerant parsing mode

2010-08-22 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

I disagree (and might disagree with those other closings but I haven't noticed 
them I guess).  BeautifulSoup does *not* cover this ground, it is broken in 3.x 
because of the lack of a tolerant HTML parser in the stdlib (it used to use 
sgmlib, which is now gone).  BeautifulSoup would probably very much like to 
have this tolerant mode.

It probably shouldn't be the default, though, for backward compatibility 
reasons :(

--
nosy: +orsenthil, r.david.murray

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



[issue8743] set() operators don't work with collections.Set instances

2010-08-22 Thread Guido van Rossum

Changes by Guido van Rossum gu...@python.org:


--
nosy:  -gvanrossum

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



[issue1466065] base64 module ignores non-alphabet characters

2010-08-22 Thread Guido van Rossum

Changes by Guido van Rossum gu...@python.org:


--
nosy:  -gvanrossum

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



[issue1487481] Could BIND_FIRST be removed on HP-UX?

2010-08-22 Thread Guido van Rossum

Changes by Guido van Rossum gu...@python.org:


--
nosy:  -gvanrossum

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



[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-22 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Thanks Benjamin.  I concur with your conclusion.

--

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



[issue8990] array constructor and array.fromstring should accept bytearray.

2010-08-22 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


Removed file: http://bugs.python.org/file17828/tofrombytes.diff

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



[issue8990] array constructor and array.fromstring should accept bytearray.

2010-08-22 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

From a quick glance, the latest patch looks ok.

--

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



[issue9512] logging.handlers.RotatingFileHandler - mode argument not respected

2010-08-22 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

Sorry for the slow response, I've been on vacation.

The reason why the mode is set to a for rotating file handlers is as follows: 
the file is supposed to contain events from multiple runs of the program until 
rollover occurs. If a mode w (for example) is specified and respected, and 
you run the application twice, you would only get log output from the last run 
- not what you would intuitively expect. That's because in the second run, w 
would truncate an existing log file. With the mode set to a, logs from 
multiple runs go into the same file, until rollover occurs - this seems to be 
the commonest use case.

Why do you need to specify a+ rather than a? Do you need to read the log 
file concurrently with it being written, with the same file handle/descriptor?

The provided handlers are for text files, so non-text modes are not appropriate 
either. If you need support for binary files, you can create your own handler 
classes, perhaps based on the existing ones.

Marking as pending, awaiting feedback. Will close in a couple of weeks if none 
received.

--
assignee: d...@python - vinay.sajip
nosy:  -d...@python
status: open - pending

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



[issue9512] logging.handlers.RotatingFileHandler - mode argument not respected

2010-08-22 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

I've updated the comment to be more informative in py3k, release27-maint 
(r84259).

--
status: pending - open

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



[issue9660] PEP 383: socket module doesn't handle undecodable protocol or service names

2010-08-22 Thread David Watson

New submission from David Watson bai...@users.sourceforge.net:

The protocol and service/port number databases are typically
implemented as text files on Unix and can contain non-ASCII names
in any encoding (presumably for local services), but the socket
module tries to decode them as strict UTF-8.  In particular,
getservbyport() and getnameinfo() will raise UnicodeError when
this fails.

Attached is a patch for 3.2 to use the file system encoding and
surrogateescape handler instead, in line with PEP 383.  This is
what Python already does for the passwd and group databases, and
it will allow protocol and service names to be given correctly as
command line arguments.

--
components: Extension Modules
files: proto-service-pep383-3.2.diff
keywords: patch
messages: 114687
nosy: baikie
priority: normal
severity: normal
status: open
title: PEP 383: socket module doesn't handle undecodable protocol or service 
names
type: behavior
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file18608/proto-service-pep383-3.2.diff

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



[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-08-22 Thread David Watson

David Watson bai...@users.sourceforge.net added the comment:

I noticed that try-surrogateescape-first.diff missed out one of
the string references that needed to be changed to point to the
bytes object, and also used PyBytes_AS_STRING() in an unlocked
section.  This version fixes these things by taking the generally
safer approach of setting the original char * variable to the
hostname immediately after using hostname_converter().

--
Added file: http://bugs.python.org/file18609/try-surrogateescape-first-3.diff

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



[issue1868] threading.local doesn't free attrs when assigning thread exits

2010-08-22 Thread Gregory P. Smith

Gregory P. Smith g...@krypto.org added the comment:

your updated patch looks good to me.  i've posted it here for easy review if 
anyone else wants to take a look:

http://codereview.appspot.com/1995049/

--
assignee: gregory.p.smith - pitrou

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



[issue1027206] unicode DNS names in socket, urllib, urlopen

2010-08-22 Thread David Watson

David Watson bai...@users.sourceforge.net added the comment:

Updated the socket module patch to include gethostbyaddr() - it
happens to accept hostnames and is used this way in the standard
library.

--
Added file: http://bugs.python.org/file18610/socket-idna.diff

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



[issue9208] SMTPHandler in the logging module does not handle unicode strings

2010-08-22 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

SMTPHandler provides an implementation for the simplest/most common case. Full 
support for encoding in emails is likely to be application-specific, i.e. no 
one-size-fits-all can be easily specified. For example, different encodings 
could be used for headers, subject and body - say, quoted-printable for the 
body and base64 for the subject. Unfortunately, support for quoted-printable 
requires a global state change, see for instance

http://radix.twistedmatrix.com/2010/07/how-to-send-good-unicode-email-with.html

so it seems not to be a good idea to implement in the logging package itself.

I would suggest implementing a handler which subclasses SMTPHandler and does 
the appropriate formatting as per (for example) the above post. To facilitate 
this, I coukd add two methods to SMTPHandler:

class SMTPHandler(logging.Handler):
def prepareEmail(self, record):

Prepare a record for emailing, including setting up mail
headers doing all necessary encodings. Return a value
suitable for passing to the sendEmail method.

The default implementation will assume all-ASCII content
for headers and body, do no special encoding, and return a
string.


def sendMail(self, smtp, msg):

Send a message via the provided SMTP instance.

The default implementation will call smtplib.sendmail(),
passing the result from the prepareEmail method.


I'm not yet sure if this would meet all use cases.

Marking as pending, awaiting feedback. Will close in a couple of weeks if no 
feedback received.

--
status: open - pending

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



[issue9512] logging.handlers.RotatingFileHandler - mode argument not respected

2010-08-22 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


--
status: open - pending

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



[issue9512] logging.handlers.RotatingFileHandler - mode argument not respected

2010-08-22 Thread Friðrik Már Jónsson

Friðrik Már Jónsson frid...@pyth.net added the comment:

I agree with your points on the triviality and potential harmfulness of 
allowing modes like 'b' and 'w'.

The '+' mode may be required for loggers that require headers or validation or 
positioning within an existing file (think XML). One example of such a format 
is the Extended Log File Format draft by the W3C which has seen widespread 
usage, despite being a draft.

With a format like the ELFF, it must be determined on opening an existing file 
(perhaps amongst other sanitary operations), whether its headers have already 
been written or whether they need to be.  It may also be desirable to simply 
check the file's size through its already open handler.

I can see an argument for not allowing this into the handler; handlers are 
perhaps not meant to support formats but much rather storage mechanisms.  
Accepting this argument requires accepting the fact that libraries implementing 
such formats, using rotation and needing to read will need to write a handler 
from scratch for rotation support.

There may be more uses of different modes than my single example.  I see this 
boiling down to a matter of philosophy -- do we support usages we cannot 
foresee or do we admit certain features only when we've seen several valid 
examples of their use?

Perhaps we should also consider what harm is possibly done by allowing these 
modes, and whether harmful use is likelier to be attributed to bad architecture 
or programmer recklessness.

--
status: pending - open

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



[issue9556] Specifying the time a TimedRotatingFileHandler rotates

2010-08-22 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

One way of implementing this is to use an additional optional atTime 
parameter which is a datetime.time instance, defaulting to None; a specified 
value would only be used if a 'when' value of 'D' or 'MIDNIGHT' were specified. 
In that case, computeRollover would be called with the specified time instead 
of the current time.

Would that meet your requirements?

--
assignee:  - vinay.sajip
status: open - pending

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



[issue9661] 2to3 except fixer does the wrong thing for certain raise statements

2010-08-22 Thread Brodie Rao

New submission from Brodie Rao j...@dackz.net:

Given the following statements:

raise Foo('bar'), None, baz
raise Foo('bar'), None

2to3 produces:

raise Foo('bar')(None).with_traceback(baz)
raise Foo('bar')(None)

Instead of:

raise Foo('bar').with_traceback(baz)
raise Foo('bar')

--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 114694
nosy: brodie
priority: normal
severity: normal
status: open
title: 2to3 except fixer does the wrong thing for certain raise statements
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1

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



[issue9427] logging.error('...', exc_info=True) should display upper frames, too

2010-08-22 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


--
assignee:  - vinay.sajip
nosy: +vinay.sajip

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



[issue9501] Logging shutdown regressions with weakrefs

2010-08-22 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


--
assignee:  - vinay.sajip

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



[issue9441] increase logging handlers test coverage

2010-08-22 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


--
assignee:  - vinay.sajip
nosy: +vinay.sajip

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



[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-08-22 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

A similar issue occurs on x86 debian parallel buildbot:

==
FAIL: test_nonascii (test.test_warnings.CEnvironmentVariableTests)
--
Traceback (most recent call last):
  File 
/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/test/test_warnings.py, 
line 731, in test_nonascii
['ignore:DeprecaciónWarning'].encode('utf-8'))
AssertionError: b'' != b['ignore:Deprecaci\xc3\xb3nWarning']

http://www.python.org/dev/buildbot/builders/x86%20debian%20parallel%203.x/builds/80

--
nosy: +flox
status: closed - open
type:  - behavior

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



[issue1027206] unicode DNS names in socket, urllib, urlopen

2010-08-22 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Thanks for the patch. Committed as r84261.

I'm not sure what the point is of supporting IDNA in getnameinfo, so I have 
removed that from the patch. If you think it's needed, please elaborate.

--

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



[issue1027206] unicode DNS names in socket, urllib, urlopen

2010-08-22 Thread Martin v . Löwis

Changes by Martin v. Löwis mar...@v.loewis.de:


--
resolution:  - accepted
status: open - closed

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



[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-08-22 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

There's a failure on the same buildbot, x86 debian parallel, with test 
test_subprocess (test_undecodable_env).

This test was introduced with issue #8391.

The test_subprocess and test_warnings failures are specific to this buildbot.

--

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



[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-08-22 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
keywords: +buildbot

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



[issue7501] python -m unittest path_to_suite_function errors

2010-08-22 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Well, it was misdiagnosed yes - but asking for python -m unittest ... support 
in Python 2.6 is still a feature request and not a bug report. (So 
unfortunately it can't be fixed in 2.6 which is bugfix only. The solution is to 
use unittest2 or Python 2.7.)

--

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



[issue8622] Add PYTHONFSENCODING environment variable

2010-08-22 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

This is still an issue on some buildbots:
 - since r84224 on OS X (PPC Leopard, x86 Tiger)
 - since r84182 on sparc solaris10 gcc, x86 FreeBSD, x86 FreeBSD 7.2

The issue was fixed in r84201, r84202, r84203 for OS X buildbots only, but 
since r84224 it is failing again.

--
keywords: +buildbot
nosy: +flox
status: closed - open
type:  - behavior

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



[issue9653] New default argparse output to be added

2010-08-22 Thread Tom Browder

Tom Browder tom.brow...@gmail.com added the comment:

On Sun, Aug 22, 2010 at 16:01, Steven Bethard rep...@bugs.python.org wrote:

 Steven Bethard steven.beth...@gmail.com added the comment:

 A simpler approach might be to do this before your call to parse_args:

 if len(sys.argv[0]) == 1:
    parser.print_help()

 Does that solve your problem?

No, Steven, I get no response at all.

-Tom

--

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



[issue8622] Add PYTHONFSENCODING environment variable

2010-08-22 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

I'm working on a fix for test_sys failure. test_os should not fail anymore.

--

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



[issue9649] wrong default for sort_keys in json module documentation

2010-08-22 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Thanks, fixed in r84264.

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

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



[issue9653] New default argparse output to be added

2010-08-22 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

A simpler approach might be to do this before your call to parse_args:

if len(sys.argv[0]) == 1:
parser.print_help()

Does that solve your problem?

--

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



[issue1397] mysteriously failing test_bsddb3 threading test in other threads

2010-08-22 Thread Guido van Rossum

Changes by Guido van Rossum gu...@python.org:


--
status: open - pending

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



[issue1397] mysteriously failing test_bsddb3 threading test in other threads

2010-08-22 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

This issue is no longer reported since pybsddb 4.8.4 integration.
Issue #8156, revision 79285.

--
nosy: +flox
resolution:  - out of date
status: open - pending

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



[issue9657] Add circular imports test

2010-08-22 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Thank you Nick! I've committed the patch in r84268 (py3k) and r84269 (3.1).

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.1

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



[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-08-22 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

I know test_warnings failure and I will try to fix it soon.

--

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



[issue1397] mysteriously failing test_bsddb3 threading test in other threads

2010-08-22 Thread Guido van Rossum

Changes by Guido van Rossum gu...@python.org:


--
nosy:  -gvanrossum
status: pending - open

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



  1   2   >