Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Does python have an internal list/dictionary of functions?

Reply
Thread Tools

Does python have an internal list/dictionary of functions?

 
 
Carl J. Van Arsdall
Guest
Posts: n/a
 
      02-16-2006
Python Gurus:

Let me elaborate a bit more on this question. Basically, I want to know
if there is some data structure in python that maps a string function
name to an address of a function or something to that nature.

If this is confusing, let me describe what I want to do and see if
anyone has any ideas.

basically we have:

>>>def functA():

.... pass

>>> functA

<function functA at 80db128>

And what I'd like to do is:

>>>__internalFuncDict__['functA']

<function functA at 80db128>

This is just for a little experimental project of mine, any help or
pointers to the proper pages in the manual would be greatly
appreciated. Basically, I know that I can create something like this if
I have to but I was very much hoping that something already existed
somewhere that I could get to via python or by writing a C extension.

Thanks in advance!

-carl


--

Carl J. Van Arsdall
http://www.velocityreviews.com/forums/(E-Mail Removed)
Build and Release
MontaVista Software

 
Reply With Quote
 
 
 
 
Raymond Hettinger
Guest
Posts: n/a
 
      02-16-2006
[Carl J. Van Arsdall]
> basically we have:
>
> >>>def functA():

> ... pass
>
> >>> functA

> <function functA at 80db128>
>
> And what I'd like to do is:
>
> >>>__internalFuncDict__['functA']

> <function functA at 80db128>


globals()['functA']

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does python have an internal data structure with functions importedfrom a module? Carl J. Van Arsdall Python 4 02-18-2006 05:01 AM
Cisco PIX 501 - Port forwarded to an internal host via Static NAT doesn't work from internal host JoelSeph Cisco 9 01-23-2006 03:52 PM
Internal Client Accessing Internal Server Via Public IP Address GeekMarine1972 Cisco 1 01-15-2005 02:49 AM
Redirect Internal IP to Different Internal IP on Same Subnet & Interface EG Cisco 5 12-30-2004 02:10 AM
internal to internal NAT? Mike Cisco 1 04-21-2004 12:15 PM



Advertisments