[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-11 Thread R. David Murray
R. David Murray added the comment: > Why would mypy, flake8 or pip emit DeprecationWarnings? Because they use python features that get deprecated, and the python the user is using to run them gets upgraded. Now, those particular tools probably will get updated

[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-11 Thread Nick Coghlan
Nick Coghlan added the comment: The initial draft of the PEP is up: https://www.python.org/dev/peps/pep-0565/ -- ___ Python tracker

[issue32009] seg fault when using Cntrl-q keymap to exit app

2017-11-11 Thread Martin Panter
Martin Panter added the comment: This looks the same as Issue 25259. The trigger is that multiple lines are generated at the same time, but Python only expects the first line. -- nosy: +martin.panter resolution: -> duplicate stage: -> resolved status: open ->

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2017-11-11 Thread Guido van Rossum
Guido van Rossum added the comment: Yury do you agree this is a bug? Do you have any ideas on how to fix it? -- nosy: +gvanrossum, yselivanov ___ Python tracker

[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-11 Thread Nick Coghlan
Nick Coghlan added the comment: Antoine, I'm a user too, and this single small change will be enough to solve *my* problems, while still addressing Guido's developer tool usability concerns that prompted him to change the default in the first place (see the stdlib-sig thread

[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 12/11/2017 à 00:41, Nick Coghlan a écrit : > > Regarding "Why not revert DeprecationWarning to behaving the same as > FutureWarning?", the rationale is basically the one Brett gave on python-dev > (which was a restatement of the one that

[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-11 Thread Nick Coghlan
Nick Coghlan added the comment: As far as documentation goes, there are the amendments I'm considering: === exception DeprecationWarning Base class for warnings about deprecated features. Visible by default for APIs called from `__main__` modules and

[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-11 Thread Nick Coghlan
Nick Coghlan added the comment: Regarding "Why not revert DeprecationWarning to behaving the same as FutureWarning?", the rationale is basically the one Brett gave on python-dev (which was a restatement of the one that led to the change in python-dev): it's genuinely

[issue21149] logging._removeHandlerRef is not threadsafe during interpreter shutdown

2017-11-11 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed type: -> behavior ___ Python tracker

[issue21149] logging._removeHandlerRef is not threadsafe during interpreter shutdown

2017-11-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset e84f6d3817ad3d18fdfbb5223b8078606166cea0 by Gregory P. Smith in branch '2.7': [2.7] bpo-21149: Workaround a GC finalization bug in logging. (#4368)

[issue32009] seg fault when using Cntrl-q keymap to exit app

2017-11-11 Thread Britton Kerin
New submission from Britton Kerin : This probably applies to more recent version also. It may be a readline bug, but I haven't seen it except when using the python interface, despite using this same .inputrc file with many different command line programs. I've

[issue29181] skip tests that raise PermissionError in test_tarfile (non-root user on Android)

2017-11-11 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4324 ___ Python tracker ___ ___

[issue32008] Example suggest to use a TLSv1 socket

2017-11-11 Thread Kurt Roeckx
New submission from Kurt Roeckx : Here: https://docs.python.org/3/library/ssl.html#ssl.SSLContext.check_hostname And here: https://docs.python.org/2/library/ssl.html#ssl.SSLContext.check_hostname It uses ssl.PROTOCOL_TLSv1, which is a bad example. Please change it to

[issue29180] skip tests that raise PermissionError in test_os (non-root user on Android)

2017-11-11 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4323 ___ Python tracker ___ ___

[issue29184] skip tests of test_socketserver when bind() raises PermissionError (non-root user on Android)

2017-11-11 Thread Xavier de Gaye
Change by Xavier de Gaye : -- versions: -Python 3.6 ___ Python tracker ___ ___

[issue29181] skip tests that raise PermissionError in test_tarfile (non-root user on Android)

2017-11-11 Thread Xavier de Gaye
Change by Xavier de Gaye : -- versions: -Python 3.6 ___ Python tracker ___ ___

[issue29180] skip tests that raise PermissionError in test_os (non-root user on Android)

2017-11-11 Thread Xavier de Gaye
Change by Xavier de Gaye : -- versions: -Python 3.6 ___ Python tracker ___ ___

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I would like to update the `write_utf8` function but I would need to find a > way to wrap `const char* data` as a PyBytes instance without making a memory > copy to be able to pass it to my `_Pickle_write_large_bytes`. You should pass it

[issue31829] Portability issues with pickle

2017-11-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is possible to resolve issue with Unicode strings ending with \r. We can add a special mark in the stream (a combination of opcodes which is no-op) before writing the first Unicode strings ending with \r. If this mark is

[issue32007] nis module fails to build against glibc-2.26

2017-11-11 Thread Mike Gilbert
New submission from Mike Gilbert : The nis extension module fails to build against glibc-2.26 with the "obsolete-rpc" option disabled. Downstream bug report: https://bugs.gentoo.org/631488 glibc-2.26 release notes:

[issue30576] http.server should support HTTP compression (gzip)

2017-11-11 Thread Pierre Quentel
Pierre Quentel added the comment: I think I have made all the changes requested in the code review (many thanks to the reviewer !). I see that the Pull Request has been flagged "awaiting core review". With the deadline for Python 3.7 coming soon (11 weeks), is there

[issue31993] pickle.dump allocates unnecessary temporary bytes / str

2017-11-11 Thread Olivier Grisel
Olivier Grisel added the comment: Alright, I found the source of my refcounting bug. I updated the PR to include the C version of the dump for PyBytes. I ran Serhiy's microbenchmarks on the C version and I could not detect any overhead on small bytes objects while I

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-11-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bba2239c17a404fc99524bfbf8126c9b3b7fb343 by Serhiy Storchaka in branch 'master': bpo-31572: Get rid of _PyObject_HasAttrId() in the ASDL parser. (#3725)

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-11-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 60c3d3551a96febac7b6016fb44605643842c686 by Serhiy Storchaka in branch 'master': bpo-31572: Get rid of _PyObject_HasAttrId() in dict and OrderedDict. (#3728)

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-11-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1707e4020fa8dca8e6a3ac4f9da105b54d597b66 by Serhiy Storchaka in branch 'master': bpo-31572: Silence only AttributeError when get the __copy__ attribute in itertools.tee(). (#3724)

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-11-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d4f8480dfe89447587550a85b61d4e9faf827e98 by Serhiy Storchaka in branch 'master': bpo-31572: Don't silence unexpected errors in the _warnings module. (#3731)

[issue32002] test_c_locale_coercion fails when the default LC_CTYPE != "C"

2017-11-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Several of the tests in test_c_locale_coercion (particularly > LocaleCoercionTests._check_c_locale_coercion) tend to assume that the system > default locale used when setting setlocale(category, "") and when all the > relevant

[issue31997] SSL lib does not handle trailing dot (period) in hostname or certificate

2017-11-11 Thread Christian Heimes
Christian Heimes added the comment: Ryan said: Chrome will match both trailing dot and non-trailing dot in URL against non-trailing dot in cert. trailing dot in cert is 5280 violation by not being in preferred name syntax

[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > * Recommend that test runners also set this in the environment (so it's > inherited by subprocesses), not just in the current process +1 > * Clearly document "-We", "-Wi", "-Wd" as shorthands to override the default > warnings filters with

[issue31997] SSL lib does not handle trailing dot (period) in hostname or certificate

2017-11-11 Thread Christian Heimes
Christian Heimes added the comment: After more investigation and discussion with Daniel Stenberg, I'm considering to close the issue as WONTFIX + documentation update. The issue cannot be addressed in the SSL/TLS layer. I'm waiting for a reply from Ryan Sleevi on CAB

[issue31997] SSL lib does not handle trailing dot (period) in hostname or certificate

2017-11-11 Thread Hynek Schlawack
Change by Hynek Schlawack : -- nosy: +hynek ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2017-11-11 Thread Hynek Schlawack
Change by Hynek Schlawack : -- nosy: +hynek ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18861] Problems with recursive automatic exception chaining

2017-11-11 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2017-11-11 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___