[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9903

___
Python tracker 

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



[issue25155] Windows: datetime.datetime.now() raises an OverflowError for date after year 2038

2018-11-21 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి

Srinivas  Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) 
 added the comment:

Yikes, Sorry for the spam. I should have double checked.

--

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2018-11-21 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

They are warnings related to third party packages used for doctest and some of 
them might become incompatible with 
https://github.com/python/cpython/pull/10596. Related discussion : issue35109

--
nosy: +xtreak

___
Python tracker 

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



[issue25155] Windows: datetime.datetime.now() raises an OverflowError for date after year 2038

2018-11-21 Thread STINNER Victor


STINNER Victor  added the comment:

Hi,

"""
This bug is happening for 3.6 too.  Please see below,
(...)
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.py",
 line 85, in create_connection
sock.settimeout(timeout)
OverflowError: timestamp too large to convert to C _PyTime_t
"""

This error is different: the error occurs on socket.socket.settimeout() and 
comes from urllib3, not from the Python standard library. You should report 
this traceback to urllib3.

--

___
Python tracker 

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



[issue25155] Windows: datetime.datetime.now() raises an OverflowError for date after year 2038

2018-11-21 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి

Srinivas  Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) 
 added the comment:

This bug is happening for 3.6 too.  Please see below,

18:14 $ python --version
Python 3.6.3
(upwork) ✔ ~/workspace/personal/assignment [master|✔] 
18:16 $ pip install --upgrade pip
Exception:
Traceback (most recent call last):
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/basecommand.py", 
line 215, in main
status = self.run(options, args)
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/commands/install.py",
 line 324, in run
requirement_set.prepare_files(finder)
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/req/req_set.py", 
line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/req/req_set.py", 
line 487, in _prepare_file
req_to_install, finder)
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/req/req_set.py", 
line 428, in _check_skip_installed
req_to_install, upgrade_allowed)
  File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/index.py", 
line 465, in find_requirement
all_candidates = self.find_all_candidates(req.name)
  File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/index.py", 
line 423, in find_all_candidates
for page in self._get_pages(url_locations, project_name):
  File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/index.py", 
line 568, in _get_pages
page = self._get_page(location)
  File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/index.py", 
line 683, in _get_page
return HTMLPage.get_page(link, session=self.session)
  File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/index.py", 
line 792, in get_page
"Cache-Control": "max-age=600",
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py",
 line 488, in get
return self.request('GET', url, **kwargs)
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/download.py", line 
386, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py",
 line 475, in request
resp = self.send(prep, **send_kwargs)
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py",
 line 596, in send
r = adapter.send(request, **kwargs)
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/adapters.py",
 line 423, in send
timeout=timeout
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py",
 line 595, in urlopen
chunked=chunked)
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py",
 line 363, in _make_request
conn.request(method, url, **httplib_request_kw)
  File "/opt/rh/rh-python36/root/usr/lib64/python3.6/http/client.py", line 
1239, in request
self._send_request(method, url, body, headers, encode_chunked)
  File "/opt/rh/rh-python36/root/usr/lib64/python3.6/http/client.py", line 
1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
  File "/opt/rh/rh-python36/root/usr/lib64/python3.6/http/client.py", line 
1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
  File "/opt/rh/rh-python36/root/usr/lib64/python3.6/http/client.py", line 
1026, in _send_output
self.send(msg)
  File "/opt/rh/rh-python36/root/usr/lib64/python3.6/http/client.py", line 964, 
in send
self.connect()
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connection.py",
 line 167, in connect
conn = self._new_conn()
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connection.py",
 line 142, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
  File 
"/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.py",
 line 85, in create_connection
sock.settimeout(timeout)
OverflowError: timestamp too large to convert to C _PyTime_t
You are using pip version 9.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

--
nosy: +thatiparthy

___
Python tracker 

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



[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-21 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset b37672daf61740fe1ff9d805f6d74bc5ef04012b by Victor Stinner in 
branch 'master':
bpo-35059: Cleanup usage of Python macros (GH-10648)
https://github.com/python/cpython/commit/b37672daf61740fe1ff9d805f6d74bc5ef04012b


--

___
Python tracker 

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



[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9902

___
Python tracker 

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



[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9901

___
Python tracker 

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



[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-21 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 2ff8fb7639a86757c00a7cbbe7da418fffec3870 by Victor Stinner in 
branch 'master':
bpo-35059: Add _PyObject_CAST() macro (GH-10645)
https://github.com/python/cpython/commit/2ff8fb7639a86757c00a7cbbe7da418fffec3870


--

___
Python tracker 

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



[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9900

___
Python tracker 

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



[issue35294] Race condition involving SocketServer.TCPServer

2018-11-21 Thread Ruslan Dautkhanov


Change by Ruslan Dautkhanov :


--
type:  -> behavior

___
Python tracker 

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



[issue35294] Race condition involving SocketServer.TCPServer

2018-11-21 Thread Ruslan Dautkhanov


New submission from Ruslan Dautkhanov :

We had a long discussion in https://issues.apache.org/jira/browse/SPARK-26019
regarding a race condition that happens 
around 
https://github.com/apache/spark/blob/master/python/pyspark/accumulators.py#L289 

The fix I created here -
https://github.com/apache/spark/pull/23113/files
basically changes bind_and_activate to False 
in SocketServer.TCPServer.__init__'s call 
and manually doing 
self.server_bind()
self.server_activate()
self.serve_forever()
in that thread instead of main thread. 

We have a fix, but we're not sure if this is a bug in Python with 
multithreading / handling SocketServer.TCPServer ?

Thank you.

--
components: IO, Library (Lib)
messages: 330228
nosy: Ruslan Dautkhanov
priority: normal
severity: normal
status: open
title: Race condition involving SocketServer.TCPServer
versions: Python 2.7, Python 3.6

___
Python tracker 

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



[issue20309] Not all method descriptors are callable

2018-11-21 Thread Simon Ruggier


Simon Ruggier  added the comment:

I hit this problem today with what I'd consider a valid use case: I wanted to 
use a static method as a default argument to a function on the same class. 
Within the class definition context, automatic unwrapping of the staticmethod 
object doesn't occur, so the default value ends up not being callable unless 
the staticmethod object is manually, explicitly unwrapped via __func__.

For those who prefer code to prose, I've attached example Python 2/3 code 
demonstrating what I mean.

The workaround is pretty easy, but on the other hand, it also looks like it 
would also be pretty straightforward to facilitate this use case without 
forcing the author to learn about this distinction and manually unwrap the 
static method, and I think it makes sense to do that.

--
nosy: +sruggier
Added file: https://bugs.python.org/file47940/example_use_case.py

___
Python tracker 

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



[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-21 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 271753a27aca2e13275f0827080b915fb438107a by Victor Stinner in 
branch 'master':
bpo-35059: Convert _PyObject_GC_TRACK() to inline function (GH-10643)
https://github.com/python/cpython/commit/271753a27aca2e13275f0827080b915fb438107a


--

___
Python tracker 

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



[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9897, 9898, 9899

___
Python tracker 

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



[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9897

___
Python tracker 

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



[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9897, 9898

___
Python tracker 

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



[issue31146] Docs: On non-public translations, language picker fallback to "English"

2018-11-21 Thread Julien Palard


Change by Julien Palard :


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



[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-21 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset f1d002c1e094922b0f17a820f90ff102d68ab253 by Victor Stinner in 
branch 'master':
bpo-35059: Enhance _PyObject_AssertFailed() (GH-10642)
https://github.com/python/cpython/commit/f1d002c1e094922b0f17a820f90ff102d68ab253


--

___
Python tracker 

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



[issue31146] Docs: On non-public translations, language picker fallback to "English"

2018-11-21 Thread miss-islington


miss-islington  added the comment:


New changeset df6374e15aadff7eb547fc210c0f4f28bbff7010 by Miss Islington (bot) 
in branch '3.7':
bpo-31146: Don't fallback switcher to english on not-yet pusblished languages. 
(GH-10558)
https://github.com/python/cpython/commit/df6374e15aadff7eb547fc210c0f4f28bbff7010


--
nosy: +miss-islington

___
Python tracker 

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



[issue31146] Docs: On non-public translations, language picker fallback to "English"

2018-11-21 Thread miss-islington


miss-islington  added the comment:


New changeset c487cf9261c61f0db4e5d1df3c83a60384b330db by Miss Islington (bot) 
in branch '3.6':
bpo-31146: Don't fallback switcher to english on not-yet pusblished languages. 
(GH-10558)
https://github.com/python/cpython/commit/c487cf9261c61f0db4e5d1df3c83a60384b330db


--

___
Python tracker 

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



[issue31146] Docs: On non-public translations, language picker fallback to "English"

2018-11-21 Thread miss-islington


miss-islington  added the comment:


New changeset fcbcebadff46f907b38fcf2d79adb3209c5a205d by Miss Islington (bot) 
in branch '2.7':
bpo-31146: Don't fallback switcher to english on not-yet pusblished languages. 
(GH-10558)
https://github.com/python/cpython/commit/fcbcebadff46f907b38fcf2d79adb3209c5a205d


--

___
Python tracker 

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



[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9894, 9895

___
Python tracker 

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



[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9894

___
Python tracker 

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



[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9894, 9895, 9896

___
Python tracker 

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



[issue28401] Don't support the PEP384 stable ABI in pydebug builds

2018-11-21 Thread Brett Cannon


Brett Cannon  added the comment:

Thanks for the PR!

--

___
Python tracker 

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



[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2018-11-21 Thread Tim Peters


Tim Peters  added the comment:

To include trailing whitespace on a line in a doctest, _don't_ use raw strings. 
 Use a regular string, and include add a (one or more) trailing \x20 instead of 
a space (for example).  For example:

r"""
>>> print("a ")
a 
"""

where there's a space at the end of the output line is no good.  It's visually 
impossible to tell what's intended, and the commit hook should reject it.  But 
this works fine (a regular string and an escape code):

"""
>>> print("a ")
a\x20
"""

--
nosy: +tim.peters

___
Python tracker 

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



[issue21314] Document '/' in signatures

2018-11-21 Thread Yury Selivanov


Change by Yury Selivanov :


--
nosy:  -yselivanov

___
Python tracker 

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



[issue21314] Document '/' in signatures

2018-11-21 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
keywords: +patch, patch, patch
pull_requests: +9891, 9892, 9893
stage: needs patch -> patch review

___
Python tracker 

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



[issue21314] Document '/' in signatures

2018-11-21 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
keywords: +patch, patch
pull_requests: +9891, 9892
stage: needs patch -> patch review

___
Python tracker 

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



[issue21314] Document '/' in signatures

2018-11-21 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
keywords: +patch
pull_requests: +9891
stage: needs patch -> patch review

___
Python tracker 

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



[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2018-11-21 Thread Dieter Maurer


Dieter Maurer  added the comment:

> Care to open a PR to fix this?

I am not familiar with the "github" workflow. The fix is so trivial (add the 
"isAlive = is_alive" alias to "threading._DummyThread" and replace "isAlive" by 
"is_alive" in the docstring of "threading.Thread.join" that it does not seem 
worth to learn the "github" workflow just for this fix.

--

___
Python tracker 

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



[issue35081] Move internal headers to Include/internal/

2018-11-21 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset bcda8f1d42a98d9022736dd52d855be8e220fe15 by Victor Stinner in 
branch 'master':
bpo-35081: Add Include/internal/pycore_object.h (GH-10640)
https://github.com/python/cpython/commit/bcda8f1d42a98d9022736dd52d855be8e220fe15


--

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +matrixise, mdk

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2018-11-21 Thread STINNER Victor


New submission from STINNER Victor :

The following commands emits a lot of warnings:

make PYTHON=../python SPHINXOPTS="-q -W -j4" -C Doc/ venv doctest
# adapt PYTHON to point to Python 3.8 compiled in debug mmode

Travis CI logs:

https://travis-ci.org/python/cpython/jobs/458140641

make: Entering directory `/home/travis/build/python/cpython/Doc'
../python -m venv ./venv
(...)
The venv has been created in the ./venv directory
make[1]: Entering directory `/home/travis/build/python/cpython/Doc'
mkdir -p build
Building NEWS from Misc/NEWS.d with blurb
PATH=./venv/bin:$PATH sphinx-build -b doctest -d build/doctrees -D 
latex_elements.papersize= -q -W -j4 -W . build/doctest 
/home/travis/build/python/cpython/Doc/venv/lib/python3.8/site-packages/babel/localedata.py:17:
 DeprecationWarning: Using or importing the ABCs from 'collections' instead of 
from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import MutableMapping
/home/travis/build/python/cpython/Doc/venv/lib/python3.8/site-packages/jinja2/runtime.py:318:
 DeprecationWarning: Using or importing the ABCs from 'collections' instead of 
from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import Mapping
/home/travis/build/python/cpython/Doc/venv/lib/python3.8/site-packages/jinja2/sandbox.py:82:
 DeprecationWarning: Using or importing the ABCs from 'collections' instead of 
from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import MutableSet, MutableMapping, MutableSequence
/home/travis/build/python/cpython/Doc/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py:2130:
 RemovedInSphinx40Warning: highlightlang directive is deprecated. Please use 
highlight directive instead.
  result = directive_instance.run()
/home/travis/build/python/cpython/Doc/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py:2130:
 RemovedInSphinx40Warning: highlightlang directive is deprecated. Please use 
highlight directive instead.
  result = directive_instance.run()
/home/travis/build/python/cpython/Doc/tools/extensions/pyspecific.py:274: 
RemovedInSphinx30Warning: env.note_versionchange() is deprecated. Please use 
ChangeSetDomain.note_changeset() instead.
  env.note_versionchange('deprecated', version[0], node, self.lineno)
/home/travis/build/python/cpython/Doc/tools/extensions/pyspecific.py:274: 
RemovedInSphinx30Warning: env.note_versionchange() is deprecated. Please use 
ChangeSetDomain.note_changeset() instead.
  env.note_versionchange('deprecated', version[0], node, self.lineno)
/home/travis/build/python/cpython/Doc/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py:2130:
 RemovedInSphinx40Warning: highlightlang directive is deprecated. Please use 
highlight directive instead.
  result = directive_instance.run()
/home/travis/build/python/cpython/Doc/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py:2130:
 RemovedInSphinx40Warning: highlightlang directive is deprecated. Please use 
highlight directive instead.
  result = directive_instance.run()
/home/travis/build/python/cpython/Doc/tools/extensions/pyspecific.py:274: 
RemovedInSphinx30Warning: env.note_versionchange() is deprecated. Please use 
ChangeSetDomain.note_changeset() instead.
  env.note_versionchange('deprecated', version[0], node, self.lineno)
/home/travis/build/python/cpython/Doc/venv/lib/python3.8/site-packages/sphinx/environment/__init__.py:340:
 RemovedInSphinx30Warning: env.versionchanges() is deprecated. Please use 
ChangeSetDomain instead.
  for version, changes in other.versionchanges.items():
/home/travis/build/python/cpython/Doc/venv/lib/python3.8/site-packages/sphinx/environment/__init__.py:341:
 RemovedInSphinx30Warning: env.versionchanges() is deprecated. Please use 
ChangeSetDomain instead.
  self.versionchanges.setdefault(version, []).extend(
/home/travis/build/python/cpython/Doc/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py:2130:
 RemovedInSphinx40Warning: highlightlang directive is deprecated. Please use 
highlight directive instead.
  result = directive_instance.run()
/home/travis/build/python/cpython/Doc/tools/extensions/pyspecific.py:274: 
RemovedInSphinx30Warning: env.note_versionchange() is deprecated. Please use 
ChangeSetDomain.note_changeset() instead.
  env.note_versionchange('deprecated', version[0], node, self.lineno)
/home/travis/build/python/cpython/Doc/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py:2130:
 RemovedInSphinx40Warning: highlightlang directive is deprecated. Please use 
highlight directive instead.
  result = directive_instance.run()
/home/travis/build/python/cpython/Doc/tools/extensions/pyspecific.py:274: 
RemovedInSphinx30Warning: env.note_versionchange() is deprecated. Please use 
ChangeSetDomain.note_changeset() instead.
  env.note_versionchange('deprecated', version[0], node, self.lineno)
/home/travis/build/python/cpython/Doc/tools/extensions/pyspecific.py:274: 

[issue35081] Move internal headers to Include/internal/

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9888, 9889

___
Python tracker 

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



[issue35081] Move internal headers to Include/internal/

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9888

___
Python tracker 

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



[issue35081] Move internal headers to Include/internal/

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9888, 9889, 9890

___
Python tracker 

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



[issue35284] Incomplete error handling in Python/compile.c:compiler_call()

2018-11-21 Thread Brett Cannon


Change by Brett Cannon :


--
title: Incomplete error handling in the compiler's compiler_call() -> 
Incomplete error handling in Python/compile.c:compiler_call()

___
Python tracker 

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



[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2018-11-21 Thread Brett Cannon


Brett Cannon  added the comment:

Care to open a PR to fix this?

--
nosy: +brett.cannon

___
Python tracker 

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



[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2018-11-21 Thread Brett Cannon


Change by Brett Cannon :


--
type: crash -> behavior

___
Python tracker 

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



[issue26415] Excessive peak memory consumption by the Python parser

2018-11-21 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue31115] Py3.6 threading/reference counting issues with `numexpr`

2018-11-21 Thread Mark Dickinson


Mark Dickinson  added the comment:

Judging by the current state of https://github.com/pydata/numexpr/issues/252, 
it does seem as though this is resolved downstream, so probably safe to close 
here. Robert: feel free to reopen if I misunderstood.

--
nosy: +mark.dickinson
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2018-11-21 Thread Sanyam Khurana


Sanyam Khurana  added the comment:

> Unfortunately I was reminded a few days ago that there is a commit hook that 
> prevents patches containing trailing whitespace from being committed to the 
> repository.

Is this still the case?

I tried to figure out writing the test case, but I can't wrap my head around 
showing the trailing whitespace without putting it anywhere in the code.

Also, can you have a look at the PR, please?

--
nosy: +CuriousLearner
stage: patch review -> test needed
versions: +Python 3.7, Python 3.8

___
Python tracker 

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



[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2018-11-21 Thread Sanyam Khurana


Change by Sanyam Khurana :


--
pull_requests: +9886
stage: test needed -> patch review

___
Python tracker 

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



[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2018-11-21 Thread Sanyam Khurana


Change by Sanyam Khurana :


--
pull_requests: +9886, 9887
stage: test needed -> patch review

___
Python tracker 

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



[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-11-21 Thread Aaron Meurer


Aaron Meurer  added the comment:

Is it expected behavior that comments produce NEWLINE if they don't have a 
newline and don't produce NEWLINE if they do (that is, '# comment' produces 
NEWLINE but '# comment\n' does not)?

--
nosy: +asmeurer

___
Python tracker 

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



[issue35292] Make SimpleHTTPRequestHandler load mimetypes lazily

2018-11-21 Thread Steve Dower


New submission from Steve Dower :

Importing http.server triggers mimetypes.init(), which can be fairly expensive 
on Windows (and potentially other platforms?) due to having to enumerate a lot 
of registry keys.

Instead, SimpleHTTPRequestHandler.extensions_map can be a dict with just its 
default values in lib/http/server.py and the first call to guess_type() can 
initialize mimetypes if necessary.

We should check whether people read from 
SimpleHTTPRequestHandler.extensions_map directly before calling guess_type(), 
and decide how quickly we can make the change. My gut feeling is we will be 
okay to make this in the next release but probably shouldn't backport it.

--
components: Library (Lib), Windows
keywords: easy
messages: 330212
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Make SimpleHTTPRequestHandler load mimetypes lazily
type: performance
versions: Python 3.8

___
Python tracker 

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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-21 Thread STINNER Victor


STINNER Victor  added the comment:

My private test suite for locales:
https://github.com/vstinner/misc/blob/master/python/test_all_locales.py

Since each platform uses a different locale database, it's hard to write 
reliable portable and future-proof tests :-(

My tests only work on specific Windows, macOS, FreeBSD and Linux versions.

--

___
Python tracker 

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



[issue20504] cgi.FieldStorage, multipart, missing Content-Length

2018-11-21 Thread Pierre Quentel


Pierre Quentel  added the comment:

I have submitted PR #10638 to fix this issue.

--

___
Python tracker 

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



[issue20504] cgi.FieldStorage, multipart, missing Content-Length

2018-11-21 Thread Pierre Quentel


Change by Pierre Quentel :


--
pull_requests: +9885

___
Python tracker 

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



[issue21314] Document '/' in signatures

2018-11-21 Thread Noah Haasis

Noah Haasis  added the comment:

I don‘t have the time right now. Feel free to work on it!

--

___
Python tracker 

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



[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2018-11-21 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset aac1f81eef971876ba5b1673db9ce6620311c469 by Victor Stinner in 
branch 'master':
bpo-35189: Fix eintr_tester.py (GH-10637)
https://github.com/python/cpython/commit/aac1f81eef971876ba5b1673db9ce6620311c469


--

___
Python tracker 

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



[issue33416] Add endline and endcolumn to every AST node

2018-11-21 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

This may be a duplicate of issue22616.

See also issue16795, issue21295, issue33211, issue34876.

--

___
Python tracker 

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



[issue35291] duplicate of memoryview from io.BufferedWriter leaks

2018-11-21 Thread Jason Madden


New submission from Jason Madden :

Using Python 2.7.15, if a BufferedWriter wraps an IO object that duplicates the 
memoryview passed to the IO object's `write` method, that memoryview leaks. 

This script demonstrates the problem by leaking a memoryview for each iteration 
of the loop (if the `flush` is skipped, the leaks are less frequent but still 
occur):

```
from __future__ import print_function

import io
import gc

def count_memoryview():
result = 0
for x in gc.get_objects():
if type(x) is memoryview:
result += 1
return result

class FileLike(object):
closed = False

def writable(self):
return True

def write(self, data):
memoryview(data) # XXX: This causes the problem
return len(data)


bf = io.BufferedWriter(FileLike())

i = 0
memoryview_count = 0

while True:
if i == 0 or i % 100 == 0:
# This reports 100 new memoryview objects each time
old = memoryview_count
new = count_memoryview()
print(i, "memoryview", new, "+%s" % (new - old))
memoryview_count = new

bf.write(b"test")
bf.flush()
i += 1
```

The leak can also be observed using the operating system's memory monitoring 
tools for the process (seen on both Fedora and macOS).

Commenting out the line in `FileLike.write` that makes a duplicate memoryview 
of the given buffer solves the leak. 

Deleting the BufferedWriter doesn't appear to reclaim the leaked memoryviews.

I can't duplicate this in Python 3.4 or above.

Originally reported to gevent in https://github.com/gevent/gevent/issues/1318

Possibly related to Issue 26720 and Issue 15994

--
components: IO
messages: 330206
nosy: jmadden
priority: normal
severity: normal
status: open
title: duplicate of memoryview from io.BufferedWriter leaks
versions: Python 2.7

___
Python tracker 

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



[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9884

___
Python tracker 

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



[issue35227] [RFE] tarfile: support adding file objects without prior known size

2018-11-21 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Yes, but in the same way that there is the add method to conveniently build the 
TarInfo object for the user, shouldn't we provide a new convenience method to 
TarFile to support this (in addition to modifying TarInfo)?

--

___
Python tracker 

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



[issue35227] [RFE] tarfile: support adding file objects without prior known size

2018-11-21 Thread Michał Górny

Michał Górny  added the comment:

> Adding this API would require to provide a way to set file status like mode, 
> uid, gid, mtime, type, linkname, uname and gname.

That's why I mentioned addfile() -- it takes TarInfo object for that purpose.  
I suppose the new function should have the same parameters, except it would set 
size in the TarInfo instance instead of getting it.

--

___
Python tracker 

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



[issue32894] AST unparsing of infinity numbers

2018-11-21 Thread Mark Dickinson


Change by Mark Dickinson :


--
nosy: +mark.dickinson

___
Python tracker 

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



[issue35227] [RFE] tarfile: support adding file objects without prior known size

2018-11-21 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Adding this API would require to provide a way to set file status like mode, 
uid, gid, mtime, type, linkname, uname and gname.

Adding a new argument to gettarinfo looks weird to me, adding a new method may 
be better. I will try to propose a working implementation.

--

___
Python tracker 

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



[issue35267] reproducible deadlock with multiprocessing.Pool

2018-11-21 Thread Windson Yang


Windson Yang  added the comment:

I will work on it if no one wants to create a PR for this next week.

--

___
Python tracker 

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



[issue35131] Cannot access to customized paths within .pth file

2018-11-21 Thread Windson Yang


Windson Yang  added the comment:

I will fix this issue after we have consensus with the future of .pth file in 
#33944

--

___
Python tracker 

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



[issue26415] Excessive peak memory consumption by the Python parser

2018-11-21 Thread Giampaolo Rodola'


Change by Giampaolo Rodola' :


--
nosy:  -giampaolo.rodola

___
Python tracker 

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



[issue17490] Improve ast.literal_eval test suite coverage

2018-11-21 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Nick, do you mind to create a PR for new tests?

Some additional tests were added since this issue was created.

--

___
Python tracker 

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



[issue35035] Documentation for email.utils is named email.util.rst

2018-11-21 Thread Julien Palard


Julien Palard  added the comment:


New changeset 3b7258a5a5fddc6c46f71a89b7c8ce89f4b79641 by Julien Palard (Miss 
Islington (bot)) in branch '3.7':
[3.7] bpo-35035: Rename email.utils documentation to email.utils.rst (GH-10023)
https://github.com/python/cpython/commit/3b7258a5a5fddc6c46f71a89b7c8ce89f4b79641


--

___
Python tracker 

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



[issue35035] Documentation for email.utils is named email.util.rst

2018-11-21 Thread Julien Palard


Julien Palard  added the comment:


New changeset 27c16e33b1acac55641a27faa5a11508ee605adc by Julien Palard (Miss 
Islington (bot)) in branch '3.6':
bpo-35035: Rename email.utils documentation to email.utils.rst (GH-10023)
https://github.com/python/cpython/commit/27c16e33b1acac55641a27faa5a11508ee605adc


--

___
Python tracker 

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



[issue26415] Excessive peak memory consumption by the Python parser

2018-11-21 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Do you mind to create a pull request for reviewing? I can not promise that it 
will be merged, but it will have a chance.

For reference, the article about this patch (on Russian): 
https://habr.com/post/314062/ .

--
versions: +Python 3.8 -Python 3.6

___
Python tracker 

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



[issue35227] [RFE] tarfile: support adding file objects without prior known size

2018-11-21 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
nosy: +remi.lapeyre

___
Python tracker 

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



[issue35035] Documentation for email.utils is named email.util.rst

2018-11-21 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9882

___
Python tracker 

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



[issue35035] Documentation for email.utils is named email.util.rst

2018-11-21 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9883

___
Python tracker 

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



[issue35035] Documentation for email.utils is named email.util.rst

2018-11-21 Thread Julien Palard


Julien Palard  added the comment:


New changeset 361e8683e7340c600b22f4a514b81448ccec66dc by Julien Palard 
(Zhiming Wang) in branch 'master':
bpo-35035: Rename email.utils documentation to email.utils.rst (GH-10023)
https://github.com/python/cpython/commit/361e8683e7340c600b22f4a514b81448ccec66dc


--
nosy: +mdk

___
Python tracker 

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



[issue35242] multiprocessing.Queue in an inconsistent state and a traceback silently suppressed if put an unpickable object and process's target function is finished

2018-11-21 Thread Sergei Zobov


Sergei Zobov  added the comment:

Thanks for answer, Antoine!
I see what you mean, but I'm not sure that it's so extreme corner case. We are 
speaking about Python and it's easy to create an put an unpickable object into 
queue.
I apologize for the persistence, but I just want make this case more friendly 
to user. I spent plenty of time to debug it and I think it would be better to 
prevent someone to do the same things.
If it's a difficult to fix, we can at least write a note somewhere in 
multiprocessing module doc to describe this behavior.

--

___
Python tracker 

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



[issue20504] cgi.FieldStorage, multipart, missing Content-Length

2018-11-21 Thread Pierre Quentel


Change by Pierre Quentel :


--
pull_requests: +9881

___
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

2018-11-21 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

For list comprehensions and generator expressions this is definitely a bug. But 
tuples syntax technically does not include surrounded parentheses.

There is also a problem with generator expression passes as a single argument. 
Generator expression parentheses can be collapsed with function call 
parentheses: f(a for a in b).

PR 10633 makes the following changes:

* Fixes position for list comprehensions and generator expressions.

* If generator expression parentheses are be collapsed with function call 
parentheses, the position of the AST node for the generator expression points 
to the left parenthesis.

* For tuples surrounded with parentheses, the position of the AST node points 
to the left brace. For tuples without parentheses, it points to the position of 
the first tuple item.

I am not sure whether these changes should be backported to maintained versions.

--
nosy: +benjamin.peterson, brett.cannon, yselivanov

___
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

2018-11-21 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +9880
stage:  -> patch review

___
Python tracker 

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



[issue20504] cgi.FieldStorage, multipart, missing Content-Length

2018-11-21 Thread Pierre Quentel


Change by Pierre Quentel :


--
nosy: +quentel

___
Python tracker 

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



[issue21314] Document '/' in signatures

2018-11-21 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

Noah, are you working on this?

--
nosy: +lys.nikolaou

___
Python tracker 

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



[issue25439] Add type checks to urllib.request.Request

2018-11-21 Thread Sanyam Khurana


Sanyam Khurana  added the comment:

PR is up for a review: https://github.com/python/cpython/pull/10616

--

___
Python tracker 

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



[issue28604] Exception raised by python3.5 when using en_GB locale

2018-11-21 Thread STINNER Victor


STINNER Victor  added the comment:

It seems like my change introduced a regression: bpo-35290.

--

___
Python tracker 

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



[issue35290] [FreeBSD] test_c_locale_coercion: fsencoding is ASCII instead of UTF-8 on FreeBSD CURRENT buildbot

2018-11-21 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 7c2d5702d11b41dd9a2391e6813fbaef5dbda79a by Victor Stinner in 
branch 'master':
bpo-35290: Add debug info to test_c_locale_coercion (GH-10631)
https://github.com/python/cpython/commit/7c2d5702d11b41dd9a2391e6813fbaef5dbda79a


--

___
Python tracker 

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



[issue35290] [FreeBSD] test_c_locale_coercion: fsencoding is ASCII instead of UTF-8 on FreeBSD CURRENT buildbot

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +9879
stage:  -> patch review

___
Python tracker 

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



[issue35290] [FreeBSD] test_c_locale_coercion: fsencoding is ASCII instead of UTF-8 on FreeBSD CURRENT buildbot

2018-11-21 Thread STINNER Victor


New submission from STINNER Victor :

It seems like the commit 02e6bf7f2025cddcbde6432f6b6396198ab313f4 (bpo-28604) 
broke test_c_locale_coercion on FreeBSD CURRENT Shared 3.x:

https://buildbot.python.org/all/#/builders/168/builds/247

0:19:33 load avg: 7.69 [401/419/2] test_c_locale_coercion failed -- running: 
test_decimal (40 sec 626 ms), test_lib2to3 (2 min 3 sec)
test_external_target_locale_configuration 
(test.test_c_locale_coercion.LocaleConfigurationTests) ... ok
test_LC_ALL_set_to_C (test.test_c_locale_coercion.LocaleCoercionTests) ... ok
test_PYTHONCOERCECLOCALE_not_set 
(test.test_c_locale_coercion.LocaleCoercionTests) ... 
test_PYTHONCOERCECLOCALE_not_zero 
(test.test_c_locale_coercion.LocaleCoercionTests) ... 
test_PYTHONCOERCECLOCALE_set_to_warn 
(test.test_c_locale_coercion.LocaleCoercionTests) ... 
test_PYTHONCOERCECLOCALE_set_to_zero 
(test.test_c_locale_coercion.LocaleCoercionTests) ... ok

==
FAIL: test_PYTHONCOERCECLOCALE_not_set 
(test.test_c_locale_coercion.LocaleCoercionTests) (default_locale=True, 
PYTHONCOERCECLOCALE=None)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_c_locale_coercion.py",
 line 341, in _check_c_locale_coercion
self._check_child_encoding_details(base_var_dict,
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_c_locale_coercion.py",
 line 231, in _check_child_encoding_details
self.assertEqual(encoding_details, expected_details)
AssertionError: {'fsencoding': 'ascii', 'stdin_info': 'utf-8:surrogateesc[130 
chars]: ''} != {'fsencoding': 'utf-8', 'stdin_info': 'utf-8:surrogateesc[130 
chars]: ''}
- {'fsencoding': 'ascii',
? ^

+ {'fsencoding': 'utf-8',
? ^

   'lang': '',
   'lc_all': '',
   'lc_ctype': 'c.utf-8',
   'stderr_info': 'utf-8:backslashreplace',
   'stdin_info': 'utf-8:surrogateescape',
   'stdout_info': 'utf-8:surrogateescape'}

==
FAIL: test_PYTHONCOERCECLOCALE_not_set 
(test.test_c_locale_coercion.LocaleCoercionTests) (env_var='LANG', 
nominal_locale='C', PYTHONCOERCECLOCALE=None)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_c_locale_coercion.py",
 line 356, in _check_c_locale_coercion
self._check_child_encoding_details(var_dict,
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_c_locale_coercion.py",
 line 231, in _check_child_encoding_details
self.assertEqual(encoding_details, expected_details)
AssertionError: {'fsencoding': 'ascii', 'stdin_info': 'utf-8:surrogateesc[131 
chars]: ''} != {'fsencoding': 'utf-8', 'stdin_info': 'utf-8:surrogateesc[131 
chars]: ''}
- {'fsencoding': 'ascii',
? ^

+ {'fsencoding': 'utf-8',
? ^

   'lang': 'c',
   'lc_all': '',
   'lc_ctype': 'c.utf-8',
   'stderr_info': 'utf-8:backslashreplace',
   'stdin_info': 'utf-8:surrogateescape',
   'stdout_info': 'utf-8:surrogateescape'}

==
FAIL: test_PYTHONCOERCECLOCALE_not_set 
(test.test_c_locale_coercion.LocaleCoercionTests) (env_var='LC_CTYPE', 
nominal_locale='C', PYTHONCOERCECLOCALE=None)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_c_locale_coercion.py",
 line 356, in _check_c_locale_coercion
self._check_child_encoding_details(var_dict,
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_c_locale_coercion.py",
 line 231, in _check_child_encoding_details
self.assertEqual(encoding_details, expected_details)
AssertionError: {'fsencoding': 'ascii', 'stdin_info': 'utf-8:surrogateesc[130 
chars]: ''} != {'fsencoding': 'utf-8', 'stdin_info': 'utf-8:surrogateesc[130 
chars]: ''}
- {'fsencoding': 'ascii',
? ^

+ {'fsencoding': 'utf-8',
? ^

   'lang': '',
   'lc_all': '',
   'lc_ctype': 'c.utf-8',
   'stderr_info': 'utf-8:backslashreplace',
   'stdin_info': 'utf-8:surrogateescape',
   'stdout_info': 'utf-8:surrogateescape'}

==
FAIL: test_PYTHONCOERCECLOCALE_not_set 
(test.test_c_locale_coercion.LocaleCoercionTests) (env_var='LANG', 
nominal_locale='invalid.ascii', PYTHONCOERCECLOCALE=None)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_c_locale_coercion.py",
 line 356, in _check_c_locale_coercion

[issue35242] multiprocessing.Queue in an inconsistent state and a traceback silently suppressed if put an unpickable object and process's target function is finished

2018-11-21 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

Thanks for reporting this.  This sounds like an extreme corner case and I'm not 
sure how easy it will be to fix.

For the record, nowadays concurrent.futures should have more graceful behaviour 
in the face of errors.  Though there probably always will be corner cases like 
this.

--

___
Python tracker 

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



[issue35081] Move internal headers to Include/internal/

2018-11-21 Thread STINNER Victor


STINNER Victor  added the comment:

Please review PR 10624 of bpo-35134: Create Include/unstable/ subdirectory. 
It's the second part of my plan :-)

--

___
Python tracker 

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



[issue35221] Enhance venv activate commands readability

2018-11-21 Thread Raymond Hettinger


Change by Raymond Hettinger :


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



[issue29205] col_offset for AsyncFunctionDef AST nodes is wrong

2018-11-21 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Is this issue fixed? Are backports needed?

I can't reproduce the issue on master and 3.7, but can reproduce it on 3.6.

--
nosy: +benjamin.peterson, serhiy.storchaka
versions:  -Python 3.5, Python 3.7

___
Python tracker 

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



[issue35221] Enhance venv activate commands readability

2018-11-21 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset d170e594b2736c579d12b96b129a8e58975a9c0a by Raymond Hettinger 
(Miss Islington (bot)) in branch '3.7':
bpo-35221: Additional hint that the placeholder is to be replaced. (GH-10604) 
(GH-10629)
https://github.com/python/cpython/commit/d170e594b2736c579d12b96b129a8e58975a9c0a


--

___
Python tracker 

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



[issue31115] Py3.6 threading/reference counting issues with `numexpr`

2018-11-21 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
status: open -> pending

___
Python tracker 

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



[issue35221] Enhance venv activate commands readability

2018-11-21 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 7af2144e558a0268b1aa20bb88046716c89f987d by Raymond Hettinger 
(Miss Islington (bot)) in branch '3.6':
bpo-35221: Additional hint that the placeholder is to be replaced. (GH-10604) 
(GH-10630)
https://github.com/python/cpython/commit/7af2144e558a0268b1aa20bb88046716c89f987d


--

___
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

2018-11-21 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35273] 'eval' in generator expression behave different in dict from list

2018-11-21 Thread Raymond Hettinger


Change by Raymond Hettinger :


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



[issue33416] Add endline and endcolumn to every AST node

2018-11-21 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
nosy: +brett.cannon

___
Python tracker 

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



[issue35221] Enhance venv activate commands readability

2018-11-21 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9877

___
Python tracker 

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



[issue35221] Enhance venv activate commands readability

2018-11-21 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9878

___
Python tracker 

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



[issue35221] Enhance venv activate commands readability

2018-11-21 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset d936a8f8e0964de1147656f1435532f0170f8b6c by Raymond Hettinger 
(Julien Palard) in branch 'master':
bpo-35221: Additional hint that the placeholder is to be replaced. (GH-10604)
https://github.com/python/cpython/commit/d936a8f8e0964de1147656f1435532f0170f8b6c


--

___
Python tracker 

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



[issue35200] Make the half-open range behaviour easier to teach

2018-11-21 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

As a teacher, I think the proposal makes us worst off.  It is far easier and 
more useful at the interactive prompt to use list() rather than print() to show 
ranges:

>>> list(range(10))
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> list(range(2, 10))
[2, 3, 4, 5, 6, 7, 8, 9]
>>> list(range(2, 10, 3))
[2, 5, 8]

If you do the same thing with print(), it takes an additional character 
("print" vs "list"), it creates a new source of confusion (str vs repr), and it 
doesn't generalize to other iterators like enumerate(), reversed(), and 
generators.

Also, the various ideas listed for a possible new __str__ are all awkward or 
mysterious for some inputs (empty ranges, short ranges, etc).

FWIW, I teach this topic every week.  Presenting with list(range(...)) is less 
convenient than with the Python 2.7 version, but it works out just fine in 
practice and nicely sets the stage for covering set(iterable), tuple(iterable), 
dict.fromkeys(iterable), etc.

I'm opposed the this proposal because I think it will create more teaching 
difficulties than it solves.

--

___
Python tracker 

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



[issue32894] AST unparsing of infinity numbers

2018-11-21 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue33211] lineno and col_offset are wrong on function definitions with decorators

2018-11-21 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Sorry, I forgot about this issue and independently made similar changes in 
issue34876. Please rebase your PR and determine whether it contains any useful 
changes in comparison with the current code (maybe new non-duplicated tests or 
useful refactoring?).

--

___
Python tracker 

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



[issue33416] Add endline and endcolumn to every AST node

2018-11-21 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I like this. This can help to generate more meaningful error messages at 
compile and run time.

--

___
Python tracker 

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



[issue24828] Segfault when using store-context AST node in a load context

2018-11-21 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
versions:  -Python 3.2

___
Python tracker 

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



  1   2   >