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

2013-02-26 Thread eryksun
On Tue, Feb 26, 2013 at 7:49 PM, eryksun wrote: > > 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

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

2013-02-26 Thread eryksun
On Tue, Feb 26, 2013 at 4:00 PM, Albert-Jan Roskam 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 > You can use inspect.getsource(o

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

2013-02-26 Thread Hugo Arts
On Tue, Feb 26, 2013 at 9:00 PM, Albert-Jan Roskam wrote: > > > The core developers are too busy to be hand-holding a newbie who > > doesn't know any Python, > > Well, in a way they *can*: I find it very inspiring to read the source > code of Python (the .py files), though I don't do this as ofte

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

2013-02-26 Thread Albert-Jan Roskam
  > The core developers are too busy to be hand-holding a newbie who > doesn't know any Python, Well, in a way they *can*: I find it very inspiring to read the source code of Python (the .py files), though I don't do this as often as I should. What I like about R: if I do 'print(func)' (or fix

Re: [Tutor] Second follow up

2013-02-26 Thread Mark Lawrence
On 26/02/2013 16:01, Steven D'Aprano wrote: On 27/02/13 01:23, Jack Little wrote: How would I go from one def statement to another? I am developing a text based rpg. def first_function(): # write your code here, indented by FOUR spaces or ONE tab def second_function(): # NO INDENT

Re: [Tutor] Second follow up

2013-02-26 Thread Steven D'Aprano
On 27/02/13 02:12, Mark Lawrence wrote: On 26/02/2013 14:23, Jack Little wrote: How would I go from one def statement to another? I am developing a text based rpg. I'd like to see your project when it's finished as a text based rocket propelled grenade seems very interesting, or are we talki

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

2013-02-26 Thread Steven D'Aprano
On 27/02/13 01:19, Mark Lawrence wrote: On 26/02/2013 13:57, Tim Golden wrote: On 26/02/2013 13:54, Mark Lawrence wrote: On 26/02/2013 13:02, Khalid Al-Ghamdi wrote: Hi All, I'm not a programmer by profession, but I want to LEARN PYTHON. [emphasis added] [...] http://pythonmentors.com/ U

Re: [Tutor] Second follow up

2013-02-26 Thread Steven D'Aprano
On 27/02/13 01:23, Jack Little wrote: How would I go from one def statement to another? I am developing a text based rpg. def first_function(): # write your code here, indented by FOUR spaces or ONE tab def second_function(): # NO INDENT # write your code here, indented by FOUR spa

Re: [Tutor] Second follow up

2013-02-26 Thread Mark Lawrence
On 26/02/2013 14:23, Jack Little wrote: How would I go from one def statement to another? I am developing a text based rpg. Sent from my iPod ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org

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

2013-02-26 Thread Vytas D.
Hi, Have you considered O'Reilly Python courses. You have to pay (and it's quite expensive), but you have a tutor to answer questions. The courses are good (tried myself :) ). Vytas ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscr

Re: [Tutor] Second follow up

2013-02-26 Thread Alan Gauld
On 26/02/13 14:23, Jack Little wrote: How would I go from one def statement to another? Type it in. Based on your message that's all I can suggest. Can you explain what you mean? What do you have in mind by a def statement? def foo(): print 'foo' def bar(): print 'bar' Those are two

Re: [Tutor] Second follow up

2013-02-26 Thread Dave Angel
On 02/26/2013 09:23 AM, Jack Little wrote: How would I go from one def statement to another? I am developing a text based rpg. Sent from my iPod ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.

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

2013-02-26 Thread Alan Gauld
On 26/02/13 13:02, Khalid Al-Ghamdi wrote: have written some scripts, but I want some place online where a live person can tutor me to the next level. Any good suggestions? Well so far as I know there are no dead people on this mailing list It's what we are here for. -- Alan G Author of

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

2013-02-26 Thread Robert Sjoblom
>> Umm. No. Sorry, Mark, but that site and the core-mentorship list it >> advertises are intended for progammers who want to be helped in the >> development *of* Python, not development *in* Python. Ie, otherwise >> experienced programmers who are unfamiliar with the Python codebase. >> >> TJG >> >

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

2013-02-26 Thread Khalid Al-Ghamdi
Hi all and thanks for your suggestions, I was thinking of something like a virtual classroom where I can get live mentoring and answers to my inquiries in a one on one or small group setting. Thanks On Tuesday, February 26, 2013, Mark Lawrence wrote: > On 26/02/2013 13:57, Tim Golden wrote: > >

[Tutor] Second follow up

2013-02-26 Thread Jack Little
How would I go from one def statement to another? I am developing a text based rpg. Sent from my iPod ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

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

2013-02-26 Thread Mark Lawrence
On 26/02/2013 13:57, Tim Golden wrote: On 26/02/2013 13:54, Mark Lawrence wrote: On 26/02/2013 13:02, Khalid Al-Ghamdi wrote: Hi All, I'm not a programmer by profession, but I want to learn python. I've got lots of Ideas that want to realize, but I always run into these stupid hiccups where I

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

2013-02-26 Thread Albert-Jan Roskam
>After more than 2 years (on and off) I've got the basics down and have written >some scripts, but I want some place online where a live person can tutor me to >the next level. Any good suggestions? I'd say Python Tutor is what you're looking for! And there are many other awesome sources of inf

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

2013-02-26 Thread Tim Golden
On 26/02/2013 13:54, Mark Lawrence wrote: > On 26/02/2013 13:02, Khalid Al-Ghamdi wrote: >> Hi All, >> >> I'm not a programmer by profession, but I want to learn python. I've got >> lots of Ideas that want to realize, but I always run into these >> stupid hiccups where I follow the tutorials and so

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

2013-02-26 Thread Mark Lawrence
On 26/02/2013 13:02, Khalid Al-Ghamdi wrote: Hi All, I'm not a programmer by profession, but I want to learn python. I've got lots of Ideas that want to realize, but I always run into these stupid hiccups where I follow the tutorials and something stupid (known/unkown) is causing things not to w

[Tutor] There's a Programmer in Me

2013-02-26 Thread Khalid Al-Ghamdi
Hi All, I'm not a programmer by profession, but I want to learn python. I've got lots of Ideas that want to realize, but I always run into these stupid hiccups where I follow the tutorials and something stupid (known/unkown) is causing things not to work ... frustration ensues... After more than