Re: [Tutor] A list of 100+ projects to complete to master Python.

2013-07-16 Thread Karan Goel
I'm not entirely sure if your reply was directed towards my message. - Karan Goel Goel.im | Resume | Github On Wed, Jul 17, 2013 at 5:09 AM, David Hutto wrote: > First thing you should learn is o

Re: [Tutor] Writing unit tests that involve email

2013-07-16 Thread Steven D'Aprano
On 17/07/13 13:34, Arnel Legaspi wrote: the trouble I have is on making the unit tests run such that it will force the script I'm testing to send the email. If I just use the script on my own, it does send the emails, no problem. With the unit tests I've written, it's not doing so. How does y

Re: [Tutor] Deleted dictionary length not reporting

2013-07-16 Thread Steven D'Aprano
On 17/07/13 12:55, Jim Mooney wrote: so I'm going back to just popping used items from a list, which was dirt-simple. And also dirt-simple to get wrong, and inefficient as well. list.pop has its uses, but I strongly recommend that you learn more "Pythonic" techniques that don't rely on modify

Re: [Tutor] Writing unit tests that involve email

2013-07-16 Thread Steven D'Aprano
On 14/07/13 10:32, Arnel Legaspi wrote: [...] What I'm having difficulty is getting the unit tests to properly run the script being tested and send the email, get the proper Maildir message, and be able to read it via the unit test script. Right now, even when the SMTP server is not running, all

Re: [Tutor] Deleted dictionary length not reporting

2013-07-16 Thread Dave Angel
On 07/16/2013 09:48 PM, Jim Mooney wrote: This is puzzling me. I have a folder with about 125 movie sound clips, like "I'll be back," blues brothers theme, oompa-loompas, etc. I play seven random ones on windows startup, which works fine. But just so I don't repeat a clip, I delete it from the di

Re: [Tutor] Deleted dictionary length not reporting

2013-07-16 Thread Steven D'Aprano
On 17/07/13 11:48, Jim Mooney wrote: This is puzzling me. I have a folder with about 125 movie sound clips, like "I'll be back," blues brothers theme, oompa-loompas, etc. I play seven random ones on windows startup, which works fine. But just so I don't repeat a clip, I delete it from the diction

[Tutor] A list of 100+ projects to complete to master Python.

2013-07-16 Thread Karan Goel
Hey guys and gals Just a plug here. My repo: https://github.com/thekarangoel/Projects was one of the trending repos on Gh this week and I thought folks on this list might be interested in knowing about it. In a nutshell, I'm trying to complete over a 100 practical language- agnostic projects in P