raw_input just continues anyway?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Tue Apr 3 11:45:48 EDT 2007


In <1175611910.685578.246780 at w1g2000hsg.googlegroups.com>,
oliver at obeattie.com wrote:

> if __name__ == "__main__":
> 	bucket_name = raw_input('Name of the bucket you wish the files to be
> placed into? ')
> 	update_s3()
> 
> 
> Basically I pipe some files into the script - so would this cause a
> linebreak?

Yes of course.  `raw_input()` is reading from `stdin` so the very first
line you pipe in will be assigned to `bucket_name`.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list