Hi Alex,
Thanks for your reply. It was exactly what I was looking for. Two
additional questions
1) Is there anyway to find out which modules a variable belongs to
when I have only its name (and its not qualified with the complete
name like module.varname)
2) Is there anyway to find the type of
MD wrote:
Hi Alex,
Thanks for your reply. It was exactly what I was looking for. Two
additional questions
1) Is there anyway to find out which modules a variable belongs to
when I have only its name (and its not qualified with the complete
name like module.varname)
No.
2) Is there
MD [EMAIL PROTECTED] wrote:
Hi Alex,
Thanks for your reply. It was exactly what I was looking for. Two
additional questions
1) Is there anyway to find out which modules a variable belongs to
when I have only its name (and its not qualified with the complete
name like module.varname)
Hi Alex,
Thanks for the answer. Are there any C defines (for e.g. STRING,
BOOLEAN) corresponding to each Python type?
Thanks,
-Manas
On Jul 16, 9:53 am, [EMAIL PROTECTED] (Alex Martelli) wrote:
MD [EMAIL PROTECTED] wrote:
Hi Alex,
Thanks for your reply. It was exactly what I was
MD [EMAIL PROTECTED] writes:
2) Is there anyway to find the type of the object in C using something
like a switch statement? I was looking for something like this
switch type(object) {
STRING: This is a string object;
break;
INTEGER: This is an integer object;
MD [EMAIL PROTECTED] wrote:
Hi Alex,
Thanks for the answer. Are there any C defines (for e.g. STRING,
BOOLEAN) corresponding to each Python type?
No, I know of no such defines -- what good would they do?
Alex
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I would like to access variables defined in my Python program in
a C module extension for Python. Is this possible? I looked at the
Python C API reference but didn't find anything there that could help
me.
Thanks in advance for any help/tips.
Regards,
-MD
--
MD [EMAIL PROTECTED] wrote:
Hi,
I would like to access variables defined in my Python program in
a C module extension for Python. Is this possible? I looked at the
Python C API reference but didn't find anything there that could help
me.
If they're global variables of a certain module