[issue20069] Add unit test for os.chown

2014-06-24 Thread Claudiu Popa
Claudiu Popa added the comment: Why the need of "as _" in the with statement? I don't understand it. Otherwise, looks good to me. -- ___ Python tracker ___ _

[issue21820] unittest: unhelpful truncating of long strings.

2014-06-24 Thread R. David Murray
R. David Murray added the comment: For strings, all of the string was not displayed before, either, it was just truncated at the end only. I'm surprised that that didn't apply to non-strings as well. It's the diff output that is supposed to be the full text (if maxDiff is None), to my unders

[issue20092] type() constructor should bind __int__ to __index__ when __index__ is defined and __int__ is not

2014-06-24 Thread R. David Murray
R. David Murray added the comment: There will be a corporate agreement from Bloomberg sometime soon (and that will be required in this case, not an individual agreement). -- ___ Python tracker

[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2014-06-24 Thread R. David Murray
R. David Murray added the comment: No, that's a good catch. For a keyword argument, we generally do mention the default value in the text, and it looks like we still should in that instance, especially since it *is* different that it is a keyword argument and not positional like the method to

[issue21861] io class name are hardcoded in reprs

2014-06-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: >>> import io >>> class F(io.FileIO): pass ... >>> f = F('/dev/null', 'r') >>> f <_io.FileIO name='/dev/null' mode='rb'> >>> class B(io.BufferedReader): pass ... >>> b = B(f) >>> b >>> class T(io.TextIOBufferedReader): pass io.TextIOBase( io.TextIOWrap

[issue21856] memoryview: no overflow on large slice values (start, stop, step)

2014-06-24 Thread Stefan Krah
Stefan Krah added the comment: Victor, shall we close this? The behavior is basically as specified: "The slice of s from i to j is defined as the sequence of items with index k such that i <= k < j. If i or j is greater than len(s), use len(s). If i is omitted or None, use 0. If j is omitted

[issue16382] Better warnings exception for bad category

2014-06-24 Thread Berker Peksag
Berker Peksag added the comment: Here's a new patch addressing Ezio's Rietveld comment. I've also used assertRaisesRegex instead of assertRaises in tests. -- nosy: +berker.peksag Added file: http://bugs.python.org/file35772/issue16382_v5.diff ___ Pyt

[issue12813] uuid4 is not tested if a uuid4 system routine isn't present

2014-06-24 Thread Mark Lawrence
Mark Lawrence added the comment: I believe the code in the patch has already been applied, can somebody confirm that I'm correct please. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue16845] warnings.simplefilter should validate input

2014-06-24 Thread Berker Peksag
Berker Peksag added the comment: Here's a patch that uses the same approach as in issue 16382. -- components: +Library (Lib) nosy: +berker.peksag stage: -> patch review versions: +Python 3.5 Added file: http://bugs.python.org/file35773/issue16845.diff __

[issue12845] PEP-3118: C-contiguity with zero strides

2014-06-24 Thread Mark Lawrence
Mark Lawrence added the comment: What is the status of this issue as according to the index PEP 3118 has been completed? -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue14117] Turtledemo: exception and minor glitches.

2014-06-24 Thread Mark Lawrence
Mark Lawrence added the comment: Confirmed still a problem in 3.4.1 on Win7. -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker __

[issue12916] Add inspect.splitdoc

2014-06-24 Thread Claudiu Popa
Claudiu Popa added the comment: There's a small typo in your patch, strign instead of string. Otherwise, looks good to me. -- stage: patch review -> commit review ___ Python tracker ___

[issue12653] Provide accelerators for all buttons in Windows installers

2014-06-24 Thread Steve Dower
Steve Dower added the comment: Should be there for 3.5 because I'm rewriting the installer. Up to Martin whether he wants to change it for 3.4. -- ___ Python tracker ___ ___

[issue20295] imghdr add openexr support

2014-06-24 Thread Claudiu Popa
Claudiu Popa added the comment: This seems commit ready. -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bug

[issue11974] Class definition gotcha.. should this be documented somewhere?

2014-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8e5e04a1497f by Raymond Hettinger in branch '3.4': Issue #11974: Add tutorial section on class and instance variables http://hg.python.org/cpython/rev/8e5e04a1497f -- ___ Python tracker

[issue11974] Class definition gotcha.. should this be documented somewhere?

2014-06-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue21670] Add repr to shelve.Shelf

2014-06-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path

2014-06-24 Thread Antoine Pitrou
New submission from Antoine Pitrou: As the title says. You should be able to type: $ python -m cProfile -m my.module.name to profile execution of my.module.name. -- components: Library (Lib) keywords: easy messages: 221488 nosy: georg.brandl, ncoghlan, pitrou priority: normal severity:

[issue21670] Add repr to shelve.Shelf

2014-06-24 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue12842] Docs: first parameter of tp_richcompare() always has the correct type

2014-06-24 Thread Mark Lawrence
Mark Lawrence added the comment: The patch has never been applied. I'm not qualified to state whether or not it is correct. -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue21708] Deprecate nonstandard behavior of a dumbdbm database

2014-06-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm not worries about the performance. I think the warnings and checks don't need to be there are all (API creep). AFAICT, this has never been requested or needed in the entire history of the dumbdbm. Your original goal of changing the default update mode

[issue13248] deprecated in 3.2/3.3, should be removed in 3.4

2014-06-24 Thread Mark Lawrence
Mark Lawrence added the comment: Anything else left to do on this? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list m

[issue21832] collections.namedtuple does questionable things when passed questionable arguments

2014-06-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue21832] collections.namedtuple does questionable things when passed questionable arguments

2014-06-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue21832] collections.namedtuple does questionable things when passed questionable arguments

2014-06-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM that in order to run you code, a person already has to have the ability to run arbitrary code. The purpose of the existing checks was to support the use-case where the field names are taken from the header line of CSV files. I would be happy to add a

[issue21863] Display module names of C functions in cProfile

2014-06-24 Thread Antoine Pitrou
New submission from Antoine Pitrou: Currently, cProfile output displays "built-in functions" (i.e. module functions implemented in C, such as hasattr()) using only their names. This is not very useful when those functions may be provided by any third-party library. Attached patch adds the modu

[issue12887] Documenting all SO_* constants in socket module

2014-06-24 Thread Mark Lawrence
Mark Lawrence added the comment: @Sandro do you want to follow this up? msg142613 was on #12781. -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-06-24 Thread Richard Kiss
Richard Kiss added the comment: I reread more carefully, and I am in agreement now that I better understand what's going on. Thanks for your patience. -- nosy: +Richard.Kiss ___ Python tracker

[issue21832] collections.namedtuple does questionable things when passed questionable arguments

2014-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 30063f97a44d by Raymond Hettinger in branch '2.7': Issue 21832: Require named tuple inputs to be exact strings http://hg.python.org/cpython/rev/30063f97a44d -- nosy: +python-dev ___ Python tracker

[issue21832] collections.namedtuple does questionable things when passed questionable arguments

2014-06-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll add the 3.4 and 3.5 as well plus a Misc/NEWS item shortly. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ffdd2d0b0049 by R David Murray in branch '3.4': #20155: use fake HTTP method names so windows doesn't hang the tests. http://hg.python.org/cpython/rev/ffdd2d0b0049 New changeset e67ad57eed26 by R David Murray in branch 'default': merge: #20155: use

[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-06-24 Thread R. David Murray
R. David Murray added the comment: Done. Thanks Jeff. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue21708] Deprecate nonstandard behavior of a dumbdbm database

2014-06-24 Thread R. David Murray
R. David Murray added the comment: The point is to make the API consistent. So if the other dbm modules raise an error when __setitem__/__delitem__ are called on an R/O db, then the warnings are appropriate (but should mention that this will be an error in the future). The warnings will only

[issue18780] SystemError when formatting int subclass

2014-06-24 Thread Ned Deily
Ned Deily added the comment: The 3.3 branch is now only open for security fixes so this issue doesn't appear to warrant backporting there. -- nosy: +ned.deily ___ Python tracker ___

[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path

2014-06-24 Thread Rock Lee
Rock Lee added the comment: I tweaked the Lib/cProfile.py a little bit to get the feature done, please review the patch attached. -- keywords: +patch nosy: +rock Added file: http://bugs.python.org/file35775/cProfile-add-new-option-module.patch ___ P

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-06-24 Thread STINNER Victor
STINNER Victor added the comment: I commited my change in Tulip (78dc74d4e8e6), Python 3.4 and 3.5: changeset: 91359:978525270264 branch: 3.4 parent: 91357:a941bb617c2a user:Victor Stinner date:Tue Jun 24 22:37:53 2014 +0200 files: Lib/asyncio/futures.py Lib/as

[issue18780] SystemError when formatting int subclass

2014-06-24 Thread Ethan Furman
Ethan Furman added the comment: Cool, leaving it closed. -- versions: -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18780] SystemError when formatting int subclass

2014-06-24 Thread Eli Bendersky
Eli Bendersky added the comment: On Tue, Jun 24, 2014 at 2:29 PM, Ned Deily wrote: > > Ned Deily added the comment: > > The 3.3 branch is now only open for security fixes so this issue doesn't > appear to warrant backporting there. > > -- > These questions keep popping up in various pl

[issue18780] SystemError when formatting int subclass

2014-06-24 Thread Ned Deily
Ned Deily added the comment: It is described in the developer's guide. The current status is summarized here: https://docs.python.org/devguide/devcycle.html#summary -- ___ Python tracker

[issue18780] SystemError when formatting int subclass

2014-06-24 Thread Eli Bendersky
Eli Bendersky added the comment: On Tue, Jun 24, 2014 at 3:18 PM, Ned Deily wrote: > > Ned Deily added the comment: > > It is described in the developer's guide. The current status is > summarized here: > > https://docs.python.org/devguide/devcycle.html#summary > > Excellent. Thanks Ned.

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-06-24 Thread STINNER Victor
STINNER Victor added the comment: The new check emits a lot of "Task was destroyed but it is pending!" messages when running test_asyncio. I keep the issue open to remember me that I have to fix them. -- ___ Python tracker

[issue14117] Turtledemo: exception and minor glitches.

2014-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: #21823 fixed the Terminator issue 3 days ago. #21597 is about making the text pane resizable. The doc strings for peace, planet_and_moon, and tree need a bit of re-wrapping. The paint instruction is wrong. I am working on these now. "Use mouse/keys or Stop" is

[issue14117] Turtledemo: exception and minor glitches.

2014-06-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue20092] type() constructor should bind __int__ to __index__ when __index__ is defined and __int__ is not

2014-06-24 Thread Amitava Bhattacharyya
Amitava Bhattacharyya added the comment: I did fill in the contributor agreement form and e-signed it, maybe it takes some time for my profile to be updated? But I guess I need to wait for the corporate agreement. :) -- ___ Python tracker

[issue21864] Error in documentation of point 9.8 'Exceptions are classes too'

2014-06-24 Thread Peibolvig
New submission from Peibolvig: At point 9.8 of the 3.4.1 version documentation, ( https://docs.python.org/3/tutorial/classes.html#exceptions-are-classes-too ), there is an example of two ways to use the 'raise' statement: raise Class raise Instance The next two lines, state: "In the first for

[issue21865] Improve invalid category exception for warnings.filterwarnings

2014-06-24 Thread Berker Peksag
New submission from Berker Peksag: This issue is similar to issue 16382 and issue 16845. -- components: Library (Lib) files: filterwarnings_category.diff keywords: patch messages: 221512 nosy: berker.peksag priority: normal severity: normal stage: patch review status: open title: Improve

[issue21864] Error in documentation of point 9.8 'Exceptions are classes too'

2014-06-24 Thread Josh Rosenberg
Josh Rosenberg added the comment: No. The first form, raise Class, is in fact a shorthand for raise Class(). That's the point. You only actually raise instances, but if you pass it a class directly, it instantiates it by calling its constructor with no arguments. The second form is not describ

[issue21864] Error in documentation of point 9.8 'Exceptions are classes too'

2014-06-24 Thread Peibolvig
Peibolvig added the comment: Oh, I see. Thanks for the clarification. May I suggest to include that clarification into the documentation somehow? I think it would be easier to understand the point of the raises doing that. Maybe this suggestion could fit: In the first form, Class must be an in

[issue21832] collections.namedtuple does questionable things when passed questionable arguments

2014-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset c238d2899d47 by Raymond Hettinger in branch '3.4': Issue 21832: Require named tuple inputs to be exact strings http://hg.python.org/cpython/rev/c238d2899d47 New changeset 5c60dd518182 by Raymond Hettinger in branch '3.4': Issue 21832: Require name

[issue21832] collections.namedtuple does questionable things when passed questionable arguments

2014-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 958e8bebda6d by Raymond Hettinger in branch '3.4': Add news entry for #21832 http://hg.python.org/cpython/rev/958e8bebda6d -- ___ Python tracker __

[issue21864] Error in documentation of point 9.8 'Exceptions are classes too'

2014-06-24 Thread Josh Rosenberg
Josh Rosenberg added the comment: I think the section could use some additional rewording actually. The wording about deriving from type dates back to the Python 2 days; nowadays, all exceptions are actually required to derive from BaseException. The section definitely needs rewording. --

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2014-06-24 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.rosenberg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue14117] Turtledemo: exception and minor glitches.

2014-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 129ec3d90a67 by Terry Jan Reedy in branch '2.7': Issue #14117: Inprove help text and docstrings, some for clarity, some just to http://hg.python.org/cpython/rev/129ec3d90a67 New changeset 713a774ca68a by Terry Jan Reedy in branch '3.4': Issue #14117

[issue21441] Buffer Protocol Documentation Error

2014-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 92d691c3ca00 by Jesus Cea in branch '3.3': Closes #21441: Reorder elements in documentation to match actual order in the code http://hg.python.org/cpython/rev/92d691c3ca00 New changeset d9da4b77624b by Jesus Cea in branch '3.4': MERGE: Closes #2144

[issue21441] Buffer Protocol Documentation Error

2014-06-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Thanks, Jake. -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21708] Deprecate nonstandard behavior of a dumbdbm database

2014-06-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Feel free to ignore my advice and make unnecessary changes to a very old, stable API. -- assignee: rhettinger -> ___ Python tracker ___ ___

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset dce9dbc8e892 by Raymond Hettinger in branch '3.4': Issue #19145: Fix handling of negative values for a "times" keyword argument to itertools.repeat()> http://hg.python.org/cpython/rev/dce9dbc8e892 -- nosy: +python-dev

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 85dc4684c83e by Raymond Hettinger in branch '2.7': Issue #19145: Fix handling of negative values for a "times" keyword argument to itertools.repeat()> http://hg.python.org/cpython/rev/85dc4684c83e -- __

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed versions: +Python 2.7, Python 3.4 ___ Python tracker ___ __

[issue21684] inspect.signature bind doesn't include defaults or empty tuple/dicts

2014-06-24 Thread Ryan McCampbell
Ryan McCampbell added the comment: It's not really a particular use case. I was making a function decorator for automatic type checking using annotations (ironically I discovered later there is an almost identical example in the PEP for signatures). But I can't think of any use case when it wo

[issue21866] zipfile.ZipFile.close() doesn't respect allowZip64

2014-06-24 Thread Benjamin Gilbert
New submission from Benjamin Gilbert: The ZipFile documentation says: > If allowZip64 is True (the default) zipfile will create ZIP files that > use the ZIP64 extensions when the zipfile is larger than 2 GiB. If it > is false zipfile will raise an exception when the ZIP file would > require ZIP6

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-24 Thread Larry Hastings
Larry Hastings added the comment: The main thing for me isn't that the function and its documentation-pseudocode are in sync (though in the long run this is desirable). What's important to me is that the function have a sensible, relevant signature in Python. There was simply no way to expre

[issue21848] Fix logging in unicodeless build

2014-06-24 Thread Vinay Sajip
Vinay Sajip added the comment: Tests fail with the patch applied, as requires_unicode appears not to be defined. Has it been added to test_support.py? -- ___ Python tracker ___

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: > there's still no way to represent repeat's signature in Python There is a way using *args and **kwds but that isn't any fun (just like range() or min() in that regard). Right now, repeat() does what it is supposed to do. It may currently be inconvenient

<    1   2