How to get mac address of bluetooth with python in win7?

2014-08-07 Thread elearn
How to get mac address of bluetooth with python in win7? -- https://mail.python.org/mailman/listinfo/python-list

more simple to split the string?

2014-08-07 Thread elearn
str='(\\HasNoChildren \\Junk) "/" "[Gmail]/&V4NXPpCuTvY-"' x=str.split(' "') [i.replace('"','') for i in x] ['(\\HasNoChildren \\Junk)', '/', '[Gmail]/&V4NXPpCuTvY-'] x.strip(" ") will create four parts. is there more simple to do that ? -- https://mail.python.org/mailman/listinfo/python-list

why i can not delete my email with imaplib?

2014-08-06 Thread elearn
I have a gmail account 'x...@gmail.com' which subscripted python maillist. I want to delete any emails which is sent to python-list@python.org . |import imaplib user="xxx" password="yy" con=imaplib.IMAP4_SSL('imap.gmail.com') con.login(user,password) con.select('[Gmail]/&YkBnCZCuTvY-') typ

Re: How to delete letters automatically with imaplib?

2014-08-06 Thread elearn
and how to write the delete command with imaplib? On 8/6/2014 5:14 PM, Ben Finney wrote: elearn writes: status, data= con.search(None, "ALL") print(len(data[0].split())) 48 typ, data= con.search(None, 'Body', '"x...@gmail.com"') data [b'

How to delete letters automatically with imaplib?

2014-08-06 Thread elearn
I have a gmail account 'x...@gmail.com' which subscripted python maillist. To take part in python discussion is the only target for my x...@gmail.com. There are so many emails in my x...@gmail.com,it is a good idea for me to auto delete all emails whose body contain no . I write some codes to d

how to call back a method ?

2014-08-03 Thread elearn
I want to call back a function which is the method of a class . def callback(self.do,x): return(self.do(x)) That is what i want to write,when i input def callback(self.do,x): error message: File "", line 1 def callback(self.do,x): ^ Synt