#1
  1. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    155

    Not enough Arguments?


    It's been a while since I've worked on an actual program in Python since I've been using C++ lately. So forgive me if this is an easily solvable problem. Here is the error code with the error description.

    Code:
    self.SetStatusText("YeggBot - %s/%s/%s/%s" % self.account, self.password, self.product, self.server)
    TypeError: not enough arguments for format string
    Incase it may matter, all four variabes *do* have string variables.

    Update: Stupid me, I forgot the parenthesis around the string arguments. For some reason I no longer have my delete post options.
    Last edited by †Yegg†; November 19th, 2005 at 01:01 PM.
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2005
    Posts
    620
    Rep Power
    65

    Smile


    That's why they call you the "SmartOne"! You could practise with Lisp!

    Comments on this post

    • LinuxPenguin agrees : Haha, smooth :p
    • netytan agrees : Hey, Lisp rocks :).
  4. #3
  5. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    155
    Thank you.
  6. #4
  7. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    In case anyone was looking for the answer to this Q, you need to put the values to interpolate into a list or tuple if there's more than one .
    programming language development: www.netytan.com Hula

  8. #5
  9. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    155
    Originally Posted by netytan
    In case anyone was looking for the answer to this Q, you need to put the values to interpolate into a list or tuple if there's more than one .
    That's pretty much what I said, only in a more sophisticated manner. I mentioned that I forgot to include the parenthesis around the variables I wished to include within the string.
  10. #6
  11. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Originally Posted by †Yegg†
    That's pretty much what I said, only in a more sophisticated manner. I mentioned that I forgot to include the parenthesis around the variables I wished to include within the string.
    I'm sorry Yegg, I must have missed the edit that appeared their nearly an hour after my reply. I apologise my friend, but that is pretty childish .

    Mark.

    Comments on this post

    • Yegg` agrees : That's okay. :D
    programming language development: www.netytan.com Hula


IMN logo majestic logo threadwatch logo seochat tools logo