[Chicago] New member and introducing myself.

Brian Herman brianherman at gmail.com
Sat Oct 4 06:21:55 CEST 2014


Yes, it can with the static method decorator!
Java:
public class foo_bar {
public static void foo(){ /*method body here */}
}
Python

class foo_bar(object):
    @staticmethod
    def foo(x):
        #method body here



On Fri, Oct 3, 2014 at 5:05 PM, Lewit, Douglas <d-lewit at neiu.edu> wrote:

> Hi there fellow Python enthusiasts,
>
> I just joined the group and would like to introduce myself.  I teach math
> part-time at Oakton Community College, and am currently enrolled in the
> second semester of Java at Northeastern Illinois University.  Java is okay,
> but my preference is for Python.  I think Python is a wonderful language
> for people coming from a Maple/Mathematica/Matlab background--such as
> myself.  I haven't taken any formal courses in Python, but am learning the
> language on my own through books and online tutorial videos.
>
> Quick question here.  In my Java course we just got done learning about
> static methods and non-static methods (although I'm still a little confused
> about their difference ).  I know that Python can be programmed using the
> OOP paradigm.  Does Python also have static methods and non-static methods?
>
> Thanks!
>
> Best,
>
> Douglas Lewit
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> https://mail.python.org/mailman/listinfo/chicago
>
>


-- 


Thanks,
Brian Herman
kompile.org <http://www.kompile.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20141003/93421b17/attachment.html>


More information about the Chicago mailing list