Could someone help me translate to something that would close to it in
python? The anonymous functions are giving me problems.
var dataListener = {
data : "",
onStartRequest: function(reques t, context){},
onStopRequest: function(reques t, context, status){
instream.close( );
outstream.close ();
listener.finish ed(this.data);
},
onDataAvailable : function(reques t, context, inputStream, offset,
count){
this.data += instream.read(c ount);
},
};
python? The anonymous functions are giving me problems.
var dataListener = {
data : "",
onStartRequest: function(reques t, context){},
onStopRequest: function(reques t, context, status){
instream.close( );
outstream.close ();
listener.finish ed(this.data);
},
onDataAvailable : function(reques t, context, inputStream, offset,
count){
this.data += instream.read(c ount);
},
};
Comment