@@ -76,7 +76,7 @@ func (it *Generator) M__next__() Object{
7676// without yielding another value. When send() is called to start the
7777// generator, it must be called with None as the argument, because
7878// there is no yield expression that could receive the value.
79- func (it * Generator ) Send (value Object ){
79+ func (it * Generator ) Send (value Object ) Object {
8080panic ("generator send not implemented" )
8181}
8282
@@ -88,7 +88,7 @@ func (it *Generator) Send(value Object){
8888// StopIteration exception is raised. If the generator function does
8989// not catch the passed-in exception, or raises a different exception,
9090// then that exception propagates to the caller.
91- func (it * Generator ) Throw (args Tuple , kwargs StringDict ){
91+ func (it * Generator ) Throw (args Tuple , kwargs StringDict ) Object {
9292panic ("generator throw not implemented" )
9393}
9494
@@ -102,9 +102,9 @@ func (it *Generator) Throw(args Tuple, kwargs StringDict){
102102// generator raises any other exception, it is propagated to the
103103// caller. close() does nothing if the generator has already exited
104104// due to an exception or normal exit.
105- func (it * Generator ) Close (){
105+ func (it * Generator ) Close () Object {
106106panic ("generator close not implemented" )
107107}
108108
109109// Check interface is satisfied
110- var _ I_iterator = (* Generator )(nil )
110+ var _ I_generator = (* Generator )(nil )
0 commit comments