MCPcopy Create free account
hub / github.com/ipython/ipython / Tk

Class Tk

IPython/core/tests/test_inputtransformer2.py:249–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247 be careful that empty token like dedent are not counted as parens
248 """
249 class Tk:
250 def __init__(self, s):
251 self.string = s
252
253 nt.assert_equal(_find_assign_op([Tk(s) for s in ('','a','=','b')]), 2)
254 nt.assert_equal(_find_assign_op([Tk(s) for s in ('','(', 'a','=','b', ')', '=' ,'5')]), 6)

Callers 4

tkinter_clipboard_getFunction · 0.85
enableMethod · 0.85
gui-tk.pyFile · 0.85

Calls

no outgoing calls

Tested by 1