[issue23220] IDLE does not display \b backspace correctly.

2015-01-10 Thread Ned Deily
Ned Deily added the comment: It's helpful to keep in mind that IDLE is a Tk application written in Python and, as such, depends on Tk to do nearly everything associated with writing to displays and reading from keyboards and pointing devices. If you try outputting the same string using the Tk

[issue23221] "a(n) the", "the a(n)" typos

2015-01-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> docs@python components: +Documentation nosy: +docs@python, r.david.murray stage: -> needs patch ___ Python tracker ___ ___

[issue21408] delegation of `!=` to the right-hand side argument is not always done

2015-01-10 Thread Martin Panter
Martin Panter added the comment: This patch should fix the problem I think. Before the __ne__() implementation was calling the “==” operator; now it calls the __eq__() method instead. Also includes extra test for Issue 4395 to avoid having conficting patches. -- keywords: +patch Added

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2015-01-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2015-01-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list ma

[issue22052] Comparison operators called in reverse order for subclasses with no override.

2015-01-10 Thread Martin Panter
Martin Panter added the comment: I have included some rules about the priority for calling reflected operator methods in my patch to Issue 4395 -- nosy: +vadmium ___ Python tracker

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2015-01-10 Thread Martin Panter
Martin Panter added the comment: Here is a patch that documents the default object.__ne__() implementation. It also documents the subclass priority rules for the reflected comparison methods, which is raised in Issue 22052. I have made some more tests to verify the relationships exists from __

[issue23205] Unit test needed for IDLE's GrepDialog.py's findfiles()

2015-01-10 Thread Al Sweigart
Al Sweigart added the comment: I checked with a couple grep programs and they use depth first. Which makes sense, since you'd want the return order to be something like: /a/spam.txt /a/aa/spam.txt /a/bb/spam.txt /x/spam.txt /y/spam.txt /z/spam.txt ...instead of the bread-first: /a/spam.txt /x

[issue23180] Rename IDLE's "Windows" menu item to "Window"

2015-01-10 Thread Al Sweigart
Al Sweigart added the comment: Will do, re marking IDLE issues for 2.7, 3.4, and 3.5 only. Thanks for the heads up. -- ___ Python tracker ___ ___

[issue23220] IDLE does not display \b backspace correctly.

2015-01-10 Thread Al Sweigart
Al Sweigart added the comment: For clarification, this happens on Windows 7. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue23218] Modernize the IDLE Find/Replace/Find in Files dialogs

2015-01-10 Thread Al Sweigart
Changes by Al Sweigart : -- versions: +Python 2.7, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue23220] IDLE does not display \b backspace correctly.

2015-01-10 Thread Al Sweigart
Changes by Al Sweigart : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue23216] IDLE grep/find/replace source code needs docstrings

2015-01-10 Thread Al Sweigart
Changes by Al Sweigart : -- versions: +Python 2.7, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue23220] IDLE does not display \b backspace correctly.

2015-01-10 Thread Martin Panter
Martin Panter added the comment: As far as I understand, Idle doesn’t interpret any terminal control codes apart from a plain \n for a new line. I know it doesn’t do a carriage return for \r either. -- components: +IDLE nosy: +vadmium ___ Python tra

[issue23220] IDLE does not display \b backspace correctly.

2015-01-10 Thread Carol Willing
Carol Willing added the comment: FWIW: On Mac OS X 10.9.5 using Python 3.4.2, IDLE's interactive shell (started from the IDLE.app icon): >>>print('hello\b\b\b\b\bHELLO') helloHELLO >From the command line using python3 interactive shell: >>>print('hello\b\b\b\b\bHELLO') HELLO Both return a fo

[issue23206] json.dumps(ensure_ascii=False) is ~10x slower than json.dumps()

2015-01-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23203] Aliasing import of sub-{module, package} from the package raises AttributeError on import.

2015-01-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11691] sqlite3 Cursor.description doesn't set type_code

2015-01-10 Thread Gerhard Häring
Changes by Gerhard Häring : -- assignee: docs@python -> ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec

2015-01-10 Thread Gerhard Häring
Changes by Gerhard Häring : -- assignee: -> ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue20274] sqlite module has bad argument parsing code, including undefined behavior in C

2015-01-10 Thread Gerhard Häring
Changes by Gerhard Häring : -- assignee: -> ghaering nosy: +ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue21408] delegation of `!=` to the right-hand side argument is not always done

2015-01-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue20463] sqlite dumpiter dumps invalid script when virtual tables are used

2015-01-10 Thread Gerhard Häring
Changes by Gerhard Häring : -- assignee: -> ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue13583] sqlite3.Row doesn't support slice indexes

2015-01-10 Thread Gerhard Häring
Changes by Gerhard Häring : -- assignee: -> ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue16958] The sqlite3 context manager does not work with isolation_level=None

2015-01-10 Thread Gerhard Häring
Changes by Gerhard Häring : -- assignee: -> ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue21465] sqlite3 Row can return duplicate keys when using adapters

2015-01-10 Thread Gerhard Häring
Changes by Gerhard Häring : -- assignee: -> ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue21836] Fix sqlite3 in unicodeless build

2015-01-10 Thread Gerhard Häring
Changes by Gerhard Häring : -- assignee: -> ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20562] sqlite3 returns result set with doubled first entry

2015-01-10 Thread Gerhard Häring
Changes by Gerhard Häring : -- assignee: -> ghaering nosy: +ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue20587] sqlite3 converter not being called

2015-01-10 Thread Gerhard Häring
Changes by Gerhard Häring : -- assignee: -> ghaering nosy: +ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue13299] namedtuple row factory for sqlite3

2015-01-10 Thread Gerhard Häring
Changes by Gerhard Häring : -- assignee: -> ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2015-01-10 Thread Gerhard Häring
Changes by Gerhard Häring : -- assignee: -> ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue23221] "a(n) the", "the a(n)" typos

2015-01-10 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: In default branch: $ grep -Er '(^|[[:space:]])an? the($|[[:space:]])' * Doc/c-api/structures.rst::c:type:`PyObject\*`, it is common that the method implementation uses a the Include/dynamic_annotations.h: is about to be reused, or whe

[issue23220] IDLE does not display \b backspace correctly.

2015-01-10 Thread Al Sweigart
New submission from Al Sweigart: IDLE cannot display the \b backspace character correctly. From IDLE's interactive shell: >>> print('hello\b\b\b\b\bHELLO') hello◙HELLO Whereas from cmd: >>> print('hello\b\b\b\b\bHELLO') HELLO -- messages: 233828 nosy: Al.Sweigart priority:

[issue23166] urllib2 ignores opener configuration under certain circumstances

2015-01-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23165] Heap overwrite in Python/fileutils.c:_Py_char2wchar() on 32 bit systems due to malloc parameter overflow

2015-01-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21408] delegation of `!=` to the right-hand side argument is not always done

2015-01-10 Thread Martin Panter
Martin Panter added the comment: There is a bit of analysis of the object.__ne__() implementation in Issue 4395. If my understanding is correct, I think it is a bug that object.__ne__(self, other) evaluates “not self == other”. It should evaluate “not self.__eq__(other)” instead, so that NotIm

[issue23185] add inf and nan to math module

2015-01-10 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +eric.smith, lemburg, rhettinger, stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue23206] json.dumps(ensure_ascii=False) is ~10x slower than json.dumps()

2015-01-10 Thread INADA Naoki
INADA Naoki added the comment: test_encode_basestring_ascii.py has duplicated test cases. -- Added file: http://bugs.python.org/file37670/json-fast-unicode-encode.patch ___ Python tracker __

[issue23206] json.dumps(ensure_ascii=False) is ~10x slower than json.dumps()

2015-01-10 Thread INADA Naoki
INADA Naoki added the comment: I've updated patch to use PyUnicode_MAX_CHAR_VALUE(). -- Added file: http://bugs.python.org/file37669/json-fast-unicode-encode.patch ___ Python tracker ___

[issue22411] Embedding Python on Windows

2015-01-10 Thread Steve Dower
Steve Dower added the comment: distutils will (now, after some changes in 3.5) build debug versions of packages on installation when running with python_d.exe. I haven't tested exactly how pip behaves here, but it should work fine if you run with a command line like this: python_d.exe -m pip

[issue23203] Aliasing import of sub-{module, package} from the package raises AttributeError on import.

2015-01-10 Thread Brett Cannon
Brett Cannon added the comment: That seems reasonable. I guess first step is a patch and then seeing if it passes the test suite. -- ___ Python tracker ___ _

[issue22980] C extension naming doesn't take bitness into account

2015-01-10 Thread Steve Dower
Steve Dower added the comment: > Could you explain what replacing the _d suffix with a "d" ABI flag > would break ? It breaks consistency with python_d.exe and python35_d.dll, mainly, and those are not going to change (specifically, python.exe and python35.dll are not going to change, and so t

[issue22411] Embedding Python on Windows

2015-01-10 Thread Joakim Karlsson
Joakim Karlsson added the comment: Sounds reasonable. It would also require that all third party packages supply a "*_d.pyd" version of any extensions. Does setuptools and pip have any support for automatically creating debug versions of extensions with the correct naming scheme when creating

[issue23217] help() function incorrectly captures comment preceding a nested function

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

[issue23201] Decimal(0)**0 is an error, 0**0 is 1, but Decimal(0) == 0

2015-01-10 Thread Stefan Krah
Stefan Krah added the comment: For the differences between the standard and IEEE 754-2008 we could link to: http://speleotrove.com/decimal/dascope.html In the long run, perhaps we should move to IEEE, because we're almost there (but that's a separate issue). --

[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2015-01-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: The pdb documentation could make an explicit reference to the documentation of sys.settrace() where it is explained that the function is thread specific. -- ___ Python tracker ___

[issue23188] Provide a C helper function to chain raised (but not yet caught) exceptions

2015-01-10 Thread Nick Coghlan
Nick Coghlan added the comment: Updated the issue title and type again based on Antoine's explanation. -- title: Exception chaining should trigger for non-normalised exceptions -> Provide a C helper function to chain raised (but not yet caught) exceptions type: behavior -> enhancement

[issue23188] Exception chaining should trigger for non-normalised exceptions

2015-01-10 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, confusion between "exception has been raised" and "we're in an active exception handler" is almost certainly what is happening. In both issue 22906 and my previous codec exception wrapping work, we're still in the C code that raised the exception, *before* w

[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2015-01-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: pdb does not ignore breakpoints which are set and hit in a non-main thread. For example with the attached script: $ python pdb_thread.py > pdb_thread.py(5)foo() -> lineno = 5 (Pdb) break 6 Breakpoint 1 at pdb_thread.py:6 (Pdb) continue > pdb_thread.py(6)foo() ->

[issue23203] Aliasing import of sub-{module, package} from the package raises AttributeError on import.

2015-01-10 Thread Nick Coghlan
Nick Coghlan added the comment: I'm suggesting we change this part of the bytecode emitted for "import x.y.z as bar": 6 IMPORT_NAME 0 (x.y.z) 9 LOAD_ATTR1 (y) 12 LOAD_ATTR2 (z) 15 STORE_NAME

[issue21408] delegation of `!=` to the right-hand side argument is not always done

2015-01-10 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23219] asyncio: cancelling wait_for(task, timeout) must also cancel the task

2015-01-10 Thread STINNER Victor
STINNER Victor added the comment: Oops, I forgot to call remove_done_callback(). New patch attached. My patch is based on Gustavo Carneiro's patch from Tulip issue #211. -- Added file: http://bugs.python.org/file37667/cancel_wait_for-2.patch ___ Pyth

[issue23219] asyncio: cancelling wait_for(task, timeout) must also cancel the task

2015-01-10 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file37665/cancel_wait_for.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue23219] asyncio: cancelling wait_for(task, timeout) must also cancel the task

2015-01-10 Thread STINNER Victor
New submission from STINNER Victor: Cancelling wait_for(task, timeout) must also cancel the waited task. Attached patch fixes this issue. Original issue: https://code.google.com/p/tulip/issues/detail?id=211 -- components: asyncio files: cancel_wait_for.patch keywords: patch messages: 2

[issue23218] Modernize the IDLE Find/Replace/Find in Files dialogs

2015-01-10 Thread Al Sweigart
Changes by Al Sweigart : -- keywords: +patch Added file: http://bugs.python.org/file37666/idle_find_ui_redesign.diff ___ Python tracker ___ __

[issue23218] Modernize the IDLE Find/Replace/Find in Files dialogs

2015-01-10 Thread Al Sweigart
New submission from Al Sweigart: Various changes to modernize the user interface of the Find, Replace, and Find in Files dialogs: - Got rid of the "close" button, since it is redundant. - Moved the buttons below the text fields, to make better use of screen real estate. - Shorten the titles by

[issue20699] Behavior of ZipFile with file-like object and BufferedWriter.

2015-01-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> patch review versions: +Python 3.5 ___ Python tracker ___ ___ Pyth

[issue23217] help() function incorrectly captures comment preceding a nested function

2015-01-10 Thread Raymond Hettinger
New submission from Raymond Hettinger: The help() function mysteriously captures a comment on the line preceding an inner function definition in a nested scope. Given this code: def outer(func): #comment def inner(): return return inner

[issue23205] Unit test needed for IDLE's GrepDialog.py's findfiles()

2015-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have been putting off re-writing findfiles because it partly duplicates os.listdir, which should perhaps be used instead, except that a new, improved, os.scandir is in the works: PEP 471 and #22524. I believe filefiles currently searches depth first, wherea

[issue23201] Decimal(0)**0 is an error, 0**0 is 1, but Decimal(0) == 0

2015-01-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: > A possibility would be to add "(disallowed by the > Decimal standard)" to the exception message. That is what InvalidOperation means ;-) -- ___ Python tracker __

[issue23201] Decimal(0)**0 is an error, 0**0 is 1, but Decimal(0) == 0

2015-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you Tim. A possibility would be to add "(disallowed by the Decimal standard)" to the exception message. -- nosy: +terry.reedy versions: -Python 3.6 ___ Python tracker

[issue23216] IDLE grep/find/replace source code needs docstrings

2015-01-10 Thread Al Sweigart
New submission from Al Sweigart: The following IDLE files need docstrings for their methods: GrepDialog.py SearchEngine.py SearchDialogBase.py SearchDialog.py ReplaceDialog.py -- components: IDLE files: idle_docstrings.diff keywords: patch messages: 233807 nosy: Al.Sweigart priority: no

[issue19051] Unify buffered readers

2015-01-10 Thread Martin Panter
Martin Panter added the comment: Parts of the patch here actually do the same thing as my LZMAFile patch for Issue 15955. I wish I had looked at the patch earlier! The difference is I used a proposed max_length parameter for the decompressor rather than unlimited decompression, and I used the

[issue19776] Provide expanduser() on Path objects

2015-01-10 Thread STINNER Victor
STINNER Victor added the comment: Ok, test_pathlib now pass on the buildbot "PPC64 AIX 3.x". I close the issue. Nice enhancement of the Path object. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue13742] Add a key parameter (like sorted) to heapq.merge

2015-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: You can set up mecurial on your machine, make a read-only clone of the cpython repository, and compile it just as do other people, whether core-developers or otherwise. See docs.python.org/devguide for details. --

[issue19776] Provide expanduser() on Path objects

2015-01-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 63dac5212552 by Victor Stinner in branch 'default': Issue #19776: Fix test_pathlib.test_expanduser() https://hg.python.org/cpython/rev/63dac5212552 -- ___ Python tracker