Re: Where is the collections module?

2007-07-22 Thread Calvin Spealman
Look in Modules/_collectionsmodule.c

Pretty much any built-in module will be named thusly.

On 7/22/07, Gordon Airporte [EMAIL PROTECTED] wrote:
 I was going to try tweaking defaultdict, but I can't for the life of me
 find where the collections module or its structures are defined. Python 2.5.
 --
 http://mail.python.org/mailman/listinfo/python-list



-- 
Read my blog! I depend on your acceptance of my opinion! I am interesting!
http://ironfroggy-code.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Where is the collections module?

2007-07-22 Thread Carsten Haese
On Sun, 2007-07-22 at 14:24 -0400, Gordon Airporte wrote:
 I was going to try tweaking defaultdict, but I can't for the life of me 
 find where the collections module or its structures are defined. Python 2.5.

It's written in C. You'll find it in the Python2.5 source code
at /path/to/source/Modules/collectionsmodule.c

-- 
Carsten Haese
http://informixdb.sourceforge.net


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Where is the collections module?

2007-07-22 Thread Gordon Airporte
Gordon Airporte wrote:
 I was going to try tweaking defaultdict, but I can't for the life of me 
 find where the collections module or its structures are defined. Python 
 2.5.

Thanks all. I was expecting it in Python. Time to dust off my C :-P
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Where is the collections module?

2007-07-22 Thread Jerry Hill
On 7/22/07, Gordon Airporte [EMAIL PROTECTED] wrote:
 Gordon Airporte wrote:
  I was going to try tweaking defaultdict, but I can't for the life of me
  find where the collections module or its structures are defined. Python
  2.5.

 Thanks all. I was expecting it in Python. Time to dust off my C :-P

If you'd rather work with a pure python implementation, Jason Kirtland
has written one on the Python Cookbook:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/523034

-- 
Jerry
-- 
http://mail.python.org/mailman/listinfo/python-list