Old 01-06-2007, 11:31 PM   #1 (permalink)
SuperKenshin's Servent
 
AtomSlap's Avatar
 
Join Date: Nov 2006
Posts: 1,028
Reputation: 32
Default Python Help

Quote:
def buildConnectionString(params):
"""Build a connection string from dictionary of parameters

Returns string."""
return ";".join(["%s=%s" % (k, v) for k, v in params.items()l)
if_name_== "_main_":
myParams = {"server":"mpilgrim", \
"database":"master", \
"uid":"sa:, \
"pwd":"secret" \
print buildConnectionString(myParams)
When I run this code in PythonWin (ActiveState ActivePython 2.4) it says:

Quote:
"Error - Could not save file"
"[Errno2] No such file or directory:" "
Anyways, I get what it means by No such file or directory, but why is it doing this?

Sorry if this is an idiotic question. I'm new to this -.-

Got to start somewhere I s'pose.
AtomSlap is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:57 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0
OnRPG, Copyright ©2003-2011, Game Entertainment Enterprises