[issue31791] Ensure that all PyTypeObject fields are set to non-NULL defaults

2017-10-15 Thread pdox

pdox  added the comment:

serhiy.storchaka:

1) Where tp_as_number would normally be NULL, instead it would point to a fixed 
PyNumberMethods structure containing the default functions. This would make the 
memory increase negligible, as all non-number types would use the same 
structure.

2) If this is behavior we want to formally support, then we should provide 
macros for it. (all they must do is compare against the default pointer value, 
rather than NULL). Are there particular extension(s) you suspect may be doing 
this?

3) This has to be handled on a case-by-case basis. I would not remove inlined 
optimizations. If there are some fields that truly benefit from remaining NULL, 
those can be left alone. I would like to focus on the functions for which the 
common case (in code without type errors) is to make the indirect call.

--

___
Python tracker 

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



[issue31754] Documented type of parameter 'itemsize' to PyBuffer_FillContiguousStrides is incorrect.

2017-10-15 Thread Berker Peksag

Berker Peksag  added the comment:


New changeset 1b9e76ed3a055a53ca67397e928e1b408461900b by Berker Peksag 
(vyas45) in branch 'master':
bpo-31754: Fix type of 'itemsize' in PyBuffer_FillContiguousStrides (GH-3993)
https://github.com/python/cpython/commit/1b9e76ed3a055a53ca67397e928e1b408461900b


--
nosy: +berker.peksag

___
Python tracker 

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



[issue31754] Documented type of parameter 'itemsize' to PyBuffer_FillContiguousStrides is incorrect.

2017-10-15 Thread Roundup Robot

Change by Roundup Robot :


--
pull_requests: +3978

___
Python tracker 

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



[issue31754] Documented type of parameter 'itemsize' to PyBuffer_FillContiguousStrides is incorrect.

2017-10-15 Thread Berker Peksag

Change by Berker Peksag :


--
type:  -> behavior

___
Python tracker 

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



[issue31754] Documented type of parameter 'itemsize' to PyBuffer_FillContiguousStrides is incorrect.

2017-10-15 Thread Berker Peksag

Berker Peksag  added the comment:


New changeset e881302b70ab36bafcf37e3917be118bbec97763 by Berker Peksag (Miss 
Islington (bot)) in branch '3.6':
[3.6] bpo-31754: Fix type of 'itemsize' in PyBuffer_FillContiguousStrides 
(GH-3993)
https://github.com/python/cpython/commit/e881302b70ab36bafcf37e3917be118bbec97763


--

___
Python tracker 

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



[issue31754] Documented type of parameter 'itemsize' to PyBuffer_FillContiguousStrides is incorrect.

2017-10-15 Thread Berker Peksag

Change by Berker Peksag :


--
stage: patch review -> backport needed

___
Python tracker 

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



[issue31788] Typo in comments Modules/_ssl.c

2017-10-15 Thread Berker Peksag

Change by Berker Peksag :


--
keywords: +easy
stage:  -> needs patch
type:  -> behavior
versions:  -Python 3.4, Python 3.5, Python 3.8

___
Python tracker 

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



[issue31788] Typo in comments Modules/_ssl.c

2017-10-15 Thread Berker Peksag

Change by Berker Peksag :


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



[issue31788] Typo in comments Modules/_ssl.c

2017-10-15 Thread Roundup Robot

Change by Roundup Robot :


--
keywords: +patch
pull_requests: +3979
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



[issue31792] test_buffer altered the execution environment

2017-10-15 Thread Serhiy Storchaka

New submission from Serhiy Storchaka :

test_buffer adds two environment variables: 'OPENBLAS_MAIN_FREE': '1', 
'GOTOBLAS_MAIN_FREE': '1'.

$ ./python -m test -v test_buffer
...
Warning -- os.environ was modified by test_buffer
  Before: (140174267697792, environ({...})
  After:  (140174267697792, environ({..., 'OPENBLAS_MAIN_FREE': '1', 
'GOTOBLAS_MAIN_FREE': '1'}) 
test_buffer failed (env changed)

1 test altered the execution environment:
test_buffer

Total duration: 8 sec
Tests result: SUCCESS

--
components: Tests
messages: 304426
nosy: ezio.melotti, haypo, michael.foord, serhiy.storchaka, skrah
priority: normal
severity: normal
status: open
title: test_buffer altered the execution environment
type: resource usage
versions: Python 3.6, Python 3.7

___
Python tracker 

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



[issue31786] In select.poll.poll() ms can be 0 if timeout < 0

2017-10-15 Thread STINNER Victor

STINNER Victor  added the comment:

I suggest to implement ROUND_UP in pytime and use it in all functions
accepting a timeout, not only poll. Search for ROUND_CEILING in the code to
find them. But functions accepting time like clock_settime() must continue
to use ROUND_CEILING.

Does someone want to work on such patch? The new rounding mode must be test
in test_time, you should just add the new mode at the top once if I recall
correctly.

---

select.poll currently uses ROUND_CEILING: round towards +infinity.

It looks like you would prefer ROUND_UP: round away from zero, right?

In the history of CPython, the rounding mode of functions accepting time,
timeout, duration, etc. changed many times, mostly because the C code
changed in subtle ways to fix different bugs. I mean that the exact
rounding mode wasn't really chosen on purpose. I'm now trying to get better
defined rouding modes in pytime, but it seems poll uses the wrong one.

https://haypo.github.io/pytime.html

I think that my problem is that I wanted to reuse the same rounding modes
for different use cases. It seems like clocks need ROUND_CEILING but
timeouts need ROUND_UP. Well, in the case of poll, the previous code before
moving to pytime was using ceil() which uses ROUND_CEILING.

--

___
Python tracker 

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



[issue31792] test_buffer altered the execution environment

2017-10-15 Thread STINNER Victor

STINNER Victor  added the comment:

Why the env changed wasn't noticed before? Is it a recent change?

--

___
Python tracker 

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



[issue31793] Allow to specialize smart quotes in documentation translations

2017-10-15 Thread Julien Palard

New submission from Julien Palard :

It would be great to allow each translation to specify their smart-quotes 
configuration, typically Japanese prefer no smart-quotes:

- https://github.com/python/docsbuild-scripts/issues/32

It's easily done by adding a Doc/docutils.conf file, I'm opening a PR.

--
assignee: docs@python
components: Documentation
messages: 304429
nosy: docs@python, mdk
priority: normal
severity: normal
status: open
title: Allow to specialize smart quotes in documentation translations
versions: Python 3.6, Python 3.7

___
Python tracker 

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



[issue31793] Allow to specialize smart quotes in documentation translations

2017-10-15 Thread Roundup Robot

Change by Roundup Robot :


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

___
Python tracker 

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



[issue31792] test_buffer altered the execution environment

2017-10-15 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

I just have installed NumPy. It temporary sets these two environment variables 
for importing the multiarray numpy extension module, but forgot to remove them 
if the import is failed.

test_buffer imports numpy.

try:
with warnings.catch_warnings():
from numpy import ndarray as numpy_array
except ImportError:
numpy_array = None

--

___
Python tracker 

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



[issue31786] In select.poll.poll() ms can be 0 if timeout < 0

2017-10-15 Thread Berker Peksag

Change by Berker Peksag :


--
nosy: +berker.peksag

___
Python tracker 

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



[issue31786] In select.poll.poll() ms can be 0 if timeout < 0

2017-10-15 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

This particular issue can be fixed by adding the condition 
(PyFloat_Check(timeout_obj) && PyFloat_AsDouble(timeout_obj) < 0). The problem 
is only with writing good test for infinity timeout.

This test could be also used for testing issue31334.

--

___
Python tracker 

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



[issue31792] test_buffer altered the execution environment

2017-10-15 Thread Stefan Krah

Stefan Krah  added the comment:

So it is a numpy issue? Which numpy version is it?

--
versions: +Python 3.8 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue31794] Issues with test.autotest

2017-10-15 Thread Serhiy Storchaka

New submission from Serhiy Storchaka :

There are issues with running tests by importing test.autotest.

1. test_builtin failed.

0:00:00 load avg: 0.70 [  4/407] test_builtin
test test_builtin failed -- Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1735, in 
test_input_no_stdout_fileno
lines = self.run_child(child, b"quux\r")
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1680, in 
run_child
% (len(lines), child_output))
AssertionError: got 1 lines in pipe but expected 2, child output was:
quux
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1646, in 
run_child
child(wpipe)
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1733, in child
input("prompt")
EOFError: EOF when reading a line


0:00:00 load avg: 0.70 [  5/407/1] test_exceptions -- test_builtin failed
test test_builtin failed -- Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1735, in 
test_input_no_stdout_fileno
lines = self.run_child(child, b"quux\r")
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1680, in 
run_child
% (len(lines), child_output))
AssertionError: got 1 lines in pipe but expected 2, child output was:
quux
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1646, in 
run_child
child(wpipe)
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1733, in child
input("prompt")
EOFError: EOF when reading a line


0:00:01 load avg: 0.70 [  5/407/1] test_exceptions -- test_builtin failed
0:00:01 load avg: 0.70 [  4/407] test_builtin
Warning -- reap_children() reaped child process 4752
0:00:01 load avg: 0.70 [  4/407] test_builtin
0:00:01 load avg: 0.70 [  6/407/1] test_types
test test_builtin failed -- Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1735, in 
test_input_no_stdout_fileno
lines = self.run_child(child, b"quux\r")
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1680, in 
run_child
% (len(lines), child_output))
AssertionError: got 1 lines in pipe but expected 2, child output was:
quux
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1646, in 
run_child
child(wpipe)
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1733, in child
input("prompt")
EOFError: EOF when reading a line


0:00:01 load avg: 0.70 [  5/407/1] test_exceptions -- test_builtin failed
Warning -- reap_children() reaped child process 4755
0:00:01 load avg: 0.70 [  6/407/1] test_types
0:00:01 load avg: 0.70 [  7/407/1] test_unittest
Warning -- reap_children() reaped child process 4758
0:00:01 load avg: 1.12 [  6/407/1] test_types
0:00:01 load avg: 1.12 [  7/407/1] test_unittest
0:00:01 load avg: 1.12 [  7/407/1] test_unittest
test test_builtin failed -- Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1735, in 
test_input_no_stdout_fileno
lines = self.run_child(child, b"quux\r")
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1680, in 
run_child
% (len(lines), child_output))
AssertionError: got 1 lines in pipe but expected 2, child output was:
quux
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1646, in 
run_child
child(wpipe)
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1733, in child
input("prompt")
EOFError: EOF when reading a line


0:00:01 load avg: 1.12 [  5/407/1] test_exceptions -- test_builtin failed
test test_builtin failed -- Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1735, in 
test_input_no_stdout_fileno
lines = self.run_child(child, b"quux\r")
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1680, in 
run_child
% (len(lines), child_output))
AssertionError: got 1 lines in pipe but expected 2, child output was:
quux
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1646, in 
run_child
child(wpipe)
  File "/home/serhiy/py/cpython/Lib/test/test_builtin.py", line 1733, in child
input("prompt")
EOFError: EOF when reading a line


0:00:01 load avg: 1.12 [  5/407/1] test_exceptions -- test_builtin failed
Warning -- reap_children() reaped child process 4761
0:00:01 load avg: 1.12 [  6/407/1] test_types
Warning -- reap_children() reaped child process 4763

Note that warnings and errors are emitted even after reporting that 
test_builtin failed.


2. Tests are ran multiple times.

0:02:32 load avg: 4.82 [ 77/407/1] test_concurrent_futures
0:02:35 load avg: 4.82 [ 76/407/1] test_complex
0:02:35 load avg: 4.82 [ 77/407/1] test_concurrent_futures
test test_concurrent_futures failed -- multiple errors occurred; run in verbose 
mode for details
0:0

[issue31792] test_buffer altered the execution environment

2017-10-15 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

It is particularly a NumPy issue (I have opened a bug 
https://github.com/numpy/numpy/issues/9861). It is exposed because I have 
installed NumPy with non-debug build of CPython and run the test with debug 
build of CPython. The test is passes with non-debug build of CPython. I am 
wondering if we can make a workaround and if we should do this.

--

___
Python tracker 

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



[issue31792] test_buffer altered the execution environment

2017-10-15 Thread Stefan Krah

Stefan Krah  added the comment:

Thanks. If it only occurs when mixing debug/non-debug I don't think we have to 
do anything about it.

--

___
Python tracker 

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



[issue31792] test_buffer altered the execution environment

2017-10-15 Thread STINNER Victor

STINNER Victor  added the comment:

I suggest to always save/restore env vars on numpy import, since we don't
control 3rd party code.

--

___
Python tracker 

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



[issue31792] test_buffer altered the execution environment

2017-10-15 Thread Stefan Krah

Stefan Krah  added the comment:

That's fine.

--

___
Python tracker 

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



[issue31792] test_buffer altered the execution environment

2017-10-15 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue31792] test_buffer altered the execution environment

2017-10-15 Thread Stefan Krah

Stefan Krah  added the comment:

I can't figure out how to make the damn button green on GitHub,
so LGTM. :)

--

___
Python tracker 

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



[issue31786] In select.poll.poll() ms can be 0 if timeout < 0

2017-10-15 Thread Pablo

Pablo  added the comment:

I have added a Pull Request fixing this issue. The current implementation is 
checking in the syscall if the value for ms before rounding was negative.

To test for this, I call poll.poll in a thread and check that the thread is 
alive after a join with timeout (so this means it has blocked). Then to clean 
up, I write to a pipe and therefore it unblocks.

The implementation is available in the PR:

https://github.com/python/cpython/pull/4003

--
nosy: +pablogsal

___
Python tracker 

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



[issue31786] In select.poll.poll() ms can be 0 if timeout < 0

2017-10-15 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Thank you Pablo. The initial test leaked a thread, now it is much better.

Could you please make the test testing different timeout values: None, -1, 
-1.0, -0.1, -1e-100?

--

___
Python tracker 

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



[issue31792] test_buffer altered the execution environment

2017-10-15 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

The issue is fixed on NumPy side (will be included in the next release). Is the 
workaround on our side still needed?

--

___
Python tracker 

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



[issue31792] test_buffer altered the execution environment

2017-10-15 Thread Stefan Krah

Stefan Krah  added the comment:

I'd push it so we don't have to worry about similar things in the
future.  The "warnings.catch_warnings()" thing is also a workaround
for some past numpy release.

--

___
Python tracker 

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



[issue31788] Typo in comments Modules/_ssl.c

2017-10-15 Thread Aniket Vyas

Aniket Vyas  added the comment:

I can pick this up if it's okay.

--
nosy: +vyas45

___
Python tracker 

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



[issue31788] Typo in comments Modules/_ssl.c

2017-10-15 Thread Aniket Vyas

Aniket Vyas  added the comment:

My bad, didn't notice the PR already existing.

--

___
Python tracker 

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



[issue31786] In select.poll.poll() ms can be 0 if timeout < 0

2017-10-15 Thread Pablo Galindo Salgado

Pablo Galindo Salgado  added the comment:

I have updated both the test and the implementation to address your feedback.

--

___
Python tracker 

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



[issue31788] Typo in comments Modules/_ssl.c

2017-10-15 Thread Benjamin Peterson

Benjamin Peterson  added the comment:


New changeset 1295e11d397c6138427296d5f9653a9e7dd69062 by Benjamin Peterson 
(Semen Zhydenko) in branch 'master':
completly -> completely (#3999) (closes bpo-31788)
https://github.com/python/cpython/commit/1295e11d397c6138427296d5f9653a9e7dd69062


--
nosy: +benjamin.peterson
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



[issue31788] Typo in comments Modules/_ssl.c

2017-10-15 Thread Roundup Robot

Change by Roundup Robot :


--
pull_requests: +3982

___
Python tracker 

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



[issue31788] Typo in comments Modules/_ssl.c

2017-10-15 Thread Benjamin Peterson

Benjamin Peterson  added the comment:


New changeset cfc604722ff5ad64de96ddeb944661f1e94d8cd0 by Benjamin Peterson 
(Miss Islington (bot)) in branch '3.6':
[3.6] completly -> completely (GH-3999) (closes bpo-31788) (#4008)
https://github.com/python/cpython/commit/cfc604722ff5ad64de96ddeb944661f1e94d8cd0


--

___
Python tracker 

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



[issue31791] Ensure that all PyTypeObject fields are set to non-NULL defaults

2017-10-15 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

For all the reasons Serhiy mentioned, I recommend rejecting this request.  This 
was an intentional and long-standing design decision. A substantial part of the 
Python ecosystem depends on it.

--
nosy: +rhettinger

___
Python tracker 

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



[issue31795] Slicings documentation doesn't mention Ellipsis

2017-10-15 Thread Nitish

New submission from Nitish :

Ellipsis object documentation[1] specifies that Ellipsis is mainly used by 
Slicings. But Slicing's documentation[2] doesn't mention anything about 
Ellipsis. Consequently - it is not immediately clear from Ellipsis 
documentation what it's used for.

[1] 
https://docs.python.org/3/library/stdtypes.html?highlight=ellipsis#the-ellipsis-object

[2] https://docs.python.org/3/reference/expressions.html#slicings

--
assignee: docs@python
components: Documentation
messages: 304449
nosy: docs@python, nitishch
priority: normal
severity: normal
status: open
title: Slicings documentation doesn't mention Ellipsis
type: enhancement

___
Python tracker 

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



[issue31796] The mccabe complexity output in module flake8.

2017-10-15 Thread fuqianz

New submission from fuqianz :

Dear,
  I have found that if a function name appears more than one time in a
file, the output of McCabe complexity for this function name only appear
once. I think it should output all of them. So, I send this email for
inquiring about this confusing problems.

Thanks,

Sincerely,

fuqianz

--
messages: 304450
nosy: fqbrighter
priority: normal
severity: normal
status: open
title: The mccabe complexity output in module flake8.

___
Python tracker 

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



[issue31796] The mccabe complexity output in module flake8.

2017-10-15 Thread Ned Deily

Ned Deily  added the comment:

flake8 is not part of the Python Standard Library.  You might start with its 
project page here: https://gitlab.com/pycqa/flake8

--
nosy: +ned.deily
resolution:  -> third party
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



[issue31795] Slicings documentation doesn't mention Ellipsis

2017-10-15 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

In regular Python, the ellipsis isn't used for slicing.  It does have special 
meaning for numpy.   So, I think the docs may be correct as is.

--
nosy: +rhettinger

___
Python tracker 

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



[issue31795] Slicings documentation doesn't mention Ellipsis

2017-10-15 Thread Nitish

Nitish  added the comment:

The problem is that while documentation for other objects like Null object, 
NotImplemented object make it clear what they are used for, documentation for 
Ellipsis object only says that it's used in slicings and the slicings 
documentation doesn't cover Ellipsis.

Can we add an example of its usage in Numpy to the docs?

--

___
Python tracker 

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



[issue31760] Re-definition of _POSIX_C_SOURCE with Fedora 26.

2017-10-15 Thread Martin Panter

Martin Panter  added the comment:

Looks the same as Issue 31374

--
nosy: +martin.panter
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> expat: warning: "_POSIX_C_SOURCE" redefined

___
Python tracker 

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