Re: Incremental compression

2018-02-09 Thread Steven D'Aprano
On Fri, 09 Feb 2018 17:52:33 -0800, Dan Stromberg wrote: > Perhaps: > > import lzma > lzc = lzma.LZMACompressor() Ah, thanks for the suggestion! -- Steve -- https://mail.python.org/mailman/listinfo/python-list

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread Steven D'Aprano
On Fri, 09 Feb 2018 17:30:57 -0800, codewizard wrote: > Regardless of what the policies are and how well they're enforced, if > the mailing list is cut off from GG, I will stop reading it. There is *absolutely nothing* we can do about that. Google doesn't listen to us, and the suggestion that we

Re: Incremental compression

2018-02-09 Thread Dan Stromberg
Perhaps: import lzma lzc = lzma.LZMACompressor() out1 = lzc.compress(b"Some data\n") out2 = lzc.compress(b"Another piece of data\n") out3 = lzc.compress(b"Even more data\n") out4 = lzc.flush() # Concatenate all the partial results: result = b"".join([out1, out2, out3, out4]) ? lzma compresses ha

Incremental compression

2018-02-09 Thread Steven D'Aprano
I want to compress a sequence of bytes one byte at a time. (I am already processing the bytes one byte at a time, for other reasons.) I don't particularly care *which* compression method is used, and in fact I'm not even interested in the compressed data itself, only its length. So I'm looking

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread codewizard
On Friday, February 9, 2018 at 6:45:18 PM UTC-5, Richard Damon wrote: > On 2/9/18 6:19 PM, codew...@gmail.com wrote: > > On Friday, February 9, 2018 at 5:03:45 PM UTC-5, Richard Damon wrote: > >> On 2/9/18 4:12 PM, Chris Angelico wrote: > >>> On Sat, Feb 10, 2018 at 8:05 AM, wrote: > On Frid

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread Richard Damon
On 2/9/18 6:19 PM, codewiz...@gmail.com wrote: On Friday, February 9, 2018 at 5:03:45 PM UTC-5, Richard Damon wrote: On 2/9/18 4:12 PM, Chris Angelico wrote: On Sat, Feb 10, 2018 at 8:05 AM, wrote: On Friday, February 9, 2018 at 2:48:17 PM UTC-5, Chris Green wrote: codew...@gmail.com wrote:

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread codewizard
On Friday, February 9, 2018 at 5:03:45 PM UTC-5, Richard Damon wrote: > On 2/9/18 4:12 PM, Chris Angelico wrote: > > On Sat, Feb 10, 2018 at 8:05 AM, wrote: > >> On Friday, February 9, 2018 at 2:48:17 PM UTC-5, Chris Green wrote: > >>> codew...@gmail.com wrote: > On Saturday, February 3, 201

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread Richard Damon
On 2/9/18 4:12 PM, Chris Angelico wrote: On Sat, Feb 10, 2018 at 8:05 AM, wrote: On Friday, February 9, 2018 at 2:48:17 PM UTC-5, Chris Green wrote: codew...@gmail.com wrote: On Saturday, February 3, 2018 at 7:15:16 PM UTC-5, pyotr filipivich wrote: [snip] Those of us who do not us

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread Chris Angelico
On Sat, Feb 10, 2018 at 8:05 AM, wrote: > On Friday, February 9, 2018 at 2:48:17 PM UTC-5, Chris Green wrote: >> codew...@gmail.com wrote: >> > On Saturday, February 3, 2018 at 7:15:16 PM UTC-5, pyotr filipivich wrote: >> > > [snip] >> > > Those of us who do not use google-groups may not

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread codewizard
On Friday, February 9, 2018 at 2:48:17 PM UTC-5, Chris Green wrote: > codew...@gmail.com wrote: > > On Saturday, February 3, 2018 at 7:15:16 PM UTC-5, pyotr filipivich wrote: > > > [snip] > > > Those of us who do not use google-groups may not notice the loss > > > of the google groupies. >

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread Chris Green
codewiz...@gmail.com wrote: > On Saturday, February 3, 2018 at 7:15:16 PM UTC-5, pyotr filipivich wrote: > > [snip] > > Those of us who do not use google-groups may not notice the loss > > of the google groupies. > > I use GG to read comp.lang.python because of the following combination >

Re: Extracting data from ython dictionary object

2018-02-09 Thread Mark Lawrence
On 09/02/18 18:35, Stanley Denman wrote: On Friday, February 9, 2018 at 1:08:27 AM UTC-6, dieter wrote: Stanley Denman writes: I am new to Python. I am trying to extract text from the bookmarks in a PDF file that would provide the data for a Word template merge. I have gotten down to a stri

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread codewizard
On Saturday, February 3, 2018 at 7:15:16 PM UTC-5, pyotr filipivich wrote: > [snip] > Those of us who do not use google-groups may not notice the loss > of the google groupies. I use GG to read comp.lang.python because of the following combination of factors. I would definitely be happier

Re: Extracting data from ython dictionary object (Posting On Python-List Prohibited)

2018-02-09 Thread Stanley Denman
On Friday, February 9, 2018 at 12:20:29 AM UTC-6, Lawrence D’Oliveiro wrote: > On Friday, February 9, 2018 at 6:04:48 PM UTC+13, Stanley Denman wrote: > > {'/Title': '1F: Progress Notes Src.: MILANI, JOHN C Tmt. Dt.: > > 05/12/2014 - 05/28/2014 (9 pages)', '/Page': IndirectObject(465, 0), > >

Re: Extracting data from ython dictionary object

2018-02-09 Thread Stanley Denman
On Friday, February 9, 2018 at 1:08:27 AM UTC-6, dieter wrote: > Stanley Denman writes: > > > I am new to Python. I am trying to extract text from the bookmarks in a PDF > > file that would provide the data for a Word template merge. I have gotten > > down to a string of text pulled out of the

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread Tim Golden
On 09/02/2018 15:37, Chris Green wrote: Steven D'Aprano wrote: On Fri, 09 Feb 2018 12:45:29 +, Chris Green wrote: Mark Lawrence wrote: [...] Please don't waste your time with the gmane website. Just point any (semi-)decent mail client like Thunderbird at news.gmane.org and you've Su

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread Chris Green
Steven D'Aprano wrote: > On Fri, 09 Feb 2018 12:45:29 +, Chris Green wrote: > > > Mark Lawrence wrote: > [...] > >> Please don't waste your time with the gmane website. Just point any > >> (semi-)decent mail client like Thunderbird at news.gmane.org and you've > > > > Surely you mean NNTP/

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread Jim
On 02/09/2018 08:07 AM, Steven D'Aprano wrote: On Fri, 09 Feb 2018 12:45:29 +, Chris Green wrote: Mark Lawrence wrote: [...] Please don't waste your time with the gmane website. Just point any (semi-)decent mail client like Thunderbird at news.gmane.org and you've Surely you mean NNTP

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread Steven D'Aprano
On Fri, 09 Feb 2018 12:45:29 +, Chris Green wrote: > Mark Lawrence wrote: [...] >> Please don't waste your time with the gmane website. Just point any >> (semi-)decent mail client like Thunderbird at news.gmane.org and you've > > Surely you mean NNTP/Usenet client. That's what he said :-)

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread Chris Green
Mark Lawrence wrote: > On 09/02/18 11:23, John Ladasky wrote: > > > > I haven't visited GMane in a few years, but I found it difficult to > > navigate. > In particular, I found searching to be cumbersome. Weren't the archives > broken into 30-day blocks? > > > > I just tried GMane again two

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread Wolfgang Maier
On 02/09/2018 12:23 PM, John Ladasky wrote: On Friday, February 9, 2018 at 12:50:16 AM UTC-8, Tim Golden wrote: Gmane offers a newsgroup interface to the mailing list I haven't visited GMane in a few years, but I found it difficult to navigate. In particular, I found searching to be cumberso

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread Mark Lawrence
On 09/02/18 11:23, John Ladasky wrote: I haven't visited GMane in a few years, but I found it difficult to navigate. In particular, I found searching to be cumbersome. Weren't the archives broken into 30-day blocks? I just tried GMane again two minutes ago. I can't confirm my recollections

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread John Ladasky
On Friday, February 9, 2018 at 12:50:16 AM UTC-8, Tim Golden wrote: [snip and rearrange] > So dropping GG altogether would probably not add very much, as we're > generally blocking undesirable posts from there and we'd rather not > block genuine posts which happen to be made through the relativ

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread Tim Golden
On 09/02/2018 05:00, Steven D'Aprano wrote: On Thu, 08 Feb 2018 23:40:57 +, Mark Lawrence wrote: I don't see any spam in my inbox as I read on gmane, I'm pointing out the disgraceful state of gg and why it should be dropped as it's less than useless. Who is it that you think should "drop"