[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I thought that more verbose but straightforward code would be more acceptable. Well, here is smaller and clever patch. Tests are the same. -- Added file: http://bugs.python.org/file36886/collections_pos_only_params2.patch

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 922526816b25 by Georg Brandl in branch '3.4': Closes #22568: fix UTIME_TO_* macros in posixmodule for rare cases. https://hg.python.org/cpython/rev/922526816b25 New changeset 0b2c7ea86d96 by Georg Brandl in branch 'default': #22568: merge with 3.4 h

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2014-10-11 Thread Ned Deily
Ned Deily added the comment: A comment on Vinay's comment: "and this cannot be obtained from sys.executable because that is pointing to a framework executable". That *was* true prior to 3.3 and is still true at the moment for 2.7.x but it is not true for 3.3+. Ronald's change (b79d276041a8)

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-10-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: After some thought, I think we have to fix this. I'll go through the patch in careful detail this weekend. Ethan, if you would like to help, it would be great to have a third pair of eyes looking at the patch to make sure it correct it every detail. --

[issue21603] IDLE SaveAs drops the extension in the prompted filename

2014-10-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that having .py not visible but written would be obnoxious. Hoever, without more information, I am inclined to close this as a 3rd parth (OS) issue. Saimadhav, can you quickly try Save As with x.py on Linux? -- nosy: +sahutd

[issue22594] Add a link to the regex module in re documentation

2014-10-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22570] Better stdlib support for Path objects

2014-10-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22571] Remove import * recommendations and examples in doc?

2014-10-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue14105] Breakpoints in debug lost if line is inserted; IDLE

2014-10-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71fe5e336d5b by Terry Jan Reedy in branch '2.7': Issue #14105: Change comment to reflect fix. Patch by Saimadhav Heblikar. https://hg.python.org/cpython/rev/71fe5e336d5b New changeset f33b4770a078 by Terry Jan Reedy in branch '3.4': Issue #14105: C

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2014-10-11 Thread Tim Smith
Tim Smith added the comment: Er, because the test has been modified by taking Vinay's suggestion to test that the directories are physically identical instead of doing a string comparison. -- ___ Python tracker _

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2014-10-11 Thread Tim Smith
Tim Smith added the comment: I'm attaching an updated patch; it passes tests for me locally with a framework build. -- Added file: http://bugs.python.org/file36885/dont-realpath-venv-dirname.diff-1 ___ Python tracker

[issue22615] "make clinic" doesn't work

2014-10-11 Thread Larry Hastings
Larry Hastings added the comment: Patch attached. Brett was using a feature that didn't exist, so I'm not sure how it could have worked for him. But it was a reasonable implicit feature request, and easy to implement, so here we are. I'm not sure what's causing the churn in "bytesobject.c" h

[issue22613] Several minor doc issues

2014-10-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7659f06a3648 by Berker Peksag in branch '3.4': Issue #22613: Fix reprlib.Repr subclass example on Python 3. https://hg.python.org/cpython/rev/7659f06a3648 New changeset 7394e5f85284 by Berker Peksag in branch 'default': Issue #22613: Fix reprlib.Rep

[issue22613] Several minor doc issues

2014-10-11 Thread Berker Peksag
Berker Peksag added the comment: > Repr.repr_TYPE() This is already fixed in issue 14824. -- nosy: +berker.peksag ___ Python tracker ___

[issue10496] Python startup should not require passwd entry

2014-10-11 Thread Graham Dumpleton
Changes by Graham Dumpleton : -- nosy: +grahamd ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue21061] Is contextlib.redirect_stdout reentrant or not?

2014-10-11 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks folks - the outdated cross reference has been updated as Berker suggested. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker

[issue22389] Add contextlib.redirect_stderr()

2014-10-11 Thread Nick Coghlan
Nick Coghlan added the comment: I just pushed the docs fix for issue #21061, so the docs part of the patch may need tweaking in order to apply automatically. -- ___ Python tracker _

[issue21061] Is contextlib.redirect_stdout reentrant or not?

2014-10-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset dafbd78ac15b by Nick Coghlan in branch '3.4': Issue #21061: correctly note redirect_stdout is reentrant https://hg.python.org/cpython/rev/dafbd78ac15b New changeset 83540d7b7366 by Nick Coghlan in branch 'default': Merge issue #21061 fix from 3.4 ht

[issue22615] "make clinic" doesn't work

2014-10-11 Thread Antoine Pitrou
New submission from Antoine Pitrou: This is on the default branch. $ make clinic ./python -E ./Tools/clinic/clinic.py --make Error in file "./Modules/arraymodule.c" on line 1943: Exception raised during parsing: Traceback (most recent call last): File "./Tools/clinic/clinic.py", line 1626, in

[issue20167] Exception on IDLE closing

2014-10-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy, I responded to your report and followups on a new issue, #22614. Tal, if you can, please test ./python -m idlelib.idle Lib/decimal.py on OSX and respond there. -- resolution: -> fixed stage: test needed -> resolved status: open -> closed _

[issue22614] Idle: problem in PyShellEditorWindow.color_breakpoint_text

2014-10-11 Thread Terry J. Reedy
New submission from Terry J. Reedy: In Jan 2014 in the opening messages of #20167, msg207599, Serhiy Storchaka reported that ./python -m idlelib.idle Lib/decimal.py opened the file on both 2.7 and 3.4 (beta) but that closing on 3.4 (but not 2.7) caused 'application closed' errors in Multicall .

[issue22613] Several minor doc issues

2014-10-11 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue22613] Several minor doc issues

2014-10-11 Thread Zachary Ware
New submission from Zachary Ware: >From docs@: """ Hello, First, I want to thank you for the useful and clear documentation of Python. Beeing a fanatic reader of it, sometimes I encounter some mistake (or it seems to me it is such). If this could bring some help, you will find in the attached

[issue20569] IDLE : Add clipboard history feature

2014-10-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> rejected stage: test needed -> resolved ___ Python tracker ___ ___ Python-bugs-list mai

[issue22598] Add mUTF-7 codec (UTF-7 modified for IMAP)

2014-10-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: See http://tools.ietf.org/html/rfc3501#section-5.1.3 Note how detailed the specification of "modified utf-7" is :-) -- nosy: +pitrou ___ Python tracker

[issue9179] Lookback with group references incorrect (two issues?)

2014-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which fixes lookbacks with group references and with group conditionals. I have used Andrew's examples as the base for tests. -- assignee: -> serhiy.storchaka components: +Regular Expressions keywords: +patch nosy: +ezio.melotti stage

[issue22612] Add block info to unicodedata

2014-10-11 Thread flying sheep
New submission from flying sheep: See also #6331. The repo https://github.com/nagisa/unicodeblocks contains pretty much the functionality i’d like to see: a way to get access to information about all blocks, and a way to get the block name a char is in. I propose to include something very sim

[issue18234] Unicodedata module should provide access to codepoint aliases

2014-10-11 Thread flying sheep
flying sheep added the comment: IDK if it came with unicode 7.0, but there is clarification: # Note that currently the only instances of multiple aliases of the same # type for a single code point are either of type "control" or "abbreviation". # An alias of type "abbreviation" can, in principle

[issue21061] Is contextlib.redirect_stdout reentrant or not?

2014-10-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue22607] find by dichotomy the failing test

2014-10-11 Thread Georg Brandl
Georg Brandl added the comment: > Sorry for not being more explicit and for being lazy doing a copy paste from > msg 229022: I see, this was split off another issue (which was already closed). I agree that a bit more verbosity in the initial description would have prevented confusion :) ---

[issue21061] Is contextlib.redirect_stdout reentrant or not?

2014-10-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-10-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll spend some time taking this one under consideration. Keyword arguments for dicts and dict-like classes are already somewhat limited (only non-keyword identifiers) that why Guido resisted adding them in the first place. And, in the context of OrderedD

[issue22607] find by dichotomy the failing test

2014-10-11 Thread Georg Brandl
Georg Brandl added the comment: > You seem to be confusing the feature itself with the implementation. > The fact that there is an acceptable implementation is another matter > (and subtest_in_range.diff is not an implementation). You yourself were calling it a "solution". A feature proposal s

[issue22607] find by dichotomy the failing test

2014-10-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: @ Georg Brandl > I don't think this feature is generally useful enough to be included. > > * Since you need to modify the test code anyway (adding the try-except), it > is probably just as much work to do the selection there. You seem to be confusing the featu

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

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

[issue22607] find by dichotomy the failing test

2014-10-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: > With the attached patch (the patch does reintroduce the bug in > 'test_incref_decref_API' of issue 22588 for testing purposes) Sorry for not being more explicit and for being lazy doing a copy paste from msg 229022: * this is not a patch, obviously a patch

[issue22611] pip needs ctypes

2014-10-11 Thread Donald Stufft
Donald Stufft added the comment: This is no longer the case in the next version of pip. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue22611] pip needs ctypes

2014-10-11 Thread Antoine Pitrou
New submission from Antoine Pitrou: I think a bit weird that pip needs ctypes inconditionally. Note the following traceback is on an Unix platform and ctypes seems imported by a... win32 shell coloring library! == FAIL: test_w

[issue22608] test_socket fails with sem_init: Too many open files

2014-10-11 Thread R. David Murray
R. David Murray added the comment: I think this is a consequence of issue 11798. Since Events use filesystem based semaphores on FreeBSD (I think?), it seems reasonable to "fix" this in test_socket specifically in 2.7. -- nosy: +r.david.murray ___

[issue15569] Doc doc: incorrect description of some roles as format-only

2014-10-11 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue22594] Add a link to the regex module in re documentation

2014-10-11 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22607] find by dichotomy the failing test

2014-10-11 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue22594] Add a link to the regex module in re documentation

2014-10-11 Thread Ezio Melotti
Ezio Melotti added the comment: +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue18643] add a fallback socketpair() implementation in test.support

2014-10-11 Thread STINNER Victor
STINNER Victor added the comment: > In this case, socketpair-4.diff looks good to me. You can commit your patch in Python 3.5. Hey Charles-François, can you commit your patch? I forgot that you did commited it yet, and I expected socket.socketpair() to be available on all platforms. --

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. -- keywords: +patch nosy: +rhettinger, serhiy.storchaka stage: -> patch review versions: +Python 2.7, Python 3.5 Added file: http://bugs.python.org/file36881/collections_pos_only_params.patch ___ P

[issue12916] Add inspect.splitdoc

2014-10-11 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi all, Here is the last version of this patch for a review, the tests are ok. Thank you in advance for the time. Stephane -- Added file: http://bugs.python.org/file36880/issue12916-3.patch ___ Python tracker

[issue21687] Py_SetPath: Path components separated by colons

2014-10-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2d150c01bf7e by Georg Brandl in branch '3.4': Closes #21687: delimiter in Py_SetPath is platform dependent https://hg.python.org/cpython/rev/2d150c01bf7e -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed

[issue18959] Create a "Superseded modules" section in standard library ToC

2014-10-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7276bc0b0318 by Georg Brandl in branch '3.4': Closes #18959: move optparse and imp to new "superseded modules" chapter https://hg.python.org/cpython/rev/7276bc0b0318 -- nosy: +python-dev resolution: -> fixed stage: needs patch -> resolved s

[issue21675] Library - Introduction - paragraph 5 - wrong ordering

2014-10-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52b9d79f6bfa by Georg Brandl in branch '3.4': Closes #21675: fix ordering of description in library intro https://hg.python.org/cpython/rev/52b9d79f6bfa -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed _

[issue21189] Broken link to patch

2014-10-11 Thread Georg Brandl
Georg Brandl added the comment: Ping? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue15569] Doc doc: incorrect description of some roles as format-only

2014-10-11 Thread Georg Brandl
Changes by Georg Brandl : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue18959] Create a "Superseded modules" section in standard library ToC

2014-10-11 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the patch. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15569] Doc doc: incorrect description of some roles as format-only

2014-10-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset bef3ddfe5d09 by Georg Brandl in branch 'default': Closes #15569: some roles do create more than formatting https://hg.python.org/devguide/rev/bef3ddfe5d09 -- nosy: +python-dev resolution: -> fixed stage: needs patch -> resolved status: open

[issue15569] Doc doc: incorrect description of some roles as format-only

2014-10-11 Thread Georg Brandl
Georg Brandl added the comment: Thanks! -- nosy: +georg.brandl resolution: fixed -> stage: resolved -> needs patch status: closed -> open ___ Python tracker ___

[issue22480] SystemExit out of run_until_complete causes AttributeError when using python3 -m

2014-10-11 Thread STINNER Victor
Changes by STINNER Victor : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue22601] asyncio: loop.run_forever() should consume exception of the temporary task

2014-10-11 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue22601] asyncio: loop.run_forever() should consume exception of the temporary task

2014-10-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb65b9ed8023 by Victor Stinner in branch '3.4': Issue #22601: run_forever() now consumes BaseException of the temporary task https://hg.python.org/cpython/rev/fb65b9ed8023 New changeset 8437e2bfe7a9 by Victor Stinner in branch 'default': (Merge 3.4)

[issue22601] asyncio: loop.run_forever() should consume exception of the temporary task

2014-10-11 Thread STINNER Victor
STINNER Victor added the comment: I pushed the commit to Tulip: changeset e610f1408243. -- ___ Python tracker ___ ___ Python-bugs-list

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-10-11 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue22601] asyncio: loop.run_forever() should consume exception of the temporary task

2014-10-11 Thread STINNER Victor
STINNER Victor added the comment: I tried to reply to Guido on Rietveld but I got an HTTP error 500. Guido wrote: > LGTM. Cool, I will commit my change to Tulip & Python. > In the long run I think we'll need to revisit the decision to not catch > BaseException in a few places. There are quite

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-10-11 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22610] test_ftplib fails with sem_init: Too many open files

2014-10-11 Thread Urs Traber
New submission from Urs Traber: same issue as http://bugs.python.org/issue22608 e.g. test_sanitize (__main__.TestTLS_FTPClassMixin) ... sem_init: Too many open files ERROR Fixed by setting the allocated Event objects to None when not needed anymore. -- components: Tests files: test_ft

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-10-11 Thread Evgeny Kapun
New submission from Evgeny Kapun: >>> import collections >>> collections.Counter(self=1) Traceback (most recent call last): File "", line 1, in TypeError: __init__() got multiple values for argument 'self' >>> collections.OrderedDict(self="test") Traceback (most recent call last): File "", l

[issue22608] test_socket fails with sem_init: Too many open files

2014-10-11 Thread Urs Traber
New submission from Urs Traber: test_socke.py does not clean up its event objects used for synchronization. This may cause multiple such ERRORs (*): testLinebufferedWrite (__main__.LineBufferedFileObjectClassTestCase) ... sem_init: Too many open files ERROR Fixed by setting the allocated Even

[issue21061] Is contextlib.redirect_stdout reentrant or not?

2014-10-11 Thread Berker Peksag
Berker Peksag added the comment: Here is a simple patch to correct the redirect_stdout documentation. -- keywords: +patch nosy: +berker.peksag stage: -> patch review Added file: http://bugs.python.org/file36877/issue21061.diff ___ Python tracker

[issue22607] find by dichotomy the failing test

2014-10-11 Thread Georg Brandl
Georg Brandl added the comment: > I requested the feature because I regulary need bisect (once a month, or > maybe two months). Always within subtests? -- ___ Python tracker __

[issue22607] find by dichotomy the failing test

2014-10-11 Thread STINNER Victor
STINNER Victor added the comment: I requested the feature because I regulary need bisect (once a month, or maybe two months). -- ___ Python tracker ___ __

[issue22218] Fix more compiler warnings "comparison between signed and unsigned integers"

2014-10-11 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Victor, Here is a small patch for the unicodeobject.c file. I am not sure if it's the correct solution to this problem, but for me, the size parameter should be a unsigned long and not a signed. -- nosy: +matrixise Added file: http://bugs.python.o

[issue22607] find by dichotomy the failing test

2014-10-11 Thread Georg Brandl
Georg Brandl added the comment: I don't think this feature is generally useful enough to be included. * Since you need to modify the test code anyway (adding the try-except), it is probably just as much work to do the selection there. * Why only add selection of subtests, and not of all test

[issue22607] find by dichotomy the failing test

2014-10-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: With the attached patch (the patch does reintroduce the bug in 'test_incref_decref_API' of issue 22588 for testing purposes), it is possible to find the failing subtest rapidly: After identifying the failing test, print the list of subtests in this test and t

[issue22607] find by dichotomy the failing test

2014-10-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: See msg 228968 for the rationale. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue22607] find by dichotomy the failing test

2014-10-11 Thread Xavier de Gaye
New submission from Xavier de Gaye: This issue stems from issue 22588. See message 228968 for the rationale: Automatize the dichotomy process used to to identify memory leaks, crash, reference leak, resource leak, etc. in a failing test. -- components: Tests messages: 229067 nosy: hayp

[issue22001] containers "same" does not always mean "__eq__".

2014-10-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Ah... "be the same object or compare equal" sounds much better. Yes, the plain language is clear and reads nicely. > We can't say "will normally", since we don't know about > the infinite number of possible container types that people > might create. Th

[issue22515] Implement partial order on Counter

2014-10-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I suggest implementing `Counter.__lt__` which will be a > partial order, similarly to `set.__lt__`. This would be reasonable if the counter were a strict stand-alone multiset or bag; however, the core design is much looser than that (supporting negative

[issue22533] Counter with no keys does not compare equal to Counter with keys which zero value

2014-10-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: > It is my thought that a Counter with all its keys set to zero > is as empty as a Counter with no keys If the counter were a stand-alone multiset or bag class, this might be a reasonable thing to do. However, for better or for worse, the design of the cou

[issue22080] Add windows_helper module helper

2014-10-11 Thread Zachary Ware
Zachary Ware added the comment: eryksun: You commented on my review comment; does Claudiu's latest patch look good to you? -- nosy: +eryksun ___ Python tracker ___ _