Re: [Python-ideas] Technical possibilities for a syntax [was: Reverse assignment operators ...]

2016-11-17 Thread Paul Moore
On 17 November 2016 at 02:50, Stephen J. Turnbull wrote: > Matthias Bussoni writes: > > > Please be mindful when replying, even if some of the lurker know > > who some of you are and can figure out that some of the reply to > > this thread below this message are sarcastic, not all readers > >

Re: [Python-ideas] Technical possibilities for a syntax [was: Reverse assignment operators ...]

2016-11-17 Thread Paul Moore
On 17 November 2016 at 03:07, Stephen J. Turnbull wrote: > Paul Moore writes: > > > PS Note for anyone who wants to take this off on a wild tangent - my > > above comment is *in the context of Python as it has been defined for > > 20+ years*. > > Not quite. Augmented assignment operators were

Re: [Python-ideas] Support for OAuth2/OIDC in the standard distribution ?

2016-11-17 Thread Paul Moore
On 17 November 2016 at 02:42, Stephen J. Turnbull wrote: > But I am not a draconian security policy QA/security reviewer. I'd > take anything Paul Moore says pretty seriously, as he operates in such > an environment. For context, my environment is one that doesn't formally use Python, but needs

Re: [Python-ideas] Technical possibilities for a syntax [was: Reverse assignment operators ...]

2016-11-17 Thread Mikhail V
On 17 November 2016 at 10:22, Paul Moore wrote: > On 17 November 2016 at 03:07, Stephen J. Turnbull > wrote: >> Paul Moore writes: >> >> > PS Note for anyone who wants to take this off on a wild tangent - my >> > above comment is *in the context of Python as it has been defined for >> > 20+ ye

Re: [Python-ideas] Technical possibilities for a syntax [was: Reverse assignment operators ...]

2016-11-17 Thread M.-A. Lemburg
On 17.11.2016 11:16, Mikhail V wrote: > Citation from > http://legacy.python.org/dev/peps/pep-0203/ > > """ > Expressions of the form > > = > > are common enough in those languages to make the extra syntax > worthwhile, and Python does not have significantly fewer of those >

Re: [Python-ideas] Support for OAuth2/OIDC in the standard distribution ?

2016-11-17 Thread Cory Benfield
> On 16 Nov 2016, at 14:53, Paul Moore wrote: > > I'm not a web developer as such, although I do write code that > consumes web services on occasion. I don't know what OIDC is, but I do > know, for example, that some services use OAuth. So I can imagine > being in a situation of saying "I want t

Re: [Python-ideas] Support for OAuth2/OIDC in the standard distribution ?

2016-11-17 Thread Stephen J. Turnbull
Nick Coghlan writes: > In that context, the problem is the old "batteries that leak acid > everywhere can be worse than no batteries at all" one: we know from > painful experience with the SSL module that the standard library's > typical release and adoption cycle can be seriously problematic

Re: [Python-ideas] Support for OAuth2/OIDC in the standard distribution ?

2016-11-17 Thread Paul Moore
On 17 November 2016 at 10:58, Cory Benfield wrote: > Paul, you mentioned that discovery on PyPI is a problem: I don’t contest that > at all. But I don’t think the solution to that problem is to jam modules into > the standard library, and I think even less of that idea when there is no > formal

Re: [Python-ideas] Support for OAuth2/OIDC in the standard distribution ?

2016-11-17 Thread Paul Moore
On 17 November 2016 at 11:12, Stephen J. Turnbull wrote: > > However, when it comes to draconian security policies, *transitive > > recommendations have power*: if CPython is approved, and python-dev > > collectively says "we recommend pip, virtualenv, and requests", then > > folks in locked d

Re: [Python-ideas] Support for OAuth2/OIDC in the standard distribution ?

2016-11-17 Thread Cory Benfield
> On 17 Nov 2016, at 11:35, Paul Moore wrote: > > On 17 November 2016 at 10:58, Cory Benfield wrote: >> Paul, you mentioned that discovery on PyPI is a problem: I don’t contest >> that at all. But I don’t think the solution to that problem is to jam >> modules into the standard library, and I

Re: [Python-ideas] Technical possibilities for a syntax [was: Reverse assignment operators ...]

2016-11-17 Thread Steven D'Aprano
On Thu, Nov 17, 2016 at 12:07:34PM +0900, Stephen J. Turnbull wrote: > Nick Timkovich writes: > > > I think the best way to remove compound operators would be to go > > back in time and hit Dennis Ritchie with a bat at the exact moment > > when the notion of them crosses his mind. > > True eno

Re: [Python-ideas] Support for OAuth2/OIDC in the standard distribution ?

2016-11-17 Thread Roland Hedberg
> On 17 Nov 2016, at 12:58, Cory Benfield wrote: > > >> On 16 Nov 2016, at 14:53, Paul Moore wrote: >> >> I'm not a web developer as such, although I do write code that >> consumes web services on occasion. I don't know what OIDC is, but I do >> know, for example, that some services use OAuth

Re: [Python-ideas] Support for OAuth2/OIDC in the standard distribution ?

2016-11-17 Thread Paul Moore
On 17 November 2016 at 12:27, Cory Benfield wrote: > This isn’t me disagreeing with you, just me pointing out that the fuzziness > around this makes me nervous. It has been my experience that a large number > of protocol implementations in the standard library are already struggling to > meet t

[Python-ideas] Unable to sniff outgoing traffic using raw sockets in python2.7

2016-11-17 Thread Ayush Aggarwal
Hello, Following is my code : #!/usr/bin/python import socket import struct import binascii rawSocket = socket.socket(socket.PF_PACKET,socket.SOCK_RAW,socket.htons(0x0800)) # use 0x0800 for IPv4 packets , 0x0003 is for sniffing all kinds of packets while True: pkt= rawSocket.recvfrom(2

Re: [Python-ideas] Support for OAuth2/OIDC in the standard distribution ?

2016-11-17 Thread Chris Angelico
On Thu, Nov 17, 2016 at 11:51 PM, Roland Hedberg wrote: >> A quick query of the PyPI download database for the three months shows the >> following download counts for those modules: >> >> - requests-oauthlib == 1,897,048 >> - oauth2 == 349,759 >> - pyoidc == 10,520 >> >> This is not intended to b

Re: [Python-ideas] Support for OAuth2/OIDC in the standard distribution ?

2016-11-17 Thread Cory Benfield
> On 17 Nov 2016, at 13:42, Paul Moore wrote: > > On 17 November 2016 at 12:27, Cory Benfield wrote: >> This isn’t me disagreeing with you, just me pointing out that the fuzziness >> around this makes me nervous. It has been my experience that a large number >> of protocol implementations in

Re: [Python-ideas] Support for OAuth2/OIDC in the standard distribution ?

2016-11-17 Thread Paul Moore
On 17 November 2016 at 14:45, Chris Angelico wrote: > Personally, when I hit step 6, I search the web. PyPI search is > exhaustive but not very usefully ranked (for this purpose). Searching > for a keyword or protocol will give undue weight to a module whose > name is simply that word, even if tha

[Python-ideas] Unable to sniff outgoing traffic using raw sockets in python2.7

2016-11-17 Thread Stephen J. Turnbull
Ayush, This list is for new ideas for developing the Python language and standard libraries. You are unlikely to get a useful answer here. You would be better off asking on python-l...@python.org or Stack Overflow, which are channels devoted to helping you write code with Python. Regards, Ayush

[Python-ideas] Comfort zones on list [was: Technical possibilities ...]

2016-11-17 Thread Stephen J. Turnbull
Steven D'Aprano writes: > > > Except Perl. > > > > Please don't. > > I don't think there is any need for that. No harm is done by a > little light-hearted banter relating to the rivalry between > programming language communities. I don't disagree with that principle, just with the evalu

Re: [Python-ideas] Technical possibilities for a syntax [was: Reverse assignment operators ...]

2016-11-17 Thread Steven D'Aprano
On Thu, Nov 17, 2016 at 07:37:36AM +0100, Mikhail V wrote: > On 17 November 2016 at 01:06, Steven D'Aprano wrote: > > > It doesn't matter what keyword you come up with, you still have the > > problem that this idea introduces a new keyword. New keywords always > > break backwards compatibility, w

Re: [Python-ideas] Support for OAuth2/OIDC in the standard distribution ?

2016-11-17 Thread Nick Coghlan
On 17 November 2016 at 21:35, Paul Moore wrote: > On 17 November 2016 at 10:58, Cory Benfield wrote: >> Instead, I think we need a way to be able to ask the question: “what does >> the wider Python development community consider to be the gold standard for >> solving problem X?”. > > Agreed, t