Python 3.5 CALL_FUNCTION_VAR handling

This commit is contained in:
rocky
2018-03-26 07:42:15 -04:00
parent 710c950965
commit 74f01fbe33
4 changed files with 29 additions and 15 deletions

View File

@@ -1,6 +1,8 @@
# From sql/schema.py and 3.5 _strptime.py
# Note that kwargs comes before "positional" args
# RUNNABLE!
def tometadata(self, metadata, schema, Table, args, name=None):
table = Table(
name, metadata, schema=schema,
@@ -23,16 +25,18 @@ def Time2Internaldate(date_time):
assert Time2Internaldate(time.localtime())
# From 3.5.5 tkinter/dialog.py
def test_varargs0_ext(self):
def test_varargs0_ext():
try:
{}.__contains__(*())
except TypeError:
pass
test_varargs0_ext()
# From 3.4.6 tkinter/dialog.py
# Bug is in position of *cnf.
def __init__(self, master=None, cnf={}):
def __init__(self, cnf={}):
self.num = self.tk.call(
'tk_dialog', self._w,
cnf['title'], cnf['text'],