Re: [Tutor] Removing Content from Lines....

2016-03-26 Thread Dimitar Ivanov
Hello everyone, First time using the mailing list to give a suggestion, apologies in advance if it's not appropriate :) Considering you're looking for specific string, I'd recommend maybe looking into the Regular Expressions. You could use something like: #At the top of the file import re #With

[Tutor] Creating an object which is an extension of a dictionary

2016-03-26 Thread Ian Winstanley
I'm attempting to create an object which can have elements which can be referenced like a dictionary but can also have normal methods and attributes like a conventional object but can also be referenced with key items using d[key] The dictionary I have is below: UPPERCASE = "ucase" LOWERCASE = "l

Re: [Tutor] Removing Content from Lines....

2016-03-26 Thread Alan Gauld
On 26/03/16 10:08, Dimitar Ivanov wrote: > First time using the mailing list to give a suggestion, apologies in > advance if it's not appropriate :) Join the gang, any suggestions are appropriate since even when they aren't completely correct they offer learning opportunities. So all contribution

Re: [Tutor] Creating an object which is an extension of a dictionary

2016-03-26 Thread Alan Gauld
On 26/03/16 11:35, Ian Winstanley wrote: > I'm attempting to create an object which can have elements which can be > referenced like a dictionary but can also have normal methods and > attributes like a conventional object but can also be referenced with key > items using d[key] I think you are lo

Re: [Tutor] python smtplib 'Message denied - From address spoofing attempt detected via SMTP

2016-03-26 Thread nitin chandra
So I requested the error_logs once again, and this is what was given by the services provider. Still no luck. Apache Log : send: 'ehlo cp-in-9.webhostbox.net\r\n' reply: '250-cp-in-9.webhostbox.net Hello cp-in-9.webhostbox.net [111.118.215.222]\r\n' reply: '250-SIZE 52428800\r\n' reply: '250-8B