[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-07 Thread Tal Einat


Tal Einat  added the comment:

Terry, with your minimal scrolling frame with text, everything works fine for 
me on OSX, regardless of whether the frame/scrollbar are tk/ttk, including 
using the ttk scrollbar on a tk frame.

So this does seem to be an issue with IDLE.

--

___
Python tracker 

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



[issue34019] webbrowser: wrong arguments for Opera browser.

2018-07-07 Thread Tal Einat


Tal Einat  added the comment:

Thanks for reporting the issue and the PR, Bumsik Kim!

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



[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-07 Thread Nick Coghlan


Nick Coghlan  added the comment:

encodings is only the *first* unfrozen Python module that we load - once you 
get past that, then you'll find that we also load os.py and various other 
things.

cx_freeze is an illustrative example to look at in that regard, as it 
preconfigures the interpreter to be able to find the cx_freeze generated zip 
archive that has the program's Python modules in it: 
https://github.com/anthony-tuininga/cx_Freeze/blob/master/source/bases/Common.c

The technique that cx_freeze doesn't use yet is to combine the statically 
linked Python binary and the generated zip archive into a single file (similar 
to what zipapp does), and adjust the sys.path definition inside the binary to 
refer back to the executable itself (since executable files can have arbitrary 
content appended, while zip files can have arbitrary content *pre*pended).

We're always going to require that embedding applications provide a working 
import path of some kind, so this isn't a bug.

It might be worth converting to a documentation enhancement request though, as 
we don't really make it clear in https://docs.python.org/3/c-api/init.html what 
the "minimum viable import set" actually looks like.

--
resolution:  -> not a bug
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



[issue34051] Update multiprocessing example

2018-07-07 Thread Windson Yang


Change by Windson Yang :


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



[issue34067] Problem with contextlib.nullcontext

2018-07-07 Thread Nick Coghlan


Nick Coghlan  added the comment:

That's certainly similar to the problems with contextlib.nested, but I don't 
think it's as inherently flawed as nested was. What I'd suggest we change the 
existing example to is this:

  from functools import partial
  from os import fspath

  def process_file(file_or_path):
  try:
  as_fspath = os.fspath(file_or_path)
  except TypeError:
  # If it's a file, caller is responsible for closing it
  make_cm = partial(nullcontext, file_or_path)
  else:
  # If it's a path, open file when the context is entered
  make_cm = partial(open, as_fspath)

  with make_cm() as file:
  # Perform processing on the file

Optionally, we could also present a cleaner example where a pre-created context 
manager is passed in and we're just coping with the fact it may be None:

def update_resource(resource, updates, resource_lock=None):
if resource_lock is None:
resource_lock = nullcontext()
with resource_lock:
resource.apply_updates(updates)

(I'll also note that ExitStack is *far* from being immune to the Ctrl-C 
problem, as it's implemented in Python itself, which allows its __exit__ method 
to be interrupted, as well as for interrupt to occur between a resource being 
created or acquired, and it being registered with the stack)

--

___
Python tracker 

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



[issue34051] Update multiprocessing example

2018-07-07 Thread Windson Yang


Windson Yang  added the comment:

Thank you, I think to use acquire() and release() may be better than with 
statement in this example. I will close this issue.

--

___
Python tracker 

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



[issue31652] make install fails: no module _ctypes

2018-07-07 Thread Martin Panter

Martin Panter  added the comment:

In  Chi-Hsuan suggests “configure 
--without-ensurepip” as a workaround.

--
nosy: +martin.panter

___
Python tracker 

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



[issue34036] ModuleNotFoundError: No module named '_ctypes' when install Python 3.7 on Linux

2018-07-07 Thread Martin Panter

Martin Panter  added the comment:

Ctypes is meant to be (at least it used to be) an optional module. If you don’t 
actually care about building ctypes, this might be the same as Issue 31652. 
Using “configure --without-ensurepip” was suggested as a workaround.

If you do want ctypes to be built, I would look for compiler and linker 
messages relating to the “_ctypes” module (before the install step).

--
nosy: +martin.panter
superseder:  -> make install fails: no module _ctypes

___
Python tracker 

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



[issue32401] No module named '_ctypes'

2018-07-07 Thread Martin Panter


Change by Martin Panter :


--
superseder:  -> make install fails: no module _ctypes

___
Python tracker 

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



[issue34067] Problem with contextlib.nullcontext

2018-07-07 Thread Eric V. Smith


Change by Eric V. Smith :


--
nosy: +eric.smith

___
Python tracker 

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



[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The mouse over scrollbar behavior I described above is specific to the ttk 
version.  Mark Roseman has said that other ttk widgets *look* better on a ttk 
frame. Does the frame make any difference for scrollbar?

--

___
Python tracker 

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



[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

We need to determine whether the problem is with tk/tkinter or specifically 
with IDLE, and whether it has anything with using ttk.  The attached file 
duplicates the skeleton of an IDLE editor in 14 lines of tkinter code.  This 
includes putting a ttk scrollbar on the tk frame.  It works for me on Windows.  
If it misbehaves on Mac, uncomment ', Scrollbar' on the ttk line to get a ttk 
scrollbar on a ttk frame.  Also comment out the entire ttk line to get a tk 
scrollbar on a tk frame.

--
Added file: https://bugs.python.org/file47676/tk_scroll.py

___
Python tracker 

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



[issue33888] Use CPython instead of Python when talking about implementation details

2018-07-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Merged with Guido's approval on the PR.  Thanks.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-07 Thread Nick Coghlan


Change by Nick Coghlan :


--
nosy: +ncoghlan

___
Python tracker 

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



[issue33888] Use CPython instead of Python when talking about implementation details

2018-07-07 Thread miss-islington


miss-islington  added the comment:


New changeset b7874c809cbead0eb07554b61efe7823238c8bd9 by Miss Islington (bot) 
in branch '3.6':
bpo-33888: Use CPython instead of Python in the FAQ (GH-7767)
https://github.com/python/cpython/commit/b7874c809cbead0eb07554b61efe7823238c8bd9


--

___
Python tracker 

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



[issue33888] Use CPython instead of Python when talking about implementation details

2018-07-07 Thread miss-islington


miss-islington  added the comment:


New changeset 21fe81c1fea1bca6b500550b5895e9ebcb3ebba6 by Miss Islington (bot) 
in branch '3.7':
bpo-33888: Use CPython instead of Python in the FAQ (GH-7767)
https://github.com/python/cpython/commit/21fe81c1fea1bca6b500550b5895e9ebcb3ebba6


--

___
Python tracker 

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



[issue33888] Use CPython instead of Python when talking about implementation details

2018-07-07 Thread miss-islington


miss-islington  added the comment:


New changeset 3a98ddd136275ef944aa4387c964fc0c5adf6fab by Miss Islington (bot) 
in branch '2.7':
bpo-33888: Use CPython instead of Python in the FAQ (GH-7767)
https://github.com/python/cpython/commit/3a98ddd136275ef944aa4387c964fc0c5adf6fab


--
nosy: +miss-islington

___
Python tracker 

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



[issue33888] Use CPython instead of Python when talking about implementation details

2018-07-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7736

___
Python tracker 

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



[issue33888] Use CPython instead of Python when talking about implementation details

2018-07-07 Thread Terry J. Reedy

Terry J. Reedy  added the comment:


New changeset 8d41278045ee4e8bf1cadb58a7db58d70ad55237 by Terry Jan Reedy 
(Andrés Delfino) in branch 'master':
bpo-33888: Use CPython instead of Python in the FAQ (GH-7767)
https://github.com/python/cpython/commit/8d41278045ee4e8bf1cadb58a7db58d70ad55237


--
nosy: +terry.reedy

___
Python tracker 

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



[issue33888] Use CPython instead of Python when talking about implementation details

2018-07-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7737

___
Python tracker 

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



[issue33888] Use CPython instead of Python when talking about implementation details

2018-07-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7735

___
Python tracker 

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



[issue34050] Broken links to "OpenSSL cipher list format" in documentation

2018-07-07 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset becb5277670bdb37e8c8471a5a510466eaf9598a by Benjamin Peterson in 
branch '3.6':
[3.6] closes bpo-34050: Fix link in SSL docs (GH-8173) (GH-8178)
https://github.com/python/cpython/commit/becb5277670bdb37e8c8471a5a510466eaf9598a


--

___
Python tracker 

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



[issue34050] Broken links to "OpenSSL cipher list format" in documentation

2018-07-07 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 3707dfaf45baf867f17bbbc78ccf2f0d13711dbd by Benjamin Peterson in 
branch '2.7':
[2.7] closes bpo-34050: Fix link in SSL docs (GH-8173). (GH-8179)
https://github.com/python/cpython/commit/3707dfaf45baf867f17bbbc78ccf2f0d13711dbd


--

___
Python tracker 

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



[issue34050] Broken links to "OpenSSL cipher list format" in documentation

2018-07-07 Thread miss-islington


miss-islington  added the comment:


New changeset a912305512efd08cbaa15dc1488fb626c9fec067 by Miss Islington (bot) 
in branch '3.7':
closes bpo-34050: Fix link in SSL docs (GH-8173)
https://github.com/python/cpython/commit/a912305512efd08cbaa15dc1488fb626c9fec067


--
nosy: +miss-islington

___
Python tracker 

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



[issue33702] Add some missings links in production lists and a little polish

2018-07-07 Thread Andrés Delfino

Change by Andrés Delfino :


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



[issue33702] Add some missings links in production lists and a little polish

2018-07-07 Thread Andrés Delfino

Change by Andrés Delfino :


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



[issue34050] Broken links to "OpenSSL cipher list format" in documentation

2018-07-07 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
pull_requests: +7734

___
Python tracker 

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



[issue34050] Broken links to "OpenSSL cipher list format" in documentation

2018-07-07 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
pull_requests: +7733

___
Python tracker 

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



[issue34050] Broken links to "OpenSSL cipher list format" in documentation

2018-07-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7732

___
Python tracker 

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



[issue34050] Broken links to "OpenSSL cipher list format" in documentation

2018-07-07 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 9c5ba097485c8c643b670acd4026f4382bc92f4b by Benjamin Peterson 
(Marcin Niemira) in branch 'master':
closes bpo-34050: Fix link in SSL docs (GH-8173)
https://github.com/python/cpython/commit/9c5ba097485c8c643b670acd4026f4382bc92f4b


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



[issue28626] Tutorial: rearrange discussion of output formatting to encourage f-strings

2018-07-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7731

___
Python tracker 

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



[issue28626] Tutorial: rearrange discussion of output formatting to encourage f-strings

2018-07-07 Thread A.M. Kuchling


A.M. Kuchling  added the comment:


New changeset ced350b1952857a9b9c68ec7e2786358bcb61050 by Andrew Kuchling in 
branch 'master':
bpo-28626: rearrange discussion of output formatting to encourage f-strings 
(#6036)
https://github.com/python/cpython/commit/ced350b1952857a9b9c68ec7e2786358bcb61050


--

___
Python tracker 

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



[issue34050] Broken links to "OpenSSL cipher list format" in documentation

2018-07-07 Thread Marcin Niemira


Change by Marcin Niemira :


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



[issue33804] Document the default value of the size parameter of io.TextIOBase.read

2018-07-07 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue33804] Document the default value of the size parameter of io.TextIOBase.read

2018-07-07 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset ad0fc8ddba0e2f6715dc14c74cb4dbd437b3777d by Serhiy Storchaka 
(Andrés Delfino) in branch '2.7':
[2.7] bpo-33804: Document that the argument for io.TextIOBase.read() is 
optional (GH-7510). (GH-8171)
https://github.com/python/cpython/commit/ad0fc8ddba0e2f6715dc14c74cb4dbd437b3777d


--

___
Python tracker 

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



[issue33702] Add some missings links in production lists and a little polish

2018-07-07 Thread miss-islington


miss-islington  added the comment:


New changeset 445f9edaa4efbf76ae0fe8e18707665ac16dd5a4 by Miss Islington (bot) 
in branch '3.6':
bpo-33702: Add some missing links in production lists and do a little polish 
(GH-7259)
https://github.com/python/cpython/commit/445f9edaa4efbf76ae0fe8e18707665ac16dd5a4


--

___
Python tracker 

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



[issue33702] Add some missings links in production lists and a little polish

2018-07-07 Thread miss-islington


miss-islington  added the comment:


New changeset 80c188f3efca3ddb3d588b91938655e52ee65bda by Miss Islington (bot) 
in branch '3.7':
bpo-33702: Add some missing links in production lists and do a little polish 
(GH-7259)
https://github.com/python/cpython/commit/80c188f3efca3ddb3d588b91938655e52ee65bda


--
nosy: +miss-islington

___
Python tracker 

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



[issue34061] Document sqlite3.NotSupportedError exception

2018-07-07 Thread Marcin Niemira


Change by Marcin Niemira :


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



[issue33804] Document the default value of the size parameter of io.TextIOBase.read

2018-07-07 Thread miss-islington


miss-islington  added the comment:


New changeset 770937b6fd87af91390ac765f6a4c4767432cbc3 by Miss Islington (bot) 
in branch '3.6':
bpo-33804: Document that the argument for io.TextIOBase.read() is optional 
(GH-7510)
https://github.com/python/cpython/commit/770937b6fd87af91390ac765f6a4c4767432cbc3


--

___
Python tracker 

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



[issue33804] Document the default value of the size parameter of io.TextIOBase.read

2018-07-07 Thread miss-islington


miss-islington  added the comment:


New changeset e5b47ea5859522f81599a82d49175f6fad263482 by Miss Islington (bot) 
in branch '3.7':
bpo-33804: Document that the argument for io.TextIOBase.read() is optional 
(GH-7510)
https://github.com/python/cpython/commit/e5b47ea5859522f81599a82d49175f6fad263482


--
nosy: +miss-islington

___
Python tracker 

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



[issue33804] Document the default value of the size parameter of io.TextIOBase.read

2018-07-07 Thread Andrés Delfino

Change by Andrés Delfino :


--
pull_requests: +7728

___
Python tracker 

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



[issue33702] Add some missings links in production lists and a little polish

2018-07-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7727

___
Python tracker 

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



[issue33702] Add some missings links in production lists and a little polish

2018-07-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7726

___
Python tracker 

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



[issue33702] Add some missings links in production lists and a little polish

2018-07-07 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset caccca78e46bf3c3b24e09b3afb1c1b08c39990c by Serhiy Storchaka 
(Andrés Delfino) in branch 'master':
bpo-33702: Add some missing links in production lists and do a little polish 
(GH-7259)
https://github.com/python/cpython/commit/caccca78e46bf3c3b24e09b3afb1c1b08c39990c


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue33804] Document the default value of the size parameter of io.TextIOBase.read

2018-07-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I see. The real problem was that the argument for io.TextIOBase.read() was not 
documented as optional.

--

___
Python tracker 

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



[issue33804] Document the default value of the size parameter of io.TextIOBase.read

2018-07-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7725

___
Python tracker 

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



[issue33804] Document the default value of the size parameter of io.TextIOBase.read

2018-07-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7724

___
Python tracker 

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



[issue33804] Document the default value of the size parameter of io.TextIOBase.read

2018-07-07 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset b6bb77c2b8e83ba6cb845c7b512ac564276e854f by Serhiy Storchaka 
(Andrés Delfino) in branch 'master':
bpo-33804: Document that the argument for io.TextIOBase.read() is optional 
(GH-7510)
https://github.com/python/cpython/commit/b6bb77c2b8e83ba6cb845c7b512ac564276e854f


--

___
Python tracker 

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



[issue33804] Document the default value of the size parameter of io.TextIOBase.read

2018-07-07 Thread Andrés Delfino

Andrés Delfino  added the comment:

I do see your point (not bloat BPO with a one line fix per each undocumented 
feature), but IMHO it's somewhat unrealistic to fix all issues of the same type 
in a single PR.

I opened this PR because I was reading this particular function and noticed 
that the "size" parameter is documented as required. If it was documented as 
optional, the default value is not documented either.

Perhaps we can compromise, and I can look at all the classes/functions in "io", 
and improve this PR? I cannot propose myself to do this to the whole Python 
documentation at once :/

Excuse me if I didn't interpret your comment right.

--

___
Python tracker 

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



[issue33804] Document the default value of the size parameter of io.TextIOBase.read

2018-07-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

What about other methods and other classes?

--
nosy: +benjamin.peterson, serhiy.storchaka, stutzbach

___
Python tracker 

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



[issue33888] Use CPython instead of Python when talking about implementation details

2018-07-07 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +gvanrossum

___
Python tracker 

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



[issue32523] inconsistent spacing in changelog.html

2018-07-07 Thread Julien Palard


Julien Palard  added the comment:

terry: Make sense, I'll also try to add the reminder in blurb if I find an 
appropriate place and wording.

--
stage: patch review -> 

___
Python tracker 

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



[issue32523] inconsistent spacing in changelog.html

2018-07-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Since 'News entry is one paragraph without subject line' is a change from older 
policy, I suggest posting a reminder to committers list and rechecking devguide.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2018-07-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I think it is impossible to get significant impact on the Python benchmark 
suite from this patch. But mickrobenchmarks can expose the regression if it 
exists. Something like:

./python -m perf timeit -s 'class A:' -s ' @classmethod' -s ' def cm(cls): 
pass' -- 'A.cm()'
./python -m perf timeit -s 'class A:' -s ' @classmethod' -s ' def cm(cls): 
pass' -s 'f = A.cm' -- 'f()'

--

___
Python tracker 

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



[issue34067] Problem with contextlib.nullcontext

2018-07-07 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

There is a flaw in the example in the documentation for contextlib.nullcontext.

  def process_file(file_or_path):
  if isinstance(file_or_path, str):
  # If string, open file
  cm = open(file_or_path)
  else:
  # Caller is responsible for closing file
  cm = nullcontext(file_or_path)

  with cm as file:
  # Perform processing on the file

The execution can be interrupted by Ctrl-C between opening a file and entering 
a 'with' block. There is the same problem with the simple "with open(path) as 
file:", but it can be easily solved (see issue34066). It is harder to do for 
this example, because there are more opcodes between calling open() and 
entering 'with'. I afraid that this problem can't be solved in general case. 
Maybe contextlib.nullcontext has a flaw similar to the flaw in 
contextlib.nested().

--
messages: 321226
nosy: ncoghlan, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Problem with contextlib.nullcontext
type: resource usage
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



[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2018-07-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

The issue with synchronous 'with' can be solved by issue32949.

See also issue34066 for the problem with interruption before calling __enter__.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue34066] Possible resource warning in "with open()"

2018-07-07 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue34066] Possible resource warning in "with open()"

2018-07-07 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

The bytecode generated for "with open()":

with open(path) as file:
data = file.read()

  1   0 LOAD_NAME0 (open)
  2 LOAD_NAME1 (path)
  4 CALL_FUNCTION1
  6 SETUP_WITH  14 (to 22)
  8 STORE_NAME   2 (file)

  2  10 LOAD_NAME2 (file)
 12 LOAD_METHOD  3 (read)
 14 CALL_METHOD  0
 16 STORE_NAME   4 (data)
 18 POP_BLOCK
 20 BEGIN_FINALLY
>>   22 WITH_CLEANUP_START
 24 WITH_CLEANUP_FINISH
 26 END_FINALLY
 28 LOAD_CONST   0 (None)
 30 RETURN_VALUE

The execution can be interrupted by Ctrl-C between calling open() and entering 
the 'with' block. In this case the file object will be created, but its 
__enter__ and __exit__ methods will be not executed. As a result it will be 
closed after disappearing a reference to it and a ResourceWarning will be 
emitted.

The solution is disabling interruption before the SETUP_WITH opcode. It is 
already disabled before SETUP_FINALLY and YIELD_FROM. It is worth to disable it 
before BEFORE_ASYNC_WITH for consistency although I don't have examples for it.

See also issue29988.

--
components: Interpreter Core
messages: 321224
nosy: Mark.Shannon, benjamin.peterson, ncoghlan, serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: Possible resource warning in "with open()"
type: resource usage
versions: Python 3.6, 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



[issue34065] 'force' should be printed as italic font not highlight font.

2018-07-07 Thread Dong-hee Na


Change by Dong-hee Na :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue34065] 'force' should be printed as italic font not highlight font.

2018-07-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 75f2eb5eca38d22da62eb5814b9614792cfce13c by Serhiy Storchaka 
(Dong-hee Na) in branch '3.7':
[3.7] bpo-34065: Improve the markup of logging.basicConfig() arguments 
(GH-8153). (GH-8156)
https://github.com/python/cpython/commit/75f2eb5eca38d22da62eb5814b9614792cfce13c


--

___
Python tracker 

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



[issue34065] 'force' should be printed as italic font not highlight font.

2018-07-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset cad4a27585e4255295dcc06e80f1140cd11bdfd4 by Serhiy Storchaka 
(Dong-hee Na) in branch '3.6':
[3.6] bpo-34065: Improve the markup of logging.basicConfig() arguments 
(GH-8153). (GH-8155)
https://github.com/python/cpython/commit/cad4a27585e4255295dcc06e80f1140cd11bdfd4


--

___
Python tracker 

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



[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2018-07-07 Thread Berker Peksag


Berker Peksag  added the comment:

> Berker, do you mind to create a PR?

I will submit a PR tomorrow.

Do you have specific ideas for a micro-benchmark in mind or do you want to me 
just run the Python benchmark suite against the patch?

--

___
Python tracker 

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



[issue34051] Update multiprocessing example

2018-07-07 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

To be frank, I don't think that matters much.  The user should understand what 
a lock is already, if they want to make use of multiprocessing fruitfully.  The 
example showcases how to create a lock and how to pass it to child processes 
(by giving it as a function parameter).  Printing to standard output is not the 
important thing here.

However if you want to improve this example, you could replace the 
acquire/release pair with a "with" statement.

--

___
Python tracker 

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



[issue34051] Update multiprocessing example

2018-07-07 Thread Windson Yang


Windson Yang  added the comment:

Hello, @Antoine Pitrou. Maybe there is another way to let the reader know "only 
one process prints to standard output at a time" instead of sleep() function?

--

___
Python tracker 

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



[issue34065] 'force' should be printed as italic font not highlight font.

2018-07-07 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +7722

___
Python tracker 

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



[issue34065] 'force' should be printed as italic font not highlight font.

2018-07-07 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +7721

___
Python tracker 

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



[issue32523] inconsistent spacing in changelog.html

2018-07-07 Thread Julien Palard


Change by Julien Palard :


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

___
Python tracker 

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



[issue34065] 'force' should be printed as italic font not highlight font.

2018-07-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 2800dcf656229c2ca4c90b4ddbace0717c41bb9e by Serhiy Storchaka 
(Dong-hee Na) in branch 'master':
bpo-34065: Improve the markup of logging.basicConfig() arguments (GH-8153)
https://github.com/python/cpython/commit/2800dcf656229c2ca4c90b4ddbace0717c41bb9e


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2018-07-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Berker, do you mind to create a PR?

Supporting class properties looks good rationale to me. But we need to check 
how this change affects performance.

--

___
Python tracker 

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



[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2018-07-07 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue31652] make install fails: no module _ctypes

2018-07-07 Thread Bob Kline


Bob Kline  added the comment:

Confirming that this is still failing with 3.7.0 released.

--
nosy: +bkline

___
Python tracker 

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



[issue34065] 'force' should be printed as italic font not highlight font.

2018-07-07 Thread Dong-hee Na


Change by Dong-hee Na :


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

___
Python tracker 

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



[issue34065] 'force' should be printed as italic font not highlight font.

2018-07-07 Thread Dong-hee Na


Dong-hee Na  added the comment:

Oh it should *force* not ``force``

--

___
Python tracker 

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



[issue34065] 'force' should be printed as italic font not highlight font.

2018-07-07 Thread Dong-hee Na


New submission from Dong-hee Na :

https://docs.python.org/3.8/library/logging.html#logging.basicConfig

Although I wrote the 'force' as '``force`` ' 
but it is printed as a highlighted font.

The 'force' section should be printed as italic font not highlight font.

Maybe there is something mistake I didn't catch.

--
assignee: docs@python
components: Documentation
messages: 321214
nosy: corona10, docs@python
priority: normal
severity: normal
status: open
title: 'force' should be printed as italic font not highlight font.
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



[issue34064] subprocess functions with shell=1 pass wrong command to win32 shell

2018-07-07 Thread Ryusei Yamaguchi


Change by Ryusei Yamaguchi :


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

___
Python tracker 

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



[issue34064] subprocess functions with shell=1 pass wrong command to win32 shell

2018-07-07 Thread Ryusei Yamaguchi


New submission from Ryusei Yamaguchi :

In some cases, functions defined in subprocess modules pass wrong command to 
win32 shell.

Python 3.8.0a0 (heads/master:4629c0d531, Jul  7 2018, 16:37:33) [MSC v.1914 32 
bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> subprocess.check_output('cmd /c echo hello', shell=1)
b'hello"\r\n'

The result is as same as the following command run with cmd.exe:
C:\> %COMSPEC% /c "cmd /c echo hello"
hello"

Specifying /s switch fixes the issue:
C:\> %COMSPEC% /s /c "cmd /c echo hello"
hello

--
components: Library (Lib), Windows
messages: 321213
nosy: mandel59, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: subprocess functions with shell=1 pass wrong command to win32 shell
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, 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



[issue34013] Inconsistent SyntaxError for print

2018-07-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

See also #32685.

--
nosy: +CuriousLearner, nitishch

___
Python tracker 

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



[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-07 Thread Ted Kandell


Ted Kandell  added the comment:

The output of make after a make clean is attached.

For readline, on openSUSE 42.3 you have to install ncurses-devel, not 
libreadline-dev. The instructions aren't clear about this either, or the fact 
that an ncurses or readline development library has to be installed separately. 
However, this didn't cause the "readline" problem, since the shared libraries 
were in /usr/local/lib64 instead of /usr/local/lib, and so they couldn't be 
found in any case.

--
Added file: https://bugs.python.org/file47675/make.log

___
Python tracker 

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



[issue34051] Update multiprocessing example

2018-07-07 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

The example feels a bit artificial indeed, but I don't think adding a sleep() 
call would make it realistic.  Why would you protect sleep() with a lock?

--
nosy: +pitrou

___
Python tracker 

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



[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-07 Thread Ted Kandell


Ted Kandell  added the comment:

./configure output
default, no parameters

--
Added file: https://bugs.python.org/file47674/configure.log

___
Python tracker 

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



[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-07 Thread Ted Kandell


Ted Kandell  added the comment:

I got the source directly from www.python.org

--

___
Python tracker 

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



[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-07 Thread STINNER Victor


STINNER Victor  added the comment:

> Debian, Fedora, Gentoo, RHEL, and Ubuntu (AMD64) buildbots are currently
green.  We don't have one for SUSE, open or other wise.

We have SLES buildbots, that's OpenSUSE no?

--

___
Python tracker 

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



[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-07 Thread STINNER Victor


STINNER Victor  added the comment:

For readline, you probably have to install a dependency like: libreadline-dev.

--

___
Python tracker 

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



[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-07 Thread STINNER Victor


STINNER Victor  added the comment:

Can we please recommpile Python from scratch and attach the output of make? 
Example:

./configure
make 2>&1 | tee log

And attach log to this ticket.

--

___
Python tracker 

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