[Python-Dev] Access a function
Michael Foord
fuzzyman at voidspace.org.uk
Mon Jun 28 20:39:08 CEST 2010
On 28/06/2010 19:09, Zohair wrote:
> I am a very new to python and have a small question..
>
> I have a function:
> set_time_at_next_pps(self, *args, **kwargs) but don't know how to use it...
> Askign for your help please.
>
Hi Zoh,
This mailing list is for the development *of* Python, not for questions
about developing *with* Python. You should ask your question on a
mailing list / newsgroup like python-list or python-tutor. python-list
is available via google groups:
https://groups.google.com/group/comp.lang.python/topics
You haven't given enough information to answer the question however. The
first argument 'self' means that the function is probably a method of a
class, and should be called from a class instance. The *args / **kwargs
means that the function can take any number of arguments or keyword
arguments, which doesn't tell us anything about the function should be
used.
You can find out more on Python functions in the tutorial:
http://docs.python.org/tutorial/controlflow.html#more-on-defining-functions
All the best,
Michael Foord
> Cheers,
>
> Zoh
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
More information about the Python-Dev
mailing list