[issue27912] Distutils should use warehouse for index

2016-08-31 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Oh, I see this was done in 539b4e7a655 (Python 2.7) and 54bfff5503d3 (Python 
3.3+).

--
resolution:  -> fixed
status: open -> closed
versions: +Python 2.7, Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

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



[issue27912] Distutils should use warehouse for index

2016-08-31 Thread Jason R. Coombs

New submission from Jason R. Coombs:

As pypi.python.org is quickly becoming deprecated and pypi.org is the new best 
recommendation for packages, I recommend that for Python 3.6, the default index 
should be pypi.org.

--
components: Distutils
messages: 274017
nosy: dstufft, eric.araujo, jason.coombs
priority: normal
severity: normal
status: open
title: Distutils should use warehouse for index
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



[issue27904] Let logging format more messages on demand

2016-08-31 Thread koobs

Changes by koobs :


--
nosy: +koobs

___
Python tracker 

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



[issue27910] Doc/library/traceback.rst — references to tuples should be replaced with new FrameSummary object

2016-08-31 Thread Tomas Orsava

Tomas Orsava added the comment:

Hi Berker: It's a bit complicated—this specific issue I opened isn't a 
regression, because it's exactly the change that was intended: Use FrameSummary 
instead of a 4-tuple to pass the frame data.

If you see the last comment for the issue 25573 you linked to, that issue has 
already been resolved by the docs being updated to reflect the new way of 
passing data.

However, that is not to say there can't be regressions connected to this, but 
they have to do with the fact that FrameSummary implements only a subset of 
methods available of tuples. E.g. that FrameSummary does not implement __len__ 
like tuple does, see issue 26502.

--

___
Python tracker 

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



[issue27911] Unnecessary error checks in exec_builtin_or_dynamic

2016-08-31 Thread Xiang Zhang

New submission from Xiang Zhang:

The two PyErr_Occurred check in exec_builtin_or_dynamic are unnecessary. The 
PyModule_Check at the beginning of exec_builtin_or_dynamic has eliminated the 
possibility for PyModule_GetDef/State to fail.

--
components: Interpreter Core
files: exec_built_or_dynamic.patch
keywords: patch
messages: 274015
nosy: brett.cannon, eric.snow, ncoghlan, xiang.zhang
priority: normal
severity: normal
status: open
title: Unnecessary error checks in exec_builtin_or_dynamic
type: enhancement
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file44294/exec_built_or_dynamic.patch

___
Python tracker 

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



[issue27895] Spelling fixes

2016-08-31 Thread R. David Murray

R. David Murray added the comment:

Good point, Martin, but I'd actually be OK with backporting that particular 
one.  It is relatively new, and I doubt anyone is using it.  Sorry for dropping 
the ball on the other issue.

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



[issue22233] http.client splits headers on non-\r\n characters

2016-08-31 Thread R. David Murray

R. David Murray added the comment:

I'm hoping to take a look at all of these at the core sprint next week.

--

___
Python tracker 

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



[issue27910] Doc/library/traceback.rst — references to tuples should be replaced with new FrameSummary object

2016-08-31 Thread Berker Peksag

Berker Peksag added the comment:

I think we need to decide whether this is a documentation bug or a regression 
in traceback module.  See also issue 25573 for a similar report.

--
nosy: +berker.peksag, r.david.murray, rbcollins
stage: commit review -> patch review

___
Python tracker 

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



[issue27910] Doc/library/traceback.rst — references to tuples should be replaced with new FrameSummary object

2016-08-31 Thread SilentGhost

SilentGhost added the comment:

LGTM.

--
nosy: +SilentGhost
stage: patch review -> commit review

___
Python tracker 

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



[issue27910] Doc/library/traceback.rst — references to tuples should be replaced with new FrameSummary object

2016-08-31 Thread SilentGhost

Changes by SilentGhost :


--
stage:  -> patch review
type:  -> behavior

___
Python tracker 

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



[issue27910] Doc/library/traceback.rst — references to tuples should be replaced with new FrameSummary object

2016-08-31 Thread Tomas Orsava

New submission from Tomas Orsava:

In the documentation for the `traceback` module, the definitions of functions 
`extract_tb` [0], `format_list` [1] and classmethod `from_list` [2] mention the 
old style (4-)tuples that these functions used to return or accept.

Since Python 3.5, however, they return or accept a FrameSummary object instead 
of the 4-tuple, or a StackSummary object instead of a list of 4-tuples.

I'm including a patch that fixes these definitions to make them reflect the new 
reality.

[0] https://docs.python.org/3.6/library/traceback.html#traceback.extract_tb
[1] https://docs.python.org/3.6/library/traceback.html#traceback.format_list
[2] 
https://docs.python.org/3.6/library/traceback.html#traceback.StackSummary.from_list

--
assignee: docs@python
components: Documentation
files: traceback-doc.patch
keywords: patch
messages: 274010
nosy: docs@python, torsava
priority: normal
severity: normal
status: open
title: Doc/library/traceback.rst — references to tuples should be replaced with 
new FrameSummary object
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file44293/traceback-doc.patch

___
Python tracker 

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



[issue24139] Use sqlite3 extended error codes

2016-08-31 Thread Dima Tisnek

Dima Tisnek added the comment:

I meant "the patch makes sense in itself".

--

___
Python tracker 

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



[issue24139] Use sqlite3 extended error codes

2016-08-31 Thread Dima Tisnek

Dima Tisnek added the comment:

Aviv the patch makes in itself.

Are the changes in the other ticket needed to implement new tests?
Or is it possible to include tests here?

--

___
Python tracker 

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



[issue27904] Let logging format more messages on demand

2016-08-31 Thread SilentGhost

Changes by SilentGhost :


--
resolution: fixed -> 
stage: resolved -> patch review
status: closed -> open
type: performance -> behavior

___
Python tracker 

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



[issue27909] Py_INCREF(NULL) in _imp.create_builtin

2016-08-31 Thread Xiang Zhang

New submission from Xiang Zhang:

Just as the patch shows, when PyErr_Occurred() returns true mod is NULL, then 
Py_INCREF(mod) will crash. Replace it with Py_XINCREF.

--
components: Interpreter Core
files: create_builtin.patch
keywords: patch
messages: 274007
nosy: brett.cannon, eric.snow, ncoghlan, xiang.zhang
priority: normal
severity: normal
status: open
title: Py_INCREF(NULL) in _imp.create_builtin
type: crash
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file44292/create_builtin.patch

___
Python tracker 

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



[issue27904] Let logging format more messages on demand

2016-08-31 Thread Xiang Zhang

Xiang Zhang added the comment:

Vinay, this patch introduces regressions.

You can either revert this part:

--- a/Lib/distutils/cmd.py
+++ b/Lib/distutils/cmd.py
@@ -329,8 +329,7 @@ class Command:
 # -- External world manipulation ---

 def warn(self, msg):
-log.warn("warning: %s: %s\n" %
-(self.get_command_name(), msg))
+log.warn("warning: %s: %s\n", self.get_command_name(), msg)

 def execute(self, func, args, msg=None, level=1):
 util.execute(func, args, msg, dry_run=self.dry_run)

or change the test suites to:

diff -r 1340e298aa7e Lib/distutils/tests/test_build_py.py
--- a/Lib/distutils/tests/test_build_py.py  Wed Aug 31 08:22:29 2016 +0100
+++ b/Lib/distutils/tests/test_build_py.py  Wed Aug 31 16:59:27 2016 +0800
@@ -168,7 +168,8 @@
 finally:
 sys.dont_write_bytecode = old_dont_write_bytecode
 
-self.assertIn('byte-compiling is disabled', self.logs[0][1])
+self.assertIn('byte-compiling is disabled',
+  self.logs[0][1] % self.logs[0][2])
 
 
 def test_suite():
diff -r 1340e298aa7e Lib/distutils/tests/test_install_lib.py
--- a/Lib/distutils/tests/test_install_lib.py   Wed Aug 31 08:22:29 2016 +0100
+++ b/Lib/distutils/tests/test_install_lib.py   Wed Aug 31 16:59:27 2016 +0800
@@ -104,7 +104,8 @@
 finally:
 sys.dont_write_bytecode = old_dont_write_bytecode
 
-self.assertIn('byte-compiling is disabled', self.logs[0][1])
+self.assertIn('byte-compiling is disabled',
+  self.logs[0][1] % self.logs[0][2])
 
 
 def test_suite():

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue27908] del _limbo[self] KeyError

2016-08-31 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +tim.peters

___
Python tracker 

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



[issue27900] ctypes fails to find ncurses via ncursesw on Arch Linux

2016-08-31 Thread SilentGhost

Changes by SilentGhost :


--
nosy: +amaury.forgeotdarc, belopolsky, meador.inge

___
Python tracker 

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



[issue27907] Misspelled variable in test_asyncio/test_events

2016-08-31 Thread SilentGhost

Changes by SilentGhost :


--
components: +Library (Lib)
nosy: +giampaolo.rodola, gvanrossum, haypo, yselivanov
stage:  -> patch review
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



[issue27908] del _limbo[self] KeyError

2016-08-31 Thread SilentGhost

Changes by SilentGhost :


--
components: +Extension Modules
nosy: +brett.cannon
type:  -> behavior

___
Python tracker 

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



[issue27908] del _limbo[self] KeyError

2016-08-31 Thread Dima Tisnek

New submission from Dima Tisnek:

To reproduce:

```
import threading
import time


class U(threading.Thread):
def run(self):
time.sleep(1)
if not x.ident:
x.start()


x = U()
for u in [U() for i in range(1)]: u.start()

time.sleep(10)
```

Chance to reproduce ~20% in my setup.
This script has a data race (check then act on x.ident).
I expected it to occasionally hit `RuntimeError: threads can only be started 
once`

Instead, I get:
```
Unhandled exception in thread started by >
Traceback (most recent call last):
  File "/usr/lib64/python3.5/threading.py", line 882, in _bootstrap
self._bootstrap_inner()
  File "/usr/lib64/python3.5/threading.py", line 906, in _bootstrap_inner
del _limbo[self]
KeyError: 
```

--
components: Library (Lib)
messages: 274005
nosy: Dima.Tisnek
priority: normal
severity: normal
status: open
title: del _limbo[self] KeyError
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



[issue27904] Let logging format more messages on demand

2016-08-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1340e298aa7e by Vinay Sajip in branch 'default':
Closes #27904: Improved logging statements to defer formatting until needed.
https://hg.python.org/cpython/rev/1340e298aa7e

--
nosy: +python-dev
resolution:  -> fixed
stage: patch 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



[issue23591] enum: Add Flags and IntFlags

2016-08-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 39661e2ff030 by Ethan Furman in branch 'default':
issue23591: add Flags, IntFlags, and tests
https://hg.python.org/cpython/rev/39661e2ff030

--
nosy: +python-dev

___
Python tracker 

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



[issue27895] Spelling fixes

2016-08-31 Thread Ville Skyttä

Ville Skyttä added the comment:

@rhettinger, the test_asyncio thing I mentioned is now taken care of in #27907.

--

___
Python tracker 

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



[issue27907] Misspelled variable in test_asyncio/test_events

2016-08-31 Thread Ville Skyttä

New submission from Ville Skyttä:

Simply renaming the variable breaks the test which is why it was left out of 
#27895, this one keeps the test working.

--
files: reponse.patch
keywords: patch
messages: 274001
nosy: scop
priority: normal
severity: normal
status: open
title: Misspelled variable in test_asyncio/test_events
type: enhancement
Added file: http://bugs.python.org/file44291/reponse.patch

___
Python tracker 

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



[issue27904] Let logging format more messages on demand

2016-08-31 Thread SilentGhost

Changes by SilentGhost :


--
nosy: +vinay.sajip
stage:  -> patch review
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



[issue27895] Spelling fixes

2016-08-31 Thread SilentGhost

Changes by SilentGhost :


--
stage:  -> resolved

___
Python tracker 

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



<    1   2