Python Forum
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unexpected argument
#7
I can't run this as I don't use MySql, but I think
changing:
cls.__instance = super(MysqlPython, cls).__new__(cls, *args, **kwargs)
to:
cls.__instance = super(MysqlPython, self).__new__(cls, *args, **kwargs)
may be the issue
Reply


Messages In This Thread
Unexpected argument - by jstockton - Feb-20-2017, 05:53 PM
RE: Unexpected argument - by Larz60+ - Feb-20-2017, 06:20 PM
RE: Unexpected argument - by jstockton - Feb-20-2017, 06:24 PM
RE: Unexpected argument - by Larz60+ - Feb-20-2017, 06:26 PM
RE: Unexpected argument - by jstockton - Feb-20-2017, 06:37 PM
RE: Unexpected argument - by snippsat - Feb-20-2017, 06:44 PM
RE: Unexpected argument - by jstockton - Feb-20-2017, 06:52 PM
RE: Unexpected argument - by Larz60+ - Feb-20-2017, 06:49 PM
RE: Unexpected argument - by jstockton - Feb-21-2017, 01:27 AM
RE: Unexpected argument - by Larz60+ - Feb-20-2017, 08:28 PM
RE: Unexpected argument - by Larz60+ - Feb-21-2017, 02:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Django "Unexpected Keyword Argument 'min_value'" AstralWeeks 0 273 Mar-27-2024, 04:56 AM
Last Post: AstralWeeks
  TypeError: __init__() got an unexpected keyword argument 'value' Anldra12 7 22,805 May-11-2021, 06:35 PM
Last Post: deanhystad
  TypeError: coerce_kw_type() got an unexpected keyword argument 'dest' juniii 1 2,459 Apr-24-2020, 01:53 PM
Last Post: Jeff900
  SyntaxError: positional argument follows keyword argument syd_jat 3 5,884 Mar-03-2020, 08:34 AM
Last Post: buran
  __call__() got an unexpected keyword argument 'text' saba_keon 5 9,437 Apr-07-2018, 11:11 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020