[Tutor] Callable? Whats callable?
alan.gauld@bt.com
alan.gauld@bt.com
Sun, 26 Aug 2001 16:47:04 +0100
------_=_NextPart_001_01C12E46.5A93D230
Content-type: text/plain; charset="ISO-8859-1"
Aplogies all, I hit CTRL ENTER which send the message in Lookout...
Most of it was already written so I'm not going to redo it all,
just say sorry...
Alan G
I'm new to programming, python, and even this list! So hopefullt someone
could give me a hand with my first program.
x = in_file.read()
y = """%s""" (x)
text = re.compile('url=(\w*)&', re.IGNORECASE)
Traceback (most recent call last):
File "F:\Python21\reusage.py", line 10, in ?
y = """%s""" (x)
TypeError: object of type 'string' is not callable
------_=_NextPart_001_01C12E46.5A93D230
Content-type: text/html; charset="ISO-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META content="MSHTML 5.00.3013.2600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff face="Courier New" size=2><SPAN
class=280234815-26082001>Aplogies all, I hit CTRL ENTER which send the message
in Lookout...</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Courier New" size=2><SPAN
class=280234815-26082001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face="Courier New" size=2><SPAN
class=280234815-26082001>Most of it was already written so I'm not going to redo
it all,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Courier New" size=2><SPAN
class=280234815-26082001>just say sorry...</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Courier New" size=2><SPAN
class=280234815-26082001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face="Courier New" size=2><SPAN
class=280234815-26082001>Alan G</SPAN></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV><FONT face=Arial size=2>I'm new to programming, python, and even this
list! So hopefullt someone could give me a hand with my first
program.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial><FONT size=2>x = in_file.read()<BR>y =
"""%s""" (x)<BR>text = re.compile('url=(\w*)&', re.IGNORECASE)<FONT
color=#0000ff></FONT><FONT size=2><FONT face="Courier New"><SPAN
class=280234815-26082001> </SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><FONT
face="Courier New"><SPAN
class=280234815-26082001> </SPAN><BR></FONT></FONT></FONT></FONT><FONT
face=Arial size=2>Traceback (most recent call last):<BR> File
"F:\Python21\reusage.py", line 10, in ?<BR> y =
"""%s""" (x)<BR>TypeError: object of type 'string' is not
callable</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C12E46.5A93D230--