Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80955

Re: How modules work in Python

From Dave Angel <davea@davea.name>
Subject Re: How modules work in Python
Date 2014-11-16 21:56 -0500
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>
Newsgroups comp.lang.python
Message-ID <mailman.15942.1416192962.18130.python-list@python.org> (permalink)

Show all headers | 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


Thread

Re: How modules work in Python Dave Angel <davea@davea.name> - 2014-11-16 21:56 -0500

csiph-web