[issue26684] pathlib.Path.with_name() and .with_suffix do not allow combining with an empty Path

2016-03-31 Thread Ethan Furman
Ethan Furman added the comment: Never mind. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue26683] Questionable terminology for describing what locals() does

2016-03-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: > A national variable maybe :) I would think that "nonlocal" is exactly the right term given that that is how you would declare it if you wanted to write to it. >>> w = 5 >>> def f(x): def g(y): nonlocal x global w

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2016-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree with Raymond. float.is_integer(x) is more efficient than x==int(x), but is this method used anywhere at all? It was added as a part of issue2224. -- nosy: +christian.heimes, serhiy.storchaka ___ Python track

[issue26684] pathlib.Path.with_name() and .with_suffix do not allow combining with an empty Path

2016-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no a bug. This is the documented and reasonable behavior. What behavior you expect? -- nosy: +serhiy.storchaka ___ Python tracker __

[issue26682] Ttk Notebook tabs do not show with 1-2 char names

2016-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I see the names of the first 4 tabs: 0-3. Tab header for the last tab is empty. If use longer name (e.g. "45678") I see it without two last characters ("456"). Yes, it looks as Ttk bug. Have you reported this to the mainstream? -- __

[issue26683] Questionable terminology for describing what locals() does

2016-03-31 Thread Martin Panter
Martin Panter added the comment: Regarding “free variables”, in Issue 17546 I proposed the wording “. . . also includes non-local, non-global names”. In your code example, I would consider y to be 100 percent local to the g() function. It is a function parameter, and “y += 1” should work. I ag

[issue26684] pathlib.Path.with_name() and .with_suffix do not allow combining with an empty Path

2016-03-31 Thread Ethan Furman
New submission from Ethan Furman: The methods .with_name() and .with_suffix() of pathlib.Path (and friends) do not allow a name or suffix to be added to a path alone -- I get ValueError(... has an empty name...). This is the documented behavior, but it seems incredibly user-unfriendly. --

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-03-31 Thread Demur Rumed
Changes by Demur Rumed : Added file: http://bugs.python.org/file42339/wpy3.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-03-31 Thread Demur Rumed
Changes by Demur Rumed : Removed file: http://bugs.python.org/file42338/wpy3.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-03-31 Thread Demur Rumed
Demur Rumed added the comment: Addressed feedback from josh.rosenberg besides reintroducing FOURTH/SET_FOURTH -- Added file: http://bugs.python.org/file42338/wpy3.patch ___ Python tracker __

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2016-03-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: One other thought: the name is_integer() is inconsistent with the nomenclature in numbers.py. Had this been included at the outset, its name would have been is_integral(). -- ___ Python tracker

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2016-03-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: -0 I question whether we ever needed a short-cut for x==int(x). Adding this to the numeric tower would cause it to propagate broadly including the int type. To me, this seems like feature creep resulting in language bloat. The decimal module has been

[issue26683] Questionable terminology for describing what locals() does

2016-03-31 Thread Raymond Hettinger
New submission from Raymond Hettinger: The docs for locals() say that inside a function that local variables and free variables are included: https://docs.python.org/3/library/functions.html#locals Elsewhere we use the terms "cell variables" or "nonlocals". Mathematically, the word "free" m

[issue26682] Ttk Notebook tabs do not show with 1-2 char names

2016-03-31 Thread Terry J. Reedy
New submission from Terry J. Reedy: >From >https://stackoverflow.com/questions/36336010/cannot-see-all-tabs-in-ttk-notebook import tkinter as tk from tkinter.ttk import Frame, Notebook root = tk.Tk() nb = Notebook(root, width=320, height=240) nb.pack(fill='both', expand=1) page0 = Frame(nb) pa

[issue26681] decorators for attributes

2016-03-31 Thread Ethan Furman
Ethan Furman added the comment: Please discuss this idea on the Python-Ideas mailing list first; if that goes well you can bring the idea to Python-Dev; if that also goes well feel free to reopen this issue. --- In the meantime you could probably do something with a custom descriptor/class d

[issue22854] Documentation/implementation out of sync for IO

2016-03-31 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue26681] decorators for attributes

2016-03-31 Thread Matthias welp
New submission from Matthias welp: This is a suggestion, and not final. The current ways to define the getter and setter methods for an attribute are these two: @property def name(): """ Docstring """ pass @name.setter def name(value): pass

[issue26678] Incorrect linking to elements in datetime package

2016-03-31 Thread Martin Panter
Martin Panter added the comment: Currently the “datetime” documentation has quick descriptions of classes marked up with “.. class::” in the introduction, and then dedicated sections with more details. Many other parts of Python’s documentation have a similar structure. IMO it is better to inc

[issue22854] Documentation/implementation out of sync for IO

2016-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset b3c79e0ba477 by Martin Panter in branch '3.5': Issue #22854: Fix logic for skipping test https://hg.python.org/cpython/rev/b3c79e0ba477 New changeset de8412dc477e by Martin Panter in branch 'default': Issue #22854: Merge test fix from 3.5 https://hg

[issue26606] logging.baseConfig is missing the encoding parameter

2016-03-31 Thread Vinay Sajip
Vinay Sajip added the comment: > requires much more coding Much more? How so? It just seems like one open() call and passing the result to basicConfig(). -- ___ Python tracker

[issue26488] hashlib command line interface

2016-03-31 Thread Aviv Palivoda
Changes by Aviv Palivoda : Added file: http://bugs.python.org/file42337/hashlib-script-mod-md5sum-style-2.patch ___ Python tracker ___ ___ Py

[issue26488] hashlib command line interface

2016-03-31 Thread Aviv Palivoda
Aviv Palivoda added the comment: Thanks for the review SilentGhost. I am including the patch after the changes from your CR comments. -- ___ Python tracker ___ _

[issue26488] hashlib command line interface

2016-03-31 Thread Christian Heimes
Christian Heimes added the comment: Threading doesn't make much sense here. The runtime of hash computation is usually dominated by I/O performance. On a typical consumer computer SSDs have a sequential read performance of 200 to 500 MiB/sec. SHA-512 performance between 100 to 150 Mib/sec. Thr

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2016-03-31 Thread SilentGhost
Changes by SilentGhost : -- components: +Extension Modules nosy: +facundobatista, mark.dickinson, rhettinger, skrah stage: -> patch review versions: +Python 3.6 ___ Python tracker _

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2016-03-31 Thread Robert Smallshire
Robert Smallshire added the comment: Adding the second patch file. -- Added file: http://bugs.python.org/file42336/is_integer_decimal.patch ___ Python tracker ___ ___

[issue26488] hashlib command line interface

2016-03-31 Thread SilentGhost
SilentGhost added the comment: The mailing system is acting up, so just for the record, I've left comments on rietveld regarding md5sum-style patch. -- ___ Python tracker ___ __

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2016-03-31 Thread Robert Smallshire
New submission from Robert Smallshire: When the useful float.is_integer method was added the opportunity was missed to incorporate this method into the numeric tower defined in numbers.py. This increased the API distance between different number types, making them less substitutable than previ

[issue26679] curses: Descripton of KEY_NPAGE and KEY_PPAGE inverted

2016-03-31 Thread Robert Bachmann
New submission from Robert Bachmann: The table on lists: __ Page Up KEY_NPAGE Page Down KEY_PPAGE __ it should be vice versa. -- assignee: docs@python components: Documentation

[issue26606] logging.baseConfig is missing the encoding parameter

2016-03-31 Thread Jānis Šlapiņš
Jānis Šlapiņš added the comment: Using the stream or other options requires much more coding (for example, an additional redirection of sys.stdout to a file) instead of just one line with the basicConfig. In the meanwhile, I tried to use logging.FileHandler instead where I could specify the e

[issue26488] hashlib command line interface

2016-03-31 Thread Aviv Palivoda
Aviv Palivoda added the comment: I am adding a new patch with a API compatible to GNU md5sum: $ python -m hashlib md5 /bin/sh $ d985d0ea551c1253c2305140c583d11f /bin/sh I will soon add the feature's requested by Victor: 1) The check option. 2) Running the hash calculation for different file

[issue26678] Incorrect linking to elements in datetime package

2016-03-31 Thread Andy Maier
New submission from Andy Maier: Hi, I did search for these in the open bugs, but did not find any matching bug. I have a project that revealed that some of its InterSphinx links to existing classes/types or methods to not resolve their targets, or to resolve to a target that is not the right o

[issue26632] __all__ decorator

2016-03-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 25, 2016, at 02:12 AM, Eryk Sun wrote: >I added a prototype to Python/bltinmodule.c that gets or creates the __all__ >list from the current globals (i.e. PyEval_GetGlobals). Hi Eryk. Can you post your diff to bltinmodule.c? I'd like to see your code.

[issue26677] pyvenv: activate.fish breaks $PATH for bash scripts

2016-03-31 Thread SilentGhost
Changes by SilentGhost : -- nosy: +vinay.sajip type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue26677] pyvenv: activate.fish breaks $PATH for bash scripts

2016-03-31 Thread Florian Dold
New submission from Florian Dold: When sourcing the activate script from bash, $PATH is restored from $_OLD_VIRTUAL_PATH. If bash was invoked from fish (e.g. when running a shell script), and a virtualenv was activated from fish via activate.fish, the $_OLD_VIRTUAL_PATH will contain path sepa

[issue26671] Clean up path_converter in posixmodule.c

2016-03-31 Thread Larry Hastings
Larry Hastings added the comment: I approve in principle, but this patch isn't ready. If we compile on Win32, and allow_fd is on, and they pass in an invalid fd, your patched code will reach line 914 "length = PyBytes_GET_SIZE(bytes);" but bytes will be uninitialized. --

[issue26492] Exhausted array iterator should left exhausted

2016-03-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue26494] Double deallocation on iterator exhausting

2016-03-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue22854] Documentation/implementation out of sync for IO

2016-03-31 Thread Martin Panter
Martin Panter added the comment: I gave up on porting the fix to 2.7. Python 3 raises UnsupportedOperation (which inherits ValueError) in many cases due to Issue 9293, but Python 2 raises IOError (which does not inherit ValueError). Changing how BufferedWriter.read() etc work in Python 2 would

[issue22854] Documentation/implementation out of sync for IO

2016-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 66765a49465f by Martin Panter in branch '3.5': Issue #22854: Skip pipe seek tests on Windows https://hg.python.org/cpython/rev/66765a49465f New changeset 3b7811b58a1f by Martin Panter in branch 'default': Issue #22854: Merge Windows pipe skipping fr

[issue22854] Documentation/implementation out of sync for IO

2016-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb10d1f5016e by Martin Panter in branch 'default': Issue #22854: Skip pipe seekable() tests on Windows https://hg.python.org/cpython/rev/fb10d1f5016e -- ___ Python tracker

[issue26655] pathlib glob case sensitivity issue on Windows

2016-03-31 Thread SilentGhost
Changes by SilentGhost : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue22854] Documentation/implementation out of sync for IO

2016-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3d9d9ca75a31 by Martin Panter in branch '2.7': Issue #22854: fileno() is always required in IOBase; remove test https://hg.python.org/cpython/rev/3d9d9ca75a31 -- ___ Python tracker

[issue22854] Documentation/implementation out of sync for IO

2016-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc9e5f09ac0c by Martin Panter in branch '3.5': Issue #22854: Clarify documentation about UnsupportedOperation and add tests https://hg.python.org/cpython/rev/dc9e5f09ac0c New changeset c27e9dcad1a3 by Martin Panter in branch 'default': Issue #22854:

[issue26676] Add missing XMLPullParser to ElementTree.__all__

2016-03-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: LGTM. -- assignee: -> martin.panter nosy: +serhiy.storchaka stage: patch review -> commit review ___ Python tracker ___ ___

[issue23883] __all__ lists are incomplete

2016-03-31 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +Add missing XMLPullParser to ElementTree.__all__ ___ Python tracker ___ ___ Python-bugs-l

[issue26676] Add missing XMLPullParser to ElementTree.__all__

2016-03-31 Thread Martin Panter
Changes by Martin Panter : -- components: XML files: elementtree-all.patch keywords: patch nosy: martin.panter priority: normal severity: normal stage: patch review status: open title: Add missing XMLPullParser to ElementTree.__all__ versions: Python 3.6 Added file: http://bugs.python.or