[Tutor] re module help

bodsda at googlemail.com bodsda at googlemail.com
Mon Jan 9 13:33:53 CET 2012


You could use read directly on the popen call to negate having to write to a file

output = os.popen(“sdptool -i hci0 search OPUSH“).read()

Bodsda
Sent from my BlackBerry® wireless device

-----Original Message-----
From: Ganesh Kumar <bugcy013 at gmail.com>
Sender: tutor-bounces+bodsda=googlemail.com at python.org
Date: Mon, 9 Jan 2012 14:47:46 
To: <tutor at python.org>
Subject: [Tutor] re module help

_______________________________________________
Tutor maillist  -  Tutor at python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list