Re: python function parameters, debugging, comments, etc.

2013-10-02 Thread Rotwang
On 02/10/2013 11:15, Oscar Benjamin wrote: On 2 October 2013 00:45, Rotwang wrote: So the upside of duck-typing is clear. But as you've already discovered, so is the downside: Python's dynamic nature means that there's no way for the interpreter to know what kind of arguments a function will a

Re: python function parameters, debugging, comments, etc.

2013-10-02 Thread Oscar Benjamin
On 2 October 2013 00:45, Rotwang wrote: > > So the upside of duck-typing is clear. But as you've already discovered, so > is the downside: Python's dynamic nature means that there's no way for the > interpreter to know what kind of arguments a function will accept, and so a > user of any function

Re: python function parameters, debugging, comments, etc.

2013-10-01 Thread Ben Finney
Chris Friesen writes: > I've got a fair bit of programming experience (mostly kernel/POSIX > stuff in C). I'm fairly new to python though, and was hoping for some > advice. Welcome! Thanks for taking the practice of programming seriously enough to seek improvement. > Is the recommendation to ha

Re: python function parameters, debugging, comments, etc.

2013-10-01 Thread Terry Reedy
On 10/1/2013 6:54 PM, Chris Friesen wrote: Given the fact that function parameters do not specify types, when you're looking at someone else's code how the heck do you know what is expected for a given argument? (Especially in a nontrivial system where the parameter is just passed on to some

Re: python function parameters, debugging, comments, etc.

2013-10-01 Thread Rotwang
On 01/10/2013 23:54, Chris Friesen wrote: I've got a fair bit of programming experience (mostly kernel/POSIX stuff in C). I'm fairly new to python though, and was hoping for some advice. Given the fact that function parameters do not specify types, when you're looking at someone else's code

Re: python function parameters, debugging, comments, etc.

2013-10-01 Thread Joel Goldstick
On Tue, Oct 1, 2013 at 6:54 PM, Chris Friesen wrote: > > I've got a fair bit of programming experience (mostly kernel/POSIX stuff > in C). I'm fairly new to python though, and was hoping for some advice. > > Given the fact that function parameters do not specify types, when you're > looking at s

python function parameters, debugging, comments, etc.

2013-10-01 Thread Chris Friesen
I've got a fair bit of programming experience (mostly kernel/POSIX stuff in C). I'm fairly new to python though, and was hoping for some advice. Given the fact that function parameters do not specify types, when you're looking at someone else's code how the heck do you know what is expected fo