[issue15748] Various symlink test failures in test_shutil on FreeBSD

2012-08-31 Thread Trent Nelson
Trent Nelson added the comment: Turns out our unit test uncovered a very subtle corner-case bug in ZFS, requiring the following patch to FreeBSD: a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sa.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sa.c index 69374fb..7f61517 100644 --- a/sys/c

[issue15834] 2to3 benchmark not working under Python 3

2012-08-31 Thread Brett Cannon
Brett Cannon added the comment: On Fri, Aug 31, 2012 at 6:42 PM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > > Might need to let Python 3 use its stdlib copy of lib2to3. Otherwise > > will need to come up with a way to have two copies of a library, one > > for Python 2 and an

[issue15748] Various symlink test failures in test_shutil on FreeBSD

2012-08-31 Thread Larry Hastings
Larry Hastings added the comment: Could we work around it? Ignore the length we get back from readlink() and just measure the buffer ourselves? Or, if we wanted to be *really* paranoid, write a \0 at the length they give us back and *then* strlen it. -- _

[issue15835] HP-UX build needs to be tweaked to pick up PATH_MAX

2012-08-31 Thread Trent Nelson
New submission from Trent Nelson: Building on HP-UX with the HP ANSI C compiler: % make cc -Ae -c -O -O -I. -I./Include-DPy_BUILD_CORE -o Python/pythonrun.o Python/pythonrun.c "Python/pythonrun.c", line 805: error #2020: identifier "PATH_MAX"

[issue15833] most failures to write byte-compiled file no longer suppressed

2012-08-31 Thread Eric Snow
Eric Snow added the comment: I was thinking along the same lines, though it might make sense for EROFS and a few others. (http://aplawrence.com/Unixart/errors.html) -- nosy: +eric.snow ___ Python tracker

[issue15819] Unable to build Python out-of-tree when source tree is readonly.

2012-08-31 Thread Trent Nelson
Trent Nelson added the comment: > Since the committed patch is already a step in that direction, > I think it now needs to be completed. It's mandatory (IMO) > that the generated files are actually used; that the generators > are not run if not needed is optional and can be fixed later. Martin:

[issue15535] Fix pickling of named tuples in 2.7.3 (BUG)

2012-08-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2012-08-31 Thread Daniel Wagner-Hall
New submission from Daniel Wagner-Hall: The following code in a unittest test is a no-op: self.assertRaises(lambda: 1) I would expect this to fail the test, because I naively assumed omitting the exception class would act as: self.assertRaises(BaseException, lambda: 1) verifying that *any* E

[issue15535] Fix pickling efficiency of named tuples in 2.7.3

2012-08-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, all pickle protocol levels are affected: Point = colletions.namedtuple('Point', ['x', 'y', 'z']) for proto in range(3): pickletools.dis(dumps(Point(10, 20, 30), proto)) I'll look at the proposed fix in more detail when I get a chance -- we want to

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2012-08-31 Thread R. David Murray
R. David Murray added the comment: Sounds like a reasonable suggestion. However, the patch is not valid for 2.7, since there exceptions can be old style classes. -- nosy: +r.david.murray stage: -> patch review versions: -Python 2.6, Python 2.7, Python 3.1 ___

[issue15780] IDLE (windows) with PYTHONPATH and multiple python versions

2012-08-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Pytho

[issue15786] IDLE code completion window does not scoll/select with mouse

2012-08-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +serwy, terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2012-08-31 Thread R. David Murray
R. David Murray added the comment: I put some review comments in rietveld (you should have gotten an email). -- ___ Python tracker ___ ___

[issue15820] Add additional info to Resources area on Dev Guide

2012-08-31 Thread R. David Murray
R. David Murray added the comment: Is the :exc:`KeyboardInterrupt` line supposed to be in there? -- nosy: +r.david.murray ___ Python tracker ___ _

[issue15809] IDLE console uses incorrect encoding.

2012-08-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2012-08-31 Thread Daniel Wagner-Hall
Daniel Wagner-Hall added the comment: I seem to be getting exceptions why trying to upload a new patch to rietveld, either by the web interface (in several browsers), or by upload.py - attaching new patchset here Also, if I wanted to backport to 2.7 including an isinstance(e, types.ClassType)

[issue15826] Increased test coverage of test_glob.py

2012-08-31 Thread R. David Murray
R. David Murray added the comment: Is test_bytes_glob_directory_with_trailing_slash unique to bytes, or should it be added to the base class instead? What would be useful as bytes-only tests, I think, would be tests of non-ascii stuff. Although that makes me wonder, do we test non-ascii unico

[issue15837] Added test to test_random.py testing Random.shuffle

2012-08-31 Thread Alessandro Moura
New submission from Alessandro Moura: Random.shuffle does not have a test in test_random.py; the attached patch adds this test. In addition, I rewrote the documentation string for Random.shuffle, which apparently did not reflect recent changes in the code and was inconsistent with the definiti

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2012-08-31 Thread R. David Murray
R. David Murray added the comment: Uploading the new patch here is the correct procedure. It will automatically be uploaded to rietveld as well. If by "how" you mean how to submit a backport, just create a patch against 2.7 tip and upload it separately. Revised patch looks good. --

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2012-08-31 Thread R. David Murray
Changes by R. David Murray : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue15837] Added test to test_random.py testing Random.shuffle

2012-08-31 Thread R. David Murray
R. David Murray added the comment: The patch seems to be missing. The int=int is probably some sort of micro-optimization and perhaps should be removed. -- nosy: +r.david.murray, rhettinger ___ Python tracker ___

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2012-08-31 Thread Daniel Wagner-Hall
Daniel Wagner-Hall added the comment: Added patch for 2.7. I'll sign the contributor form just as soon as I can get to a printer. Thanks for taking me through my first contribution. -- versions: +Python 2.7 Added file: http://bugs.python.org/file27081/issue15836-2.7.patch

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2012-08-31 Thread R. David Murray
R. David Murray added the comment: You are welcome, and thanks for your contribution. -- components: +Library (Lib) -Tests ___ Python tracker ___

[issue11839] argparse: unexpected behavior of default for FileType('w')

2012-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1b614921aefa by R David Murray in branch '3.2': #12776,#11839: call argparse type function only once. http://hg.python.org/cpython/rev/1b614921aefa New changeset 74f6d87cd471 by R David Murray in branch 'default': Merge #12776,#11839: call argparse

[issue12776] argparse: type conversion function should be called only once

2012-08-31 Thread R. David Murray
R. David Murray added the comment: Thanks, Arnaud and Mike. (And Steven, of course :) -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue12776] argparse: type conversion function should be called only once

2012-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1b614921aefa by R David Murray in branch '3.2': #12776,#11839: call argparse type function only once. http://hg.python.org/cpython/rev/1b614921aefa New changeset 74f6d87cd471 by R David Murray in branch 'default': Merge #12776,#11839: call argparse

[issue13769] json.dump(ensure_ascii=False) return str instead of unicode

2012-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset a1884b3027c5 by Petri Lehtinen in branch '2.7': #13769: Enhance docs for ensure_ascii semantics in JSON decoding functions http://hg.python.org/cpython/rev/a1884b3027c5 -- nosy: +python-dev ___ Python tra

[issue13769] json.dump(ensure_ascii=False) return str instead of unicode

2012-08-31 Thread Petri Lehtinen
Petri Lehtinen added the comment: Fixed, thanks. -- keywords: -needs review resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

<    1   2