Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #97131
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: Learning Modules, Arguments, Parameters (imma noob) |
| Date | 2015-09-25 20:08 -0400 |
| References | <7ad8941d-04aa-42c5-82e9-10cdf02ab695@googlegroups.com> <f89010c3-5041-402c-adec-3e613d8a76d2@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.169.1443226102.28679.python-list@python.org> (permalink) |
On 9/25/2015 2:50 PM, Cody Cox wrote: > Awesome guys! Thank you for helping me understand this material. > Parameters and Arguments are tricky. Looks like its mainly a game of > connect the dots with variables. lol. If you stick with the convention that parameters are names in the header of a function definition, arguments are objects in a function call, and calls bind parameter names to argements (or sometimes collected arguments), then it is not so tricky. But also remember that not everyone follows this convention, or even any consistent usage. To reiterate about calling and binding. def f(x): pass f(2) binds the name 'x' to the int object with value 2. This is essentially the same as 'x = 2', except that the binding takes place in the local namespace of the function rather than in the local namespace of the call. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Learning Modules, Arguments, Parameters (imma noob) codywcox@gmail.com - 2015-09-24 11:45 -0700
Re: Learning Modules, Arguments, Parameters (imma noob) MRAB <python@mrabarnett.plus.com> - 2015-09-24 20:25 +0100
Re: Learning Modules, Arguments, Parameters (imma noob) John Gordon <gordon@panix.com> - 2015-09-24 19:32 +0000
Re: Learning Modules, Arguments, Parameters (imma noob) Larry Hudson <orgnut@yahoo.com> - 2015-09-24 13:27 -0700
Re: Learning Modules, Arguments, Parameters (imma noob) alister <alister.nospam.ware@ntlworld.com> - 2015-09-25 10:42 +0000
Re: Learning Modules, Arguments, Parameters (imma noob) Cody Cox <codywcox@gmail.com> - 2015-09-25 11:50 -0700
Re: Learning Modules, Arguments, Parameters (imma noob) Laura Creighton <lac@openend.se> - 2015-09-25 22:15 +0200
Re: Learning Modules, Arguments, Parameters (imma noob) Laura Creighton <lac@openend.se> - 2015-09-25 22:25 +0200
Re: Learning Modules, Arguments, Parameters (imma noob) Cody Cox <codywcox@gmail.com> - 2015-09-25 13:52 -0700
Re: Learning Modules, Arguments, Parameters (imma noob) Terry Reedy <tjreedy@udel.edu> - 2015-09-25 20:08 -0400
Re: Learning Modules, Arguments, Parameters (imma noob) Cody Cox <codywcox@gmail.com> - 2015-09-25 11:53 -0700
Re: Learning Modules, Arguments, Parameters (imma noob) Cody Cox <codywcox@gmail.com> - 2015-09-25 12:03 -0700
Re: Learning Modules, Arguments, Parameters (imma noob) Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-25 13:20 -0600
Re: Learning Modules, Arguments, Parameters (imma noob) Denis McMahon <denismfmcmahon@gmail.com> - 2015-09-25 23:59 +0000
Re: Learning Modules, Arguments, Parameters (imma noob) wxjmfauth@gmail.com - 2015-09-26 00:02 -0700
Re: Learning Modules, Arguments, Parameters (imma noob) Larry Hudson <orgnut@yahoo.com> - 2015-09-25 22:55 -0700
csiph-web