Re: Posting warning message

2018-06-15 Thread T Berger
On Monday, June 11, 2018 at 4:32:56 AM UTC-4, Cameron Simpson wrote: > This is one reason to prefer the mailing list. You can subscribe here: > > https://mail.python.org/mailman/listinfo/python-list > > Many of us prefer that to Google Groups. You have the advantage that email > messages arri

Re: How can I verify if the regex exist in a file without reading ?

2018-06-15 Thread francois . rabanel
Le vendredi 15 juin 2018 02:42:12 UTC+2, Cameron Simpson a écrit : > On 15Jun2018 00:24, Steven D'Aprano > wrote: > >On Fri, 15 Jun 2018 10:00:59 +1000, Cameron Simpson wrote: > >> Francois, unless your regex can cross multiple lines it is better to > >> search files like this: > >> > >> with o

Re: Posting warning message

2018-06-15 Thread Cameron Simpson
On 14Jun2018 21:09, Tamara Berger wrote: On Monday, June 11, 2018 at 4:32:56 AM UTC-4, Cameron Simpson wrote: This is one reason to prefer the mailing list. You can subscribe here: https://mail.python.org/mailman/listinfo/python-list [...] Wait for the first message or so and for that messa

Re: Regex to extract multiple fields in the same line

2018-06-15 Thread Ganesh Pal
> {'struct': 'data_block', 'log_file': '/var/1000111/test18.log', 'loc': > '0', 'size': '8'} > > MARB, as usual the solution you you look nice, Thanks for the excellent solutions >>> regex = re.compile (r"--(struct|loc|size|mirror|l og_file)\s*=\s*([^\s]+)") >>> regex.findall (line) [('struct

Re: How can I verify if the regex exist in a file without reading ?

2018-06-15 Thread Steven D'Aprano
On Fri, 15 Jun 2018 01:01:03 -0700, francois.rabanel wrote: > I work with a file which contains millions lines, a simply file.read() > and I'm running out of memory Assuming each line is on average a hundred characters long, a million lines is (approximately) 100 MB. Even on a computer with only

text mining

2018-06-15 Thread mohan shanker
anotology using text mining in python pls any one one described fo me -- https://mail.python.org/mailman/listinfo/python-list

Re: How can I verify if the regex exist in a file without reading ?

2018-06-15 Thread francois . rabanel
Le vendredi 15 juin 2018 12:36:40 UTC+2, Steven D'Aprano a écrit : > On Fri, 15 Jun 2018 01:01:03 -0700, francois.rabanel wrote: > > > I work with a file which contains millions lines, a simply file.read() > > and I'm running out of memory > > Assuming each line is on average a hundred characters

Re: text mining

2018-06-15 Thread Steven D'Aprano
On Fri, 15 Jun 2018 05:23:17 -0700, mohan shanker wrote: > anotology using text mining in python pls any one one described fo me fi u cant b bothed to rite prper sentences y shld we be bothered to anwsr ur qestion Seriously, you are asking strangers to help you out of the goodness of their he

Re: Django-hotsauce 1.0 LTS (Commercial Edition) now available for preorder!!

2018-06-15 Thread Etienne Robillard
Le 2018-06-14 à 12:58, Jim Lee a écrit : On 06/13/2018 11:38 PM, Chris Angelico wrote: On Thu, Jun 14, 2018 at 11:07 AM, Jim Lee wrote: I haven't purchased commercial software in decades, so I'm not up on the prevailing business model, but I have to ask: Why would anyone purchase softwar

Re: Regex to extract multiple fields in the same line

2018-06-15 Thread Nathan Hilterbrand
On Wed, Jun 13, 2018 at 4:08 AM, Ganesh Pal wrote: > Hi Team, > > I wanted to parse a file and extract few feilds that are present after "=" > in a text file . > > > Example , form the below line I need to extract the values present after > --struct =, --loc=, --size= and --log_file= > > Sample

Re: Regex to extract multiple fields in the same line

2018-06-15 Thread Friedrich Rentsch
On 06/15/2018 12:37 PM, Ganesh Pal wrote: Hey Friedrich, The proposed solution worked nice , Thank you for the reply really appreciate that Only thing I think would need a review is if the assignment of the value of one dictionary to the another dictionary if is done correctly ( lines 17

Re: Posting warning message

2018-06-15 Thread Tamara Berger
Cameron, I DON'T HAVE the options "skip the inbox" and "apply the label." Not within the option "filter messages like this," which is where I understood you to say they were, or outside that option. Does Gmail have these options? Tamara On Fri, Jun 15, 2018 at 4:17 AM Cameron Simpson wrote: > >

Re: Posting warning message

2018-06-15 Thread Tamara Berger
Hi Cameron, Please ignore my last email. I found those two options AFTER I created the filter. I expected them to be on the "filter messages like this" panel. Tamara > On 14Jun2018 21:09, Tamara Berger wrote: > >On Monday, June 11, 2018 at 4:32:56 AM UTC-4, Cameron Simpson wrote: > >> This is o

Flask failure

2018-06-15 Thread T Berger
I’m trying to build a webapp with flask. I installed flask, created a webapp in IDLE, but when I tried testing it at my terminal, I got a huge error message. This is the app: from flask import Flask app = Flask(__name__) @app.route('/') def hello() -> str:     return 'Hello world from Flask!' ap

Python list vs google group

2018-06-15 Thread T Berger
I'm suspecting that posting to python google groups (this site) gets more responses than mailing to the python list. Am I correct? Also, contrary to what I read on the python list information sheet, what shows up in this forum does not match what comes into my inbox. I started a post here and th

Re: Python list vs google group

2018-06-15 Thread Alister via Python-list
On Fri, 15 Jun 2018 08:28:38 -0700, T Berger wrote: > I'm suspecting that posting to python google groups (this site) gets > more responses than mailing to the python list. Am I correct? Also, > contrary to what I read on the python list information sheet, what shows > up in this forum does not ma

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 11:31:47 AM UTC-4, Alister wrote: > it certainly seems to be the source of most SPAM > as such some users of this list/newsgroup call it what you like block all > posts from google groups But you don't think you get more replies to a question posted here than emailed

Re: Python list vs google group

2018-06-15 Thread Chris Angelico
On Sat, Jun 16, 2018 at 1:47 AM, T Berger wrote: > On Friday, June 15, 2018 at 11:31:47 AM UTC-4, Alister wrote: > >> it certainly seems to be the source of most SPAM >> as such some users of this list/newsgroup call it what you like block all >> posts from google groups > > But you don't think yo

Re: Python list vs google group

2018-06-15 Thread Rich Shepard
On Fri, 15 Jun 2018, T Berger wrote: I'm suspecting that posting to python google groups (this site) gets more responses than mailing to the python list. Am I correct? Also, contrary to what I read on the python list information sheet, what shows up in this forum does not match what comes into m

Re: Python list vs google group

2018-06-15 Thread Mark Lawrence
On 15/06/18 16:47, T Berger wrote: On Friday, June 15, 2018 at 11:31:47 AM UTC-4, Alister wrote: it certainly seems to be the source of most SPAM as such some users of this list/newsgroup call it what you like block all posts from google groups But you don't think you get more replies to a qu

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 12:14:30 PM UTC-4, Mark Lawrence wrote: > On 15/06/18 16:47, T Berger wrote: > > On Friday, June 15, 2018 at 11:31:47 AM UTC-4, Alister wrote: > > > >> it certainly seems to be the source of most SPAM > >> as such some users of this list/newsgroup call it what you like

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 11:55:59 AM UTC-4, Chris Angelico wrote: > Perhaps quantity is not the important thing here. It is the important thing. I'm stuck with a problem and still waiting for replies to my email. I've decided to repost my problem here, so we'll see whether my hypothesis holds

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 12:14:30 PM UTC-4, Mark Lawrence wrote: > For the third and final time, just get a (semi-)decent email client/news > reader/whatever it's called, point it at news.gmane.org and read this > forum, hundreds of other python forums and thousands of other technical > foru

Re: Python list vs google group

2018-06-15 Thread C W
I recently posted two questions, but never got any replies. I am still wondering if it was ever posted, or maybe the question was too trivial? I think someone would have at least shouted if it was too trivial or off-topic, right? On Fri, Jun 15, 2018 at 12:03 PM, Mark Lawrence wrote: > On 15/06

Re: Python list vs google group

2018-06-15 Thread T Berger
Hi Rich, Please define YMMV, MUA. Thanks, Tamara -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 12:32:17 PM UTC-4, T Berger wrote: > On Friday, June 15, 2018 at 11:55:59 AM UTC-4, Chris Angelico wrote: > > Perhaps quantity is not the important thing here. > > It is the important thing. I'm stuck with a problem and still waiting for > replies to my email. I've dec

Re: Python list vs google group

2018-06-15 Thread Rich Shepard
On Fri, 15 Jun 2018, T Berger wrote: If anyone wants to take a stab at my problem, its subject line is "Flask Failure." Tamara, I saw that earlier this morning -- on the mail list. As I know nothing about flask I deleted it without reading. Rich -- https://mail.python.org/mailman/listinfo/

Re: Python list vs google group

2018-06-15 Thread Rich Shepard
On Fri, 15 Jun 2018, T Berger wrote: To do this, I will have to research what you mean by "a (semi-)decent email client/news reader," and "point it at news.gmane.org." I'm a little unused to web-related lingo. Then I'll have to root around in gmane.org to see how it works. This is not to say tha

Re: Python list vs google group

2018-06-15 Thread Larry Martell
On Fri, Jun 15, 2018 at 12:49 PM T Berger wrote: > On Friday, June 15, 2018 at 12:32:17 PM UTC-4, T Berger wrote: > > On Friday, June 15, 2018 at 11:55:59 AM UTC-4, Chris Angelico wrote: > > > Perhaps quantity is not the important thing here. > > > > It is the important thing. I'm stuck with a pr

Re: Python list vs google group

2018-06-15 Thread Rich Shepard
On Fri, 15 Jun 2018, C W wrote: I think someone would have at least shouted if it was too trivial or off-topic, right? Nope. Most of us do not reply if we have insufficient knowledge to offer a usable response. Saves bandwidth and electrons. When you get no replies it usually indicates no on

Re: Python list vs google group

2018-06-15 Thread Rich Shepard
On Fri, 15 Jun 2018, T Berger wrote: Please define YMMV, MUA. Tamara, Your Milage May Vary. Here's a list when you have the time and inclination: . Best regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread MRAB
On 2018-06-15 17:40, T Berger wrote: Hi Rich, Please define YMMV, MUA. YMMVYour Mileage May Vary MUA Mail User Agent (email program) -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread Rich Shepard
On Fri, 15 Jun 2018, T Berger wrote: Please define YMMV, MUA. Oh, ... MUA == Mail User Agent. This is the client we use to read and write e-mail messages. Other mail-related abbreviations are MTA (Mail Transfer Agent, used to sort incoming messages to subject-related files), MTA (Mail Transp

Re: Python list vs google group

2018-06-15 Thread Larry Martell
On Fri, Jun 15, 2018 at 1:14 PM Rich Shepard wrote: > On Fri, 15 Jun 2018, T Berger wrote: > > > Please define YMMV, MUA. > >Oh, ... MUA == Mail User Agent. I thought it was Made Up Acronym > > -- https://mail.python.org/mailman/listinfo/python-list

Re: Flask failure

2018-06-15 Thread Elismar Luz
Address already in use! On Fri, Jun 15, 2018 at 12:19 PM, T Berger wrote: > I’m trying to build a webapp with flask. I installed flask, created a > webapp in IDLE, but when I tried testing it at my terminal, I got a huge > error message. This is the app: > > from flask import Flask > app = Flas

Re: Python list vs google group

2018-06-15 Thread Rich Shepard
On Fri, 15 Jun 2018, Larry Martell wrote: Oh, ... MUA == Mail User Agent. I thought it was Made Up Acronym Larry, Could be; depends on the context. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Flask failure

2018-06-15 Thread Colin McPhail
> On 15 Jun 2018, at 16:19, T Berger wrote: > > I’m trying to build a webapp with flask. I installed flask, created a webapp > in IDLE, but when I tried testing it at my terminal, I got a huge error > message. This is the app: > > from flask import Flask > app = Flask(__name__) > @app.route(

Re: Python list vs google group

2018-06-15 Thread Larry Martell
On Fri, Jun 15, 2018 at 2:08 PM, Rich Shepard wrote: > On Fri, 15 Jun 2018, Larry Martell wrote: > >>>Oh, ... MUA == Mail User Agent. >> >> I thought it was Made Up Acronym > > > Larry, > > Could be; depends on the context. My favorite acronym of all time is TWAIN -- https://mail.python.or

Re: Python list vs google group

2018-06-15 Thread Rob Gaddi
On 06/15/2018 11:44 AM, Larry Martell wrote: On Fri, Jun 15, 2018 at 2:08 PM, Rich Shepard wrote: On Fri, 15 Jun 2018, Larry Martell wrote: Oh, ... MUA == Mail User Agent. I thought it was Made Up Acronym Larry, Could be; depends on the context. My favorite acronym of all time

Re: What data types does matplotlib pyplot take?

2018-06-15 Thread Peter Pearson
On Wed, 13 Jun 2018 12:53:57 -0400, C W wrote: > Hi everyone, > > I'm curious what data types pyplot takes. It seems that it can take numpy > series, pandas series, and possibly pandas dataframe? How many people data > types are out there? Is that true for all functions in like hist(), bar(), > li

Re: Python list vs google group

2018-06-15 Thread Larry Martell
On Fri, Jun 15, 2018 at 2:52 PM, Rob Gaddi wrote: > On 06/15/2018 11:44 AM, Larry Martell wrote: >> >> On Fri, Jun 15, 2018 at 2:08 PM, Rich Shepard >> wrote: >>> >>> On Fri, 15 Jun 2018, Larry Martell wrote: >>> > Oh, ... MUA == Mail User Agent. I thought it was Made Up Ac

Re: Python list vs google group

2018-06-15 Thread Chris Angelico
On Sat, Jun 16, 2018 at 4:52 AM, Rob Gaddi wrote: > On 06/15/2018 11:44 AM, Larry Martell wrote: >> >> My favorite acronym of all time is TWAIN >> > > Really? I always thought it didn't scan. > Having spent way WAY too many hours trying to turn documents into images (and text), I very much appre

Re: text mining

2018-06-15 Thread Rick Johnson
On Friday, June 15, 2018 at 8:00:36 AM UTC-5, Steven D'Aprano wrote: > Seriously, you are asking strangers to help you out of the goodness of > their heart. Stop lying Steven. Nobody here has a heart. This is Usenet, dammit. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread Jim Lee
On 06/15/2018 05:00 PM, Chris Angelico wrote: On Sat, Jun 16, 2018 at 4:52 AM, Rob Gaddi wrote: On 06/15/2018 11:44 AM, Larry Martell wrote: My favorite acronym of all time is TWAIN Really? I always thought it didn't scan. Having spent way WAY too many hours trying to turn documents int

Re: text mining

2018-06-15 Thread Chris Angelico
On Sat, Jun 16, 2018 at 11:08 AM, Rick Johnson wrote: > On Friday, June 15, 2018 at 8:00:36 AM UTC-5, Steven D'Aprano wrote: >> Seriously, you are asking strangers to help you out of the goodness of >> their heart. > > Stop lying Steven. > > Nobody here has a heart. > > This is Usenet, dammit. I

Re: Python list vs google group

2018-06-15 Thread Gregory Ewing
Rich Shepard wrote: Most of us do not reply if we have insufficient knowledge to offer a usable response. Saves bandwidth and electrons. Also avoids a lot of noise. Imagine if everyone who doesn't know the answer to a question posted "I don't know" as a response. It would drown out all the usef

Re: Python list vs google group

2018-06-15 Thread Chris Angelico
On Sat, Jun 16, 2018 at 11:00 AM, Jim Lee wrote: > > > On 06/15/2018 05:00 PM, Chris Angelico wrote: >> >> On Sat, Jun 16, 2018 at 4:52 AM, Rob Gaddi >> wrote: >>> >>> On 06/15/2018 11:44 AM, Larry Martell wrote: My favorite acronym of all time is TWAIN >>> Really? I always though

Re: Python list vs google group

2018-06-15 Thread Richard Damon
On 6/15/18 9:00 PM, Jim Lee wrote: > > > On 06/15/2018 05:00 PM, Chris Angelico wrote: >> On Sat, Jun 16, 2018 at 4:52 AM, Rob Gaddi >> wrote: >>> On 06/15/2018 11:44 AM, Larry Martell wrote: My favorite acronym of all time is TWAIN >>> Really?  I always thought it didn't scan. >>> >> Ha

Re: Python list vs google group

2018-06-15 Thread Michael Torrie
On 06/15/2018 09:28 AM, T Berger wrote: > I'm suspecting that posting to python google groups (this site) gets > more responses than mailing to the python list. Am I correct? Also, > contrary to what I read on the python list information sheet, what > shows up in this forum does not match what come

Re: Python list vs google group

2018-06-15 Thread Jim Lee
On 06/15/2018 07:08 PM, Richard Damon wrote: On 6/15/18 9:00 PM, Jim Lee wrote: On 06/15/2018 05:00 PM, Chris Angelico wrote: On Sat, Jun 16, 2018 at 4:52 AM, Rob Gaddi wrote: On 06/15/2018 11:44 AM, Larry Martell wrote: My favorite acronym of all time is TWAIN Really?  I always thought

Re: Python list vs google group

2018-06-15 Thread Gregory Ewing
Jim Lee wrote: It was so long ago that I forgot some of the details, but it boiled down to the TWAIN driver pushing the SCSI bus out of spec. Clearly you didn't sacrifice enough goats! https://odetocode.com/blogs/scott/archive/2004/09/22/scsi-is-not-magic.aspx -- Greg -- https://mail.python.

Server warning

2018-06-15 Thread Tamara Berger
I created a webapp with flask, but got a warning in terminal when I tested it. Last login: Sat Jun 16 01:13:28 on ttys000 192:~ TamaraB$ cd Desktop/Webapp 192:Webapp TamaraB$ python3 hello_flask.py * Serving Flask app "hello_flask" (lazy loading) * Environment: production WARNING: Do not use

Re: Server warning

2018-06-15 Thread Ben Finney
Tamara Berger writes: > Is this a serious issue, or can I ignore it? I was just following > instructions in a manual I consider trustworthy. (A word of advice: You have recently been asking here for many different topics – Flask, Google Mail, etc. – that are not the focus of this forum. That's n