Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33948
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <d@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'argument': 0.04; 'compile-time': 0.07; 'dynamically': 0.07; 'parameter': 0.07; 'performs': 0.07; 'statically': 0.07; 'subject:How': 0.09; 'imply': 0.09; 'subject:method': 0.09; 'typed': 0.09; 'cc:addr:python-list': 0.10; 'language,': 0.11; 'language': 0.14; 'argument.': 0.16; 'deferred': 0.16; 'run- time.': 0.16; 'subject:class': 0.16; 'subject:instance': 0.16; 'subject:pass': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'defined': 0.22; 'cc:2**0': 0.23; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '(which': 0.26; 'am,': 0.27; 'checking': 0.27; 'implied': 0.29; 'function': 0.30; 'checked': 0.30; 'function.': 0.33; 'operations': 0.33; 'acceptable': 0.35; 'nov': 0.35; 'pm,': 0.35; 'subject:?': 0.35; 'useful': 0.36; 'does': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'received:192': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'necessarily': 0.63; 'information': 0.63; '26,': 0.65; 'header :Reply-To:1': 0.68; 'direct': 0.69; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'enforced': 0.84; 'received:74.208.4.194': 0.84 |
| Date | Mon, 26 Nov 2012 16:58:47 -0500 |
| From | Dave Angel <d@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 |
| MIME-Version | 1.0 |
| To | Ian Kelly <ian.g.kelly@gmail.com> |
| Subject | Re: How to pass class instance to a method? |
| References | <3193e3dd-0507-4ff7-9026-ee80e5d9c1dd@googlegroups.com> <pan.2012.11.26.16.56.29.389000@nowhere.com> <CALwzidn54ko2AGEj2QmanfFsoUBSqrNJ=TwNjCJt7-+_O2qu-w@mail.gmail.com> |
| In-Reply-To | <CALwzidn54ko2AGEj2QmanfFsoUBSqrNJ=TwNjCJt7-+_O2qu-w@mail.gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:foD0ratVgAnRCM6WtvfTIm9GnGA5CKmwzbWLZ4grjXY yuQ83m6kkjngHJk+8+5IiTdyx5G1JTRRbSWJqJcCstVE3hjfZ5 lt0k0RMc6qWnhq5guC6XLLdQoX28wwiI4ym8ON9/YDmwaBcbAt GcxRHxiK3wcIAAUoxMxQntOCWS/2Ui5sentBuIu73X3YcB4voD ZJ4q2Lg/NUNcELbZ08Z7ONEkQaAnZGIKhBpsBVIlk8s8n3h6s5 Y298NAHDezGxlPaA452CJ/KMi39Gvk3JctYDHPcEwMTRAGCunp dRbhNOyqS/twk4pkZ1Iggp+7vQLpBv9jrNSGFyL7YYGcctKcA= = |
| Cc | Python <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | d@davea.name |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.300.1353967142.29569.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1353967142 news.xs4all.nl 6842 [2001:888:2000:d::a6]:36056 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:33948 |
Show key headers only | View raw
On 11/26/2012 03:51 PM, Ian Kelly wrote: > On Mon, Nov 26, 2012 at 9:56 AM, Nobody <nobody@nowhere.com> wrote: >> In a dynamically-typed language such as Python, the set of acceptable >> types for an argument is determined by the operations which the function >> performs on it. This is in direct contrast to a statically-typed language, >> where the set of acceptable operations on an argument is determined by the >> type of the argument. > Not how I would put it. In a statically typed language, types are > checked at compile-time (which does not necessarily imply that useful > type information can be made available to an IDE), whereas in a > dynamically typed language, some or all type checking is deferred to > run-time. Not how I would put it. In a statically typed language, the valid types are directly implied by the function parameter declarations, while in a dynamic language, they're defined in the documentation, and only enforced (if at all) by the body of the function. -- DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to pass class instance to a method? ALeX inSide <alex.b.inside@gmail.com> - 2012-11-25 04:11 -0800
Re: How to pass class instance to a method? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-25 12:37 +0000
Re: How to pass class instance to a method? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2012-11-26 11:22 +1300
Re: How to pass class instance to a method? Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2012-11-26 11:08 +0100
Re: How to pass class instance to a method? Nobody <nobody@nowhere.com> - 2012-11-26 16:56 +0000
Re: How to pass class instance to a method? Ian Kelly <ian.g.kelly@gmail.com> - 2012-11-26 13:51 -0700
Re: How to pass class instance to a method? Dave Angel <d@davea.name> - 2012-11-26 16:58 -0500
Re: How to pass class instance to a method? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-26 22:18 +0000
Re: How to pass class instance to a method? Dave Angel <d@davea.name> - 2012-11-26 22:14 -0500
Re: How to pass class instance to a method? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-27 04:10 +0000
Re: How to pass class instance to a method? Roy Smith <roy@panix.com> - 2012-11-26 23:25 -0500
Re: How to pass class instance to a method? Dave Angel <d@davea.name> - 2012-11-27 00:18 -0500
Re: How to pass class instance to a method? Ian Kelly <ian.g.kelly@gmail.com> - 2012-11-26 16:07 -0700
Re: How to pass class instance to a method? Hans Mulder <hansmu@xs4all.nl> - 2012-11-27 01:36 +0100
Re: How to pass class instance to a method? Dave Angel <d@davea.name> - 2012-11-26 21:50 -0500
Re: How to pass class instance to a method? Drew <r.drew.davis@gmail.com> - 2012-11-26 17:14 -0800
csiph-web