473,584 Members | 2,804 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

c/c++ extensions and help()

Is there a way to make a c/c++ extension have a useful method
signature? Right now, help(myCFunc) shows up like:

myCFunc(...)
description of myCFunc

I'd like to be able to see:

myCFunc(myArg1, myArg2)
description of myCFunc
Is this currently possible?

Thanks,
Lenny G.

Jul 28 '05 #1
2 1071
Lenny G. wrote:
Is there a way to make a c/c++ extension have a useful method
signature? Right now, help(myCFunc) shows up like:

myCFunc(...)
description of myCFunc

I'd like to be able to see:

myCFunc(myArg1, myArg2)
description of myCFunc

Is this currently possible?


There really isn't a way to let the inspect module know about extension
function arguments. Just put it in the docstring.

--
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 <rk***@ucsd.edu > writes:
Lenny G. wrote:
Is there a way to make a c/c++ extension have a useful method
signature? Right now, help(myCFunc) shows up like:
myCFunc(...)
description of myCFunc
I'd like to be able to see:
myCFunc(myArg1, myArg2)
description of myCFunc
Is this currently possible?


There really isn't a way to let the inspect module know about
extension function arguments. Just put it in the docstring.


The next release of boost.python should do this automatically:

(http://mail.python.org/pipermail/c++...ly/009243.html)

help(rational.l cm)
Help on built-in function lcm:

lcm(...)
C++ signature:
lcm(int, int) -> int
help(rational.i nt().numerator)


Help on method numerator:

numerator(...) method of boost_rational_ ext.int instance
C++ signature:
numerator(boost ::rational<int> {lvalue}) -> int
Regards, Phil
Jul 31 '05 #3

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

Similar topics

1
8209
by: George Adams | last post by:
I like the idea of compiling DSO modules for Apache. It allows me to turn on or off things we may or may not need at a given time (like mod_ssl, mod_auth_mysql, mod_auth_ldap, etc.) and also allows me to compile in new versions of modules without having to rebuild Apache from scratch. Now, when I build PHP, I tend to put in a lot of things....
30
2003
by: Jive | last post by:
Can someone explain to me why Python 2.4 on MS Windows has these backward compatibility problems? What am I missing? Why won't extensions compiled to run with 2.3 also work with 2.4? Why does it matter whether a component was compiled with VC++ 6.0 or 7.1? I've been using MS stuff for 6 years. Before I started using Python, I don't...
3
7477
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work on her local machine. Everything looks pretty good. OpenLDAP/cygwin works great. PostgreSQL works great. Apache runs. PHP runs. But when I...
10
2518
by: musosdev | last post by:
Hi guys I'm trying to migrate to VS2005... I've managed to do that, but realised I'd opened my web projects as file projects, and I'm getting the error about network BIOS command limit. Anyway, I decided to have a go at loading them as web projects from our Win2k3 server. It gets so far and then says "The web server does not appear to...
2
1568
by: JT | last post by:
Hi, I apologize if this is posted in the wrong group or if this has been covered in the past. I didn't find anything in previous posts. I'm wondering how far the influence of the frontpage extensions extends. I would like to be able to put .net 2.0 web services on a web host in the directory that is created by visual studio. I would...
2
151641
by: antonyliu2002 | last post by:
I am testing AJAX. I've downloaded the AJAX Extension and the CTP December package and installed on BOTH my development machine and the production server. Then I created a very very simple web application, which contains a button and a label. When the button is clicked, some message is shown on the label. That's it. The AJAX works...
1
1804
by: Arthur Dent | last post by:
Hello all, I have a site which was a .NET 2.0 AJAX 1.0 site. I opened it up in VWDExpress 2008, and changed it to a 3.5 site, then subsequently changed it back to a 2.0 site (I didn't have time to figure out the subsequent C# compilers error in the web.config - which is strange BTW, since this is a VB site, not C#). Now, my references to...
2
2309
by: kelvin.koogan | last post by:
Our company has a mix of users with VS2003 & VS2005. I'm am having difficulty working out how components written with these 2 tools can be written together. I want to be able to a) incorporate a C++/CLI DLL written in VS2005 into a managed extensions app written with VS2003 and b) use a managed extensions DLL written with VS2003 in a C++/CLI...
1
2514
by: Yan | last post by:
Hi, I'm apparently far from being the 1st one to meet this error... My asp.net ajax page requires ScriptManager.axd but gets a 404. following a lot of "This is how I solved it" posts, I : - checked my web.config (copied below) - re-installed the ajax.net extensions - ran aspnet_regiis my application
0
6348
by: Adam Salisbury | last post by:
**To members of microsoft.public.dotnet.framework, apologies for the crosspost. I originally posted this message into that group however have since realised this may have been a better destination** Hi all, Wondering if anyone can help me out with an assemblies problem I'm having.
0
7897
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7829
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8189
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8330
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8198
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6587
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5379
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2336
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1438
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.