Re: Beginner Tutorials

2013-01-18 Thread Rik
Well spotted! > Your final print should be: > > > > print("Hello " + name + "!") > > > > Regards, > > Ian F -- http://mail.python.org/mailman/listinfo/python-list

Re: Beginner Tutorials

2013-01-18 Thread Rik
The reason for disabling right-click has nothing to do with protecting content, and everything to do with stopping my students from taking the lazy way out. Given the chance, they'll copy/paste the code and download the designs and edit them slightly. They'd get through the tutorials in about 25

Re: Beginner Tutorials

2013-01-18 Thread Rik
site content and not HTML! > You have done well Rik. I like your approach to passwords for solutions and > > your selection of topics is quite good for a "jump start" with Python. > However, > > I suggest that in your menu you change several of your items to lower ca

Beginner Tutorials

2013-01-18 Thread Rik
Hi, I've developed a website for beginners to Python. I'd appreciate any comments or criticism. It's still under development, and should be finished in the next few months. Oh, and it's free to use. www.usingpython.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python profiler usage with objects

2010-06-30 Thread rik
Ben Kaplan case.edu> writes: > There's nothing special about profile.run- you have to hand it something to > execute, not something already executed. Try calling > Profile.run(doSomething) # no parenthesis for doSomething. your hint and REREADING THE DOCUMENTATION made me realize it was the QUO

Re: Python profiler usage with objects

2010-06-30 Thread rik
Ben Kaplan case.edu> writes: > First thin it does is evaluate foo(), which returns None. So you're calling > profile.run(None) > > There's nothing special about profile.run- you have to hand it something to > execute, not something already executed. Try calling > Profile.run(doSomething) # no p

Re: Python profiler usage with objects

2010-06-29 Thread rik
Ben Kaplan case.edu> writes: > > Let's take this code as an example: > > def foo() : > return None > > import profile > profile.run(foo()) > > What does the profile.run call do? > > First thin it does is evaluate foo(), which returns None. So you're calling > profile.run(None) > > Ther

Re: Python profiler usage with objects

2010-06-29 Thread rik
both Ubuntu with Python 2.6 and OSX with 2.4. with both cProfile and profile?! whether or not i specify a file for profile output!?! anybody else having trouble profiling? - rik -- http://mail.python.org/mailman/listinfo/python-list