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

[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

[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

Re: testing code

2018-07-07 Thread Sharan Basappa
On Saturday, 7 July 2018 18:22:23 UTC+5:30, Chris Angelico wrote: > On Sat, Jul 7, 2018 at 10:02 PM, Sharan Basappa > wrote: > > On Friday, 6 July 2018 09:22:31 UTC+5:30, Chris Angelico wrote: > >> On Fri, Jul 6, 2018 at 12:56 PM, Sharan Basappa > >> wrote: > >> > Please let me know if the

[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

[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

[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

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-07 Thread Chris Angelico
On Sun, Jul 8, 2018 at 1:58 PM, Steven D'Aprano wrote: > On Sun, 08 Jul 2018 12:23:41 +1000, Chris Angelico wrote: > >>> Some people, when confronted with a problem, say, "I know, I'll use >>> threads". Nothhtwo probw ey ave lems. >> >> Right. Now they have to deal with interleaving, but that's

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-07 Thread Steven D'Aprano
On Sun, 08 Jul 2018 12:23:41 +1000, Chris Angelico wrote: >> Some people, when confronted with a problem, say, "I know, I'll use >> threads". Nothhtwo probw ey ave lems. > > Right. Now they have to deal with interleaving, but that's all. And > honestly, MOST CODE wouldn't notice interleaving;

[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

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

Re: Generate a static back-of-a-book style index?

2018-07-07 Thread Cameron Simpson
On 07Jul2018 21:57, Tim Chase wrote: On 2018-07-08 12:12, Cameron Simpson wrote: On 07Jul2018 20:11, Skip Montanaro wrote: >> Have you looked at the ptx command? Might be called "gptx" > >Thanks, Cameron. I was unaware of it. Will check it out. BTW, it well predates the GNU coreutils; I used

Re: Matplotlib 3D limitations, please recommend alternative

2018-07-07 Thread John Ladasky
On Saturday, July 7, 2018 at 6:36:16 AM UTC-7, Rick Johnson wrote: > John Ladasky wrote: > > > Back then I wrote: > > > > "I have concluded that Qt, PyQt, and OpenGL are all > > rapidly-evolving, and huge, software packages. There may > > be compatibility problems, and relevant examples with

[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

Re: Generate a static back-of-a-book style index?

2018-07-07 Thread Tim Chase
On 2018-07-08 12:12, Cameron Simpson wrote: > On 07Jul2018 20:11, Skip Montanaro wrote: > >> Have you looked at the ptx command? Might be called "gptx" > > > >Thanks, Cameron. I was unaware of it. Will check it out. > > BTW, it well predates the GNU coreutils; I used it on V7 UNIX.

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-07 Thread Chris Angelico
On Sun, Jul 8, 2018 at 12:12 PM, Steven D'Aprano wrote: > On Sun, 08 Jul 2018 11:15:17 +1000, Chris Angelico wrote: > > [...] >> Python threads don't switch only between lines of code, > > As I understand it, there could be a switch between any two byte codes, > or maybe only between certain

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-07 Thread Steven D'Aprano
On Sun, 08 Jul 2018 11:15:17 +1000, Chris Angelico wrote: [...] > Python threads don't switch only between lines of code, As I understand it, there could be a switch between any two byte codes, or maybe only between certain bytes codes. But certain more fine grained than just between lines of

Re: Generate a static back-of-a-book style index?

2018-07-07 Thread Cameron Simpson
On 07Jul2018 20:11, Skip Montanaro wrote: Have you looked at the ptx command? Might be called "gptx" on a system with the GNU coreutils installed with "g" prefixes. Thanks, Cameron. I was unaware of it. Will check it out. BTW, it well predates the GNU coreutils; I used it on V7 UNIX.

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-07 Thread Chris Angelico
On Sun, Jul 8, 2018 at 11:04 AM, Steven D'Aprano wrote: >> The only thing Python should guarantee is that the data structures stay >> "coherent" under race conditions. In other words, there cannot be a >> segmentation fault. For example, if two threads executed this code in >> parallel: >> >>

Re: Generate a static back-of-a-book style index?

2018-07-07 Thread Skip Montanaro
> Have you looked at the ptx command? Might be called "gptx" on a system with > the > GNU coreutils installed with "g" prefixes. Thanks, Cameron. I was unaware of it. Will check it out. Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-07 Thread Steven D'Aprano
On Sun, 08 Jul 2018 00:00:26 +0300, Marko Rauhamaa wrote: > Ian Kelly : >> the leaning of the devs seems to be to refrain from documenting it and >> instead document that *no* operations are guaranteed atomic. > > I believe that to be wise. Otherwise, Python would limit its future >

Re: Generate a static back-of-a-book style index?

2018-07-07 Thread Cameron Simpson
On 07Jul2018 18:24, Skip Montanaro wrote: I just generated a static website which is nothing more than around ten years of email messages from a defunct vintage bike mailing list (170k messages, one per file). Though I've submitted the front page URL to both Google and Bing, I was thinking that

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

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

[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

[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

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

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

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

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

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

[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

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

Generate a static back-of-a-book style index?

2018-07-07 Thread Skip Montanaro
I just generated a static website which is nothing more than around ten years of email messages from a defunct vintage bike mailing list (170k messages, one per file). Though I've submitted the front page URL to both Google and Bing, I was thinking that it would be handy to have something like a

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

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

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

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

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

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

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

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

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

[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

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

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

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

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

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

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

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

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-07 Thread Marko Rauhamaa
Ian Kelly : > the leaning of the devs seems to be to refrain from documenting it and > instead document that *no* operations are guaranteed atomic. I believe that to be wise. Otherwise, Python would limit its future implementation options. The only thing Python should guarantee is that the data

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

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

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

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

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

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

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

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

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

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

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

[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

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

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

[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

[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

[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):

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

[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

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

[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

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-07 Thread Ethan Furman
On 07/06/2018 10:51 AM, INADA Naoki wrote: > On Sat, Jul 7, 2018 at 2:49 AM Steven D'Aprano wrote: >> I have a dict with string keys: >> >> --> D = {'a': None, 'b': None} >> How do I do a thread-safe insertion if, and only if, the key isn't >> already there? > D.setdefault('c', None) This is

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

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

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

[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? -- ___

[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

[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

Fwd: SSLContext.load_verify_locations

2018-07-07 Thread Joseph Netti (RIT Student)
Hi, I think I found either a bug in the documentation or a bug in the load_verify_locations function (or I am just using the function wrong). https://docs.python.org/3/library/ssl.html#ssl.SSLContext. load_verify_locations I am trying to use crls with the ssl.py library which according to the

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-07 Thread Ian Kelly
On Fri, Jul 6, 2018 at 11:56 AM INADA Naoki wrote: > > D.setdefault('c', None) Not guaranteed to be atomic. I think the only safe way to do it is with a Lock. -- https://mail.python.org/mailman/listinfo/python-list

Re: about main()

2018-07-07 Thread Gene Heskett
On Friday 06 July 2018 14:27:16 Grant Edwards wrote: > On 2018-07-06, Gene Heskett wrote: > > In that case, I hate to say it, but your education is sorely lacking > > in the fundamentals. Smelting for instance was discussed at length > > in the high school physics books I was reading by the time

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-07 Thread Devin Jeanpierre
On Sat, Jul 7, 2018 at 6:49 AM Marko Rauhamaa wrote: > Is that guaranteed to be thread-safe? The documentation ( s://docs.python.org/3/library/stdtypes.html#dict.setdefault>) makes no > such promise. It's guaranteed to be thread-safe because all of Python's core containers are thread safe (in as

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-07 Thread Ian Kelly
On Sat, Jul 7, 2018 at 8:03 AM Stefan Behnel wrote: > > Marko Rauhamaa schrieb am 07.07.2018 um 15:41: > > Steven D'Aprano : > >> On Sat, 07 Jul 2018 02:51:41 +0900, INADA Naoki wrote: > >>> D.setdefault('c', None) > >> > >> Oh that's clever! > > > > Is that guaranteed to be thread-safe? The

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

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

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-07 Thread Stefan Behnel
Marko Rauhamaa schrieb am 07.07.2018 um 15:41: > Steven D'Aprano : >> On Sat, 07 Jul 2018 02:51:41 +0900, INADA Naoki wrote: >>> D.setdefault('c', None) >> >> Oh that's clever! > > Is that guaranteed to be thread-safe? The documentation (

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

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-07 Thread Marko Rauhamaa
Steven D'Aprano : > On Sat, 07 Jul 2018 02:51:41 +0900, INADA Naoki wrote: >> D.setdefault('c', None) > > Oh that's clever! Is that guaranteed to be thread-safe? The documentation () makes no such promise. At least __collectios_abc.py contains this method definition for MutableMapping: def

Re: testing code

2018-07-07 Thread Chris Angelico
On Sat, Jul 7, 2018 at 10:02 PM, Sharan Basappa wrote: > On Friday, 6 July 2018 09:22:31 UTC+5:30, Chris Angelico wrote: >> On Fri, Jul 6, 2018 at 12:56 PM, Sharan Basappa >> wrote: >> > Please let me know if the following understanding of mine is correct. >> > I need to put the program code in

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

[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

[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

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

Re: testing code

2018-07-07 Thread Sharan Basappa
On Friday, 6 July 2018 09:22:31 UTC+5:30, Chris Angelico wrote: > On Fri, Jul 6, 2018 at 12:56 PM, Sharan Basappa > wrote: > > Please let me know if the following understanding of mine is correct. > > I need to put the program code in a separate file and organize every > > executable code in

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

[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

[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

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

  1   2   >