Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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" Google Groups? If Mark means: the mailing list gateway should automatically drop posts originating from GG, then this wouldn't really buy us anything we don't have. I think it's unlikely that anyone still following this thread isn't aware of the situation, but just in case: We have a newsgroup (comp.lang.python) and a mailing list (python-list) which are mirrored to each other by virtue of the Mailman gateway (ie the mailing list handles both sides of the mirror). Google Groups offers a mail & web interface to the newsgroup Gmane offers a newsgroup interface to the mailing list The newsgroup is entirely unmoderated and unfiltered The mailing list is moderated and filtered in different ways: * We block (hold or discard) mailing list posts by subscriber * We block inbound usenet posts by header (usually sender email but also, eg, ISP) * We have a Spambayes instance running which injects a spam score header and we block on that header * We have a few other more specific filters in place for various issues which have arisen over the years By and large, this combination of filters, coupled with the work of the moderation and postmaster team, is enough to keep the list "clean" of manifest spam and so on. Obviously, the first instance of spam might slip past all our filters, in which case we're on the back foot and have to react. On the whole, though, we catch most things. 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 relative convenience of the GG interface. Can I call out for thanks here the people who have worked behind the scenes for quite a long time to keep this list running smoothly, including: Skip Montanaro who manages the Spambayes setup; Mark Sapiro, the Mailman 2 dev lead who looks after all the python.org Mailman2 instances; Ralf Hildebrandt who acts as Postmaster; of course Barry Warsaw who created Mailman (and this list, I believe) and still contributes when we need to discuss matters as list owners; of course Ethan Furman, my fellow list moderator; and doubtless others whom I've forgotten. The fact that the list continues to be readable and useful is down in large part to them. TJG -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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 relative > convenience of the GG interface. I thank you for this point of view. I am using Google Groups. I migrated here back in the days of Deja News. I don't like having mailing lists streaming into my inbox, having to hunt around to unsubscribe. I want a newsreader with integrated posting capability which is separate from my inbox. > 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 cumbersome. Weren't the archives broken into 30-day blocks? I just tried GMane again two minutes ago. I can't confirm my recollections, but right now what I'm seeing is worse. If you follow this link right now... (http://gmane.org/find.php?list=comp.lang.python)... you get this: "Not all of Gmane is back yet - We're working hard to restore everything" And if you follow the link labeled "The latest news is at Gmane News" at the bottom of that page, it takes you here... (http://home.gmane.org/)... and the top blog post discussing site repairs is dated September 2016! I'm not too excited about trying GMane again after seeing that. One final thought: although Google is not the Python community, there are a lot of shared interests and overlap. Google sponsored and employed Guido for years. The most popular Tensorflow API is the Python API. Can't this relationship be used to ask Google to get more serious about the spam problem that originates in their domain, but that people in this discussion think they will hold against comp.lang.python? Alternately, how about giving Google Groups users killfiles and/or the same Spambayes filter tools that are already used on GMail inboxes? -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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, but right now what I'm seeing is worse. If you follow this link right now... (http://gmane.org/find.php?list=comp.lang.python)... you get this: "Not all of Gmane is back yet - We're working hard to restore everything" And if you follow the link labeled "The latest news is at Gmane News" at the bottom of that page, it takes you here... (http://home.gmane.org/)... and the top blog post discussing site repairs is dated September 2016! I'm not too excited about trying GMane again after seeing that. 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 access to hundreds of Python lists and thousands of other technical lists. I find the search facilities perfectly adequate. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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 cumbersome. Weren't the archives broken into 30-day blocks? I just tried GMane again two minutes ago. I can't confirm my recollections, but right now what I'm seeing is worse. If you follow this link right now... (http://gmane.org/find.php?list=comp.lang.python)... you get this: "Not all of Gmane is back yet - We're working hard to restore everything" And if you follow the link labeled "The latest news is at Gmane News" at the bottom of that page, it takes you here... (http://home.gmane.org/)... and the top blog post discussing site repairs is dated September 2016! I'm not too excited about trying GMane again after seeing that. You are certainly right about the gmane *Web Interface*. However, you can access their newsgroup interface through any newsgroup reader (including e.g. Thunderbird) and that's a really nice way of following things. -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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 minutes ago. I can't confirm my recollections, > but right now what I'm seeing is worse. If you follow this link right now... > (http://gmane.org/find.php?list=comp.lang.python)... you get this: > > > > "Not all of Gmane is back yet - We're working hard to restore everything" > > > > And if you follow the link labeled "The latest news is at Gmane News" > at the bottom of that page, it takes you here... (http://home.gmane.org/)... > and the top blog post discussing site repairs is dated September 2016! > > > > > I'm not too excited about trying GMane again after seeing that. > > > > 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. > access to hundreds of Python lists and thousands of other technical > lists. I find the search facilities perfectly adequate. > -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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 :-) Thunderbird does both mail and news. Or at least it did, last time I checked. -- Steve -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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/Usenet client. That's what he said :-) Thunderbird does both mail and news. Or at least it did, last time I checked. It does, using it for this reply. Regards, Jim -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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/Usenet client. > > That's what he said :-) > > Thunderbird does both mail and news. Or at least it did, last time I > checked. > He said ".(semi-)decent mail client like Thunderbird" That seems to imply (to me anyway) that one needs a mail client to read from news.gmane.org and that's just plain wrong. While *some* mail clients are also NNTP readers it's by no means universally true. -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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 Surely you mean NNTP/Usenet client. That's what he said :-) Thunderbird does both mail and news. Or at least it did, last time I checked. He said ".(semi-)decent mail client like Thunderbird" That seems to imply (to me anyway) that one needs a mail client to read from news.gmane.org and that's just plain wrong. While *some* mail clients are also NNTP readers it's by no means universally true. Just to head this off at the pass: for the purpose of discussion, could we assume that this particular point doesn't really matter, please? Thanks TJG -- https://mail.python.org/mailman/listinfo/python-list
Re: Extracting data from ython dictionary object
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 list object that I got from > > using PyPDF2 module. I am stuck on now to get the data out of the string > > that I need. I am calling it a string, but Python is recognizing as a > > dictionary object. > > > > Here is the string: > > > > {'/Title': '1F: Progress Notes Src.: MILANI, JOHN C Tmt. Dt.: > > 05/12/2014 - 05/28/2014 (9 pages)', '/Page': IndirectObject(465, 0), > > '/Type': '/FitB'} > > > > What a want is the following to end up as fields on my Word template merge: > > MedSourceFirstName: "John" > > MedSourceLastName: "Milani" > > MedSourceLastTreatment: "05/28/2014" > > > > If I use keys() on the dictionary I get this: > > ['/Title', '/Page', '/Type']I was hoping "Src" and Tmt Dt." would be > > treated as keys. Seems like the key/value pair of a dictionary would > > translate nicely to fieldname and fielddata for a Word document merge. > > Here is my code so far. > > A Python "dict" is a mapping of keys to values. Its "keys" method > gives you the keys (as you have used above). > The subscription syntax ("[]"; e.g. > "pdf_info['/Title']") allows you to access the value associated with > "". > > In your case, relevant information is coded inside the values themselves. > You will need to extract this information yourself. Python's "re" module > might be of help (see the "library reference", for details). Thanks for your response. Nice to know I am at least on the right path. Sounds like I am going to have to did in to Regex to get at the test I want. -- https://mail.python.org/mailman/listinfo/python-list
Re: Extracting data from ython dictionary object (Posting On Python-List Prohibited)
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), > > '/Type': '/FitB'} > > > > What a want is the following to end up as fields on my Word template merge: > > MedSourceFirstName: "John" > > MedSourceLastName: "Milani" > > MedSourceLastTreatment: "05/28/2014" > > > > If I use keys() on the dictionary I get this: > > ['/Title', '/Page', '/Type']I was hoping "Src" and Tmt Dt." would be treated > > as keys. Seems like the key/value pair of a dictionary would translate > > nicely to fieldname and fielddata ... > > It would, except that’s not how the information is represented in the PDF > file. Looks like what you want is all in the title string. So extracting it > will require some string manipulation. Do all the title strings follow the > same format? That should simplify the manipulations you need to do. Thanks you Lawrence for your response. Sounds like I am going to have to dig in to Regex to get at the test I want. -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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 if there was another way to do this, so that I wouldn't have to wade through lots of spam. - I read it from both home and work. - I can't install any additional software at work. - There is no newsgroup reader software available at work. - GG tracks read/unread status of every post. This is shared between work and home through my Google account. - When I (very rarely) post from work, I can't do it by email, since outgoing email is blocked. Regards, Igor. -- https://mail.python.org/mailman/listinfo/python-list
Re: Extracting data from ython dictionary object
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 string of text pulled out of the list object that I got from using PyPDF2 module. I am stuck on now to get the data out of the string that I need. I am calling it a string, but Python is recognizing as a dictionary object. Here is the string: {'/Title': '1F: Progress Notes Src.: MILANI, JOHN C Tmt. Dt.: 05/12/2014 - 05/28/2014 (9 pages)', '/Page': IndirectObject(465, 0), '/Type': '/FitB'} What a want is the following to end up as fields on my Word template merge: MedSourceFirstName: "John" MedSourceLastName: "Milani" MedSourceLastTreatment: "05/28/2014" If I use keys() on the dictionary I get this: ['/Title', '/Page', '/Type']I was hoping "Src" and Tmt Dt." would be treated as keys. Seems like the key/value pair of a dictionary would translate nicely to fieldname and fielddata for a Word document merge. Here is my code so far. A Python "dict" is a mapping of keys to values. Its "keys" method gives you the keys (as you have used above). The subscription syntax ("[]"; e.g. "pdf_info['/Title']") allows you to access the value associated with "". In your case, relevant information is coded inside the values themselves. You will need to extract this information yourself. Python's "re" module might be of help (see the "library reference", for details). Thanks for your response. Nice to know I am at least on the right path. Sounds like I am going to have to did in to Regex to get at the test I want. Maybe using string methods is simpler than a regex. >>> data = '1F: Progress Notes Src.: MILANI, JOHN C Tmt. Dt.: 05/12/2014 - 05/28/2014 (9 pages)' >>> bits = data.split(':') >>> bits ['1F', ' Progress Notes Src.', ' MILANI, JOHN C Tmt. Dt.', ' 05/12/2014 - 05/28/2014 (9 pages)'] >>> namebits = bits[2].split() >>> namebits ['MILANI,', 'JOHN', 'C', 'Tmt.', 'Dt.'] # I'll leave you to grab the names, and strip the comma from the last name. >>> start = bits[3].find('- ') >>> stop = bits[3].find('(') >>> date = bits[3][start + 2: stop].strip() >>> date '05/28/2014' Apologies for the variable names used, I'm sure that you can think of something better :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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 > of factors. I would definitely be happier if there was another way to > do this, so that I wouldn't have to wade through lots of spam. > > - I read it from both home and work. > > - I can't install any additional software at work. > > - There is no newsgroup reader software available at work. > > - GG tracks read/unread status of every post. This is shared > between work and home through my Google account. > > - When I (very rarely) post from work, I can't > do it by email, since outgoing email is blocked. > Alternative approach, what I do:- Run a text mode (but very capable and mouse aware) newsreader on my home system, read news locally using that. Use ssh (is that available at worK?) to connect from work to home and run the same newsreader in the same environment. If you can't even ssh from work then you can always use an 'ssh from the web' app from your wenb browser. The newsreader I use is tin by the way. -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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. > > > > I use GG to read comp.lang.python because of the following combination > > of factors. I would definitely be happier if there was another way to > > do this, so that I wouldn't have to wade through lots of spam. > > > > - I read it from both home and work. > > > > - I can't install any additional software at work. > > > > - There is no newsgroup reader software available at work. > > > > - GG tracks read/unread status of every post. This is shared > > between work and home through my Google account. > > > > - When I (very rarely) post from work, I can't > > do it by email, since outgoing email is blocked. > > > Alternative approach, what I do:- > > Run a text mode (but very capable and mouse aware) newsreader on > my home system, read news locally using that. > > Use ssh (is that available at worK?) to connect from work to home > and run the same newsreader in the same environment. If you can't > even ssh from work then you can always use an 'ssh from the web' > app from your wenb browser. > > The newsreader I use is tin by the way. > > -- > Chris Green > · ssh would be even a bigger problem here. As I mentioned, I can't even email from work to the outside! All web sites that provide remote connectivity tools are blocked. Regards, Igor. -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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 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 if there was another way to >> > do this, so that I wouldn't have to wade through lots of spam. >> > >> > - I read it from both home and work. >> > >> > - I can't install any additional software at work. >> > >> > - There is no newsgroup reader software available at work. >> > >> > - GG tracks read/unread status of every post. This is shared >> > between work and home through my Google account. >> > >> > - When I (very rarely) post from work, I can't >> > do it by email, since outgoing email is blocked. >> > >> Alternative approach, what I do:- >> >> Run a text mode (but very capable and mouse aware) newsreader on >> my home system, read news locally using that. >> >> Use ssh (is that available at worK?) to connect from work to home >> and run the same newsreader in the same environment. If you can't >> even ssh from work then you can always use an 'ssh from the web' >> app from your wenb browser. >> >> The newsreader I use is tin by the way. >> >> -- >> Chris Green >> · > > ssh would be even a bigger problem here. As I mentioned, I can't even email > from work to the outside! All web sites that provide remote connectivity > tools are blocked. ... yet they're okay with you browsing newsgroups? I think you may have a Layer Eight conflict here. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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 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 if there was another way to do this, so that I wouldn't have to wade through lots of spam. - I read it from both home and work. - I can't install any additional software at work. - There is no newsgroup reader software available at work. - GG tracks read/unread status of every post. This is shared between work and home through my Google account. - When I (very rarely) post from work, I can't do it by email, since outgoing email is blocked. Alternative approach, what I do:- Run a text mode (but very capable and mouse aware) newsreader on my home system, read news locally using that. Use ssh (is that available at worK?) to connect from work to home and run the same newsreader in the same environment. If you can't even ssh from work then you can always use an 'ssh from the web' app from your wenb browser. The newsreader I use is tin by the way. -- Chris Green · ssh would be even a bigger problem here. As I mentioned, I can't even email from work to the outside! All web sites that provide remote connectivity tools are blocked. ... yet they're okay with you browsing newsgroups? I think you may have a Layer Eight conflict here. ChrisA If he can browse, he can get E-Mail with Gmail/Yahoo/AOL/etc, his normal mail ISP likely even supports some form of Web Mail Client. If they are blocking these, but not Google Groups, there is a major disconnect in the rules. -- Richard Damon -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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, 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 if there was another way to > do this, so that I wouldn't have to wade through lots of spam. > > - I read it from both home and work. > > - I can't install any additional software at work. > > - There is no newsgroup reader software available at work. > > - GG tracks read/unread status of every post. This is shared > between work and home through my Google account. > > - When I (very rarely) post from work, I can't > do it by email, since outgoing email is blocked. > > >>> Alternative approach, what I do:- > >>> > >>> Run a text mode (but very capable and mouse aware) newsreader on > >>> my home system, read news locally using that. > >>> > >>> Use ssh (is that available at worK?) to connect from work to home > >>> and run the same newsreader in the same environment. If you can't > >>> even ssh from work then you can always use an 'ssh from the web' > >>> app from your wenb browser. > >>> > >>> The newsreader I use is tin by the way. > >>> > >>> -- > >>> Chris Green > >>> · > >> ssh would be even a bigger problem here. As I mentioned, I can't even email > >> from work to the outside! All web sites that provide remote connectivity > >> tools are blocked. > > ... yet they're okay with you browsing newsgroups? I think you may > > have a Layer Eight conflict here. > > > > ChrisA > > If he can browse, he can get E-Mail with Gmail/Yahoo/AOL/etc, his normal > mail ISP likely even supports some form of Web Mail Client. > > If they are blocking these, but not Google Groups, there is a major > disconnect in the rules. > > -- > Richard Damon Disconnect or not, I can browse GG and post replies (e.g., this one). I have no access to gmail or any other email provider. Regards, Igor. -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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: 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 if there was another way to do this, so that I wouldn't have to wade through lots of spam. - I read it from both home and work. - I can't install any additional software at work. - There is no newsgroup reader software available at work. - GG tracks read/unread status of every post. This is shared between work and home through my Google account. - When I (very rarely) post from work, I can't do it by email, since outgoing email is blocked. Alternative approach, what I do:- Run a text mode (but very capable and mouse aware) newsreader on my home system, read news locally using that. Use ssh (is that available at worK?) to connect from work to home and run the same newsreader in the same environment. If you can't even ssh from work then you can always use an 'ssh from the web' app from your wenb browser. The newsreader I use is tin by the way. -- Chris Green · ssh would be even a bigger problem here. As I mentioned, I can't even email from work to the outside! All web sites that provide remote connectivity tools are blocked. ... yet they're okay with you browsing newsgroups? I think you may have a Layer Eight conflict here. ChrisA If he can browse, he can get E-Mail with Gmail/Yahoo/AOL/etc, his normal mail ISP likely even supports some form of Web Mail Client. If they are blocking these, but not Google Groups, there is a major disconnect in the rules. -- Richard Damon Disconnect or not, I can browse GG and post replies (e.g., this one). I have no access to gmail or any other email provider. Regards, Igor. My guess then is that your access to google groups is also against your companies policies, they just haven't put an enforcement in their firewalls because it is too obscure for the IT department to have thought of. Based on the sort of broad blocking they are doing, I am a bit surprised they seem to be black listing rather than white listing the web. -- Richard Damon -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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 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. > >> I use GG to read comp.lang.python because of the following combination > >> of factors. I would definitely be happier if there was another way to > >> do this, so that I wouldn't have to wade through lots of spam. > >> > >> - I read it from both home and work. > >> > >> - I can't install any additional software at work. > >> > >> - There is no newsgroup reader software available at work. > >> > >> - GG tracks read/unread status of every post. This is shared > >> between work and home through my Google account. > >> > >> - When I (very rarely) post from work, I can't > >> do it by email, since outgoing email is blocked. > >> > > Alternative approach, what I do:- > > > > Run a text mode (but very capable and mouse aware) newsreader on > > my home system, read news locally using that. > > > > Use ssh (is that available at worK?) to connect from work to home > > and run the same newsreader in the same environment. If you can't > > even ssh from work then you can always use an 'ssh from the web' > > app from your wenb browser. > > > > The newsreader I use is tin by the way. > > > > -- > > Chris Green > > · > ssh would be even a bigger problem here. As I mentioned, I can't even > email > from work to the outside! All web sites that provide remote connectivity > tools are blocked. > >>> ... yet they're okay with you browsing newsgroups? I think you may > >>> have a Layer Eight conflict here. > >>> > >>> ChrisA > >> If he can browse, he can get E-Mail with Gmail/Yahoo/AOL/etc, his normal > >> mail ISP likely even supports some form of Web Mail Client. > >> > >> If they are blocking these, but not Google Groups, there is a major > >> disconnect in the rules. > >> > >> -- > >> Richard Damon > > Disconnect or not, I can browse GG and post replies (e.g., this one). > > I have no access to gmail or any other email provider. > > > > Regards, > > Igor. > > My guess then is that your access to google groups is also against your > companies policies, they just haven't put an enforcement in their > firewalls because it is too obscure for the IT department to have > thought of. > > Based on the sort of broad blocking they are doing, I am a bit surprised > they seem to be black listing rather than white listing the web. > > -- > Richard Damon 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. Probably not a big loss to anyone else, but you might wonder how many others are in the same situation... Regards, Igor. -- https://mail.python.org/mailman/listinfo/python-list
Incremental compression
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 for something similar to this: count = 0 for b in stream: process(b) count += incremental_compressor.compressor(b) or some variation. Apart from bzip2, do I have any other options in the std lib? https://docs.python.org/3/library/bz2.html#incremental-de-compression -- Steve -- https://mail.python.org/mailman/listinfo/python-list
Re: Incremental compression
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 harder than bzip2, but it's probably slower too. On Fri, Feb 9, 2018 at 5:36 PM, Steven D'Aprano wrote: > 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 for something similar to this: > > count = 0 > for b in stream: > process(b) > count += incremental_compressor.compressor(b) > > > > or some variation. Apart from bzip2, do I have any other options in the > std lib? > > https://docs.python.org/3/library/bz2.html#incremental-de-compression > > > > -- > Steve > > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro
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 can influence them because Guido van Rossum used to work for them many years ago is naive. We cannot influence Google's decision about the newsgroup; we cannot convince your boss to allow access to the newsgroup at work; and apparently we can't convince you that just because you will no longer be able to access it from work, doesn't mean you have to stop accessing it from home. Oh well, such is life. (Ironically, the vast bulk of spam on the newsgroup comes from Google Groups itself, so if this does happen, it will probably be a nett win for the community, even if it does negatively impact some individuals.) > Probably > not a big loss to anyone else, but you might wonder how many others are > in the same situation... There's nothing we can do about it, so there is no point wasting time wondering. -- Steve -- https://mail.python.org/mailman/listinfo/python-list
Re: Incremental compression
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