Re: [Tutor] going rate for python tutoring?

2012-07-26 Thread Alan Gauld
On 26/07/12 19:06, Benjamin Fishbein wrote: I'm trying to learn "posting" Can you explain what 'posting' is? I've no idea what you mean. Are you talking about web transactions? Or using message boards? Or something else? I haven't the foggiest notion what the going rate is for > private co

[Tutor] going rate for python tutoring?

2012-07-26 Thread Benjamin Fishbein
Hello, I'm trying to learn "posting" and am having a very hard time at it. I'm going to hire someone to give me a private lesson, so I put up a notice on Northwestern's CS bulletin board--probably a student there'll be able to help. How much money should I offer? I haven't the foggiest notion wha

Re: [Tutor] How to use introspection to discover parameters?

2012-07-26 Thread David
On 27/07/2012, Jerry Hill wrote: ... inspect.getargspec(logging.log) > ArgSpec(args=['level', 'msg'], varargs='args', keywords='kwargs', > defaults=None) ... > Also, the help object itself is written in python. You can look at > the source in pydoc.py On 27/07/2012, Steven D'Aprano wrote:

Re: [Tutor] Private attributes [was Re: What on earth is happening here ???]

2012-07-26 Thread Prasad, Ramit
> > Trying to make things "private" is a throwback to Java. In Python > > the tendency is to just leave everything "public". And "private" is with > > one underbar/underscore. [snip] > In general, I recommend that beginners avoid double leading underscore methods > until they are no longer beginner

Re: [Tutor] How to use introspection to discover parameters?

2012-07-26 Thread Steven D'Aprano
David wrote: Please help me understand the following (I have python 2.6.2) ... Because I want to write nice docstrings, I read PEP257 where it says: "The one-line docstring should NOT be a "signature" reiterating the function/method parameters (which can be obtained by introspection)." As a ge

Re: [Tutor] How to use introspection to discover parameters?

2012-07-26 Thread Jerry Hill
On Thu, Jul 26, 2012 at 9:48 AM, David wrote: > A related question: > help() seems to do the introspection for me. Does python allow me to do it in > my own code? Specifically, how might I write my own function to mimic line 3 > of > help(), appearing like so: > my_function(logging.log) > "l

[Tutor] How to use introspection to discover parameters?

2012-07-26 Thread David
Please help me understand the following (I have python 2.6.2) ... Because I want to write nice docstrings, I read PEP257 where it says: "The one-line docstring should NOT be a "signature" reiterating the function/method parameters (which can be obtained by introspection)." I am understanding this