Re: [Python-Dev] re performance

2017-02-01 Thread Franklin? Lee
On Thu, Jan 26, 2017 at 4:13 PM, Sven R. Kunze wrote: > Hi folks, > > I recently refreshed regular expressions theoretical basics *indulging in > reminiscences* So, I read https://swtch.com/~rsc/regexp/regexp1.html > > However, reaching the chart in the lower third of the article, I saw Python > 2

Re: [Python-Dev] SSL certificates recommendations for downstreampython packagers

2017-02-01 Thread Stephen J. Turnbull
Cory Benfield writes: > The TL;DR is: I understand Christian’s concern, but I don’t think > it’s important if you’re very, very careful. But AIUI, the "you" above is the end-user or admin of end-user's system, no? We know that they aren't very careful (or perhaps more accurate, this is too fsc

Re: [Python-Dev] re performance

2017-02-01 Thread Wang, Peter Xihong
+1 We'd like to get more details on how to try this "new mode", and do a full/comprehensive comparison between the "re" vs "regex". Peter   -Original Message- From: Victor Stinner [mailto:victor.stin...@gmail.com] Sent: Wednesday, February 01, 2017 12:58 PM To: Lukasz Langa Cc: Wang,

Re: [Python-Dev] re performance

2017-02-01 Thread Victor Stinner
2017-02-01 20:42 GMT+01:00 Lukasz Langa : > However, this benchmark is incomplete in the sense that it only checks the > compatibility mode of `regex`, whereas it's the new mode that lends the > biggest performance gains. So, providing checks for the other engine would > show us the full picture.

Re: [Python-Dev] re performance

2017-02-01 Thread Serhiy Storchaka
On 31.01.17 21:40, Wang, Peter Xihong wrote: Regarding to the performance difference between "re" and "regex" and packaging related options, we did a performance comparison using Python 3.6.0 to run some micro-benchmarks in the Python Benchmark Suite (https://github.com/python/performance): Re

Re: [Python-Dev] re performance

2017-02-01 Thread Lukasz Langa
> On Jan 31, 2017, at 11:40 AM, Wang, Peter Xihong > wrote: > > Regarding to the performance difference between "re" and "regex" and > packaging related options, we did a performance comparison using Python 3.6.0 > to run some micro-benchmarks in the Python Benchmark Suite > (https://github.

Re: [Python-Dev] Heads up: possible double-comments on bpo for commits

2017-02-01 Thread Victor Stinner
Hi, I noticed a strange issue with Roundup Robot on the issue #29318. I closed http://bugs.python.org/issue29318 as rejected: resolution: -> rejected status: open -> closed Roundup Robot made a first change: stage: -> resolved But then it made a second change: resolution: rejec

Re: [Python-Dev] Why doesn't module finalization delete names as expected?

2017-02-01 Thread Antoine Pitrou
On Wed, 1 Feb 2017 03:23:02 -0500 Philippe Proulx wrote: > > It feels like `bread` is never deleted in the module initialization > situation, but I don't know why: the only reference to the Bread Python > object is this `bread` name in the module... what could prevent this > object's __del__() me

[Python-Dev] Why doesn't module finalization delete names as expected?

2017-02-01 Thread Philippe Proulx
Hello. I'm not sure if I'm posting to the right list. If it's not the case, please tell me which one to post to. Using Python 3.5.2. I'm developing a C module with the help of SWIG. My library manages objects with reference counting, much like Python, except that it's deterministic: there's no GC

Re: [Python-Dev] Investigating Python memory footprint of one real Web application

2017-02-01 Thread Ivan Levkivskyi
Inada-san, I have made a PR for typing module upstream https://github.com/python/typing/pull/383 It should reduce the memory consumption significantly (and also increase isinstance() speed). Could you please try it with your real code base and test memory consumption (and maybe speed) as compared

Re: [Python-Dev] SSL certificates recommendations for downstreampython packagers

2017-02-01 Thread Cory Benfield
> On 1 Feb 2017, at 14:20, Steve Dower wrote: > > Sorry, I misspoke when I said "certificate validation callback", I meant the > same callback Cory uses below (name escapes me now, but it's unfortunately > similar to what I said). There are two callbacks in OpenSSL, one that allows > you to v

Re: [Python-Dev] SSL certificates recommendations for downstreampython packagers

2017-02-01 Thread Steve Dower
Sorry, I misspoke when I said "certificate validation callback", I meant the same callback Cory uses below (name escapes me now, but it's unfortunately similar to what I said). There are two callbacks in OpenSSL, one that allows you to verify each certificate in the chain individually, and one t

Re: [Python-Dev] SSL certificates recommendations for downstream python packagers

2017-02-01 Thread Cory Benfield
> On 31 Jan 2017, at 18:26, Steve Dower wrote: > > In short, I want to allow Python code to set OpenSSL's certificate validation > callback. Basically, given a raw certificate, return True/False based on > whether it should be trusted. I then have separate code (yet to be published) > impleme

[Python-Dev] Core Python Projects for GSoC 2017?

2017-02-01 Thread Terri Oda
Hey all, it's Google Summer of Code time again! For those not familiar with it, Google Summer of Code is a mentoring program where Google provides stipends to pay students to work with selected open source organizations. Python has participated for many years now, and we're hoping to be selec