473,386 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to get function signature

Hi,

I was working on a dir like function that gives more information than
the usual dir, but I am not satisfied with the way I get function
arguments for callable members of an object. Take a look at it here:
http://nerdierthanthou.nfshost.com/2...or-python.html. I have
seen PythonWin showing function arguments as tooltips, can anyone
please let me know how to get it.

TIA,
--
Amit Upadhyay
Blog: http://www.rootshell.be/~upadhyay
+91-9867-359-701

Jul 28 '05 #1
2 2791
up******@gmail.com wrote:
Hi,

I was working on a dir like function that gives more information than
the usual dir, but I am not satisfied with the way I get function
arguments for callable members of an object. Take a look at it here:
http://nerdierthanthou.nfshost.com/2...or-python.html. I have
seen PythonWin showing function arguments as tooltips, can anyone
please let me know how to get it.


import inspect

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Jul 28 '05 #2
Robert Kern wrote:
up******@gmail.com wrote:
Hi,

I was working on a dir like function that gives more information than
the usual dir, but I am not satisfied with the way I get function
arguments for callable members of an object. Take a look at it here:
http://nerdierthanthou.nfshost.com/2...or-python.html. I have
seen PythonWin showing function arguments as tooltips, can anyone
please let me know how to get it.

import inspect

PythonWin provides this capability for machines using Windows.

Colin W.
Jul 28 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Otten | last post by:
After a week or so I'm finally getting accustomed to the pie-pre-def syntax. Consider a simple-minded decorator that doesn't care about the signature of the function it wraps: >>> def...
5
by: Gerard | last post by:
Hi, Is it an option/idea to make the exceptions thrown be part of the signature of a function? - So I'll get a warning if I call a function and not handle one of the exceptions. - So I'll get...
0
by: walter | last post by:
Hi there, see if anyone can help on this : I created a simple function in C# public void FuncA(int intA, out string strB, ref string strC, out string stringD){} When I add a web reference ,...
5
by: krbyxtrm | last post by:
Any knows of a Function Signature string Parser? typically one that can parse string: "unsigned int const * __cdecl MyFunction(int,void const *)" into: 0 : 'unsigned int const *' 1 :...
5
by: code break | last post by:
Hi all, I came across some unexpected funtion definition as follows int __cdel function_name(int arg1,int arg2) { statements ;
9
by: psujkov | last post by:
Hi everybody, int f(int a, int b) { return a + b; }; is it possible to obtain this function signature - int (int, int) in this case - for use in boost::function_traits ? e.g. std::cout << "f's...
9
by: Chris Saunders | last post by:
I do know C but am not an expert. I'm creating an interface to the GLUT library from the language Eiffel. Here is the signature for a function that I do not understand: GLUTAPI void APIENTRY...
5
by: Harinezumi | last post by:
Hi, while creating a hierarchy of classes I ran into a strange problem: it seems the compiler doesn't inherit virtual functions with the same name but different signature if only one of them is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.