Using C struct in Python

Sudheer Gupta sudheerb at netapp.com
Thu Jun 8 07:51:11 EDT 2006


Dennis Lee Bieber wrote:
> On Wed, 07 Jun 2006 17:35:58 -0400, Sudheer Gupta <sudheerb at netapp.com>
> declaimed the following in comp.lang.python:
>
>
>   
>> print cp
>> print cp.next
>>
>>     
There is a typo in this. Second statement was suppose to be     cp = 
cp.next.
I corrected it latter with the second email.
> 	What happens if you keep adding
> print cp.next
> 	statements (say 50 or more of them).
>
> 	Your error message might indicate that you ran out of "cp.next"
> /values/ (ie: the last valid item in the chain of cp's does not have a
> next link at all, rather than a next link that contains null)
>   



More information about the Python-list mailing list