Re: [Python-Dev] PEP 550 V5

2017-09-01 Thread Guido van Rossum
On Fri, Sep 1, 2017 at 8:29 PM, Eric Snow wrote: > Nice working staying on top of this! Keeping up with discussion is > arguably much harder than actually writing the PEP. :) I have some > comments in-line below. > > -eric > > > On Fri, Sep 1, 2017 at 5:02 PM, Yury Selivanov > wrote: > > [snip

Re: [Python-Dev] PEP 550 V5

2017-09-01 Thread Eric Snow
Nice working staying on top of this! Keeping up with discussion is arguably much harder than actually writing the PEP. :) I have some comments in-line below. -eric On Fri, Sep 1, 2017 at 5:02 PM, Yury Selivanov wrote: > [snip] > > Abstract > > > [snip] > > Rationale > = > > [

Re: [Python-Dev] Inplace operations for PyLong objects

2017-09-01 Thread Joe Jevnik via Python-Dev
The string concat optimization happens in the interpreter dispatch for INPLACE_ADD On Fri, Sep 1, 2017 at 9:10 PM, Greg Ewing wrote: > Chris Angelico wrote: > >> This particular example is safe, because the arguments get passed >> individually - so 'args' has one reference, plus there's one more

Re: [Python-Dev] Inplace operations for PyLong objects

2017-09-01 Thread Greg Ewing
Chris Angelico wrote: This particular example is safe, because the arguments get passed individually - so 'args' has one reference, plus there's one more for the actual function call However, that's also true when you use the += operator, so if the optimisation is to trigger at all in any usefu

[Python-Dev] PEP 550 V5

2017-09-01 Thread Yury Selivanov
Hi, Below is the fifth iteration of the PEP. The summary of changes is in the "Version History" section, but I'll list them here too: * Coroutines have no logical context by default (a revert to the V3 semantics). Read about the motivation in the `Coroutines not leaking context changes by def

Re: [Python-Dev] Inplace operations for PyLong objects

2017-09-01 Thread Chris Angelico
On Sat, Sep 2, 2017 at 6:35 AM, Joe Jevnik via Python-Dev wrote: > Is it true that checking for refcount == 1 is enough? What if a user wrote: > > args = (compute_integer(), 5) > # give away args to someone > int.__iadd__(*args) > > here `args[0]` still has refcount=1 because only `args` owns this

Re: [Python-Dev] Inplace operations for PyLong objects

2017-09-01 Thread Manciu, Catalin Gabriel
> My question is -- how can the interpreter know if it can alter what is > supposed to be an immutable in-place? If it's used only internally to a > function, the it would be safe, but how to know that? > -CHB You can just check the reference count of your object, it's a member of the PyObject

Re: [Python-Dev] Inplace operations for PyLong objects

2017-09-01 Thread Joe Jevnik via Python-Dev
Is it true that checking for refcount == 1 is enough? What if a user wrote: args = (compute_integer(), 5) # give away args to someone int.__iadd__(*args) here `args[0]` still has refcount=1 because only `args` owns this integer. On Fri, Sep 1, 2017 at 4:19 PM, Jelle Zijlstra wrote: > > > 2017-

Re: [Python-Dev] Inplace operations for PyLong objects

2017-09-01 Thread Jelle Zijlstra
2017-09-01 13:05 GMT-07:00 Chris Barker : > On Thu, Aug 31, 2017 at 5:12 PM, Antoine Pitrou > wrote: > >> I'm skeptical there are some programs out there that are limited by the >> speed of PyLong inplace additions. >> > > indeed, but that could be said about any number of operations. > > My ques

Re: [Python-Dev] Inplace operations for PyLong objects

2017-09-01 Thread Chris Barker
On Thu, Aug 31, 2017 at 5:12 PM, Antoine Pitrou wrote: > I'm skeptical there are some programs out there that are limited by the > speed of PyLong inplace additions. > indeed, but that could be said about any number of operations. My question is -- how can the interpreter know if it can alter w

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Oleg Broytman
On Fri, Sep 01, 2017 at 02:55:40PM -0400, Terry Reedy wrote: > On 9/1/2017 11:31 AM, Oleg Broytman wrote: > >On Fri, Sep 01, 2017 at 05:27:59PM +0200, Antoine Pitrou > > wrote: > >>On Fri, 1 Sep 2017 17:03:59 +0200 > >>Victor Stinner wrote: > >>> > And by the way the problem goes away if you

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Terry Reedy
On 9/1/2017 11:31 AM, Oleg Broytman wrote: On Fri, Sep 01, 2017 at 05:27:59PM +0200, Antoine Pitrou wrote: On Fri, 1 Sep 2017 17:03:59 +0200 Victor Stinner wrote: And by the way the problem goes away if you use the "HTTPS Everywhere" plugin for Firefox. Try for example this page: https:

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Oleg Broytman
On Fri, Sep 01, 2017 at 07:06:57PM +0200, Antoine Pitrou wrote: > On Fri, 1 Sep 2017 17:31:00 +0200 > Oleg Broytman wrote: > > > On Fri, Sep 01, 2017 at 05:27:59PM +0200, Antoine Pitrou > > wrote: > > > On Fri, 1 Sep 2017 17:03:59 +0200 > > > Victor Stinner wrote: > > > > > > > > > And

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Victor Stinner
2017-09-01 19:06 GMT+02:00 Antoine Pitrou : > That's surprising. It's definitely part of the standard rules (enabled > by default): > https://www.eff.org/https-everywhere/atlas/domains/python.org.html Maybe the plugin is also broken, as my setup. Maybe it's related to the recent "multiprocess" ma

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Antoine Pitrou
On Fri, 1 Sep 2017 17:31:00 +0200 Oleg Broytman wrote: > On Fri, Sep 01, 2017 at 05:27:59PM +0200, Antoine Pitrou > wrote: > > On Fri, 1 Sep 2017 17:03:59 +0200 > > Victor Stinner wrote: > > > > > > > And by the way the problem goes away if you use the "HTTPS Everywhere" > > > > plugin fo

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread INADA Naoki
You're right. It should be bpo configuration issue. https://hg.python.org/tracker/roundup/file/bugs.python.org/roundup/cgi/client.py#l303 https://hg.python.org/tracker/python-dev/file/tip/config.ini.template#l118 I can't real config file used for bpo. But maybe, tracker.web is 'http://bugs.pytho

[Python-Dev] Summary of Python tracker Issues

2017-09-01 Thread Python tracker
ACTIVITY SUMMARY (2017-08-25 - 2017-09-01) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open6166 (+17) closed 36910 (+30) total 43076 (+47) Open issues wit

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Oleg Broytman
On Fri, Sep 01, 2017 at 05:27:59PM +0200, Antoine Pitrou wrote: > On Fri, 1 Sep 2017 17:03:59 +0200 > Victor Stinner wrote: > > > > > And by the way the problem goes away if you use the "HTTPS Everywhere" > > > plugin for Firefox. > > > > Try for example this page: > > > > https://bugs.pyth

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Antoine Pitrou
On Fri, 1 Sep 2017 17:03:59 +0200 Victor Stinner wrote: > > > And by the way the problem goes away if you use the "HTTPS Everywhere" > > plugin for Firefox. > > Try for example this page: > > https://bugs.python.org/issue31234?@ok_message=msg%20301118%20created > > For me, the "clear this me

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Victor Stinner
2017-09-01 16:34 GMT+02:00 Antoine Pitrou : > I'm using Firefox 55 on Ubuntu 16.04 and it works here. You may be > misunderstading what happens :-) Maybe I misunderstood you when you wrote: > And by the way the problem goes away if you use the "HTTPS Everywhere" > plugin for Firefox. Try for ex

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Antoine Pitrou
Le 01/09/2017 à 16:32, Victor Stinner a écrit : > > In short, it doesn't work :-) I'm using Firefox 55 on Ubuntu 16.04 and it works here. You may be misunderstading what happens :-) Regards Antoine. ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Victor Stinner
2017-09-01 15:36 GMT+02:00 Antoine Pitrou : > And by the way the problem goes away if you use the "HTTPS Everywhere" > plugin for Firefox. I do have "HTTPS Everywhere" Firefox plugin version 2017.8.31 (so it seems very recent), but it displayed as "obsolete" ("obsolète" in french). I'm using Firef

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Wes Turner
Here's e.g. Jupyter Notebook w/ letsencrypt in a Makefile: https://github.com/jupyter/docker-stacks/blob/master/examples/make-deploy/letsencrypt.makefile ... https://github.com/jupyter/docker-stacks On Fri, Sep 1, 2017 at 9:08 AM, Wes Turner wrote: > > ## HTTP STS > - Wikipedia: https://en.wik

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Terry Reedy
On 9/1/2017 9:36 AM, Antoine Pitrou wrote: And by the way the problem goes away if you use the "HTTPS Everywhere" plugin for Firefox. Firefox has both 'extension' and 'plugin' add-ons. "HTTPS Everywhere" is found under 'extensions'. Works great. On Fri, 1 Sep 2017 15:29:58 +0200 Antoine Pi

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Wes Turner
## HTTP STS - Wikipedia: https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security - Docs: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security - https://https.cio.gov/hsts/ ## letsencrypt "A free, automated, and open certificate authority." - Wikipedia: https:/

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Mariatta Wijaya
I also would like the links from bug tracker emails be in https instead of http. On Sep 1, 2017 6:31 AM, "Antoine Pitrou" wrote: > On Fri, 1 Sep 2017 22:15:29 +0900 > INADA Naoki wrote: > > FYI, there is issue report for it. > > http://psf.upfronthosting.co.za/roundup/meta/issue463 > > INADA

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Antoine Pitrou
And by the way the problem goes away if you use the "HTTPS Everywhere" plugin for Firefox. Regards Antoine. On Fri, 1 Sep 2017 15:29:58 +0200 Antoine Pitrou wrote: > On Fri, 1 Sep 2017 22:15:29 +0900 > INADA Naoki wrote: > > FYI, there is issue report for it. > > http://psf.upfronthosting.co

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Antoine Pitrou
On Fri, 1 Sep 2017 22:15:29 +0900 INADA Naoki wrote: > FYI, there is issue report for it. > http://psf.upfronthosting.co.za/roundup/meta/issue463 > INADA Naoki That issue is about making the tracker HTTPS-only, but fixing internal links to point to the HTTPS site would already go a long way, ev

Re: [Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread INADA Naoki
FYI, there is issue report for it. http://psf.upfronthosting.co.za/roundup/meta/issue463 INADA Naoki On Fri, Sep 1, 2017 at 9:57 PM, Victor Stinner wrote: > Hi, > > When I go to http://bugs.python.org/ Firefox warns me that the form on > the left to login (user, password) sends data in clear t

[Python-Dev] HTTPS on bugs.python.org

2017-09-01 Thread Victor Stinner
Hi, When I go to http://bugs.python.org/ Firefox warns me that the form on the left to login (user, password) sends data in clear text (HTTP). Ok, I switch manually to HTTPS: add "s" in "http://"; of the URL. I log in. I go to an issue using HTTPS like https://bugs.python.org/issue31250 I modi

Re: [Python-Dev] PEP 539 (second round): A new C API for Thread-Local Storage in CPython

2017-09-01 Thread Masayuki YAMAMOTO
2017-08-31 19:40 GMT+09:00 Erik Bray : > [...] > the changes is nice. I just have a few minor changes to suggest > (typos and such) that I'll make in a pull request. > Steve Dower points out which avoids the use of bool in header declarations [*]. I'd change PyThread_tss_is_created declaration's