[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 rep...@bugs.python.org
http://bugs.python.org/issue19776
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 existing BufferedReader class rather than 
implementing a new custom one.

The changes for the “gzip” module could probably be merged with my GzipFile 
patch at Issue 15955 and made to use BufferedReader.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19051
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

@outer
def f():
return


Calling help(f) produces:
-

Help on function inner in module __main__:

inner()
#comment

--
components: Library (Lib)
messages: 233811
nosy: rhettinger
priority: normal
severity: normal
status: open
title: help() function incorrectly captures comment preceding a nested function
type: behavior
versions: Python 3.2, Python 3.3, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23217
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13742
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 getting rid of the Dialog part.
- Renamed Search title to Find to match the menu item.
- Renamed Regular expression label to the shorter Regex
- Added slightly more padding.
- Removed the Replace+Find and made Replace have this functionality. (all 
modern editors use Replace to mean Replace and Find)

The attached png shows the before/after differences in the design of these 
dialogs.

--
components: IDLE
files: idle_grep_compare.png
messages: 233812
nosy: Al.Sweigart
priority: normal
severity: normal
status: open
title: Modernize the IDLE Find/Replace/Find in Files dialogs
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file37664/idle_grep_compare.png

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23218
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 233813
nosy: gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: asyncio: cancelling wait_for(task, timeout) must also cancel the task
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file37665/cancel_wait_for.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23219
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue19776
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +serhiy.storchaka
stage:  - patch review
versions: +Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20699
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


Removed file: http://bugs.python.org/file37665/cancel_wait_for.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23219
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread Al Sweigart

Changes by Al Sweigart asweig...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file37666/idle_find_ui_redesign.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23218
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, whereas I would generally 
prefer breadth first.  For instance, I would like all hits in /lib together and 
then hits in /lib/idlelib, /lib/test, /lib/tinter, etc.  What do you think?

--
nosy: +terry.reedy
stage:  - patch review
type:  - enhancement
versions: +Python 2.7, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23205
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue23201
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23219
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue23201
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: normal
severity: normal
status: open
title: IDLE grep/find/replace source code needs docstrings
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file37663/idle_docstrings.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23216
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
nosy: +vadmium

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21408
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23217
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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   3 (bar)

to instead emit:

  6 IMPORT_NAME  0 (x.y)
  9 IMPORT_FROM  1 (z)
 12 STORE_NAME   2 (bar)
 15 POP_TOP

The degenerate case of import x as y would be unchanged, only cases which 
currently emit LOAD_ATTR instructions would be modified.

I haven't looked at the practical details yet, but the key would be to use 
IMPORT_FROM to do the name resolution, rather than LOAD_ATTR, thus enabling the 
fallback to sys.modules for the eager lookup.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23203
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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()
- lineno = 6
(Pdb) threading.current_thread().name
'fooThread'
(Pdb)

--
nosy: +xdegaye
Added file: http://bugs.python.org/file37668/pdb_thread.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23163
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue23163
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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* we make it back to the eval loop and any Python 
level exception handling.

So I think that's the distinction we need to ensure is documented, and 
potentially a new public helper function provided - if you're in a Python level 
exception handler, then exception context chaining will be handled 
automatically for you in PyErr_SetObject, but if you're still in C code and 
haven't made it back to the eval loop after raising an exception, then you're 
going to have to do any exception chaining explicitly.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23188
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23201
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 wheels or 
compiling during installation? A (really shallow) search didn't find any info 
on this.

Anyway, thanks for stepping up and taking charge of the windows installers!

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22411
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23188
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue23203
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 install --no-use-wheel --no-clean --build build dir 
package

I don't think pip will create a pip_d.exe, and it's likely that if a wheel is 
available it will grab that and you really need to build it locally. Using 
--no-clean and --build to specify where to build it will ensure that the 
symbols for the package aren't deleted, which may help with debugging, but if 
you don't care about that you can omit those two parameters.

I've also been experimenting with adding an option to download and install 
debug binaries as part of the installer, and it looks like it'll work fine. So 
that at least will make things simpler for developers. Another change for 3.5 
that will also help is #22980 (though that one isn't quite settled yet and may 
change again).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22411
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue23206
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 there's no point changing the debug versions any more 
than with _d).

It would also break consistency with untagged PYDs, which are still supported 
but still need to distinguish between debug and release builds. Currently the 
accepted suffixes are _d.cp35-{plat}.pyd and _d.pyd. While we could start 
requiring at least cp3d as the API tag, that would break a lot of development 
environments for no gain.

So basically, I see compelling reasons for allowing the platform in the name, 
good enough reasons for the version, but not good enough reasons for changing 
the existing debug tag (and no reason for the m flag at all).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22980
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue23206
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 when a the locking 
discipline for a variable
Include/unicodeobject.h:/* Initializes the canonical string representation from 
a the deprecated
Lib/lib2to3/fixes/fix_exitfunc.py:# First, find a the sys import. We'll 
just hope it's global scope.
Lib/socket.py:Create a socket object from a the bytes object returned by
Lib/http/cookiejar.py:Return string representation of Cookie in an the 
LWP cookie file format.
Modules/_ctypes/_ctypes.c:   A Pointer instance must keep a the value it 
points to alive.  So, a

$ grep -Er '(^|[[:space:]])the an?($|[[:space:]])' *
Doc/library/unittest.mock.rst:being looked up on the a module and so we have to 
patch ``a.SomeClass`` instead::
Doc/c-api/init.rst:   Return the a pointer to the first :c:type:`PyThreadState` 
object in the list of
Doc/c-api/exceptions.rst:  case of a class exception, or it may the a 
subclass of the expected exception.)
Doc/distutils/apiref.rst:   *base_dir* is just the a name of a directory which 
doesn't necessarily exist
Lib/test/test_argparse.py:Tests the an optional action that is 
required
Lib/ssl.py:Return the a list of ciphers shared by the client during 
the
Lib/distutils/dir_util.py:'base_dir' is just the a name of a directory 
which doesn't necessarily

'the a module' in Doc/library/unittest.mock.rst probably should be 'the ``a`` 
module'.
'may the a' in Doc/c-api/exceptions.rst should be 'may be a'.

--
keywords: easy
messages: 233829
nosy: Arfrever
priority: normal
severity: normal
status: open
title: a(n) the, the a(n) typos
versions: Python 2.7, Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23221
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13299] namedtuple row factory for sqlite3

2015-01-10 Thread Gerhard Häring

Changes by Gerhard Häring g...@ghaering.de:


--
assignee:  - ghaering

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13299
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20587] sqlite3 converter not being called

2015-01-10 Thread Gerhard Häring

Changes by Gerhard Häring g...@ghaering.de:


--
assignee:  - ghaering
nosy: +ghaering

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20587
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue23220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2015-01-10 Thread Gerhard Häring

Changes by Gerhard Häring g...@ghaering.de:


--
assignee:  - ghaering

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10740
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue23180
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: normal
severity: normal
status: open
title: IDLE does not display \b backspace correctly.
versions: Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread Gerhard Häring

Changes by Gerhard Häring g...@ghaering.de:


--
assignee:  - ghaering

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20463
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21408
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread Gerhard Häring

Changes by Gerhard Häring g...@ghaering.de:


--
assignee: docs@python - ghaering

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11691
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 g...@ghaering.de:


--
assignee:  - ghaering

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9924
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 g...@ghaering.de:


--
assignee:  - ghaering
nosy: +ghaering

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20274
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23185] add inf and nan to math module

2015-01-10 Thread Ethan Furman

Changes by Ethan Furman et...@stoneleaf.us:


--
nosy: +eric.smith, lemburg, rhettinger, stutzbach

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23185
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23166] urllib2 ignores opener configuration under certain circumstances

2015-01-10 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23166
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23165
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread Al Sweigart

Changes by Al Sweigart asweig...@gmail.com:


--
versions: +Python 2.7, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23216
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread Al Sweigart

Changes by Al Sweigart asweig...@gmail.com:


--
versions: +Python 2.7, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23218
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread Al Sweigart

Changes by Al Sweigart asweig...@gmail.com:


--
versions: +Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 NotImplemented can be caught, allowing the 
reflected other.__ne__(self) method to be tried.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21408
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20562] sqlite3 returns result set with doubled first entry

2015-01-10 Thread Gerhard Häring

Changes by Gerhard Häring g...@ghaering.de:


--
assignee:  - ghaering
nosy: +ghaering

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20562
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread Gerhard Häring

Changes by Gerhard Häring g...@ghaering.de:


--
assignee:  - ghaering

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16958
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread Gerhard Häring

Changes by Gerhard Häring g...@ghaering.de:


--
assignee:  - ghaering

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21465
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread Gerhard Häring

Changes by Gerhard Häring g...@ghaering.de:


--
assignee:  - ghaering

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13583
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21836] Fix sqlite3 in unicodeless build

2015-01-10 Thread Gerhard Häring

Changes by Gerhard Häring g...@ghaering.de:


--
assignee:  - ghaering

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21836
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 class 'str' for type('hello\b\b\b\b\bHELLO') 
Interestingly, both behave the same when executing:
'hello\b\b\b\b\bHELLO'
'hello\x08\x08\x08\x08\x08HELLO'


I'm not sure that IDLE is used much on OS X since the Terminal is easily 
available. Since K12 education may use it, it would be nice to have consistency 
across the OSes.

--
nosy: +willingc

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23206
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23203
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue23220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/spam.txt
/y/spam.txt
/z/spam.txt
/a/aa/spam.txt
/a/bb/spam.txt

However, it turns out this is moot since the first thing GrepDialog.py does 
with the returned results is sort them.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23205
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 __ne__ to 
__eq__, but no other relationships exist for the other methods. I will include 
it in my patch in Issue 21408 to avoid the patches conflicting with each other.

--
keywords: +patch
nosy: +vadmium
Added file: http://bugs.python.org/file37671/default-ne-reflected-priority.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4395
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 file: http://bugs.python.org/file37672/method-not-operator.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21408
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
stage: needs patch - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4395
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4395
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue22052
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
assignee:  - docs@python
components: +Documentation
nosy: +docs@python, r.david.murray
stage:  - needs patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23221
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 shell, wish, you'll see exactly the 
same behavior as you do in IDLE:

$ wish
% .text insert 1.0 hello\b\b\b\b\bHELLO
% pack .text

And you'll see the same Tk platform differences.  With the native OS X Tk's, 
the backspace characters aren't displayed; with a Linux or OS X X11 Tk, empty 
box characters are displayed.  That may also depend on which font is in use.  
In any case, the Tk text widget does not behave the same way in this regard as 
most terminal emulator windows do would do with backspace characters.  So it's 
up to any Tk app to figure out how it wants to deal with them.

This issue has come up before for Tkinter in general: back in 2001, effbot 
suggested some code to search for and edit backspace runs in Tk text.  
Presumably something similar could be added to IDLE if there was general 
agreement that this was desirable (after verifying that it works on all of the 
Tk platforms that IDLE supports).  See 
https://mail.python.org/pipermail/python-list/2001-December/085908.html

--
nosy: +ned.deily

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23220
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com