[Python-checkins] python/dist/src/Doc/ext noddy2.c,NONE,1.1 noddy3.c,NONE,1.1 newtypes.tex,1.21,1.22

Jim Fulton jim@zope.com
Thu, 08 May 2003 06:40:42 -0400


Michael Hudson wrote:
> dcjim@users.sourceforge.net writes:
> 
> 
>>Update of /cvsroot/python/python/dist/src/Doc/ext
>>In directory sc8-pr-cvs1:/tmp/cvs-serv13294
>>
>>Modified Files:
>>	newtypes.tex 
>>Added Files:
>>	noddy2.c noddy3.c 
>>Log Message:
>>Rewrote the basic section of the chapter on defining new types.
> 
> 
> As the original author of this section, thank you!

You're welcome. :)

My main reason for doing this was to learn the material myself.
(I had the luxury of sitting next to Guido as I did it and bugging
him with questions. :)

> Do you mention anywhere that this only works for 2.2 and up?  That
> might be an idea.

OK, I'll add that in the introduction. It was *already* dependent on
Python 2.3 due to the use of PyMODINIT_FUNC as the type of the init function.
I'm not sure why this is needed rather than void. Maybe I should change this
so it works with Python 2.2. I'll talk to Guido and Fred about this.


 >  Also:
> 
> [...]
> 
>>  That wasn't so hard, was it?
>>  
>>+ Of course, the current Noddy type is pretty uninteresting. It has no
>>+ data and doesn't do anything. It can't even be subclasses.
> 
>                                                    ^^^^^^^^^^

Fixed. Thanks.

Jim


-- 
Jim Fulton           mailto:jim@zope.com       Python Powered!
CTO                  (703) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org