Re: Need Help with Python/C API

2006-01-19 Thread Paul Watson
pycraze wrote: > Hi guys, > > I Need to know how do i create a dictionary... eg: > n = pali_hash > n={} > n={1:{ } } -> i need to know how to make a key of a dictionary, to a > dictionary using Python/C API's It looks like you are asking how to create a dictionary (hash). If it is more t

Re: Need Help with Python/C API

2006-01-19 Thread Carsten Haese
On Thu, 2006-01-19 at 00:44, pycraze wrote: > Hi guys, > > I Need to know how do i create a dictionary... eg: > n = pali_hash > n={} > n={1:{ } } -> i need to know how to make a key of a dictionary, to a > dictionary using Python/C API's You can either use Py_BuildValue (See http://docs.py

Re: Need Help with Python/C API

2006-01-19 Thread Doru-Catalin Togea
On Thu, 18 Jan 2006, pycraze wrote: Hi! I don't really understand what you need/want. Can you explain in more details? >I Need to know how do i create a dictionary... eg: > n = pali_hash > n={} > n={1:{ } } -> i need to know how to make a key of a dictionary, to a > dictionary using Pyth

Need Help with Python/C API

2006-01-18 Thread pycraze
Hi guys, I Need to know how do i create a dictionary... eg: n = pali_hash n={} n={1:{ } } -> i need to know how to make a key of a dictionary, to a dictionary using Python/C API's Pls do help -- http://mail.python.org/mailman/listinfo/python-list