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


Groups > comp.lang.python > #7746

Re: Function within class and in modules

Newsgroups comp.lang.python
Date 2011-06-16 08:52 -0700
Subject Re: Function within class and in modules
From Zachary Dziura <zcdziura@gmail.com>
Message-ID <mailman.17.1308239565.1164.python-list@python.org> (permalink)

Show all headers | View raw


On Thursday, June 16, 2011 9:02:45 AM UTC-4, Andrew Berg wrote:
> On 2011.06.15 08:57 AM, Zach Dziura wrote:
> > Just repeat this to yourself: Python ISN'T Java.
> class MainClass:
>     def public static void main(*args):
>         print('Am I doin' it right?')
> 
> :P
> 
> Or something like that. I've forgotten almost everything I learned about
> Java.

Pssshhh... Syntax can be set up similarly, but that's not the same! And you know that. =P

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Function within class and in modules Zachary Dziura <zcdziura@gmail.com> - 2011-06-16 08:52 -0700

csiph-web