[issue31206] IDLE, configdialog: Factor out HighPage class from ConfigDialog

2017-08-20 Thread Cheryl Sabella

Changes by Cheryl Sabella :


--
pull_requests: +3195

___
Python tracker 

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



[issue31206] IDLE, configdialog: Factor out HighPage class from ConfigDialog

2017-08-20 Thread Cheryl Sabella

Changes by Cheryl Sabella :


--
pull_requests: +3196

___
Python tracker 

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



[issue31206] IDLE, configdialog: Factor out HighPage class from ConfigDialog

2017-08-20 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 3d9c0d498de3245199ca95aba14ce260e7d33489 by Terry Jan Reedy 
(Cheryl Sabella) in branch '3.6':
[3.6] bpo-31206: IDLE: Factor HighPage class from ConfigDialog (GH-3156) (#3159)
https://github.com/python/cpython/commit/3d9c0d498de3245199ca95aba14ce260e7d33489


--

___
Python tracker 

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



[issue31206] IDLE, configdialog: Factor out HighPage class from ConfigDialog

2017-08-20 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 4bfebc63012f0f4e00f6a98c3d96e1c0ebe93408 by Terry Jan Reedy 
(Cheryl Sabella) in branch 'master':
bpo-31206: IDLE: Factor HighPage class from ConfigDialog (#3160)
https://github.com/python/cpython/commit/4bfebc63012f0f4e00f6a98c3d96e1c0ebe93408


--

___
Python tracker 

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



[issue31206] IDLE, configdialog: Factor out HighPage class from ConfigDialog

2017-08-20 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Ditto backport for pr3160.

--

___
Python tracker 

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



[issue30159] gdb autoloading python-gdb.py

2017-08-20 Thread Дилян Палаузов

Дилян Палаузов added the comment:

Alternatively install $(INSTSONAME)-gdb.py into ${LIBDIR} .  ldconfig will 
complain, when called, but this is how gcc and libisl, glib do it .

This is in anycase better than the current approach, as it lets gdb 
automatically load the -gdb.py file.

--

___
Python tracker 

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



[issue31240] Add lazy evaluation support for dict.setdefault()

2017-08-20 Thread Raymond Hettinger

Raymond Hettinger added the comment:

-1 from me as well.

The need has already been fulfilled in other ways (defaultdict and 
__missing__).  I don't think we need yet another way to do it.

Also, I suspect that the benefit of a lazy instantiation would be more than 
offset by cost of passing in the arguments (global variable lookup for the list 
builtin, a load constant for True, and the keyword argument processing).

Lastly, I don't like making the signature more complex or further breaking the 
already loose symmetry with dict.get() and dict.pop().  Likewise, this isn't 
parallel with other tools that take a default argument such as min(), max(), 
getattr(), etc.

--

___
Python tracker 

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



[issue28261] wrong error messages when using PyArg_ParseTuple to parse normal tuples

2017-08-20 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 1d1d3e9db882d78433f5bc8dbe7df929f4b6b5e1 by Serhiy Storchaka 
(Oren Milman) in branch 'master':
bpo-28261: Fixed err msgs where PyArg_ParseTuple is used to parse normal 
tuples. (#3119)
https://github.com/python/cpython/commit/1d1d3e9db882d78433f5bc8dbe7df929f4b6b5e1


--

___
Python tracker 

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



[issue31240] Add lazy evaluation support for dict.setdefault()

2017-08-20 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> rejected
stage:  -> 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



[issue31203] socket.IP_PKTINFO is missing from python

2017-08-20 Thread Florian Hedtstück

Changes by Florian Hedtstück :


--
pull_requests: +3197

___
Python tracker 

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



[issue31170] expat: utf8_toUtf8 cannot properly handle exhausting buffer

2017-08-20 Thread sping

sping added the comment:

Expat 2.2.4 with a fix has been released now: 
https://github.com/libexpat/libexpat/releases

--

___
Python tracker 

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



[issue31241] ast col_offset wrong for list comprehensions, generators and tuples

2017-08-20 Thread Samuel Colvin

New submission from Samuel Colvin:

With Python 3.5 and 3.6 list comprehensions, generators and tuples have the 
col_offset for their ast nodes off by 1:

```
import ast
ast.parse('{a for a in range(3)}').body[0].value.col_offset
>> 0  # set comprehension correct

ast.parse('{a: 1 for a in range(3)}').body[0].value.col_offset
>> 0  # dict comprehension correct

ast.parse('[a for a in range(3)]').body[0].value.col_offset
>> 1  # list comprehension wrong!

ast.parse('(a for a in range(3))').body[0].value.col_offset
>> 1  # generator comprehension wrong!

ast.parse('[1, 2, 3]').body[0].value.col_offset
>> 0  # list correct

ast.parse('{1, 2, 3}').body[0].value.col_offset
>> 0  # set correct

ast.parse('{1: 1, 2: 2, 3: 3}').body[0].value.col_offset
>> 0  # dict correct

ast.parse('(1, 2, 3)').body[0].value.col_offset
>> 1  # tuple wrong!
```

I haven't tried 3.4, the issue could be there too.

There are some other related issues #16806 and #21295 but they don't seem quite 
the same.

--
components: Interpreter Core
messages: 300606
nosy: samuelcolvin
priority: normal
severity: normal
status: open
title: ast col_offset wrong for list comprehensions, generators and tuples
versions: Python 3.5, Python 3.6

___
Python tracker 

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



[issue31206] IDLE, configdialog: Factor out HighPage class from ConfigDialog

2017-08-20 Thread Cheryl Sabella

Changes by Cheryl Sabella :


--
pull_requests: +3198

___
Python tracker 

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



[issue29832] Don't refer to getsockaddrarg in error messages

2017-08-20 Thread Oren Milman

Changes by Oren Milman :


--
pull_requests: +3199

___
Python tracker 

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



[issue31242] Add SSLContext.set_verify_callback()

2017-08-20 Thread Ryan Finnie

New submission from Ryan Finnie:

At the moment, SSLContext.verify_mode() allows for three modes when dealing 
with Purpose.CLIENT_AUTH / server_side=True:

- CERT_NONE (server does not request client certificate, client does not 
provide it)
- CERT_OPTIONAL (server requests client certificate, raises SSLError if 
provided but fails verification, continues if not provided)
- CERT_REQUIRED (server requests client certificate, raises SSLError if 
provided but fails verification, raises SSLError if not provided)

There is currently no way to request a client certificate and manually verify 
it (or ignore it) if it doesn't pass OpenSSL verification.  OpenSSL provides 
SSL_CTX_set_cert_verify_callback for using a custom callback[0], but this is 
not exposed in Python.

It would be nice to have a set_verify_callback() method, similar to how 
set_servername_callback() does it for SSL_CTX_set_tlsext_servername_callback.

[0] https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_verify.html

--
assignee: christian.heimes
components: SSL
messages: 300607
nosy: christian.heimes, rfinnie
priority: normal
severity: normal
status: open
title: Add SSLContext.set_verify_callback()
type: enhancement

___
Python tracker 

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



[issue29832] Don't refer to getsockaddrarg in error messages

2017-08-20 Thread Oren Milman

Oren Milman added the comment:

here is a dirty script to test my PR.

the script contains tests to anything I managed to test using my
Windows 10 and Ubuntu 16.04 VM, i.e. all of the changes, except for
the 'unsupported CAN protocol' message, and the changes of the code
that handles the PF_SYSTEM family.

--
Added file: http://bugs.python.org/file47093/testPatches.py

___
Python tracker 

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



[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2017-08-20 Thread Antoine Pitrou

Antoine Pitrou added the comment:


New changeset 0267128aa4dc7c383c341c19833c5d506eae9c93 by Antoine Pitrou (Segev 
Finer) in branch 'master':
bpo-9566 & bpo-30747: Silence warnings from pyatomic.h macros (#3140)
https://github.com/python/cpython/commit/0267128aa4dc7c383c341c19833c5d506eae9c93


--

___
Python tracker 

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



[issue9566] Compilation warnings under x64 Windows

2017-08-20 Thread Antoine Pitrou

Antoine Pitrou added the comment:


New changeset 0267128aa4dc7c383c341c19833c5d506eae9c93 by Antoine Pitrou (Segev 
Finer) in branch 'master':
bpo-9566 & bpo-30747: Silence warnings from pyatomic.h macros (#3140)
https://github.com/python/cpython/commit/0267128aa4dc7c383c341c19833c5d506eae9c93


--

___
Python tracker 

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



[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2017-08-20 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
resolution:  -> fixed
stage: needs patch -> 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



[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2017-08-20 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Thanks to Segev Finer for submitting the PR which fixed the warnings!

--
nosy: +Segev Finer

___
Python tracker 

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



[issue31206] IDLE, configdialog: Factor out HighPage class from ConfigDialog

2017-08-20 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 24c0c5b48cb996c3ec1800640edff2bfecc36275 by Terry Jan Reedy 
(Cheryl Sabella) in branch '3.6':
[3.6] bpo-31206: IDLE: Factor HighPage class from ConfigDialog (GH-3160) (#3162)
https://github.com/python/cpython/commit/24c0c5b48cb996c3ec1800640edff2bfecc36275


--

___
Python tracker 

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



[issue31206] IDLE, configdialog: Factor out HighPage class from ConfigDialog

2017-08-20 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
resolution:  -> fixed
stage: test needed -> 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



[issue31170] expat: utf8_toUtf8 cannot properly handle exhausting buffer

2017-08-20 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +haypo

___
Python tracker 

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