[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

[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 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

[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

[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

[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 ___ __

[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 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

[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 ___ ___

[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:

[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

[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

[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

[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. --

[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 __

[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

[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

[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

[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 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

[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

[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

[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

[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.

[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 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 Ethan Furman
Ethan Furman added the comment: Cool, leaving it closed. -- versions: -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing

[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

[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

[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 ___

[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

[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 ___

[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

[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 ___ __

[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

[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

[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 ___ ___

[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

[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

[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
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[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

[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

[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 ___ ___

[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

[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 Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[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 ___ ___

[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

[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

[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 ___ ___

[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 ___

[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 __

[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 ___ ___

[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 __

[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 ___

[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

[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

[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

[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

[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

[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

[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 ___ _

[issue20069] Add unit test for os.chown

2014-06-24 Thread Vajrasky Kok
Vajrasky Kok added the comment: Claudiu, I have revamped the test and put it in dedicated test class. Thanks! 1. About assertRaisesRegex, sorry, you're right. We can use it with "with" statement. Prior to this, I used it like this: with self.assertRaisesRegex(PermissionError,

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

2014-06-24 Thread Guido van Rossum
Guido van Rossum added the comment: Patch looks good. Go ahead. -- nosy: +Guido.van.Rossum ___ Python tracker ___ ___ Python-bugs-list

[issue12622] failfast argument to TextTestRunner not documented

2014-06-24 Thread Claudiu Popa
Claudiu Popa added the comment: Mark, why not contributing a patch? Seems pretty straight forward to write it. -- nosy: +Claudiu.Popa ___ Python tracker ___ _

[issue21830] ssl.wrap_socket fails on Windows 7 when specifying ca_certs

2014-06-24 Thread David M Noriega
David M Noriega added the comment: Oops, thats what I get for running with scissors. Yes, the cert file is in pem format. Its the same file in use on my ldap server and all my servers and workstations that authenticate against it. I have an existing python 2.x script using the python-ldap(dif

[issue20567] test_idle causes test_ttk_guionly 'can't invoke "event" command: application has been destroyed' messages from Tk

2014-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I recently saw the same message when developing an individual idle_test module on repository debug builds even though all class attributes were being deleted. One was an Idle EditorWindow. I solved the problem by deleting the class attributes other than root b

[issue12653] Provide accelerators for all buttons in Windows installers

2014-06-24 Thread Mark Lawrence
Mark Lawrence added the comment: Seems a reasonable idea, thoughts? -- components: +Installation, Windows nosy: +BreamoreBoy, steve.dower type: -> enhancement versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker

[issue12622] failfast argument to TextTestRunner not documented

2014-06-24 Thread Mark Lawrence
Mark Lawrence added the comment: Slipped under the radar? -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ _

[issue12616] zip fixer fails on zip()[:-1]

2014-06-24 Thread Mark Lawrence
Mark Lawrence added the comment: @Benjamin can you take this on please? -- nosy: +BreamoreBoy type: -> behavior versions: +Python 3.4, Python 3.5 -Python 3.2 ___ Python tracker

[issue21860] Correct FileIO docstrings

2014-06-24 Thread Terry Chia
Terry Chia added the comment: Is this acceptable? -- keywords: +patch nosy: +terry.chia Added file: http://bugs.python.org/file35770/issue21860.patch ___ Python tracker ___ _

[issue12506] NIS module cant handle multiple NIS map entries for the same GID

2014-06-24 Thread Mark Lawrence
Mark Lawrence added the comment: @bjorn terribly sorry for the delay here :-( Would you be able to supply a patch for this, including doc and unittest changes as appropriate? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 2.6, Python 3.1, Python 3.2, Python 3.3 __

[issue18780] SystemError when formatting int subclass

2014-06-24 Thread Ethan Furman
Ethan Furman added the comment: Should this patch also go into the 3.3 branch? It only went into 3.4. If yes, how should I go about doing that? -- assignee: -> ethan.furman ___ Python tracker ___

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

2014-06-24 Thread Mark Lawrence
Mark Lawrence added the comment: Just one small query on the patch (more for my own benefit than anything else). In the rst file there's now no difference between the wording for the quotetabs positional argument to encode and the keyword argument to encodestring. Is there a rule (of thumb)

[issue12215] TextIOWrapper: issues with interlaced read-write

2014-06-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list m

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

2014-06-24 Thread Ethan Furman
Ethan Furman added the comment: Thank you for your efforts, Amitava. Please also sign a Contributor's License Agreement so we can actually use your code. :) http://www.python.org/psf/contrib/ -- ___ Python tracker

[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-06-24 Thread Claudiu Popa
Claudiu Popa added the comment: It would be nice if this could be committed. It's cumbersome to always have to deactivate the AV solution when running the tests on Windows, in order to avoid a failure of test_httpservers. -- ___ Python tracker

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2014-06-24 Thread Eli Bendersky
Eli Bendersky added the comment: [sorry, the first question mark shouldn't be - the patch indeed looks reasonable to me] Steven - how about launching a subprocess for stdin tests to avoid weird issues? -- ___ Python tracker

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2014-06-24 Thread Eli Bendersky
Eli Bendersky added the comment: The patch looks reasonable? Is the only remaining problem with crafting the test? -- ___ Python tracker ___

[issue21670] Add repr to shelve.Shelf

2014-06-24 Thread Claudiu Popa
Claudiu Popa added the comment: Alright, I agree with you now. You can close the issue if you want. -- ___ Python tracker ___ ___ Pyth

[issue21670] Add repr to shelve.Shelf

2014-06-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: When shelve stores its data on a disk, it is more similar to a file. After all, it can contain gigabytes of data, much larger than Python can address in RAM. I you want more readable repr, I with Raymond, -- use the repr of the underlying db and add readable

[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: Hi Ethan, I tried adding a call to `nb_index` (if that slot exists) in `_PyLong_FromNbInt`, but that didn't work. Based on your comment it seems the fix would be to patch this at object creation. I will check where that happens (bear with me while I fam

[issue21670] Add repr to shelve.Shelf

2014-06-24 Thread Claudiu Popa
Claudiu Popa added the comment: Fair point, Serhiy. But I see the shelve more similar to a persistent, dictionary-like object, than to a file. The fact that it uses some database behind is just an implementation detail. -- ___ Python tracker

[issue21860] Correct FileIO docstrings

2014-06-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Docstrings for seek() and truncate() methods of FileIO declare that they return None. Actually they return truncated size and new position respectively. -- assignee: docs@python components: Documentation, IO keywords: easy messages: 221452 nosy: ben

[issue21670] Add repr to shelve.Shelf

2014-06-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think this is right repr for shelve. As file's repr doesn't read and expose a content of a file, shelve's repr shouldn't read and expose all database content. -- nosy: +serhiy.storchaka ___ Python tracker

[issue21859] Add Python implementation of FileIO

2014-06-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch adds Python implementation of FileIO in _pyio. This will help to make io and _pyio dependency on _io optional (issue17984). -- components: IO, Library (Lib) files: pyio_fileio.patch keywords: patch messages: 221449 nosy: alex, benjami

[issue21708] Deprecate nonstandard behavior of a dumbdbm database

2014-06-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Raymond for your attention. Readonly warnings are emitted only when dumpdbm database opened in read only mode. They will be turned into exceptions in future (3.6 or 3.7). Annoying warnings on changed in future operations is desirable effect. If you w

[issue21331] Reversing an encoding with unicode-escape returns a different result

2014-06-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 24.06.2014 11:44, Serhiy Storchaka wrote: > > Note that 'raw-unicode-escape' is used in pickle protocol 0. Changing it can > break compatibility. Indeed. unicode-escape was also designed to be able to read back raw-unicode-escape encoded data, so changi

[issue21857] assert that functions clearing the current exception are not called with an exception set

2014-06-24 Thread STINNER Victor
STINNER Victor added the comment: > The problem is that the test_sqlite fails with the patch applied. I will open > a new patch for that. I opened the issue #21858 for that. -- ___ Python tracker

[issue21858] Enhance error handling in the sqlite module

2014-06-24 Thread STINNER Victor
New submission from STINNER Victor: The _sqlite module doesn't handle correctly Python errors. It may loose the current Python exception: test_sqlite fails when the patch of the issue #21857 is applied. Attached patch is a work-in-progress patch to fail earlier when Python raises an exception

[issue21857] assert that functions clearing the current exception are not called with an exception set

2014-06-24 Thread STINNER Victor
New submission from STINNER Victor: Attached patch detects (when Python is compiled in debug mode) if functions that may clear the current exception are called with an exception set. The check avoids loosing an exception. The problem is that the test_sqlite fails with the patch applied. I will

[issue8630] Keepends param in codec readline(s)

2014-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.4, Python 3.5 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2014-06-24 Thread Stefan Krah
Stefan Krah added the comment: It's a slice of length zero: >>> b = bytearray([1,2,3,4]) >>> m = memoryview(b) >>> >>> b2 = b[2**100:] >>> m2 = m[2**100:] >>> >>> list(b2) [] >>> list(m2) [] >>> -- ___ Python tracker

[issue21331] Reversing an encoding with unicode-escape returns a different result

2014-06-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Note that 'raw-unicode-escape' is used in pickle protocol 0. Changing it can break compatibility. -- ___ Python tracker ___ _

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

2014-06-24 Thread STINNER Victor
New submission from STINNER Victor: As I following up to the issue #21831, I don't understand why memoryview[2**100:] doesn't raise an overflow error!? It looks like a bug. Attached patch changes the behaviour to raise an OverflowError. -- messages: 221441 nosy: haypo, skrah priority:

[issue6094] Python fails to build with Subversion 1.7

2014-06-24 Thread Suman
Suman added the comment: I am trying to install Python 2.7.7 or 2.7.3 in one of my linux machine which has RHEL 6.4. I am getting the same error, that is mentioned in this bug. I am pasting it below. Please let me know, what should i do here. ser Python-2.7.7]# make gcc -pthread -c -fno-st

[issue12215] TextIOWrapper: issues with interlaced read-write

2014-06-24 Thread Mark Lawrence
Mark Lawrence added the comment: Does anybody want to follow up on this? #12213 was closed as fixed, #12513 is still open. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue21833] Fix unicodeless build of Python

2014-06-24 Thread STINNER Victor
STINNER Victor added the comment: IMO supporting building Python 2 without Unicode support should be discussed on the python-dev mailing list, it's not an innocent change. Python is moving strongly to Unicode: Python 3 uses Unicode by default. So to me it sounds really weird to work on buildin

  1   2   >