Re: error: conversion to non-scalar type requested

Greg Ewing <[email protected]>
Newsgroups gmane.comp.python.pyrex
Organization University of Canterbury | Te Whare Wananga o Waitaha
Message-ID <[email protected]>
Daniele Pianu wrote:

> tmp = <in_addr>tmpinPtr[0]
>
> error: conversion to non-scalar type requested

You could try

   tmp = (<in_addr *>tmpinPtr)[0]

-- 
Greg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.