Thanks for all the answers. I bet I will convince this guy!
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, May 9, 2008 at 5:32 AM, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> Why do you need the documentation ? Just fire up your python shell and hack
> a Q&D example:
I agree. I said it to this person, but he insisted I should use documentation...
--
http://mail.python.org/mailman/listinfo/p
"Lucas Prado Melo" <[EMAIL PROTECTED]> wrote:
> Hello,
> How could I "prove" to someone that python accepts this syntax using
> the documentation (I couldn't find it anywhere):
> classname.functionname(objectname)
Language reference, mostly section 5.3 Primaries
call ::=
primary "
Lucas Prado Melo a écrit :
Hello,
How could I "prove" to someone that python accepts this syntax using
the documentation (I couldn't find it anywhere):
classname.functionname(objectname)
Why do you need the documentation ? Just fire up your python shell and
hack a Q&D example:
Python 2.5.1 (
On May 8, 10:50 am, "Lucas Prado Melo" <[EMAIL PROTECTED]> wrote:
> Hello,
> How could I "prove" to someone that python accepts this syntax using
> the documentation (I couldn't find it anywhere):
> classname.functionname(objectname)
It's in the language reference, section 3.2 "The standard type
Thanks Marco, this is just what I was looking for.
On Thu, May 8, 2008 at 11:02 AM, David <[EMAIL PROTECTED]> wrote:
> > classname.functionname(objectname)
>
> Do you mean something like this?
>
> class myclass:
> @staticmethod
> def myfunction(myobject): pass
>
> myobject = None
> my
> classname.functionname(objectname)
Do you mean something like this?
class myclass:
@staticmethod
def myfunction(myobject): pass
myobject = None
myclass.myfunction(myobject)
If so, then you want to check the staticmethod decorator, described here:
http://docs.python.org/lib/built-in-
Lucas Prado Melo wrote:
How could I "prove" to someone that python accepts this syntax using
the documentation (I couldn't find it anywhere):
classname.functionname(objectname)
TUtorial 9.3.4, method objects
What exactly happens when a method is called? You may have noticed that
x.f() was ca