Re: [Tutor] There's a Programmer in Me

2013-02-27 Thread Femi Banjo
coursera, udacity  edx all have decent Python  courses for beginners and very 
good support on forums etc and they're all free

 Date: Wed, 27 Feb 2013 01:10:07 -0800
 From: fo...@yahoo.com
 To: eryk...@gmail.com
 CC: tutor@python.org
 Subject: Re: [Tutor] There's a Programmer in Me
 
 
 
  On Tue, Feb 26, 2013 at 4:00 PM, Albert-Jan Roskam fo...@yahoo.com 
  wrote:
  
  What I like about R: if I do 'print(func)' (or fix(func)), it 
  prints the
  source code of the function. It would be cool if Python had something
  similar. Instead Python prints the not-so-informative
  function func at 0xa82fae4
  
  You can use inspect.getsource(obj) if obj is a module, class, method,
  function, traceback, frame, or code that has a source file (e.g.
  __file__, co_filename) and is defined normally (e.g. class, def):
  
   import inspect
   def printsrc(obj): print inspect.getsource(obj)
  
   import antigravity
   printsrc(antigravity)
  
  import webbrowser
  
  webbrowser.open(http://xkcd.com/353/)
 
 Ahh, thank you! I like the %psource magic word, but until I get IPython 
 installed in the office I'll use inspect.getsource. 
 import inspect, soul
 print inspect.getsource(soul.getsoul)
 import webbrowser
 webbrowser.open(http://xkcd.com/413/)  ;-))
 
 ___
 Tutor maillist  -  Tutor@python.org
 To unsubscribe or change subscription options:
 http://mail.python.org/mailman/listinfo/tutor
  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Books for Learning Python

2013-01-11 Thread Femi Banjo

Not Books but have you tried any of the online learning courses?
They're free and look very good from my equally beginner perspective as I 
struggle through them(allow more time than you think :[ )
www.coursera.org
www.edx.org
www.udacity.com

all very good, take you pick!

From: quent...@gmail.com
Date: Fri, 11 Jan 2013 08:10:46 -0600
To: tutor@python.org
Subject: [Tutor] Books for Learning Python

Hello all, I've began my journey into Python (2.7 currently) and I'm finding it 
a bit rough using the python.org tutorials.  Although chalked full of 
information I find it a bit overwhelming.  Can anyone recommend a book, or two, 
or three that would be great material for really learning the language.  I tend 
to learn better with a little structure and I feel a good book would be the 
best approach for myself.  Any advice would be greatly appreciated. --Thanks!

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor   
  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor