Flexible Evaluate Selection

Author: Joon Ro

Description: This script adds several convenient commands related to evaluation.

The following commands provide flexible evaluate-selection. They use "evaluate-sel-in-shell/-in-debug-probe(whole_lines = True)" if nothing is selected or more than one lines are selected, but they use "evaluate-sel-in-shell/-in-debug-probe(whole_lines = False)" when only part of a line is selected. I found this convenient since frequently I want to evaluate only a part of a line but still I want to be able to evaluate the whole line without any selection.

The following command provides Python shell counterpart of the "Debug to Cursor".

URL: https://github.com/joonpy/Wing-IDE-Scripts/blob/master/evaluation.py

FlexibleEvaluateSelection (last edited 2011-03-06 06:38:02 by joon)

Disclaimer: This wiki is maintained by a community of volunteers. Wingware makes no warranty for the accuracy, fitness for a purpose, or safety of any code or information provided on this site. Please report abuse to support at wingware dot com.