Thank you very much. I should have added that I did that and it ran. I had
one other error in the script thta I missed. I fixed that and it ran, then
I named them as recommended and it still works and fits better with
conventions, so I learned two things.
On Fri, Jun 3, 2011 at 1:05 AM, Alan Ga
> class Log_Parser:
It is highly recommended that you use new-style classes which would be
class Log_Parser(object):
Ramit
Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423
This communication is for informa
"Becky Mcquilling" wrote
The Second script written here, always raises the exception and I'm
missing
why, any advice?
class Log_Parser:
def __init__(self):
self.re_backup_status = re.compile(r'^\s+Files\s+:\s+\d',
re.IGNORECASE)
def log_parse(self, log_file):
try:
"T MURPHY" wrote
how do i go about creating a class in python.
class C: pass
is the simplest way.
But it's not very useful, being empty.
But most tutorials discuss OOP, which one are you using?
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
__
On Wed, Oct 6, 2010 at 4:16 AM, T MURPHY wrote:
> how do i go about creating a class in python.
By using the "class" keyword.
Example:
class Fruit(object):
def __init__(self, name)
self.name = name
class Apple(Fruit):
def __init__(self):
super(Apple, self).__init__("apple")