Re: Instagram: 40% Py3 to 99% Py3 in 10 months (Posting On Python-List Prohibited)

2017-06-20 Thread Chris Angelico
On Wed, Jun 21, 2017 at 4:01 PM, Marko Rauhamaa wrote: > No RHEL/CentOS release so far ships with Py3. Maybe RHEL 8 will. > > That's a big deal for where I work. We'd love to implement things in > Python in our products but won't do it before Py3 is included on all > customer platforms. RHEL 7 is

Re: Instagram: 40% Py3 to 99% Py3 in 10 months (Posting On Python-List Prohibited)

2017-06-20 Thread Marko Rauhamaa
Chris Angelico : > I don't know how to check RHEL package lists without having a license, > but RHEL 4 and 5 came out before Py3 was released. So "we need to > support RHEL 4" would be a legit reason to avoid Python 3 - but it's > also a reason to avoid Python 2.7, as RHEL 4 ships with Python 2.3

Re: Progress on the Gilectomy

2017-06-20 Thread Marko Rauhamaa
Paul Rubin : > How it works (i.e. what the implementation does) is quite simple and > understandable. The amazing thing is that it doesn't leak memory > catastrophically. If I understand it correctly, the 32-bit Go language runtime implementation suffered "catastrophically" at one point. The reas

Re: Instagram: 40% Py3 to 99% Py3 in 10 months (Posting On Python-List Prohibited)

2017-06-20 Thread Chris Angelico
On Wed, Jun 21, 2017 at 3:17 PM, Paul Rubin wrote: > Steven D'Aprano writes: >> genuinely good reason... (Which might include "the customer insists", >> or "yeah, I know it sucks, but politics".) > > I think the current LTS versions of Ubuntu and Debian both come with > Python 2. Not sure about

Re: Progress on the Gilectomy

2017-06-20 Thread Paul Rubin
Cem Karan writes: > I'm not too sure how much of performance impact that will have. My > code generates a very large number of tiny, short-lived objects at a > fairly high rate of speed throughout its lifetime. At least in the > last iteration of the code, garbage collection consumed less than 1

Re: Instagram: 40% Py3 to 99% Py3 in 10 months (Posting On Python-List Prohibited)

2017-06-20 Thread Paul Rubin
Steven D'Aprano writes: > genuinely good reason... (Which might include "the customer insists", > or "yeah, I know it sucks, but politics".) I think the current LTS versions of Ubuntu and Debian both come with Python 2. Not sure about Centos/RHEL. Those seem like ok reasons to me. > if you wa

Re: cdecimal.Decimal v. decimal.Decimal

2017-06-20 Thread Skip Montanaro
Shouldn't these beasts compare equal? It seems like it, although I don't think they were ever intended to be used side-by-side. cdecimal isn't part of the standard library and is supposed to be a drop-in replacement. As of CPython 3.3, the decimal module *is* cdecimal. Got it, thanks. I have a f

Re: Progress on the Gilectomy

2017-06-20 Thread Cem Karan
On Jun 20, 2017, at 1:19 AM, Paul Rubin wrote: > Cem Karan writes: >> Can you give examples of how it's not reliable? > > Basically there's a chance of it leaking memory by mistaking a data word > for a pointer. This is unlikely to happen by accident and usually > inconsequential if it does ha

Re: cdecimal.Decimal v. decimal.Decimal

2017-06-20 Thread Ian Kelly
On Tue, Jun 20, 2017 at 2:49 PM, Skip Montanaro wrote: > I'd not used the Decimal classes before, but some data I was receiving > from a database via pyodbc came that way. In writing some test cases, > I had a hard time making things work out. I eventually figure out what > was going on: > im

cdecimal.Decimal v. decimal.Decimal

2017-06-20 Thread Skip Montanaro
I'd not used the Decimal classes before, but some data I was receiving from a database via pyodbc came that way. In writing some test cases, I had a hard time making things work out. I eventually figure out what was going on: >>> import decimal, cdecimal >>> decimal.Decimal('2226.48') == cdecimal.

how to get the html content and edit with scapy and see the edited result in browser?

2017-06-20 Thread Ho Yeung Lee
pkts = sniff(prn=lambda x:x.sprintf("{IP:%IP.src% -> %IP.dst%\n}{Raw:%Raw.load%\n}"), filter="tcp port 80") for i in range(1,len(pkts)): #if pkts[i][IP].sport == 80: i,pkts[i][TCP].payload i find pkts[10] do not have html source code (8, ) (9, ) (10, ) (11, ) dir(pkts[10][TCP]) --

Re: Instagram: 40% Py3 to 99% Py3 in 10 months (Posting On Python-List Prohibited)

2017-06-20 Thread breamoreboy
On Tuesday, June 20, 2017 at 12:18:50 PM UTC+1, wxjm...@gmail.com wrote: > Le mardi 20 juin 2017 11:48:03 UTC+2, Steven D'Aprano a écrit : > > Python (3) on Windows just does not work. Period. Complete drivel from the RUE. I, and many others, use Python3 on Windows on a daily basis with not pro

Re: Progress on the Gilectomy

2017-06-20 Thread Marko Rauhamaa
Paul Rubin : > The simplest way to start experimenting with GC in Python might be to > redefine the refcount macros to do nothing, connect the allocator to > the Boehm GC, and stop all the threads when GC time comes. I don't > know if Guile has threads at all, but I know it uses the Boehm GC and >

Re: Instagram: 40% Py3 to 99% Py3 in 10 months (Posting On Python-List Prohibited)

2017-06-20 Thread Steven D'Aprano
On Tue, 20 Jun 2017 00:11:25 -0700, Lawrence D’Oliveiro wrote: > On Tuesday, June 20, 2017 at 6:16:05 PM UTC+12, wxjm...@gmail.com wrote: >> - Py3 on Windows just does not work. > > Whose fault is that? Pay no attention to wxjmfauth and his complaints that Python 3 does not work. He's either