Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80955
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.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 | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'subject:Python': 0.06; 'conventions': 0.07; 'classes.': 0.09; 'function,': 0.09; 'here?': 0.09; 'posting.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:modules': 0.09; 'subject:How': 0.10; 'python': 0.11; 'wrote': 0.14; 'buggy': 0.16; 'naming': 0.16; 'received:80.91.229.3': 0.16; 'received:97': 0.16; 'received:plane.gmane.org': 0.16; 'fix': 0.17; 'seems': 0.21; "aren't": 0.24; 'certainly': 0.24; 'questions:': 0.24; 'posts': 0.26; 'header:X-Complaints-To:1': 0.27; 'point': 0.28; 'function': 0.29; "i'm": 0.30; 'ordinary': 0.31; 'languages': 0.32; 'open': 0.33; 'not.': 0.33; 'but': 0.35; 'module.': 0.36; 'words,': 0.36; "didn't": 0.36; 'method': 0.36; 'thanks': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'list,': 0.38; 'that,': 0.38; 'to:addr:python.org': 0.39; 'mailing': 0.39; 'either': 0.39; 'received:org': 0.40; 'remove': 0.60; 'manually': 0.60; "you're": 0.61; "you'll": 0.62; 'kind': 0.63; 'real': 0.63; 'here': 0.66; 'study': 0.69; '(while': 0.84; 'them)': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Dave Angel <davea@davea.name> |
| Subject | Re: How modules work in Python |
| Date | Sun, 16 Nov 2014 21:56:05 -0500 (EST) |
| Organization | news.gmane.org |
| References | <CAA+hu4WstWquKEJ3C4AnWqbcNb5Y55G+xmywzF1hhEei9NQi=A@mail.gmail.com> <m4b92h$2dj$1@ger.gmane.org> <CAA+hu4UYRgU85LSQu_G2XU3sPhe-DdBH2S2bZH9Kd6CACLMRUA@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | 97.73.240.77 |
| X-Newsreader | PiaoHong.Usenet.Client.VIP:1.65 |
| X-Archive | encrypt |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15942.1416192962.18130.python-list@python.org> (permalink) |
| Lines | 32 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1416192962 news.xs4all.nl 2833 [2001:888:2000:d::a6]:41225 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:80955 |
Show key headers only | View raw
(Please don't top-post. Use interleaved posting. And remove parts you didn't respond to.) (While I'm criticizing, I should point out that your quoting seems doublespaced. That makes me suspect buggy googlegroups. If you're using that, you should either find a real newsreader, use the mailing list, or manually fix the double spacing. Hundres of posts on here about it, just search out one of them) Abdul Abdul <abdul.sw84@gmail.com> Wrote in message: > Dave, > > Thanks for your nice explanation. For your answer on one of my questions: > > >> Modules don't have methods. open is an ordinary function in the module. > > Isn't "method" and "function" used interchangeably? In other words, aren't they the same thing? Or, Python has some naming conventions here? Certainly not. A method is a very specic kind of function, you'll learn about it when you study classes. Some languages blur the distinction, by not having any functions outside of classes. But that's not Python. > > -- DaveA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: How modules work in Python Dave Angel <davea@davea.name> - 2014-11-16 21:56 -0500
csiph-web