www/src/py_builtin_functions.js
function input(msg) {
    var stdin = ($B.imported.sys && $B.imported.sys.stdin || $B.stdin);
    if(stdin.__original__){return prompt(msg || '') || ''}
    msg = msg || ""
    if(msg){
        $B.stdout.write(msg)
    }
    stdin.msg = msg
    var val = $B.$getattr(stdin, 'readline')()
    val = val.split('\n')[0]
    if(stdin.len === stdin.pos){
        $B.$getattr(stdin, 'close')()
    }
    // $B.stdout.write(val+'\n'); // uncomment if we are to mimic the behavior in the console
    return val
}
function input(msg) {
    var stdin = ($B.imported.sys && $B.imported.sys.stdin || $B.stdin);
    if(stdin.__original__){return prompt(msg || '') || ''}
    msg = msg || ""
    if(msg){
        $B.stdout.write(msg)
    }
    stdin.msg = msg
    var val = $B.$getattr(stdin, 'readline')()
    val = val.split('\n')[0]
    if(stdin.len === stdin.pos){
        $B.$getattr(stdin, 'close')()
    }
    // $B.stdout.write(val+'\n'); // uncomment if we are to mimic the behavior in the console
    return val
}
function input ( msg ) { var stdin = ( $B . imported . sys && $B . imported . sys . stdin || $B . stdin ) ; if ( stdin . __original__ ) { return prompt ( msg || '' ) || '' } msg = msg || "" if ( msg ) { $B . stdout . write ( msg ) } stdin . msg = msg var val = $B . $getattr ( stdin , 'readline' ) ( ) val = val . split ( '\n' ) [ 0 ] if ( stdin . len === stdin . pos ) { $B . $getattr ( stdin , 'close' ) ( ) } // $B.stdout.write(val+'\n'); // uncomment if we are to mimic the behavior in the console return val }
not a direct alias of prompt: input has no default value
not a direct alias of prompt : input has no default value