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: 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 Subject: Re: How modules work in Python Date: Sun, 16 Nov 2014 21:56:05 -0500 (EST) Organization: news.gmane.org References: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 (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 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