[issue28772] Bus error in Python 3.6.0beta

2016-11-24 Thread Stefan Scherfke

Stefan Scherfke added the comment:

The cause for this issue was a backwards incompatible change between 
conda-build v1 and conda-build v2.

--
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue28794] inspect.isasyncgen and inspect.isasyncgenfunction aren't documented

2016-11-24 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

Hi, attached is the patch with docs for inspect.isasyncgen and 
inspect.isasyncgenfunction 

Please review, and let me know if this works.

Thanks :)

--
keywords: +patch
nosy: +Mariatta
Added file: http://bugs.python.org/file45636/issue28794.patch

___
Python tracker 

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



[issue28797] Modifying class __dict__ inside __set_name__

2016-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Proposed patch iterates a copy of __dict__.

--
keywords: +patch
stage: needs patch -> patch review
versions: +Python 3.7
Added file: http://bugs.python.org/file45635/set_name-dict-copy.patch

___
Python tracker 

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



[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-24 Thread INADA Naoki

INADA Naoki added the comment:

Python 3 would have #21963 too. If we can fix it, we can fix this issue
too.

--

___
Python tracker 

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



[issue28798] Describe character as a string of length one instead of size one in tutorial

2016-11-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

FWIW, I think the current wording is fine and do not want to start an 
unnecessary misadventure of finding every place we say size and replacing it 
with length.   In general, we use either term almost interchangeable (i.e. the 
size of dictionary is determined by "len(d)").

The name of sys.getsizeof() may not have been apt, but it seems to have caused 
no confusion in practice.

We do appreciate the suggestion, but will respectfully decline.

--
nosy: +rhettinger
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue28798] Describe character as a string of length one instead of size one in tutorial

2016-11-24 Thread Liang-Bo Wang

New submission from Liang-Bo Wang:

In Tutorial "An Informal Introduction" section, character is introduced as a 
string of size one. It may be true for python 2.x, where str can be interpreted 
as bytes. However in Python 3, strings are unicode thus the size and the length 
of a string are usually not the same. Also, using size of a string can be 
confused with the result returned by sys.getsizeof(mystr), where 
sys.getsizeof('a') != 1. 

Therefore using "a string of length one" to describe a character may be less 
confusing. The patch attached changes the wording.

--
assignee: docs@python
components: Documentation
files: docs_tutorial_introduction_str.diff
keywords: patch
messages: 281678
nosy: ccwang002, docs@python
priority: normal
severity: normal
status: open
title: Describe character as a string of length one instead of size one in 
tutorial
versions: Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45634/docs_tutorial_introduction_str.diff

___
Python tracker 

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



[issue28749] Fixed the documentation of the mapping codec APIs

2016-11-24 Thread Xiang Zhang

Xiang Zhang added the comment:

v2 LGTM.

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-24 Thread INADA Naoki

INADA Naoki added the comment:

I'm sorry, I had uploaded script with wrong parameter.
Additionally, this script fails by chance.

$ while true; do python2 28673-reproduce2.py || break; echo -n .; done
.Segmentation fault (core dumped)

--
Added file: http://bugs.python.org/file45633/28673-reproduce2.py

___
Python tracker 

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



[issue28797] Modifying class __dict__ inside __set_name__

2016-11-24 Thread Emanuel Barry

Changes by Emanuel Barry :


--
nosy: +Martin.Teichmann

___
Python tracker 

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



[issue28797] Modifying class __dict__ inside __set_name__

2016-11-24 Thread Emanuel Barry

Emanuel Barry added the comment:

Ow!

I can confirm the bug still happens on latest trunk. Nice finding!

--
nosy: +ebarry, ned.deily, rhettinger, serhiy.storchaka
priority: normal -> release blocker
stage:  -> needs patch

___
Python tracker 

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



[issue28797] Modifying class __dict__ inside __set_name__

2016-11-24 Thread Wombatz

New submission from Wombatz:

This behavior occurs at least in python-3.6.0b3 and python-3.6.0b4.

Modifying the class __dict__ inside the __set_name__ method of a descriptor 
that is used inside that class can lead to a bug that possibly prevents other 
descriptors from being initialized (the call to their __set_name__ is 
prevented).

That happens because internally the cpython interpreter iterates the class 
__dict__ when calling all the __set_name__ methods. Changing the class __dict__ 
while iterating it leads to undefined behavior. This is the line in the source 
code https://github.com/python/cpython/blob/master/Objects/typeobject.c#L7010

See the attached file for an example where the bug can be observed. It defines 
a "desc" class that implements the __set_name__ method where it prints the name 
and modifies the class __dict__ of the containing class. Later a class is 
defined that has multiple instances of the "desc" class as class attributes. 
Depending on the number of attributes not all of them are initialized.

When you see the underlying C-Code the reason for this behavior is obvious but 
in python itself the problem might not be apparent.

To fix this bug the class __dict__ could be cashed and then the __set_name__ 
methods could be called while iterating over that copy.

--
components: Interpreter Core
files: reproduce.py
messages: 281674
nosy: Wombatz
priority: normal
severity: normal
status: open
title: Modifying class __dict__ inside __set_name__
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file45632/reproduce.py

___
Python tracker 

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



[issue28796] FIX warnings in documentation build

2016-11-24 Thread Julien Palard

Changes by Julien Palard :


--
keywords: +patch
Added file: http://bugs.python.org/file45631/issue28796.diff

___
Python tracker 

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



[issue28796] FIX warnings in documentation build

2016-11-24 Thread Julien Palard

New submission from Julien Palard:

Just a little patch to fix 4 doc build warning.

--
messages: 281673
nosy: mdk
priority: normal
severity: normal
status: open
title: FIX warnings in documentation build

___
Python tracker 

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



[issue28796] FIX warnings in documentation build

2016-11-24 Thread Julien Palard

Changes by Julien Palard :


--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
versions: +Python 3.7

___
Python tracker 

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



[issue28753] Clinic: Converting Your First Function is not up to date

2016-11-24 Thread Julien Palard

Julien Palard added the comment:

After a discussion with Victor, I propose a patch to update the documentation 
allowing users strictly following the doc to let Clinic use FASTCALLs, it's a 
nice performance gain, and it's safe to let clinic use it.

--
Added file: http://bugs.python.org/file45630/issue28753.fastcall.diff

___
Python tracker 

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



[issue28795] Misleading stating, that SIGINT handler is installed by default

2016-11-24 Thread Julien Palard

Julien Palard added the comment:

Maybe something like:

> Python installs a small number of signal handlers by default: SIGPIPE is 
> ignored (so write errors on pipes and sockets can be reported as ordinary 
> Python exceptions) and SIGINT (if parent process has not changed it) is 
> translated into a KeyboardInterrupt exception. All of these can be overridden.

--
nosy: +mdk

___
Python tracker 

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



[issue28793] Copy-paste error in collections.abc docs for AsyncGenerator

2016-11-24 Thread Julien Palard

Julien Palard added the comment:

Proposed a simple patch.

Error was introduced by "Issue #28720: Add collections.abc.AsyncGenerator.", 
git commit c75c1f44, hg changeset 105163. I reread it and did not find other 
occurrences of the error.

--
keywords: +patch
nosy: +mdk
Added file: http://bugs.python.org/file45629/issue28793.diff

___
Python tracker 

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



[issue28754] Argument Clinic for bisect.bisect_left

2016-11-24 Thread Julien Palard

Julien Palard added the comment:

New simplier patch thanks to https://bugs.python.org/issue28792. Also corrected 
docstrings.

Also ran a micro-benchmark of `bisect.bisect(foo, "c")` with `foo = 
list("abcdef")`:
Median +- std dev: [before] 434 ns +- 17 ns -> [after] 369 ns +- 22 ns: 1.18x 
faster

FTR: ./python -m perf timeit -s 'import bisect; foo = list("abdef")' 
'bisect.bisect(foo, "c")' -o after.json --inherit=PYTHONPATH --affinity=2,3

--
Added file: http://bugs.python.org/file45628/issue28754-5.diff

___
Python tracker 

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



[issue28685] Optimizing list.sort() by performing safety checks in advance

2016-11-24 Thread STINNER Victor

STINNER Victor added the comment:

list.sort() is a very sensitive function. Maybe (dummy idea?), you may start 
with a project on PyPI, play with it and try it on large applications 
(Django?). And come back later once it's battle tested?

--

___
Python tracker 

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



[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread STINNER Victor

STINNER Victor added the comment:

I pushed quickly my patch, so Julien can rebase his patch on top of that. I 
like his patch because it changes bisect to use FASTCALL which makes bisect 
faster!

--

___
Python tracker 

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



[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread STINNER Victor

Changes by STINNER Victor :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 45713818fd81 by Victor Stinner in branch 'default':
Issue #28792: Remove aliases from _bisect
https://hg.python.org/cpython/rev/45713818fd81

--
nosy: +python-dev

___
Python tracker 

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



[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-24 Thread Irmen de Jong

Irmen de Jong added the comment:

The 28673-reproduce.py didn't crash on any of the systems I've tried it on. Are 
you sure it is complete? It looks like a part is missing.

--

___
Python tracker 

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



[issue28795] Misleading stating, that SIGINT handler is installed by default

2016-11-24 Thread Jan Velecký

New submission from Jan Velecký:

Hello,
documentation (https://docs.python.org/2/library/signal.html) states, that 
Python by default installs SIGINT handler which cause KeyboardInterrupt. This 
is not true everytime according to implementation.
"Python installs a small number of signal handlers by default: SIGPIPE ... and 
SIGINT is translated into a KeyboardInterrupt exception."
It should also mention this "SIGINT is installed only, when default handler is 
set at startup.". Because user can run python script from non-interative shell 
as background task and SIGINT handler is not installed, regardless although 
user does not change Python default behaviour.

Related SO:
http://stackoverflow.com/questions/40775054/capturing-sigint-using-keyboardinterrupt-exception-works-in-terminal-not-in-scr/40785230?noredirect=1

--
assignee: docs@python
components: Documentation
messages: 281664
nosy: Jan Velecký, docs@python
priority: normal
severity: normal
status: open
title: Misleading stating, that SIGINT handler is installed by default
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



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

2016-11-24 Thread STINNER Victor

STINNER Victor added the comment:

This issue is done: see issue #27129 for the next step.

--
dependencies:  -Wordcode, part 2
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue28794] inspect.isasyncgen and inspect.isasyncgenfunction aren't documented

2016-11-24 Thread Nathaniel Smith

New submission from Nathaniel Smith:

The string "isasync" does not appear to occur on this page: 
https://docs.python.org/3.6/library/inspect.html

--
assignee: docs@python
components: Documentation
messages: 281662
nosy: docs@python, njs, yselivanov
priority: normal
severity: normal
status: open
title: inspect.isasyncgen and inspect.isasyncgenfunction aren't documented
versions: Python 3.6, Python 3.7

___
Python tracker 

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



[issue28793] Copy-paste error in collections.abc docs for AsyncGenerator

2016-11-24 Thread Nathaniel Smith

New submission from Nathaniel Smith:

There's a small copy-paste error in the docs for collections.abc.AsyncGenerator 
-- it's called collections.abc.Generator:

"class collections.abc.Generator

ABC for asynchronous generator classes that implement the protocol defined 
in PEP 525 and PEP 492.

New in version 3.6.
"

I can't link directly to it, because sphinx is confused about there being 
multiple definitions for collections.abc.Generator, but this link is close: 
https://docs.python.org/3.7/library/collections.abc.html#collections.abc.AsyncIterator

--
messages: 281661
nosy: njs, yselivanov
priority: normal
severity: normal
status: open
title: Copy-paste error in collections.abc docs for AsyncGenerator
versions: Python 3.6, Python 3.7

___
Python tracker 

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



[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +xiang.zhang

___
Python tracker 

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



[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue28782] SEGFAULT when running a given coroutine

2016-11-24 Thread STINNER Victor

STINNER Victor added the comment:

Thanks Martin Richard to continue to find (and report!) crazy corner cases ;-)

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread STINNER Victor

STINNER Victor added the comment:

Oh, bisect() was renamed to bisect_right() and insort() renamed to 
insort_right() in the changeset 67b3ac439f64 of Python 2.1. The aliases created 
for "backward compatibility" are for compatibility with... Python 2.0 :-)

The aliases were never deprecated. Maybe we can also remove/rephrase the 
"backward compatibility" comment.

--

___
Python tracker 

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



[issue15533] subprocess.Popen(cwd) documentation

2016-11-24 Thread Wolfgang Maier

Wolfgang Maier added the comment:

Ping. This still isn't fixed several years later, i.e., the documentation still 
describes the POSIX, but not the Windows behavior.
See also issue20927, which reports this as a bug.

--
nosy: +wolma
versions: +Python 3.5, Python 3.6, Python 3.7 -Python 2.7, Python 3.2, Python 
3.3

___
Python tracker 

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



[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2016-11-24 Thread Martin Panter

Changes by Martin Panter :


--
dependencies: +Argument Clinic for bisect.bisect_left

___
Python tracker 

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



[issue28782] SEGFAULT when running a given coroutine

2016-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 303cedfb9e7a by Victor Stinner in branch '3.6':
Fix _PyGen_yf()
https://hg.python.org/cpython/rev/303cedfb9e7a

--
nosy: +python-dev

___
Python tracker 

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



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

2016-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 303cedfb9e7a by Victor Stinner in branch '3.6':
Fix _PyGen_yf()
https://hg.python.org/cpython/rev/303cedfb9e7a

--

___
Python tracker 

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



[issue12844] Support more than 255 arguments

2016-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Since issue27213 the bytecode no longer have a limitation for numbers of 
positional or keyword arguments.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue28343] Bad encoding alias cp936 -> gbk: euro sign

2016-11-24 Thread Mingye Wang

Changes by Mingye Wang :


--
versions:  -Python 3.3, Python 3.4

___
Python tracker 

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



[issue28693] No EUDC (HKSCS) support in Windows cp950

2016-11-24 Thread Mingye Wang

Mingye Wang added the comment:

Windows cp950's EUDC<->PUA mapping is not specific to HKSCS.

--
title: No HKSCS support in Windows cp950 -> No EUDC (HKSCS)  support in Windows 
cp950

___
Python tracker 

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



[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread Julien Palard

Julien Palard added the comment:

LGTM

--

___
Python tracker 

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



[issue28754] Argument Clinic for bisect.bisect_left

2016-11-24 Thread STINNER Victor

STINNER Victor added the comment:

Hum, I dislike your changes on test_bisect.py: I don't see why Argument Clinic 
would have to modify tests!?

I created issue #28792: "bisect: implement aliases in Python, remove C aliases".

--
nosy: +haypo

___
Python tracker 

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



[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread STINNER Victor

New submission from STINNER Victor:

Attached patch simplifies the _bisect module: remove _bisect.bisect and 
_bisect.insort aliases. Aliases are created in Lib/bisect.py.

I wrote the patch to prepare the C code for Argument Clinic, see issue #28754.

Note: Lib/test/test_bisect.py already contains two unit tests:

def test_backcompatibility(self):
self.assertEqual(self.module.bisect, self.module.bisect_right)

def test_backcompatibility(self):
self.assertEqual(self.module.insort, self.module.insort_right)

--
files: bisect.patch
keywords: patch
messages: 281651
nosy: haypo, larry, mdk, rhettinger
priority: normal
severity: normal
status: open
title: bisect: implement aliases in Python, remove C aliases
versions: Python 3.7
Added file: http://bugs.python.org/file45627/bisect.patch

___
Python tracker 

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



[issue28791] update sqlite to 3.15.2

2016-11-24 Thread Big Stone

Changes by Big Stone :


--
title: update sqlite to 3.14.2 -> update sqlite to 3.15.2

___
Python tracker 

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



[issue28791] update sqlite to 3.14.2

2016-11-24 Thread Big Stone

New submission from Big Stone:

I fear it's too late for Python-3.6, but sqlite-3.15.1 fixes an old annoying 
bug (hidden since 3.8.0), and arriving tomorrow (nov.24th) sqlite-3.15.2 should 
be the well ".2" stabilized version of recent 3.15 improvements towards SQL 
standard (support for row values)

If there is no special bugs left in Python-3.6.0b4 and everybody is happy, I 
would suggest you upgrade from sqlite-3.14.2 to sqlite-3.15.2

--
messages: 281650
nosy: Big Stone
priority: normal
severity: normal
status: open
title: update sqlite to 3.14.2
versions: Python 3.6, Python 3.7

___
Python tracker 

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



[issue28790] Error when using Generic and __slots__

2016-11-24 Thread Guido van Rossum

Changes by Guido van Rossum :


--
nosy: +levkivskyi

___
Python tracker 

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



[issue28790] Error when using Generic and __slots__

2016-11-24 Thread Guido van Rossum

New submission from Guido van Rossum:

Proxy for https://github.com/python/typing/issues/332 (issue) and 
https://github.com/python/typing/pull/334 (fix).

"""
from typing import Generic, TypeVar

class C(Generic[TypeVar('T')]):
__slots__ = ('potato',)

# ValueError: 'potato' in __slots__ conflicts with class variable
C[int]

This is because bare C is created with a class member descriptor potato, and 
instantiating it tries to create a class with all the attributes in C.
"""

@ned, I'll leave it up to you whether this is of sufficient severity to put in 
3.6rc1 or not.

Do I need to attach the fix as a diff to this bug?

--
assignee: gvanrossum
messages: 281649
nosy: gvanrossum, ned.deily
priority: normal
severity: normal
status: open
title: Error when using Generic and __slots__
versions: Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue28773] typing.FrozenSet missing in documentation.

2016-11-24 Thread Guido van Rossum

Guido van Rossum added the comment:

Thanks! I pushed this into 3.5, then merged into 3.6 and default. Is that the 
right procedure still?

--
resolution:  -> fixed
stage: patch review -> commit review
status: open -> closed

___
Python tracker 

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



[issue28773] typing.FrozenSet missing in documentation.

2016-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7059e68db068 by Guido van Rossum in branch '3.6':
Issue #28773: Add typing.FrozenSet docs. (Manuel Krebber) (3.5->3.6)
https://hg.python.org/cpython/rev/7059e68db068

New changeset 00bfe5bd3553 by Guido van Rossum in branch 'default':
Issue #28773: Add typing.FrozenSet docs. (Manuel Krebber) (3.6->3.7)
https://hg.python.org/cpython/rev/00bfe5bd3553

--

___
Python tracker 

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



[issue28773] typing.FrozenSet missing in documentation.

2016-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5d83b6a9b568 by Guido van Rossum in branch '3.5':
Issue #28773: Add typing.FrozenSet docs. (Manuel Krebber)
https://hg.python.org/cpython/rev/5d83b6a9b568

--
nosy: +python-dev

___
Python tracker 

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



[issue28775] Option to set startup directory in IDLE

2016-11-24 Thread Nofar Schnider

Changes by Nofar Schnider :


--
nosy: +Nofar Schnider

___
Python tracker 

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



[issue28775] Option to set startup directory in IDLE

2016-11-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Terry, if you're open to it, I would like to have one of our new aspiring core 
developers work on this patch under your direction.  Nofar Schnider has 
expressed an interest.

--

___
Python tracker 

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



[issue28782] SEGFAULT when running a given coroutine

2016-11-24 Thread Yury Selivanov

Yury Selivanov added the comment:

LGTM

--

___
Python tracker 

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



[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e11df6aa5bf1 by Raymond Hettinger in branch '3.6':
Issue #27100:  Silence deprecation warning in Lib/test/test_with.py
https://hg.python.org/cpython/rev/e11df6aa5bf1

--

___
Python tracker 

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



[issue28781] On Installation of 3.5 Python get error message

2016-11-24 Thread Steve Dower

Steve Dower added the comment:

Oh wow, I've never seen anything like this before. It looks like it's really 
confused about whether you've installed for all users or not.

I wish I knew how you got into this state, because I'd like to be able to 
prevent it. I guess it's related to the current issue where the install 
registration is always for the current user, even when the install is for all 
users, but it still shouldn't be possible to get into this state.

As far as cleaning up goes, try running the following commands from an elevated 
command prompt and then doing another install/repair. (Some of them may fail, 
which is okay.)

msiexec /quiet /x {EB0611B2-7F10-4D97-BCF2-DCAAB1199498}
msiexec /quiet /x {5DB2183B-62D3-407F-BBC1-EAD2F36283FA}
msiexec /quiet /x {33B10015-A9B1-4210-B50A-26C6443979B0}
msiexec /quiet /x {FCBB04F4-D2CF-4F55-BE92-B3898696B318}
msiexec /quiet /x {9D50A6D7-410A-4469-87B7-35FA84CBD479}
msiexec /quiet /x {1FBA5182-78DD-4940-9F06-96E5042B7061}
msiexec /quiet /x {E6DEBF43-7ACF-4E88-9BBF-9B5945683281}
msiexec /quiet /x {C1153533-FDC4-4922-892D-B71810F69566}
msiexec /quiet /x {9ADF9987-3327-48C6-91B3-B10900366491}
msiexec /quiet /x {7E08C4EE-B1C7-4138-8227-7CD3837636AA}
reg delete HKCU\Software\Python\PythonCore\3.5-32\InstalledFeatures /f
reg delete HKLM\Software\Python\PythonCore\3.5-32\InstalledFeatures /f /reg:32

--

___
Python tracker 

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



[issue28694] tkinter interface to fontchooser

2016-11-24 Thread Lance Ware

Lance Ware added the comment:

Good points, Zachary.

Regarding the commondialog.Dialog class, I think it would need to be enhanced 
to make sense using it with Fontchooser. It really doesn't do a whole lot, and 
the awful kludge in the show method (creating a Frame widget just so that some 
low-level operations can be performed) is repugnant to me. I think the whole 
thing is pretty out-of-date.

With the Font class, perhaps some of its functionality can be used. I will need 
to better understand the architecture of Font and see what I can do with it.

I think another issue that needs to be addressed is the modal/non-modal aspect 
of Tk fontchooser. I have access only to Windows OS, where it is modal. I have 
read that it is non-modal on Mac and perhaps other platforms. If that is the 
case, then the show method may not work properly on those other platforms. On 
Windows, the Tk command "tk fontchooser show" does not return control to the 
caller until after the user has clicked the OK or Cancel buttons. If it does 
return immediately on other platforms, then the show method may need do an 
update loop (or something better?) to keep the behavior consistent on the 
Python side.

--

___
Python tracker 

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



[issue28789] valgrind shows "invalid file descriptor" when calling platform.system() on my machine.

2016-11-24 Thread Mathieu Duponchelle

New submission from Mathieu Duponchelle:

I'm using Fedora 23.

 meh  ~  1  valgrind python3 -c "import platform; print(platform.system())"
==10093== Memcheck, a memory error detector
==10093== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==10093== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==10093== Command: python3 -c import\ platform;\ print(platform.system())
==10093== 
==10094== Warning: invalid file descriptor 1024 in syscall close()
==10094== Warning: invalid file descriptor 1025 in syscall close()
==10094== Warning: invalid file descriptor 1026 in syscall close()
==10094== Warning: invalid file descriptor 1027 in syscall close()
==10094==Use --log-fd= to select an alternative log fd.
==10094== Warning: invalid file descriptor 1028 in syscall close()
==10094== Warning: invalid file descriptor 1029 in syscall close()
Linux
==10093== 
==10093== HEAP SUMMARY:
==10093== in use at exit: 861,318 bytes in 5,903 blocks
==10093==   total heap usage: 71,738 allocs, 65,835 frees, 10,611,196 bytes 
allocated
==10093== 
==10093== LEAK SUMMARY:
==10093==definitely lost: 0 bytes in 0 blocks
==10093==indirectly lost: 0 bytes in 0 blocks
==10093==  possibly lost: 326,619 bytes in 1,420 blocks
==10093==still reachable: 534,699 bytes in 4,483 blocks
==10093== suppressed: 0 bytes in 0 blocks
==10093== Rerun with --leak-check=full to see details of leaked memory
==10093== 
==10093== For counts of detected and suppressed errors, rerun with: -v
==10093== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
 meh  ~  1  python3 --version
Python 3.4.3
 meh  ~  1  

--
components: Library (Lib)
messages: 281640
nosy: Mathieu_Du
priority: normal
severity: normal
status: open
title: valgrind shows "invalid file descriptor" when calling platform.system() 
on my machine.
versions: Python 3.4

___
Python tracker 

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



[issue28754] Argument Clinic for bisect.bisect_left

2016-11-24 Thread Julien Palard

Changes by Julien Palard :


Added file: http://bugs.python.org/file45626/issue28754-4.diff

___
Python tracker 

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



[issue28518] execute("begin immediate") throwing OperationalError

2016-11-24 Thread Ned Deily

Ned Deily added the comment:

Also, if there is indeed a suspected error in the underlying library, has the 
issue been reported to the SQLite project?

--

___
Python tracker 

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



[issue28518] execute("begin immediate") throwing OperationalError

2016-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Sorry, I'm not experienced with sqlite3, but in what circumstances 
conn.execute('begin immediate') makes sense? Could you please provide a larger 
example where it is needed?

--

___
Python tracker 

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



[issue28714] Addition to Documentation of configparser.ConfigParser.write()

2016-11-24 Thread George Fischhof

George Fischhof added the comment:

Hi,

issue 28788 created as feature request

BR,
George

--
status: open -> closed

___
Python tracker 

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



[issue28788] Feature request: ConfigParser should be able to write config to a given filename, not only into file object

2016-11-24 Thread George Fischhof

New submission from George Fischhof:

Hi There,

I started to use ConfigParser, and found that it has no write to file_name 
option, but xml paarser (ElementTree) has.

This way ConfigParser works different than xml parsers, as when I use 
elementtree.write it will create a file with full and valid xml content.

But ConfigParser is "able" ;-) to create file with invalid content (for example 
(this was my findings) creates duplicated sections. Because the handling of the 
file is in the user's hand.

So it would be good for ConfigParser to handle file writing and the user!s code 
would became simplier:

Feature request:
ConfigParser should be able to write config to a given filename, not only into 
file object.
(Like xml parser)

Kind regards,
George Fischhof

--
components: Library (Lib)
messages: 281636
nosy: georgefischhof
priority: normal
severity: normal
status: open
title: Feature request: ConfigParser should be able to write config to a given 
filename, not only into file object
type: enhancement
versions: Python 3.5

___
Python tracker 

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



[issue28782] SEGFAULT when running a given coroutine

2016-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

pygen_yf-2.patch LGTM.

Agreed about tests.

--
assignee:  -> haypo
stage:  -> commit review

___
Python tracker 

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



[issue28714] Addition to Documentation of configparser.ConfigParser.write()

2016-11-24 Thread R. David Murray

R. David Murray added the comment:

That would be a separate issue (a feature request).  It would make sense, since 
there is already a read_file method.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue28518] execute("begin immediate") throwing OperationalError

2016-11-24 Thread R. David Murray

R. David Murray added the comment:

I'm going to mark this as a release blocker because it is a regression.  Ned 
may or may not agree.  What is needed is for someone to propose a patch.

--
nosy: +ned.deily, r.david.murray
priority: normal -> release blocker
versions: +Python 3.7

___
Python tracker 

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



[issue28782] SEGFAULT when running a given coroutine

2016-11-24 Thread STINNER Victor

STINNER Victor added the comment:

Updated patch. I added a NEWS entry and the two assertions from  lasti.patch. 
These assertions are basic sanity checks, not directly related to this issue, 
they shouldn't harm. A started frame must never go back to the not-started 
state (f_lasti < 0).

Yury: "How about we commit pygen_yf.patch to 3.6 and whatever else in 3.7?"

Wordcode is already a massive change in our bytecode, I would prefer to not 
touch f_lasti just as a late update of WORDCODE in 3.7.

I'm ok to keep f_lasti == -1 for frames not started yet.


Serhiy: "I prefer pygen_yf.patch (with addressing Yury's suggestions)."

Ok, fine. I'm also more confident in smaller changes when we are very close to 
the final release! So let's forget lasti.patch ;-) (Sorry Demur!)

--

FYI attached test.py reproduces the bug because Cursor._read_data() starts with 
the instruction  "SETUP_LOOP 72" and 72 is the code of the operation YIELD_FROM 
:-)

To reproduce the bug, you must have a code object where the second byte is 72. 
It's not easy to control the generated bytecode from the Python code, so I 
decided to not write an unit test for this bug.

--
Added file: http://bugs.python.org/file45625/pygen_yf-2.patch

___
Python tracker 

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



[issue28714] Addition to Documentation of configparser.ConfigParser.write()

2016-11-24 Thread George Fischhof

George Fischhof added the comment:

Hi Berker, 

It is true, I agree ;-)

But this way ConfigParser works different than xml parsers (for example 
elementtree from system lib), as when I use elementtree.write it wil create a 
file with full and valid xml content.

But ConfigParser is "able" ;-) to create file with invalid content (for example 
(this was my findings) creates duplicated sections.

So it could be a feature request for ConfigParser:
It should be able to write config to a given filename, not only into file 
object.
(Like xml parser)

Kind regards,
George

--

___
Python tracker 

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



[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-24 Thread INADA Naoki

INADA Naoki added the comment:

I can't get same C traceback yet.
But attached script segfaults by different C traceback.

I think this issue is dup of #1856

--
Added file: http://bugs.python.org/file45624/28673-reproduce.py

___
Python tracker 

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



[issue28749] Fixed the documentation of the mapping codec APIs

2016-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Updated patch addresses Xiang's and Victor's comments.

--
Added file: http://bugs.python.org/file45623/docs-PyUnicode_Translate-2.patch

___
Python tracker 

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



[issue28785] Clarify the behavior of NotImplemented

2016-11-24 Thread Max

Max added the comment:

Martin - what you suggest is precisely what I had in mind (but didn't phrase it 
as well):

> to document the above sort of behaviour as being directly associated with 
> operations like as == and !=, and only indirectly associated with the 
> NotImplemented object and the __eq__() method

Also a minor typo: you meant "If that call returns NotImplemented, the first 
fallback is to try the *reverse* call."

--

___
Python tracker 

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



[issue28787] Out of tree --with--dtrace builds fail with a traceback

2016-11-24 Thread Charalampos Stratakis

New submission from Charalampos Stratakis:

By invoking an out of tree build of python with the --with-dtrace flag enabled, 
make fails with an error.

Create a new folder at the source directory:
$ mkdir _build && cd _build
$ ../configure --with-dtrace
$ make

/usr/bin/dtrace  -o Include/pydtrace_probes.h -h -s ../Include/pydtrace.d
Traceback (most recent call last):
  File "/usr/bin/dtrace", line 440, in 
sys.exit(main())
  File "/usr/bin/dtrace", line 385, in main
providers.probe_write(s_filename, filename + suffix)
  File "/usr/bin/dtrace", line 181, in probe_write
hdr = open(header, mode='w')
FileNotFoundError: [Errno 2] No such file or directory: 
'Include/pydtrace_probes.h'
Makefile:896: recipe for target 'Include/pydtrace_probes.h' failed
make: *** [Include/pydtrace_probes.h] Error 1

This is because the Include directory doesn't exist.

Attaching a patch to fix this.

--
components: Build
files: create-Include-dir-to-properly-generate-pydtrace_probes.h-file.patch
keywords: patch
messages: 281627
nosy: cstratak
priority: normal
severity: normal
status: open
title: Out of tree --with--dtrace builds fail with a traceback
versions: Python 3.6, Python 3.7
Added file: 
http://bugs.python.org/file45622/create-Include-dir-to-properly-generate-pydtrace_probes.h-file.patch

___
Python tracker 

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



[issue28518] execute("begin immediate") throwing OperationalError

2016-11-24 Thread Florian Schulze

Florian Schulze added the comment:

How do we proceed from here? The Python 3.6.0rc1 is looming. If this is a bug 
in sqlite, then we need a workaround. We can't wait for a fix in sqlite, 
because it's not bundled with Python and without the fix Python 3.6 breaks with 
older sqlite versions. I'd like to help, but don't know how.

--

___
Python tracker 

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



[issue28785] Clarify the behavior of NotImplemented

2016-11-24 Thread Martin Panter

Martin Panter added the comment:

The documentation of this that comes to mind is spread over 
 and 
.

My understanding of how it works in general is that NotImplemented is just a 
simple object like None. It doesn’t have any special behaviour on its own. 
Similarly, if you call a special method like __eq__() manually, there is no 
fallback, you just get the NotImplemented object. The interpreter calls special 
methods like __eq__() when evaluating expressions, but the specific behaviour 
and how NotImplemented is interpreted varies subtly.

To evaluate a == b, if b’s class is a strict subclass of a’s class, b.__eq__(a) 
is tried first, otherwise a.__eq__(b) is tried first. If that call returns 
NotImplemented, the first fallback is to try the call. Failing that, the final 
fallback is the default behaviour for object() instances.

To evaluate a != b, there is another set of fallbacks in the chain, which is to 
try “not a.__eq__(b)”. So for __eq__(), the fallback depends on the class 
hierarchy, on whether a reversed call has already been made, and on whether you 
are evaluating == or !=.

The documentation for comparison operations was cleaned up a while ago (Issue 
12067). But there is probably more room for improvement. I think the best thing 
would be to document the above sort of behaviour as being directly associated 
with operations like as == and !=, and only indirectly associated with the 
NotImplemented object and the __eq__() method.

--
nosy: +martin.panter

___
Python tracker 

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



[issue28728] test_host_resolution in test_socket fails

2016-11-24 Thread SilentGhost

SilentGhost added the comment:

I get either ('ec2-54-88-107-140.compute-1.amazonaws.com', [], 
['54.88.107.140']) or ('ec2-54-84-80-173.compute-1.amazonaws.com', [], 
['54.84.80.173']).

It indeed seems to be related to ISP, as I get a regular socket.gaierror raised 
when I try this on another machine with a different provider. Naturally, it's 
not related to either 3.6 or 3.7, as I get the same behaviour even with 3.5.

Skipping test might be an option, but one would probably need to wrap all uses 
of gethostbyaddr into a test helper?

--

___
Python tracker 

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



[issue2771] Test issue

2016-11-24 Thread Ezio Melotti

Ezio Melotti added the comment:

Test

--

___
Python tracker 

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



[issue28728] test_host_resolution in test_socket fails

2016-11-24 Thread Martin Panter

Martin Panter added the comment:

I’m curious what the result of gethostbyaddr() is in your case, Silent Ghost.

import socket
socket.gethostbyaddr("::1q")
socket.gethostbyaddr("::1::2")
socket.gethostbyaddr("1:1:1:1:1:1:1:1:1")

On my computer, I get “socket.gaierror: [Errno -2] Name or service not known” 
from each call.

Perhaps this is similar to the problems encountered with test_bad_address() at 
Lib/test/test_urllibnet.py:102

--

___
Python tracker 

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



[issue28781] On Installation of 3.5 Python get error message

2016-11-24 Thread Mark Harris

Mark Harris added the comment:

Thanks for the message. I've tried using repair, reinstalling etc to no effect. 
I've ziped up the files I could find starting with Python in the temp file you 
mentioned.

Thanks again for the help,

Mark

--
Added file: http://bugs.python.org/file45621/Python Text Documents.zip

___
Python tracker 

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



[issue28786] Warnings in Misc/NEWS

2016-11-24 Thread SilentGhost

New submission from SilentGhost:

Couple of entries in Misc/NEWS are causing warnings due to use of double quotes 
instead of backticks for code segments. This patches fixes the formatting.

--
assignee: docs@python
components: Documentation
files: escape.diff
keywords: patch
messages: 281620
nosy: SilentGhost, docs@python
priority: normal
severity: normal
stage: patch review
status: open
title: Warnings in Misc/NEWS
type: behavior
versions: Python 3.7
Added file: http://bugs.python.org/file45620/escape.diff

___
Python tracker 

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



[issue28728] test_host_resolution in test_socket fails

2016-11-24 Thread SilentGhost

SilentGhost added the comment:

> Does test_host_resolution still stably fails?

Yes.

--

___
Python tracker 

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



[issue28564] shutil.rmtree is inefficient due to listdir() instead of scandir()

2016-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Benchmarks show about 20% speed up.

--
Added file: http://bugs.python.org/file45619/bench_rmtree.py

___
Python tracker 

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



[issue28532] Show sys.version when -V option is supplied twice.

2016-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5a29ab5a4785 by INADA Naoki in branch '3.6':
Issue #28532: Add what's new entry for python -VV option
https://hg.python.org/cpython/rev/5a29ab5a4785

New changeset 3f9f13077ca8 by INADA Naoki in branch 'default':
Issue #28532: Add what's new entry for python -VV option
https://hg.python.org/cpython/rev/3f9f13077ca8

--

___
Python tracker 

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



[issue28532] Show sys.version when -V option is supplied twice.

2016-11-24 Thread INADA Naoki

Changes by INADA Naoki :


--
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

___
Python tracker 

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



[issue28785] Clarify the behavior of NotImplemented

2016-11-24 Thread Max

New submission from Max:

Currently, there's no clear statement as to what exactly the fallback is in 
case `__eq__` returns `NotImplemented`.  It would be good to clarify the 
behavior of `NotImplemented`; at least for `__eq__`, but perhaps also other 
rich comparison methods. For example: "When `NotImplemented` is returned from a 
rich comparison method, the interpreter behaves as if the rich comparison 
method was not defined in the first place." See 
http://stackoverflow.com/questions/40780004/returning-notimplemented-from-eq 
for more discussion.

--
assignee: docs@python
components: Documentation
messages: 281616
nosy: docs@python, max
priority: normal
severity: normal
status: open
title: Clarify the behavior of NotImplemented
type: enhancement
versions: Python 3.6

___
Python tracker 

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



[issue28728] test_host_resolution in test_socket fails

2016-11-24 Thread Xiang Zhang

Xiang Zhang added the comment:

> hosts:  files mdns4_minimal [NOTFOUND=return] resolve 
> [!UNAVAIL=return] dns

I think this is the default config. Same as mine. Does test_host_resolution 
still stably fails?

--

___
Python tracker 

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



[issue28728] test_host_resolution in test_socket fails

2016-11-24 Thread SilentGhost

SilentGhost added the comment:

> My guess is you have a plugin which is resolving these ip-address lookalikes.

That probably is the reason. My hosts line looks like:

hosts:  files mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] 
dns

I guess there isn't much that could be done on Python side then and we can 
close the issue?

--

___
Python tracker 

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