Skip to content

Parameterless Function raises TypeError #62

@ikotler

Description

@ikotler

def f(): return 2 -> 1 -> f
RAISES:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/Pythonect-0.4.1.post15-py2.7.egg/pythonect/internal/eval.py", line 515, in __run
    ignore_iterables, resources)
  File "/usr/local/lib/python2.7/dist-packages/Pythonect-0.4.1.post15-py2.7.egg/pythonect/internal/eval.py", line 425, in __eval_single_object
    __run(expression[1:], copy.copy(globals_), copy.copy(locals_), return_value_queue, True)
  File "/usr/local/lib/python2.7/dist-packages/Pythonect-0.4.1.post15-py2.7.egg/pythonect/internal/eval.py", line 515, in __run
    ignore_iterables, resources)
  File "/usr/local/lib/python2.7/dist-packages/Pythonect-0.4.1.post15-py2.7.egg/pythonect/internal/eval.py", line 425, in __eval_single_object
    __run(expression[1:], copy.copy(globals_), copy.copy(locals_), return_value_queue, True)
  File "/usr/local/lib/python2.7/dist-packages/Pythonect-0.4.1.post15-py2.7.egg/pythonect/internal/eval.py", line 515, in __run
    ignore_iterables, resources)
  File "/usr/local/lib/python2.7/dist-packages/Pythonect-0.4.1.post15-py2.7.egg/pythonect/internal/eval.py", line 373, in __eval_single_object
    output, ignore_iterables, stop_calculation = __handle_special_outputs(output, locals_, globals_, ignore_iterables)
  File "/usr/local/lib/python2.7/dist-packages/Pythonect-0.4.1.post15-py2.7.egg/pythonect/internal/eval.py", line 310, in __handle_special_outputs
    output = __apply_output_to_input(output, input_, locals_, globals_)
  File "/usr/local/lib/python2.7/dist-packages/Pythonect-0.4.1.post15-py2.7.egg/pythonect/internal/eval.py", line 286, in __apply_output_to_input
    output = output(input_)
TypeError: f() takes no arguments (1 given)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions