[Tutor] Adding tasks periodically to asyncio.get_event_loop().run_forever()

2016-05-30 Thread An Nguyen
Hello all, I have a question related to AsyncIO. I have a while True: loop that executes a list of tasks asynchronously every 10 seconds. while True: > loop = asyncio.get_event_loop() > tasks = [ ] > for arg in args: > tasks.append(asyncio.ensure_future(my_coroutine(arg))) >

[Tutor] Study Tips

2016-05-30 Thread Steve Lett
Hi folks, Just started learning python. I've been having a really hard time in getting started, and still am! I have a slight learning difficulty, including a stroke in Jan.2010. You wouldnt know even if u were here looking at me! Praise God for the great salvation! I have a slight learning difficu

Re: [Tutor] Correct use of model-view-controller design pattern

2016-05-30 Thread Alan Gauld via Tutor
On 29/05/16 05:33, boB Stepp wrote: As promised I'm back so will try to answer these... > Some other questions: > > 1) If I were to add code to filter user inputs, which file is the > logical place to place such code? My current impression is that it > should go in the controller, but I could

Re: [Tutor] Learning Regular Expressions

2016-05-30 Thread dirkjso...@gmail.com
On 05/24/2016 01:48 PM, Alan Gauld via Tutor wrote: On 23/05/16 23:08, Terry--gmail wrote: scripted worked great without the notes! I'd like to know what it is in the below Tripple-Quoted section that is causing me this problem...if anyone recognizes. In IDLE's script file..._it's all colored

Re: [Tutor] Study Tips

2016-05-30 Thread boB Stepp
Hi and welcome to Tutor, Steve! I am one of the learners, and I can honestly say that you have found the right place to ask questions when you get stuck. Things on the list seem slow this weekend. In the US, where I am at, we are having Memorial Day weekend. I still have to chew over two meaty

Re: [Tutor] Learning Regular Expressions

2016-05-30 Thread boB Stepp
On Mon, May 30, 2016 at 12:13 PM, dirkjso...@gmail.com wrote: > Hi bob, > > I had used the wrong email address when I wrote to python tutor on this, and > evidently it > took a while for the monitors to let it go ahead and be entered in the list, > so I apologize > for the delay in my reply. That

Re: [Tutor] Learning Regular Expressions

2016-05-30 Thread Alan Gauld via Tutor
On 30/05/16 18:21, dirkjso...@gmail.com wrote: > I moved my notes that contained any '\'s to a different python file. > However, if we run it, we get the error I was having. Here's the > script: Runs fine for me. Can you run it using the python command line interpreter rather than IDLE? Do you s

Re: [Tutor] Learning Regular Expressions

2016-05-30 Thread dirkjso...@gmail.com
Thanks Bob, OK. The escape character \ still is active in escaping the next character or space when inside of triple quotes. So, I guess when the program is running, since I am not printing these things out, I don't care if anything in my notes is escaped unless it is a strategic single o

Re: [Tutor] Study Tips

2016-05-30 Thread Alan Gauld via Tutor
On 30/05/16 06:45, Steve Lett wrote: > Out of a long list of books that I have collected ( python, Blender, etc ) > I have decided to start on Introducing Python (hard copy 2nd Ed, ebook 3rd > ed) by Bill Lubanovic. Before that I was going to start with Python > Programming for the Absolute Beginn

Re: [Tutor] Study Tips

2016-05-30 Thread David Rock
* Alan Gauld via Tutor [2016-05-30 22:11]: > On 30/05/16 06:45, Steve Lett wrote: > > write code., lots of it. > > Don't just settle for the examples/exercises in your book. > Use them as a start but extend them. Add extra features. > Change the output format or the sort order. > Combine example

Re: [Tutor] Study Tips

2016-05-30 Thread Alex Kleider
On 2016-05-30 12:02, boB Stepp wrote: ... Are you totally new to programming in *any* language? If yes, you have much more to learn than *just* a programming language. I am going to assume that you are very new to programming in general. Forgive me if I am mistaken! But if you are, then some

Re: [Tutor] Study Tips

2016-05-30 Thread Colby Christensen
I completely agree with what's been said. I also have used online learning sites like Coursera, Udacity and Lynda. There's something about being able see, hear and do that clicks for me. Good Luck Colby > From: david.r...@gmail.com > Date: Mon, 30 May 2016 18:07:57 -0500 > To: tutor@python.org >

Re: [Tutor] Study Tips

2016-05-30 Thread Steve Lett
Thank you for the reply. On 30/05/2016 3:45 PM, "Steve Lett" wrote: > Hi folks, > Just started learning python. I've been having a really hard time in > getting started, and still am! I have a slight learning difficulty, > including a stroke in Jan.2010. You wouldnt know even if u were here > loo

Re: [Tutor] Learning Regular Expressions

2016-05-30 Thread Terry--gmail
Thanks Alan I noticed that I was using some double ' to encircle some things and some single ' for apostrophes in contractionsand fixed those...but apparently since you could run it, that part didn't matter. The problem was ultimately caused by a stray ''' which was a fragment of me messin

Re: [Tutor] Correct use of model-view-controller design pattern

2016-05-30 Thread boB Stepp
On Sun, May 29, 2016 at 9:10 AM, Alan Gauld via Tutor wrote: > On 29/05/16 05:33, boB Stepp wrote: >> My current understanding is that the model contains program logic and >> the data which the program logic manipulates. > > Correct, all the core entities which make up the program are represented

Re: [Tutor] Correct use of model-view-controller design pattern

2016-05-30 Thread boB Stepp
On Mon, May 30, 2016 at 11:30 AM, Alan Gauld via Tutor wrote: > On 29/05/16 05:33, boB Stepp wrote: >> 1) If I were to add code to filter user inputs, which file is the >> logical place to place such code? My current impression is that it >> should go in the controller, but I could see it being

Re: [Tutor] Correct use of model-view-controller design pattern

2016-05-30 Thread boB Stepp
One other thing I meant to ask about: On Sun, May 29, 2016 at 9:10 AM, Alan Gauld via Tutor wrote: > The model responds, but how the view is notified varies. In some cases > the views register with models and the model automatically sends > notification messages to all registered views (by-passi