A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-June/101181.html below:

[Python-Dev] Access a function

[Python-Dev] Access a functionMichael 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4