Re: [Python-ideas] Fwd: Replacing Infinite while Loops with an Iterator: async edition

2018-08-23 Thread jab
On Sunday, June 24, 2018 at 7:48:34 PM UTC-4, Greg Ewing wrote: > > j...@math.brown.edu wrote: > > On Jun 23, 2018, at 21:11, Nathaniel Smith > > wrote: > > > > He's asking for an async version of the 'iter' builtin, presumably > > something like: > >

Re: [Python-ideas] A GUI for beginners and experts alike

2018-08-23 Thread Steve Barnes
On 24/08/2018 02:04, Mike Barnett wrote: > Wow, Thank you Steve! > > > This is exactly the kind of information I was hoping for!! > > > >> Acceptance for *what* precisely? > > That is a great question... you're right shoulda asked a specific question. > > I would like to see if become

Re: [Python-ideas] A GUI for beginners and experts alike

2018-08-23 Thread Mike Barnett
Wow, Thank you Steve! This is exactly the kind of information I was hoping for!! > Acceptance for *what* precisely? That is a great question... you're right shoulda asked a specific question. I would like to see if become something official so that it gets out to people automatically.

Re: [Python-ideas] A GUI for beginners and experts alike

2018-08-23 Thread Steven D'Aprano
Hi Mike, and welcome! On Thu, Aug 23, 2018 at 06:49:48PM +, Mike Barnett wrote: > Python has dropped the GUI ball, at least for beginners (in my opinion) Sadly I think that GUIs is one area where Python has not excelled. > While the Python language is awesomely compact, the GUI code is

Re: [Python-ideas] Does jargon make learning more difficult?

2018-08-23 Thread Stephen J. Turnbull
Abe Dillon writes: > That's interesting. So the parser can see one token past, for instance; > what would be the end of an expression, see "if", and know to expand the > AST? Yes, if you want to think about it that way. I think about it in terms of the parser receiving tokens one at a time,

Re: [Python-ideas] Does jargon make learning more difficult?

2018-08-23 Thread Stephen J. Turnbull
Dan Sommers writes: > Given x = the width of a widget and y = the price of that widget, > let f(x, y) be x + y. Lordy, there are tapes! I hope that wasn't an economist! ___ Python-ideas mailing list Python-ideas@python.org

Re: [Python-ideas] A GUI for beginners and experts alike (Mike Barnett)

2018-08-23 Thread Hugh Fisher
> Date: Thu, 23 Aug 2018 18:49:48 + > From: Mike Barnett > > Python has dropped the GUI ball, at least for beginners (in my opinion) > > While the Python language is awesomely compact, the GUI code is far from > compact. Tkinter will create a nice looking GUI, but you've got to be >

Re: [Python-ideas] Does jargon make learning more difficult?

2018-08-23 Thread Abe Dillon
Let me preface this by saying: I've already addressed the possibility of a form that tells you up-front that it's a function Granted it was 8 replies ago and at the end of a long-winded response, so I'll summarize here: A format like [] would, in my view, be preferable to a format that puts the

Re: [Python-ideas] Does jargon make learning more difficult?

2018-08-23 Thread Greg Ewing
Steven D'Aprano wrote: The only difference between dict and lambda is time. Well, "more arbitrary" was perhaps a rather loose way of saying it. What I meant was that the chain of associations is shorter for "lambda" than for "s-expression", because the "s" refers to a word the reader is

Re: [Python-ideas] A GUI for beginners and experts alike

2018-08-23 Thread Mike Barnett
Maybe we're on different planes? I'm talking about 5 lines of Python code to get a custom layout GUI on the screen: import PySimpleGUI as sg form = sg.FlexForm('Simple data entry form') # begin with a blank form layout = [ [sg.Text('Please enter your Name, Address, Phone')],

Re: [Python-ideas] A GUI for beginners and experts alike

2018-08-23 Thread Jonathan Fine
Hi Mike Thank you for your message. I agree, in broad terms, with your statement of goals, and welcome their being discussed here. Python has important roots are in education. We benefit from taking care of them. Here is what I take to be your statement of goals. > While the Python language is

Re: [Python-ideas] Does jargon make learning more difficult?

2018-08-23 Thread Abe Dillon
[Steven D'Aprano] > If you go back far enough, pretty much all words and written symbols are > arbitrary. I think this is wandering into nihilistic pedantry. Go back or forward far enough (or zoom in or out far enough) and nothing means anything. When I first learned Python, I had never heard

[Python-ideas] A GUI for beginners and experts alike

2018-08-23 Thread Mike Barnett
Python has dropped the GUI ball, at least for beginners (in my opinion) While the Python language is awesomely compact, the GUI code is far from compact. Tkinter will create a nice looking GUI, but you've got to be skilled to use it. A student in their first week of Python programming is not

Re: [Python-ideas] Does jargon make learning more difficult?

2018-08-23 Thread Steven D'Aprano
On Thu, Aug 23, 2018 at 05:55:13PM +1200, Greg Ewing wrote: > Chris Angelico wrote: > >for those who > >know Greek, it's like calling something an "S-expression", which is > >fairly obviously an abbreviation for something. ("Symbolic > >expression", I think? Someone might correct me there.) > >

Re: [Python-ideas] Does jargon make learning more difficult?

2018-08-23 Thread MRAB
On 2018-08-23 03:10, Abe Dillon wrote: [Chris Angelico] Because your form cannot possibly work without some additional information. That isn't my form. That's PSEUDO CODE. Just like I wrote above it. You're the one who's not listening.  The alternative I've suggested, for the

Re: [Python-ideas] Does jargon make learning more difficult?

2018-08-23 Thread Dan Sommers
On Thu, 23 Aug 2018 21:40:12 +1000, Steven D'Aprano wrote: > On Wed, Aug 22, 2018 at 06:50:29PM +, Dan Sommers wrote: >> On Thu, 23 Aug 2018 03:44:07 +1000, Steven D'Aprano wrote: >> >> > On Wed, Aug 22, 2018 at 12:11:40PM -0500, Abe Dillon wrote: >> >> > difflib tests include this call: >>

Re: [Python-ideas] Does jargon make learning more difficult?

2018-08-23 Thread Steven D'Aprano
On Wed, Aug 22, 2018 at 06:50:29PM +, Dan Sommers wrote: > On Thu, 23 Aug 2018 03:44:07 +1000, Steven D'Aprano wrote: > > > On Wed, Aug 22, 2018 at 12:11:40PM -0500, Abe Dillon wrote: > > > difflib tests include this call: > > > > sm = difflib.SequenceMatcher(isjunk=lambda x: x == ' ', ...)

Re: [Python-ideas] Does jargon make learning more difficult?

2018-08-23 Thread Steven D'Aprano
On Wed, Aug 22, 2018 at 06:28:45PM -0500, Abe Dillon wrote: [Steve -- that's me] > > But whatever it is, do you still think it is obvious that people > > will recognise "None" to mean a function without having to backtrack? > > > It's not clear what you mean by backtracking at this point. Yes,

Re: [Python-ideas] A simple proposal concerning lambda

2018-08-23 Thread Stephan Houben
Op do 23 aug. 2018 09:06 schreef Jacco van Dorp : > I think it would have been better to use def from the start instead of > lambda. The only thing JS does right is using the same "function" keyword > for both of these. > Seriously? Consider how the following code function f() { return 42; }

Re: [Python-ideas] A simple proposal concerning lambda

2018-08-23 Thread Jacco van Dorp
I think it would have been better to use def from the start instead of lambda. The only thing JS does right is using the same "function" keyword for both of these. However, changing it now doesn't seem that important to me. (And I've used lambda's as default argument - I was moving data from one

Re: [Python-ideas] Does jargon make learning more difficult?

2018-08-23 Thread Abe Dillon
[Greg Ewing] > If we wanted to be true to the original we should call > them "caret expressions" and write > ^(x, y): x + y > Nice and quiet! I actually... kinda like that. It doesn't really check any of my boxes, but it's better than 'lambda'. On Thu, Aug 23, 2018 at 12:55 AM Greg Ewing