[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-08-15 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: @ Ned Deily: Thank you for the comment's. 1. I documented it in the config-extensions.def how to make it visible on startup(or not). In the new patch, it is not visible by default. 2. I have made the changes. 4. I'll explain the reason why this argument i

[issue22210] pdb-run-restarting-a-pdb-session

2014-08-15 Thread linuxie
New submission from linuxie: I was running pdb from the command line. Whenever I restart, It throws the error: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 861, in _execute getattr(self, self.request.method.lower

[issue22179] Idle. Search dialog found text not highlited on Windows

2014-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: The focus *should* stay on the dialog, #17511, but the found text should be highlighted with the 'found' highlight, as it is for Replace in Editor (but not Output) windows. The issue is that found text on Windows is not hightlighted in any way. It apparently

[issue17511] Idle find function closes after each find operation

2014-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Immediate highlighting of SearchDialog found text (before closing) does not work on Windows in any current release -- 2.7.8, 3.3.5 (final release) and 3.4.1. Though I continued to use ^F, ^G. Mark Lawrence noticed this and opened #22179. I propose there to use

[issue22208] tarfile can't add in memory files (reopened)

2014-08-15 Thread Ned Deily
Changes by Ned Deily : -- nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2014-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry, wrong issue (should have been #17511). Debugger source line highlighting works fine. -- ___ Python tracker ___ _

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the comments. 1. I previously said somewhere 'enabled but initially off' by default. I intend to make sure of that before committing. 2. Option menu sounds good.. 3. I tried out a *much* lighter gray, as with Notepad++. Saimadhav is leaving that t

[issue22209] Idle: add better access to extension information

2014-08-15 Thread Terry J. Reedy
New submission from Terry J. Reedy: In msg225377 of #17535, Ned Daily says "(Noted in passing: while the help/doc suggests: "See the beginning of config-extensions.def in the idlelib directory for further information.", even in the unlikely event that a user knew in what directory to look for

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-08-15 Thread Ned Deily
Ned Deily added the comment: As Terry requested, here are a few comments on running linenumber-text-widget-v1.diff on OS X. Overall, this looks to me to be a useful option. 1. Having line numbering enabled by default was a bit of a surprise, particularly in light of 2. 2. The "Toggle Linenu

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2014-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Regardless of what I said in the previous message, highlighting of found text is NOT working in any current release -- 2.7.8, 3.3.5 (final release) and 3.4.1. Mark Lawrence opened #22179. I propose there to use the 'found' highlight, as used in the replace di

[issue22191] warnings.__all__ incomplete

2014-08-15 Thread Jon Poler
Jon Poler added the comment: Here is a patch that changes __all__ in Lib/warnings.py to include the functions mentioned in the library reference https://docs.python.org/dev/library/warnings.html#available-functions. A unittest is included. This is my first patch, so comments/feedback are welc

[issue22208] tarfile can't add in memory files (reopened)

2014-08-15 Thread Mark Grandi
New submission from Mark Grandi: So I ran into this problem today, where near impossible to create a tarfile.TarFile object, then add files to the archive, when the files are in memory file-like objects (like io.BytesIO, io.StringIO, etc) code example: ### import tarfile, io

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

2014-08-15 Thread STINNER Victor
STINNER Victor added the comment: Ok, I fixed many warnings in this issue. I will open new issues for other warnings. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-08-15 Thread STINNER Victor
STINNER Victor added the comment: overflow2.patch: more changes for this issue (it doesn't replace my previous patch). -- Added file: http://bugs.python.org/file36382/overflow2.patch ___ Python tracker ___

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

2014-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset e831a98b3f43 by Victor Stinner in branch 'default': Issue #22156: Fix some "comparison between signed and unsigned integers" http://hg.python.org/cpython/rev/e831a98b3f43 -- ___ Python tracker

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

2014-08-15 Thread STINNER Victor
Changes by STINNER Victor : -- title: Fix compiler warnings -> Fix compiler warnings "comparison between signed and unsigned integers" ___ Python tracker ___ ___

[issue20779] Add pathlib.chown method

2014-08-15 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22156] Fix compiler warnings

2014-08-15 Thread STINNER Victor
STINNER Victor added the comment: I created another more specific issue: #22207, "Test for integer overflow on Py_ssize_t: explicitly cast to size_t". -- ___ Python tracker ___

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-08-15 Thread STINNER Victor
New submission from STINNER Victor: Python contains a lot of tests like this one: if (length > PY_SSIZE_T_MAX / 4) return PyErr_NoMemory(); where length type is Py_ssize_t. This test uses signed integers. There is usually a "assert(length > 0);" before. The issue #22110 enabled m

[issue22206] PyThread_create_key(): fix comparison between signed and unsigned numbers in Python/thread_pthread.h

2014-08-15 Thread STINNER Victor
Changes by STINNER Victor : -- title: PyThread_create_key(): fix comparison between signed and unsigned numbers -> PyThread_create_key(): fix comparison between signed and unsigned numbers in Python/thread_pthread.h ___ Python tracker

[issue22156] Fix compiler warnings

2014-08-15 Thread STINNER Victor
STINNER Victor added the comment: I created a specific issue for PyThread_create_key() of Python/thread_pthread.h: issue #22206. -- ___ Python tracker ___ __

[issue22206] PyThread_create_key(): fix comparison between signed and unsigned numbers

2014-08-15 Thread STINNER Victor
New submission from STINNER Victor: The issue #22110 enabled more compiler warnings. I would like to fix this one: --- gcc -pthread -c -Wno-unused-result -Wsign-compare -g -O0 -Wall -Wstrict-prototypes-Werror=declaration-after-statement -I. -IInclude -I./Include-DPy_BUILD_CORE -o Pyth

[issue22156] Fix compiler warnings

2014-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9b84ff16edd4 by Victor Stinner in branch 'default': Issue #22156: Fix "comparison between signed and unsigned integers" compiler http://hg.python.org/cpython/rev/9b84ff16edd4 New changeset a0b38f4eb79e by Victor Stinner in branch 'default': Issue #2

[issue22198] Odd floor-division corner case

2014-08-15 Thread eryksun
eryksun added the comment: decimal.Decimal 'floor division' is integer division that truncates toward 0 (see 9.4.2). >>> Decimal('-0.5').__floor__() -1 >>> Decimal('-0.5').__floordiv__(1) Decimal('-0') Numpy 1.8.1: >>> np.float32(-0.5) // 1 -1.0 >>> np.float32(-0.5)

[issue20334] make inspect Signature hashable

2014-08-15 Thread Antony Lee
Antony Lee added the comment: Actually, that specific solution (using a helper method) will fail because there may be unhashable params (due to unhashable default values or annotations) among the keyword-only arguments, so it may not be possible to build a frozenset (rather, one should compare

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-08-15 Thread STINNER Victor
STINNER Victor added the comment: Manual page of the OpenBSD getentropy() function: http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man2/getentropy.2 LibreSSL didn't wait for the libc, search for getentropy_getrandom(): http://openbsd.cs.toronto.edu/cgi-bin/cvsweb/src/lib/libcrypto/crypto

[issue22205] debugmallocstats test is cpython only

2014-08-15 Thread Martin Matusiak
New submission from Martin Matusiak: sys._debugmallocstats is a cpython specific feature, so test_debugmallocstats should be marked as such. -- files: debugmallocstats.diff keywords: patch messages: 225362 nosy: numerodix, serhiy.storchaka priority: normal severity: normal status: open

[issue20334] make inspect Signature hashable

2014-08-15 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks, Antony, this is a good catch. Your suggestion seems like a good idea. I'll look into this more closely soon. -- ___ Python tracker ___

[issue22198] Odd floor-division corner case

2014-08-15 Thread Tim Peters
Tim Peters added the comment: To be clear, I agree -0.0 is "the correct" answer, and -1.0 is at best defensible via a mostly-inappropriate limit argument. But in Py3 floor division of floats returns an integer, and there is no integer -0. Nor, God willing, will there ever be ;-) Looks to me

[issue22198] Odd floor-division corner case

2014-08-15 Thread Stefan Krah
Stefan Krah added the comment: I think the intention of the standard is pretty much as Mark said in msg225314. The fact that decimal behaves that way is another indicator, since Cowlishaw really tried to mirror the 2008 standard as closely as possible. -- __

[issue22192] dict_values objects are hashable

2014-08-15 Thread Guido van Rossum
Guido van Rossum added the comment: Oh. Yeah. Then I think there's nothing to do. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue22194] access to cdecimal / libmpdec API

2014-08-15 Thread Stefan Krah
Stefan Krah added the comment: I'm a little unsure what to do with the API, see also #15237: 1) I'm not too fond of the Capsule method, especially because it *seems* possible to get at the symbols directly on Linux and Windows (provided that they aren't static of course). 2) I wou

[issue22194] access to cdecimal / libmpdec API

2014-08-15 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file36378/api-demo[1].c ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue22192] dict_values objects are hashable

2014-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I think just a a.keys() == set(a.keys()), a.values() should be == > set(a.values()). Every element of a.keys() is hashable and unique. a.values() can contain non- hashable repeated elements. -- ___ Python tracker

[issue22202] Function Bug?

2014-08-15 Thread Reza Shahrzad
Reza Shahrzad added the comment: Hi Steve, Thank you very much for your prompt reply, explanation and the concise resolution included. I guess, it will be a while before I can hope to find any real bugs in Python and that is something a beginner such as myself should only be grateful for! Than

[issue22192] dict_values objects are hashable

2014-08-15 Thread Guido van Rossum
Guido van Rossum added the comment: It's clear that dict.values() shouldn't be hashable -- using the identity is plain wrong here. But shouldn't the fix be to implement rich comparisons for dict.values()? I think just a a.keys() == set(a.keys()), a.values() should be == set(a.values()). Let'

[issue22192] dict_values objects are hashable

2014-08-15 Thread Ben Roberts
Ben Roberts added the comment: I have a patch with tests for this (running the test suite now) but I am increasingly unsure if python isn't doing the right thing already. Intuitively, it "feels" wrong (to me) to allow a dict_values view to be hashable since the mapping onto which it provides a

[issue22195] Make it easy to replace print() calls with logging calls

2014-08-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22193] Add _PySys_GetSizeOf()

2014-08-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: Christian: I don't see why 24 bytes overhead sounds strange. GC_Head is typedef union _gc_head { struct { union _gc_head *gc_next; union _gc_head *gc_prev; Py_ssize_t gc_refs; } gc; double dummy; /* force worst-case alignmen

[issue22195] Make it easy to replace print() calls with logging calls

2014-08-15 Thread Vinay Sajip
Vinay Sajip added the comment: Here's a tentative suggestion. Does it meet your needs? import logging import sys class LoggerWriter(object): def __init__(self, logger='', level=logging.DEBUG): if isinstance(logger, str): logger = logging.getLogger(logger) self.lo

[issue22204] spam

2014-08-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: -lcarrionr resolution: -> not a bug stage: -> resolved status: open -> closed title: 2014 USA CONFERENCE/INVITATION!! -> spam ___ Python tracker ___

[issue22204] 2014 USA CONFERENCE/INVITATION!!

2014-08-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg225350 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue22204] 2014 USA CONFERENCE/INVITATION!!

2014-08-15 Thread LuisC
New submission from LuisC: Dear Colleagues On behalf of California Human Welfare Foundation. It is a great privilege for us to invite you to global Congress meeting Against Economic Crisis, Prostitution, Human Trafficking and child abuse & HIV/AIDS Treatment, held in the united state and in D

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2014-08-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: This bug has been open for a while and I had lost sight of it. Upon prompted recently, I dug bit into history and could think of a good solution. A brief history. 1. The bug "maximum recursion depth exceeded" when doing Basic Authentication was introduced i

[issue22203] inspect.getargspec() returns wrong spec for builtins

2014-08-15 Thread R. David Murray
R. David Murray added the comment: These used to raise an error. Not sure if the fact that they don't now is intentional or not (eventually they will return a real value when the argument clinic project is finished). -- nosy: +r.david.murray ___ Py

[issue22200] Remove distutils checks for Python version

2014-08-15 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> patch review type: -> enhancement versions: +Python 3.5 ___ Python tracker ___ ___ Python-bu

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2014-08-15 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2014-08-15 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue22192] dict_values objects are hashable

2014-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is a question. What builtin types should be hashable? In particular, should be hashable iterators, generators? -- ___ Python tracker __

[issue22193] Add _PySys_GetSizeOf()

2014-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which adds overflow check. The question is: should sys.getsizeof with the default argument catch OverflowError in additional to TypeError and replace it by default value? -- Added file: http://bugs.python.org/file36376/_PySys_GetSizeO

[issue22186] Typos in .py files

2014-08-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll apply this shortly. -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___