Re: Python Learning

2017-12-17 Thread Chris Angelico
On Mon, Dec 18, 2017 at 5:59 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> On Mon, Dec 18, 2017 at 9:33 AM, Marko Rauhamaa wrote: >>> Then I graduated and joined the workforce. Since then, I have learned >>> a thing or two, but I learned more during my first year in college >>> than I have du

Re: What is wrong with this regex for matching emails?

2017-12-17 Thread Chris Angelico
On Mon, Dec 18, 2017 at 5:43 PM, Random832 wrote: > On Sun, Dec 17, 2017, at 10:46, Chris Angelico wrote: >> But if you're trying to *validate* an email address - for instance, if >> you receive a form submission and want to know if there was an email >> address included - then my recommendation i

Re: Python Learning

2017-12-17 Thread Marko Rauhamaa
Chris Angelico : > On Mon, Dec 18, 2017 at 9:33 AM, Marko Rauhamaa wrote: >> Then I graduated and joined the workforce. Since then, I have learned >> a thing or two, but I learned more during my first year in college >> than I have during the 25 since I left. > > Interesting. I'm not surprised th

Re: What is wrong with this regex for matching emails?

2017-12-17 Thread Random832
On Sun, Dec 17, 2017, at 10:46, Chris Angelico wrote: > But if you're trying to *validate* an email address - for instance, if > you receive a form submission and want to know if there was an email > address included - then my recommendation is simply DON'T. You can't > get all the edge cases right

Re: Python Learning

2017-12-17 Thread Bill
Chris Angelico wrote: On Mon, Dec 18, 2017 at 4:04 PM, Chris Angelico wrote: On Mon, Dec 18, 2017 at 3:54 PM, Bill wrote: Chris Angelico wrote: I don't know about vtables as needing to be in ANY programming course. They're part of a "let's dive into the internals of C++" course. You certainl

Re: Repeated Names (Repeated Names)

2017-12-17 Thread Christian Gollwitzer
Am 17.12.17 um 15:30 schrieb Skip Montanaro: I've emailed the administrator of bbs.geek.nz, maybe he will be able to stop it. Thanks, Greg. We're actually blocking via that and related headers at the gateway, which is why the mailing list is no longer seeing the duplicates. I'm not sure any of

Re: Python Learning

2017-12-17 Thread Bill
Chris Angelico wrote: I agree with some of that, but you then take it to absurdity. You most certainly CAN drive a car without knowing how one works; in fact, with this century's cars, I think that's very much the case. How many people REALLY know what happens when you push the accelerator pedal

Re: Python Learning

2017-12-17 Thread Chris Angelico
On Mon, Dec 18, 2017 at 4:04 PM, Chris Angelico wrote: > On Mon, Dec 18, 2017 at 3:54 PM, Bill wrote: >> Chris Angelico wrote: >>> >>> I don't know about vtables as needing to be in ANY programming course. >>> They're part of a "let's dive into the internals of C++" course. You >>> certainly don'

Re: Python Learning

2017-12-17 Thread Chris Angelico
On Mon, Dec 18, 2017 at 3:54 PM, Bill wrote: > Chris Angelico wrote: >> >> I don't know about vtables as needing to be in ANY programming course. >> They're part of a "let's dive into the internals of C++" course. You >> certainly don't need them to understand how things work in Python, >> because

Re: Python Learning

2017-12-17 Thread Bill
Chris Angelico wrote: I don't know about vtables as needing to be in ANY programming course. They're part of a "let's dive into the internals of C++" course. You certainly don't need them to understand how things work in Python, because they don't exist; and I'm doubtful that you need to explain

Re: Python Learning

2017-12-17 Thread Chris Angelico
On Mon, Dec 18, 2017 at 3:31 PM, Bill wrote: > Chris Angelico wrote: >> >> >> I don't know about vtables as needing to be in ANY programming course. >> They're part of a "let's dive into the internals of C++" course. You >> certainly don't need them to understand how things work in Python, >> beca

Re: Python Learning

2017-12-17 Thread Bill
Chris Angelico wrote: I don't know about vtables as needing to be in ANY programming course. They're part of a "let's dive into the internals of C++" course. You certainly don't need them to understand how things work in Python, because they don't exist; and I'm doubtful that you need to explain

Re: Python Learning

2017-12-17 Thread Chris Angelico
On Mon, Dec 18, 2017 at 3:09 PM, Bill wrote: > I tried pretty hard not to say that. I said they needed some "mathematical > sophistication"--not actual mathematics. My error was using that expression > among an audience not so familiar with that terminology. That said, I think > I would have a ha

Re: Python Learning

2017-12-17 Thread Bill
Chris Angelico wrote: On Mon, Dec 18, 2017 at 11:31 AM, Bill wrote: Larry Martell wrote: So, your experience is that the style of learning you offer is unsuitable to anyone who doesn't have some background in algebra. That's fine. For your course, you set the prereqs. But that's not the only

Re: Automated distribution building tools to support SpamBayes

2017-12-17 Thread Skip Montanaro
Thanks. I've had a couple references to Appveyor, so will see if I can make heads or tails of it during my Christmas-to-New Year's break. Skip On Dec 15, 2017 5:43 PM, "Ned Batchelder" wrote: > On 12/15/17 2:03 PM, Skip Montanaro wrote: > >> SpamBayes (http://www.spambayes.org/) has languished

Re: Python Learning

2017-12-17 Thread Chris Angelico
On Mon, Dec 18, 2017 at 11:31 AM, Bill wrote: > Larry Martell wrote: >> >> So, your experience is that the style of learning you offer is >>> >>> unsuitable to anyone who doesn't have some background in algebra. >>> That's fine. For your course, you set the prereqs. But that's not the >>> only way

Re: Python Learning

2017-12-17 Thread Bill
Chris Angelico wrote: On Mon, Dec 18, 2017 at 6:51 AM, Bill wrote: The point is that it takes a certain amount of what is referred to as "mathematical maturity" (not mathematical knowledge) to digest a book concerning computer programming. Emphasis on *a book*. In my years of teaching experi

Re: Python Learning

2017-12-17 Thread Bill
Gregory Ewing wrote: Bill wrote: In my years of teaching experience, students who came to college without the equivalent of "college algebra" were under-prepared for what was expected of them. This could be simply because it weeds out people who aren't good at the required style of thinking.

Re: Python Learning

2017-12-17 Thread Bill
Larry Martell wrote: So, your experience is that the style of learning you offer is unsuitable to anyone who doesn't have some background in algebra. That's fine. For your course, you set the prereqs. But that's not the only way for someone to get into coding. You do NOT have to go to college be

Re: Python Learning

2017-12-17 Thread Chris Angelico
On Mon, Dec 18, 2017 at 9:33 AM, Marko Rauhamaa wrote: > Gregory Ewing : >> Chris Angelico wrote: >>> You do NOT have to go to college before you start creating software. >>> That is also not an opinion; it's a fact backed by a number of proven >>> instances (myself included). >> >> Me, too. I sta

Re: Python Learning

2017-12-17 Thread Marko Rauhamaa
Gregory Ewing : > Chris Angelico wrote: >> You do NOT have to go to college before you start creating software. >> That is also not an opinion; it's a fact backed by a number of proven >> instances (myself included). > > Me, too. I started programming (a tiny homebrew machine) when I was > about 12

Re: Python Learning

2017-12-17 Thread Gregory Ewing
Chris Angelico wrote: You do NOT have to go to college before you start creating software. That is also not an opinion; it's a fact backed by a number of proven instances (myself included). Me, too. I started programming (a tiny homebrew machine) when I was about 12 or 13. I was just starting t

Re: Python Learning

2017-12-17 Thread Gregory Ewing
Bill wrote: In my years of teaching experience, students who came to college without the equivalent of "college algebra" were under-prepared for what was expected of them. This could be simply because it weeds out people who aren't good at the required style of thinking. If that's true, anythi

Re: Python Learning

2017-12-17 Thread Larry Martell
On Sun, Dec 17, 2017 at 4:18 PM, Chris Angelico wrote: > On Mon, Dec 18, 2017 at 6:51 AM, Bill wrote: >> The point is that it takes a certain amount of what is referred to as >> "mathematical maturity" (not mathematical knowledge) to digest a book >> concerning computer programming. > > Emphasis

Re: ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol

2017-12-17 Thread Chris Angelico
On Mon, Dec 18, 2017 at 6:28 AM, Piyush Verma <114piy...@gmail.com> wrote: > Yes Dieter, I see that it is connecting with 443 port number and service is > running. Is this related to python version or mac? Can you confirm that it really is an HTTPS server, not just an HTTP server that's running on

Re: Python Learning

2017-12-17 Thread Chris Angelico
On Mon, Dec 18, 2017 at 6:51 AM, Bill wrote: > The point is that it takes a certain amount of what is referred to as > "mathematical maturity" (not mathematical knowledge) to digest a book > concerning computer programming. Emphasis on *a book*. > In my years of teaching experience, > students w

Re: ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol

2017-12-17 Thread dieter
Piyush Verma <114piy...@gmail.com> writes: > Yes Dieter, I see that it is connecting with 443 port number and service is > running. Is this related to python version or mac? It might be. Python does not perform the SSL handling itself but delegates it to an external SSL library ("OpenSSL" on a *

Re: What is wrong with this regex for matching emails?

2017-12-17 Thread Ben Finney
Peng Yu writes: > Hi, > > I would like to extract "a...@efg.hij.xyz". But it only shows ".hij". Others have address this question. I'll answer a separate one: > Does anybody see what is wrong with it? Thanks. One thing that's wrong with it is that it is far too restrictive. > email_regex = re

Re: Python Learning

2017-12-17 Thread Bill
Rustom Mody wrote: In response to Rustom Mody wrote: On Saturday, December 16, 2017 at 9:45:17 AM UTC+5:30, Bill wrote: so it really doesn't make that much difference where one starts, just "Do It!". : ) Really ¿? https://en.wikipedia.org/wiki/Principles_of_learning#Primacy On Sunday, De

Re: ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol

2017-12-17 Thread Piyush Verma
Yes Dieter, I see that it is connecting with 443 port number and service is running. Is this related to python version or mac? Regards, ~Piyush Facebook Twitter On Sat, Dec 16, 2017 at 1:59 PM, dieter wrote: > Piyush Ver

Re: argparse.ArgumentParser formatter_class argument

2017-12-17 Thread Seb
On Sun, 17 Dec 2017 10:12:07 +0100, Peter Otten <__pete...@web.de> wrote: > Seb wrote: >> As far as I can see it is currently impossible to apply more than one >> class to an ArgumentParser. For example, I'd like to use both >> RawDescriptionHelpFormatter *and* ArgumentDefaultsHelpFormatter in an

Re: What is wrong with this regex for matching emails?

2017-12-17 Thread Ned Batchelder
On 12/17/17 10:29 AM, Peng Yu wrote: Hi, I would like to extract "a...@efg.hij.xyz". But it only shows ".hij". Does anybody see what is wrong with it? Thanks. $ cat main.py #!/usr/bin/env python # vim: set noexpandtab tabstop=2 shiftwidth=2 softtabstop=-1 fileencoding=utf-8: import re email_re

Re: What is wrong with this regex for matching emails?

2017-12-17 Thread Chris Angelico
On Mon, Dec 18, 2017 at 2:29 AM, Peng Yu wrote: > Hi, > > I would like to extract "a...@efg.hij.xyz". But it only shows ".hij". > Does anybody see what is wrong with it? Thanks. > > $ cat main.py > #!/usr/bin/env python > # vim: set noexpandtab tabstop=2 shiftwidth=2 softtabstop=-1 > fileencoding

What is wrong with this regex for matching emails?

2017-12-17 Thread Peng Yu
Hi, I would like to extract "a...@efg.hij.xyz". But it only shows ".hij". Does anybody see what is wrong with it? Thanks. $ cat main.py #!/usr/bin/env python # vim: set noexpandtab tabstop=2 shiftwidth=2 softtabstop=-1 fileencoding=utf-8: import re email_regex = re.compile('[a-zA-Z0-9_.+-]+@[a-z

Re: Repeated Names (Repeated Names)

2017-12-17 Thread Skip Montanaro
>> I've emailed the administrator of bbs.geek.nz, maybe he >> will be able to stop it. > > Thanks, Greg. We're actually blocking via that and related headers at > the gateway, which is why the mailing list is no longer seeing the > duplicates. I'm not sure any of us thought to email the news server

Re: Repeated Names (Repeated Names)

2017-12-17 Thread Tim Golden
On 17/12/2017 13:22, Jon Ribbens wrote: On 2017-12-17, Tim Golden wrote: On 17/12/17 00:10, Gregory Ewing wrote: The duplicate posts all seem to have this header: Injection-Info: news.bbs.geek.nz; posting-host="M6YmRdZYyc42DJk0lNlt/X4dpP4dzvceBNabSmESN3E"; logging-data="4415"; mail-co

Re: Python Learning

2017-12-17 Thread Rustom Mody
On Saturday, December 16, 2017 at 6:11:31 PM UTC+5:30, Marko Rauhamaa wrote: > Stefan Ram: > > > Varun R writes: > >>I'm new to programming, can anyone guide me, how to start > >>learning python programming language > > > > As a start, one should learn: > > > > 1.) how to install Python > >

Re: Python Learning

2017-12-17 Thread Rustom Mody
In response to > Rustom Mody wrote: >> On Saturday, December 16, 2017 at 9:45:17 AM UTC+5:30, Bill wrote: >>> so it really doesn't make that much difference where one starts, just >>> "Do It!". : ) >> Really ¿? >> https://en.wikipedia.org/wiki/Principles_of_learning#Primacy On Sunday, December

Re: Python Learning (Posting On Python-List Prohibited)

2017-12-17 Thread Rustom Mody
On Sunday, December 17, 2017 at 6:39:41 AM UTC+5:30, Lawrence D’Oliveiro wrote: > On Sunday, December 17, 2017 at 2:26:43 AM UTC+13, Marko Rauhamaa wrote: > > > Unfortunately, Python's indentation mechanism makes the REPL too > > frustrating an environment to type in even the simplest of function

Re: Repeated Names (Repeated Names)

2017-12-17 Thread Jon Ribbens
On 2017-12-17, Tim Golden wrote: > On 17/12/17 00:10, Gregory Ewing wrote: >> The duplicate posts all seem to have this header: >> >> Injection-Info: news.bbs.geek.nz; >> posting-host="M6YmRdZYyc42DJk0lNlt/X4dpP4dzvceBNabSmESN3E"; >> logging-data="4415"; mail-complaints-to="ab...@news.bbs.g

Re: Python Learning

2017-12-17 Thread alister via Python-list
On Sat, 16 Dec 2017 14:41:00 +1200, Marko Rauhamaa wrote: > r...@zedat.fu-berlin.de (Stefan Ram): > >> Varun R writes: >>>I'm new to programming, can anyone guide me, how to start learning >>>python programming language >> >> As a start, one should learn: >> >> 1.) how to install Python >>

Re: argparse.ArgumentParser formatter_class argument

2017-12-17 Thread Peter Otten
Seb wrote: > As far as I can see it is currently impossible to apply more than one > class to an ArgumentParser. For example, I'd like to use both > RawDescriptionHelpFormatter *and* ArgumentDefaultsHelpFormatter in an > ArgumentParser, but it seems that's impossible, as one can only choose a > s

Re: Python Templating Language

2017-12-17 Thread Brian J. Oney via Python-list
I am not exactly sure what you mean, so I will guess. Jinja may be what you're looking for. It's an important component of flask & ansible, for example. pyweave may also serve your purposes. HTH -- https://mail.python.org/mailman/listinfo/python-list