[issue35609] Improve of abc.py docstring

2018-12-28 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Double spaces between sentences increase readability. This is not a bug.

Since abstractclassmethod and like are deprecated and should not be used in new 
code, I do not see a value of extending their docstrings. Too verbose 
docstrings make using the module help less convenient. I would rather remove 
existing examples from docstrings. The module documentation contains more 
modern examples.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35611] open doesn't call IncrementalEncoder with final=True

2018-12-28 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
assignee:  -> lemburg
nosy: +doerwalter, lemburg

___
Python tracker 

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



[issue28134] socket.socket(fileno=fd) does not work as documented

2018-12-28 Thread Nathaniel Smith


Nathaniel Smith  added the comment:

Am I right that this is considered fixed (or at least as fixed as it can be), 
and the issue should be closed?

Also, small note in case anyone stumbles across this in the future and is 
confused: Python does *not* handle this correctly on Windows. I suspect 
Christian was confused because there's an undocumented features on Windows 
where if you pass fileno=, then that 
correctly reinstantiates the socket object. But fileno= 
doesn't seem to do any special autodetection of type/family/proto.

--
nosy: +njs

___
Python tracker 

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



[issue34055] IDLE: erroneous 'smart' indents in shell

2018-12-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I 'moved' pr-11307 to #35610 by changing the title.

--

___
Python tracker 

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



[issue35611] open doesn't call IncrementalEncoder with final=True

2018-12-28 Thread David Haney


New submission from David Haney :

The implementation of open relies on a codecs' IncrementalEncoder, however it 
never calls `encode` with final=True. This appears to violate the documentation 
for IncrementalEncoder.encode which states that the last call to encode _must_ 
set final=True.

The attached test case demonstrates this behavior. A codec "delayed" is 
implemented that holds the last encoded string until the next call to `encode`, 
at which point it returns the encoded string. When final=True, both the 
previous and current string are returned.

When `codecs.iterencode` is used to encode a sequence of strings, the encode 
function is called for each element in the sequence, with final=False. encode 
is then called a final time with an empty string and final=True.

When `open` is used to open a file stream for the encoding, each call to 
`write` calls `encode` with final=False, however it never calls `encode` with 
final=True, and it doesn't appear there's an API for forcing it to occur (for 
instance `flush` and `close` do not).

--
components: IO
files: test.py
messages: 332701
nosy: haney
priority: normal
severity: normal
status: open
title: open doesn't call IncrementalEncoder with final=True
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48022/test.py

___
Python tracker 

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



[issue34055] IDLE: erroneous 'smart' indents in shell

2018-12-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Even before this fix, in 3.7.2, I no longer see the extra blank lines I 
reported in msg321135 either on Windows or macOS.  I did still see the 
persistent and expanding indents reported in the opening post.  I believe that 
this is what Raymond also referred to.  The one I could reproduce are now gone. 
 Hence, I close this.

Remaining newline and indent issues should be handled in other issues.

* I intend to review the initial PR for #32989 soon.  I don't know what its 
effect might be on the user-visible result.

* Too short indents for open fences needs a new issue.

* Blank line before SyntaxError: interactive python does this.

>>> d={a:'a}
  File "", line 1
d={a:'a}
   ^
SyntaxError: EOL while scanning string literal
>>>

The ^ line is nearly blank.  IDLE omits the line echo and ^ and adds a red 
highlight instead ... + an invisible indent on the next line (now too short). 
(It also color-codes the error message.)

>>> d={a:'a}<---red highlight to end of line...
   
SyntaxError: EOL while scanning string literal
>>>

Checking syntax first and skipping indent on error would give the following.  I 
don't know how easy this would be.

>>> d={a:'a}<---red highlight to end of line...
SyntaxError: EOL while scanning string literal
>>>

--
dependencies:  -IDLE: Fix pyparse.find_good_parse_start and its bad editor call
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



[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2018-12-28 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
pull_requests: +10658

___
Python tracker 

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



[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2018-12-28 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
keywords: +patch, patch
pull_requests: +10656, 10657

___
Python tracker 

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



[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2018-12-28 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
keywords: +patch
pull_requests: +10656

___
Python tracker 

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



[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2018-12-28 Thread Terry J. Reedy


New submission from Terry J. Reedy :

Attribute .context_use_ps1 is False in EditorWindow and Outwin, True in 
PyShell.  It is use to switch code paths in multiple classes.  It is equal to 
isinstance(self/editwin, PyShell) (which requires an import).  It has the same 
truth value as attribute .prompt_last_line, which is '' except in PyShell.  
This more informative attribute was added in #31858 to consolidate all PS1 
handling in PyShell.

A PR for #34055 proposed to remove the setting of .context_use_ps1 and the uses 
with .prompt_last_line.  I will change the title after I submit this.  I am not 
yet sure if this is the change I want to make.

--
assignee: terry.reedy
components: IDLE
messages: 332700
nosy: cheryl.sabella, terry.reedy
priority: normal
severity: normal
stage: patch review
status: open
title: IDLE: replace use of EditorWindow.context_use_ps1
type: enhancement
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



[issue31858] IDLE: cleanup use of sys.ps1 and never set it.

2018-12-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

By mistake, I deleted the setting of context_use_ps1 in PyShell while still in 
use in several places.  Fixed in #34055.

--

___
Python tracker 

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



[issue35594] Python script generating Segmentation Fault

2018-12-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The script has 14 imports from 10 external packages, perhaps half of which 
include C code.  In such cases, the crash is nearly always in the external 
package, and Daugeras has already identified a pandas routine.

Daugeras, you can re-open if you gain evidence that the problem is in the 
cpython code we are responsible for.  But you should start by stripping out as 
much as you can and if there are crashes in pandas, submit a report to its 
authors.

--
nosy: +terry.reedy
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



[issue35593] Register standard browser: Chrome

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10652

___
Python tracker 

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



[issue35593] Register standard browser: Chrome

2018-12-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

As near as I can tell, this is *not* a duplicate of #8232.

--
nosy: +terry.reedy
stage: patch review -> 

___
Python tracker 

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



[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2018-12-28 Thread Steve Dower


Steve Dower  added the comment:

I took a closer look at the diff since 3.7.1, and I'm not seeing anything 
either. I suspect we need to step through zipimport/importlib and figure out 
exactly where it rejects the .pyc files in the zip.

--

___
Python tracker 

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



[issue35609] Improve of abc.py docstring

2018-12-28 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
pull_requests: +10653, 10654
stage:  -> patch review

___
Python tracker 

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



[issue35609] Improve of abc.py docstring

2018-12-28 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
pull_requests: +10653, 10654, 10655
stage:  -> patch review

___
Python tracker 

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



[issue35609] Improve of abc.py docstring

2018-12-28 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
pull_requests: +10653
stage:  -> patch review

___
Python tracker 

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



[issue35608] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread Emmanuel Arias


Emmanuel Arias  added the comment:

> data = result_queue.get()

And this is blocked

--

___
Python tracker 

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



[issue35593] Register standard browser: Chrome

2018-12-28 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch, patch
pull_requests: +10651, 10652
stage:  -> patch review

___
Python tracker 

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



[issue35608] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread Emmanuel Arias


Emmanuel Arias  added the comment:

Hi

>def write_to_stdout(result_queue: Queue):

I think that you have to write here a sleep. IMO this is blocking all.

--
nosy: +eamanu

___
Python tracker 

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



[issue35593] Register standard browser: Chrome

2018-12-28 Thread Roundup Robot


Change by Roundup Robot :


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

___
Python tracker 

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



[issue35609] Improve of abc.py docstring

2018-12-28 Thread Emmanuel Arias


New submission from Emmanuel Arias :

Hi!

I prepare a little improve. I added some samples usage, some clarification and 
delete some whitespace unnecessary.

Attach patch. 

Regards

--
assignee: docs@python
components: Documentation
files: 0001-improve-abc.py-docstring.patch
keywords: patch
messages: 332693
nosy: docs@python, eamanu
priority: normal
severity: normal
status: open
title: Improve of abc.py docstring
type: enhancement
versions: Python 3.8
Added file: 
https://bugs.python.org/file48021/0001-improve-abc.py-docstring.patch

___
Python tracker 

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



[issue35570] 2to3 creates code using deprecated imp module

2018-12-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

It was decided in #21446 to only backport the change, labelled an enhancement, 
to 3.7 and it is now too late to challenge that decision as 3.6 only gets 
security fixes.

--
nosy: +terry.reedy
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Update reload fixer to use importlib instead of imp

___
Python tracker 

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



[issue35608] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread 白稳平

Change by 白稳平 :


--
type:  -> behavior

___
Python tracker 

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



[issue35608] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread 白稳平

New submission from 白稳平 :

I used multi-processes to handle cpu intensive task,I have a thread reading 
data from stdin and put it to a input_queue,  a thread get data from 
output_queue and write it to stdout, multiple processes get data from input 
queue,then handled the data,and put it to output_queue.But It some times will 
block forever,I doubt that it was because inappropriate to use the 
multiprocessing Queue,But I don't know how to solved it,can anyone help me?
my code as follows:

import multiprocessing
import sys
import threading
import time
from multiprocessing import Queue


def write_to_stdout(result_queue: Queue):
"""write queue data to stdout"""
while True:
data = result_queue.get()
if data is StopIteration:
break
sys.stdout.write(data)
sys.stdout.flush()


def read_from_stdin(queue):
"""read data from stdin, put it in queue for process handling"""
try:
for line in sys.stdin:
queue.put(line)
finally:
queue.put(StopIteration)


def process_func(input_queue, result_queue):
"""get data from input_queue,handled,put result into result_queue"""
try:
while True:
data = input_queue.get()
if data is StopIteration:
break
# cpu intensive task,use time.sleep instead
# result = compute_something(data)
time.sleep(0.1)
result_queue.put(data)
finally:
# ensure every process end
input_queue.put(StopIteration)


if __name__ == '__main__':
# queue for reading to stdout
input_queue = Queue(1000)

# queue for writing to stdout
result_queue = Queue(1000)

# thread reading data from stdin
input_thread = threading.Thread(target=read_from_stdin, 
args=(input_queue,))
input_thread.start()

# thread reading data from stdin
output_thread = threading.Thread(target=write_to_stdout, 
args=(result_queue,))
output_thread.start()

processes = []
cpu_count = multiprocessing.cpu_count()
# start multi-process to handle some cpu intensive task
for i in range(cpu_count):
proc = multiprocessing.Process(target=process_func, 
args=(input_queue, result_queue))
proc.start()
processes.append(proc)

# joined input thread
input_thread.join()

# joined all task processes
for proc in processes:
proc.join()

# ensure output thread end
result_queue.put(StopIteration)

# joined output thread
output_thread.join()

test environment:  

python3.6.5
ubuntu16.04

--
components: Library (Lib)
messages: 332691
nosy: davin, pitrou, 白稳平
priority: normal
severity: normal
status: open
title: python3 multiprocessing queue deadlock when use thread and process at 
same time
versions: Python 3.6

___
Python tracker 

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



[issue35607] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread 白稳平

Change by 白稳平 :


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



[issue35607] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread 白稳平

Change by 白稳平 :


Removed file: https://bugs.python.org/file48020/新建文本文档.txt

___
Python tracker 

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



[issue35607] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread 白稳平

New submission from 白稳平 :

I used multi-processes to handle cpu intensive task,I have a thread reading 
data from stdin and put it to a input_queue,  a thread get data from 
output_queue and write it to stdout, multiple processes get data from input 
queue,then handled the data,and put it to output_queue.But It some times will 
block forever,I doubt that it was because inappropriate to use the 
multiprocessing Queue,But I don't know how to solved it,can anyone help me?
my code as follows:

import multiprocessing
import sys
import threading
import time
from multiprocessing import Queue


def write_to_stdout(result_queue: Queue):
"""write queue data to stdout"""
while True:
data = result_queue.get()
if data is StopIteration:
break
sys.stdout.write(data)
sys.stdout.flush()


def read_from_stdin(queue):
"""read data from stdin, put it in queue for process handling"""
try:
for line in sys.stdin:
queue.put(line)
finally:
queue.put(StopIteration)


def process_func(input_queue, result_queue):
"""get data from input_queue,handled,put result into result_queue"""
try:
while True:
data = input_queue.get()
if data is StopIteration:
break
# cpu intensive task,use time.sleep instead
# result = compute_something(data)
time.sleep(0.1)
result_queue.put(data)
finally:
# ensure every process end
input_queue.put(StopIteration)


if __name__ == '__main__':
# queue for reading to stdout
input_queue = Queue(1000)

# queue for writing to stdout
result_queue = Queue(1000)

# thread reading data from stdin
input_thread = threading.Thread(target=read_from_stdin, 
args=(input_queue,))
input_thread.start()

# thread reading data from stdin
output_thread = threading.Thread(target=write_to_stdout, 
args=(result_queue,))
output_thread.start()

processes = []
cpu_count = multiprocessing.cpu_count()
# start multi-process to handle some cpu intensive task
for i in range(cpu_count):
proc = multiprocessing.Process(target=process_func, 
args=(input_queue, result_queue))
proc.start()
processes.append(proc)

# joined input thread
input_thread.join()

# joined all task processes
for proc in processes:
proc.join()

# ensure output thread end
result_queue.put(StopIteration)

# joined output thread
output_thread.join()

test environment:  

python3.6
ubuntu16.04 lts

--

___
Python tracker 

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



[issue35607] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread 白稳平

Change by 白稳平 :


--
components: Library (Lib)
files: 新建文本文档.txt
nosy: 白稳平
priority: normal
severity: normal
status: open
title: python3 multiprocessing queue deadlock when use thread and process at 
same time
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file48020/新建文本文档.txt

___
Python tracker 

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



[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread miss-islington


miss-islington  added the comment:


New changeset 8f9228dd3a37c98876c9c8ff7fb0042650303474 by Miss Islington (bot) 
in branch '3.7':
bpo-35601: Alleviate race condition when waiting for SIGALRM in test_asyncio 
(GH-11337)
https://github.com/python/cpython/commit/8f9228dd3a37c98876c9c8ff7fb0042650303474


--
nosy: +miss-islington

___
Python tracker 

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



[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10646, 10647, 10648, 10649, 10650

___
Python tracker 

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



[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10645, 10646

___
Python tracker 

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



[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10647, 10650

___
Python tracker 

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



[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10646, 10647, 10649, 10650

___
Python tracker 

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



[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10645, 10646, 10647

___
Python tracker 

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



[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10645

___
Python tracker 

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



[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 5471420faa84519530f29b08f2b042b2288e3e96 by Pablo Galindo in 
branch 'master':
bpo-35601: Alleviate race condition when waiting for SIGALRM in test_asyncio 
(GH-11337)
https://github.com/python/cpython/commit/5471420faa84519530f29b08f2b042b2288e3e96


--

___
Python tracker 

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



[issue34055] IDLE: erroneous 'smart' indents in shell

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10643

___
Python tracker 

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



[issue34055] IDLE: erroneous 'smart' indents in shell

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10644

___
Python tracker 

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



[issue34055] IDLE: erroneous 'smart' indents in shell

2018-12-28 Thread miss-islington


miss-islington  added the comment:


New changeset 95dc4577c3a1bb12978de5234aaf07839f4d7844 by Miss Islington (bot) 
in branch '3.7':
bpo-34055: Revert deletion of line in IDLE's PyShell (GH-11346)
https://github.com/python/cpython/commit/95dc4577c3a1bb12978de5234aaf07839f4d7844


--
nosy: +miss-islington

___
Python tracker 

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



[issue34055] IDLE: erroneous 'smart' indents in shell

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10642, 10643
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



[issue34055] IDLE: erroneous 'smart' indents in shell

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10642, 10643, 10644
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



[issue34055] IDLE: erroneous 'smart' indents in shell

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10642
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



[issue34055] IDLE: erroneous 'smart' indents in shell

2018-12-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 4bc246786f003cdf1fffb3403b4cd92fc42ba9ef by Terry Jan Reedy in 
branch 'master':
bpo-34055: Revert deletion of line in IDLE's PyShell (#11346)
https://github.com/python/cpython/commit/4bc246786f003cdf1fffb3403b4cd92fc42ba9ef


--

___
Python tracker 

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



[issue35606] Add prod() function to the math module

2018-12-28 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue35605] backported patch requires new sphinx, minimum sphinx version was not bumped

2018-12-28 Thread Ned Deily


Ned Deily  added the comment:

Julien (@mdk) is the doc builds expert.

--
assignee: docs@python -> mdk

___
Python tracker 

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



[issue5672] Implement a way to change the python process name

2018-12-28 Thread Dan Stromberg


Dan Stromberg  added the comment:

Isn't this "python script doesn't show up in top correctly" issue a matter of 
"#!/usr/bin/env python3"?

If you "#!/usr/bin/python3" (for example) instead, top seems happy.

--
nosy: +strombrg

___
Python tracker 

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



[issue34055] IDLE: erroneous 'smart' indents in shell

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10641

___
Python tracker 

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



[issue34055] IDLE: erroneous 'smart' indents in shell

2018-12-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I changed the title back to the symptom description, rather than the wrong fix. 
 As Cheryl noted, the cause of the specific regression is the erroneous 
deletion of one line in pyshell.PyShell.  The simplest fix is to put is back.

Globally replacing context_use_ps1 is a different issue, and there is more than 
one possibility.  I will open a new issue and move PR 11307 there.

The reversion also reverts the 'fixes' that came with the error.  Fixing the 
shell branch, now that is is used, will be a different issue.
>>> d = {1:3,
 # correct indent, 3.7

>>> d = {1:3,
 # indent not accounting for prompt, after reversion

--
stage: patch review -> test needed
title: IDLE Shell: check syntax before smart indent -> IDLE: erroneous 'smart' 
indents in shell

___
Python tracker 

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



[issue34055] IDLE: erroneous 'smart' indents in shell

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10640

___
Python tracker 

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



[issue34055] IDLE Shell: check syntax before smart indent

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +10639
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



[issue34055] IDLE Shell: check syntax before smart indent

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +10639, 10640
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



[issue34055] IDLE Shell: check syntax before smart indent

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +10639, 10640, 10641
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



[issue35605] backported patch requires new sphinx, minimum sphinx version was not bumped

2018-12-28 Thread Anthony Sottile


Anthony Sottile  added the comment:

I assume that means I should only target 3.6 -- does the patch look like the 
right approach? I can make a PR

--

___
Python tracker 

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



[issue35605] backported patch requires new sphinx, minimum sphinx version was not bumped

2018-12-28 Thread Steve Dower


Steve Dower  added the comment:

I think we're okay to increase the minimum version on the active branches.

--

___
Python tracker 

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



[issue35605] backported patch requires new sphinx, minimum sphinx version was not bumped

2018-12-28 Thread Anthony Sottile


Anthony Sottile  added the comment:

If I add a patch which is essentially:


try:  # sphinx>=1.6
from sphinx.util.logging import getLogger
except ImportError:  # sphinx<1.6
from logging import getLogger

will that be fine?

and should I open that against 3.7 to be backported or just against 3.6 (I also 
ran into the same issue when backporting 3.7.2 for xenial -- but there I 
adjusted the minimum sphinx version: 
https://github.com/deadsnakes/python3.7/commit/c27b89bc7032d0b072b46c7425e5b32788f1c0fd
 )

--

___
Python tracker 

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



[issue28097] IDLE: document all key bindings, add menu items for more.

2018-12-28 Thread miss-islington


miss-islington  added the comment:


New changeset b716c716b5d5dc630d85dd16ca6526948745c020 by Miss Islington (bot) 
in branch '3.7':
bpo-28097: IDLE - Add Previous/Next History to Shell menu (GH-11325)
https://github.com/python/cpython/commit/b716c716b5d5dc630d85dd16ca6526948745c020


--
nosy: +miss-islington

___
Python tracker 

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



[issue28097] IDLE: document all key bindings, add menu items for more.

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10637

___
Python tracker 

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



[issue28097] IDLE: document all key bindings, add menu items for more.

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10638

___
Python tracker 

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



[issue28097] IDLE: document all key bindings, add menu items for more.

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10636, 10637
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



[issue28097] IDLE: document all key bindings, add menu items for more.

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10636, 10637, 10638
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



[issue28097] IDLE: document all key bindings, add menu items for more.

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10636
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



[issue28097] IDLE: document all key bindings, add menu items for more.

2018-12-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset c0381aaea4ad3e866bde70393c4f7efe9bcf3568 by Terry Jan Reedy 
(Cheryl Sabella) in branch 'master':
 bpo-28097: IDLE - Add Previous/Next History to Shell menu (#11325)
https://github.com/python/cpython/commit/c0381aaea4ad3e866bde70393c4f7efe9bcf3568


--

___
Python tracker 

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



[issue35605] backported patch requires new sphinx, minimum sphinx version was not bumped

2018-12-28 Thread Ned Deily


Ned Deily  added the comment:

I would view this as a build regression in 3.6.8 so I would accept a fix for 
the 3.6 branch.

--

___
Python tracker 

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



[issue35606] Add prod() function to the math module

2018-12-28 Thread Raymond Hettinger


New submission from Raymond Hettinger :

Back in 2007, a user suggested a built-in prod() function with an API similar 
to the built-in sum() function.  The proposal was rejected because it wasn't 
needed often enough to justify a builtin function.  See 
https://bugs.python.org/issue1093

Though prod() doesn't meet the threshold for a builtin, it would be reasonable 
to add this to the math module (or an imath module).

Personally, I've wanted and written this function on several occasions (for 
applications such as multiplying probabilities).  On stack overflow, it has 
been a popular question with recurring interest.  See 
https://stackoverflow.com/questions/7948291/ and 
https://stackoverflow.com/questions/595374

--
components: Library (Lib)
messages: 332676
nosy: aleax, mark.dickinson, rhettinger, tim.peters
priority: normal
severity: normal
status: open
title: Add prod() function to the math module
type: enhancement
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



[issue35605] backported patch requires new sphinx, minimum sphinx version was not bumped

2018-12-28 Thread Steve Dower


Steve Dower  added the comment:

We need Ned's approval to fix anything in 3.6 now. Typically we do consider 
build issues, and this one is fairly innocent (the affected code should only be 
used on Windows, but the import may trigger elsewhere).

I'd be happy to take a patch to use logging when the sphinx one is not found. 
We more or less enforce a newer version of Sphinx on the platforms where it 
matters, but for those restricted by their distros we can pretty easily help 
out.

--
keywords: +easy
nosy: +ned.deily
priority: normal -> low

___
Python tracker 

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



[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2018-12-28 Thread Steve Dower


Steve Dower  added the comment:

None of the code you linked is defined on Windows at all, so it can't be that.

Are any stat checks done when there's only a .pyc to import? Could it be 
deciding that the .pyc is out of date and then failing to find source?

--

___
Python tracker 

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



[issue34055] IDLE Shell: check syntax before smart indent

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10544

___
Python tracker 

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



[issue34055] IDLE Shell: check syntax before smart indent

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10545

___
Python tracker 

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



[issue28097] IDLE: document all key bindings, add menu items for more.

2018-12-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Cheryl, the addition looks nice.  But for anything else, lets discuss here 
first.

--

___
Python tracker 

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



[issue35555] IDLE: Gray out Code Context on non-editor windows

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10634

___
Python tracker 

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



[issue35555] IDLE: Gray out Code Context on non-editor windows

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10635

___
Python tracker 

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



[issue35555] IDLE: Gray out Code Context on non-editor windows

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10633, 10634, 10635

___
Python tracker 

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



[issue35555] IDLE: Gray out Code Context on non-editor windows

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10633, 10634

___
Python tracker 

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



[issue35555] IDLE: Gray out Code Context on non-editor windows

2018-12-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10633

___
Python tracker 

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



[issue22703] Idle Code Context menu entrie(s)

2018-12-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I understand.  Until tcl/tk can be patched to work with both Mohave and past 
macOS versions, it is a nasty situation.

--

___
Python tracker 

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



[issue35555] IDLE: Gray out Code Context on non-editor windows

2018-12-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

A function to change state will be needed in the future, as illustrated by a 
preliminary version of PR-11325. On that PR, I requested that this part of that 
PR should be attached to this issue instead, with no change in the blurb.

--

___
Python tracker 

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



[issue35555] IDLE: Gray out Code Context on non-editor windows

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10631

___
Python tracker 

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



[issue35555] IDLE: Gray out Code Context on non-editor windows

2018-12-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10632

___
Python tracker 

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



[issue20849] add exist_ok to shutil.copytree

2018-12-28 Thread Giampaolo Rodola'


Change by Giampaolo Rodola' :


--
assignee:  -> giampaolo.rodola
resolution:  -> fixed
stage: patch review -> commit review
status: open -> closed

___
Python tracker 

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



[issue20849] add exist_ok to shutil.copytree

2018-12-28 Thread Giampaolo Rodola'


Giampaolo Rodola'  added the comment:


New changeset 9e00d9e88fbf943987e4771c753f5ca8f794103e by Giampaolo Rodola 
(jab) in branch 'master':
bpo-20849: add dirs_exist_ok arg to shutil.copytree (patch by Josh Bronson)
https://github.com/python/cpython/commit/9e00d9e88fbf943987e4771c753f5ca8f794103e


--

___
Python tracker 

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



[issue35588] Speed up mod/divmod/floordiv for Fraction type

2018-12-28 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Using divmod() makes the case of small integers 2-3% slower, but makes the case 
of large integers more significantly faster. And since the code with divmod() 
is simpler, I think it is worth to use it.

The Fraction class also serves educational goals. The simpler code is better. 
The proposed patch makes the code slightly more complex, but not too much. I 
think it's an affordable price for such degree of speed up.

--

___
Python tracker 

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



[issue28009] core logic of uuid.getnode() is broken for netstat

2018-12-28 Thread Michael Felt


Michael Felt  added the comment:

p.s., removed 2.7 and 3.6 as too old for any interest.

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



[issue28009] core logic of uuid.getnode() is broken for netstat

2018-12-28 Thread Michael Felt


Michael Felt  added the comment:

As I am not clear on where to have a more general discussion (in a PR 
conversation) or here - going to start here because I cannot figure out which 
comment in the PR to reply to.

Generally, before modifying the test_uuid.py to based tests on 
uuid.__NODE_GETTERS - these need to be defined.

I have my AIX systems, I found a macos I could do some queries on, and 
downloaded cygwin and came up with this starting point:

_MACOS = sys.platform == 'darwin'
_WIN32 = sys.platform == 'win32'
_CYGWIN= sys.platform == 'cygwin'
_AIX = sys.platform.startswith("aix")

...

if _AIX:
_NODE_GETTERS = [_unix_getnode, _netstat_getnode]
elif _MACOS:
_NODE_GETTERS = [_unix_getnode, _ifconfig_getnode, _netstat_getnode]
elif _CYGWIN:
_NODE_GETTERS = [_ipconfig_getnode]
elif _WIN32:
_NODE_GETTERS = [_windll_getnode, _ipconfig_getnode, _netbios_getnode]
else:
_NODE_GETTERS = [_unix_getnode, _ifconfig_getnode, _ip_getnode,
  _arp_getnode, _lanscan_getnode, _netstat_getnode]


What I am also wondering - is it worthwhile to have a way to only define the 
getter() routines a platform can actually use? e.g., On AIX I can call 
uuid._ipconfig_getter(), but get nonsense. Or is it too much effort?

Finally, can someone with access to other platforms where differences may be 
expected (e.g., Solaris, hpux, or even different flavors of Linux) - to make 
this _NODE_GETTERS mode complete (specific).

--

___
Python tracker 

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



[issue35605] backported patch requires new sphinx, minimum sphinx version was not bumped

2018-12-28 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +mdk, steve.dower

___
Python tracker 

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



[issue35605] backported patch requires new sphinx, minimum sphinx version was not bumped

2018-12-28 Thread Anthony Sottile


Anthony Sottile  added the comment:

oops, pressed the button too quickly, meant to mention that sphinx 1.6 was 
released 2017-05

--

___
Python tracker 

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



[issue35605] backported patch requires new sphinx, minimum sphinx version was not bumped

2018-12-28 Thread Anthony Sottile


New submission from Anthony Sottile :

Noticed this while packaging 3.6.8 for deadsnakes (ubuntu ppa)

This patch: https://github.com/python/cpython/pull/11251

Requires a version of sphinx where `sphinx.util.logging.getLogger` is 
available.  It appears that the first version which that was available was 1.6: 
https://github.com/sphinx-doc/sphinx/commit/6d4e6454093953943e79d4db6efeb17390870e62#diff-db360b033c6011189d978db1a4b7dcb7

For example, on ubuntu xenial (16.04) the newest packaged version of 
python3-sphinx available is 1.3.6 (released 2016-02) which satisfies the 
"minimum version": 
https://github.com/python/cpython/blob/3c6b436a57893dd1fae4e072768f41a199076252/Doc/conf.py#L36-L37

I hacked around it in this case by just using `logging.getLogger`: 
https://github.com/deadsnakes/python3.6/commit/9ba2234f35087a4bf67e3aecf2bd8dd0e3f67186

I'm not sure what the right answer is here, bumping the minimum version will 
make it _harder_ for packagers -- though I understand continuing to support old 
(2 years ago) things can be cumbersome.

--
assignee: docs@python
components: Build, Documentation
messages: 332665
nosy: Anthony Sottile, docs@python
priority: normal
severity: normal
status: open
title: backported patch requires new sphinx, minimum sphinx version was not 
bumped
versions: Python 3.6

___
Python tracker 

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



[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2018-12-28 Thread Nick Coghlan


Nick Coghlan  added the comment:

Reviewing the diff at https://github.com/python/cpython/compare/v3.7.1...v3.7.2 
the only item I've spotted that seems like it could even plausibly be related 
is the tweak at 
https://github.com/python/cpython/compare/v3.7.1...v3.7.2#diff-baf5eab51059d96fb8837152dab0d1a4

(Click the Files tab to get your browser to jump to the anchor in the second 
link)

That's a change to the function that emits the "Fatal Python error: 
initfsencoding: unable to load the file system codec" message.

That change means that embedding applications could potentially be hitting the 
codec name resolution at 
https://github.com/python/cpython/blob/3.7/Python/pylifecycle.c#L1643 with the 
filesystem encoding set as "ascii", rather than handling that case through the 
"get_locale_encoding()" branch, which does the initial codec name lookup with 
the filesystem encoding still set to NULL (and hence falling back to the locale 
encoding as the default).

However, the only way that new branch could trigger is if check_force_ascii() 
(at https://github.com/python/cpython/blob/v3.7.2/Python/fileutils.c#L100 ) is 
returning 1 for some reason, which we only expect it to do on some misbehaving 
BSD OSes, not on Windows: https://github.com/python/cpython/pull/10233

--

___
Python tracker 

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



[issue22703] Idle Code Context menu entrie(s)

2018-12-28 Thread Tal Einat


Tal Einat  added the comment:

Terry, I'm having trouble getting Tk to work on my Mac since the Mojave update, 
so I'm not yet able to check this.

--

___
Python tracker 

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



[issue35591] IDLE: Traceback on Find Selection

2018-12-28 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

Thanks for looking at this one.  :-)

--

___
Python tracker 

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



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat


Change by Tal Einat :


--
Removed message: https://bugs.python.org/msg332590
Removed message: https://bugs.python.org/msg332607
Removed message: https://bugs.python.org/msg332661

___
Python tracker 

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



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat


Change by Tal Einat :


--
Removed message: https://bugs.python.org/msg332590
Removed message: https://bugs.python.org/msg332607

___
Python tracker 

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



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat


Change by Tal Einat :


--
Removed message: https://bugs.python.org/msg332590

___
Python tracker 

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



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat


Tal Einat  added the comment:


New changeset c6c7237272499b2c528acb5f62601421f329e92a by Tal Einat in branch 
'master':
bpo-20182: AC convert remaining functions/methods in _hashopenssl.c (GH-9213)
https://github.com/python/cpython/commit/c6c7237272499b2c528acb5f62601421f329e92a


___
Python tracker 

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



[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2018-12-28 Thread miss-islington


miss-islington  added the comment:


New changeset bbf695441af9def8a121ff3e245415d9fc0bab9a by Miss Islington (bot) 
in branch '3.7':
bpo-35596: Fix vcruntime140.dll being added to embeddable distro multiple 
times. (GH-11329)
https://github.com/python/cpython/commit/bbf695441af9def8a121ff3e245415d9fc0bab9a


--

___
Python tracker 

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



[issue35588] Speed up mod/divmod/floordiv for Fraction type

2018-12-28 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

divmod imposes higher fixed overhead in exchange for operating more efficiently 
on larger values.

Given the differences are small either way, and using divmod reduces 
scalability concerns for larger values (which are more likely to occur in code 
that delays normalization), I'd be inclined to stick with the simpler 
divmod-based implementation.

--
nosy: +josh.r

___
Python tracker 

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



[issue11192] test_socket error on AIX

2018-12-28 Thread Nick Coghlan


Change by Nick Coghlan :


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



[issue27643] test_ctypes fails on AIX with xlc

2018-12-28 Thread Nick Coghlan


Change by Nick Coghlan :


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



[issue34711] Lib/http/server.py: Return HTTPStatus.NOT_FOUND if path.endswith(/) and not a directory

2018-12-28 Thread Nick Coghlan


Change by Nick Coghlan :


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



  1   2   >