Windows Interpreter

Terry Reedy tjreedy at udel.edu
Tue Jul 29 16:00:40 EDT 2008



Tim Golden wrote:
> Victor Subervi wrote:
>> def a():
>>   chars = ['\\i0', '\\u0', '\\qc', '\\b0', '\\ql', '\\i', '\\u', 
>> '\\b', '\\yz']
>>   rtf_markup = 'viewkind4\uc1\pard\nowidctlpar\qc\i\f0\fs36 Who is 
>> like the Beast? Who can wage war against him?\par'
>>   for char in chars:
>>     c = '(?<=' + char + ')'
>>     test = re.search(c, rtf_markup)
>>     try:
>>       junk = test.group(0)
>>       print char
>>     except:
>>       pass
>>
>> Now, I can paste that entire fn in linux. But in windows I have to 
>> paste it line_by_line. Pain in butt! And it indents automatically. How 
>> change that behavior.
> 
> Well, I'm not really sure what to say. I've just copied that
> whole section with drag-mouse, Ctrl-C. I then opened a new
> interpreter window (effectively, Start > Run > python) and
> right-clicked over the window. At this point, the lines I
> copied were copied in and the function accepted by the
> interpreter.
> 
> I do have QuickEdit on by default in all by console windows,
> but the only difference I expect that to make is that you'd
> otherwise have to use the window's System Menu (Alt-Space,
> Edit, Paste).

I have to right-click on the title bar (or left-click on the icon on the 
title bar), select edit and then select paste -- but it does work.

I just found the QuickEdit option.  While in an administrator account 
(if Python is installed for all users), bring up the menu as specified 
above, select Properties instead, then the Options tab, then select 
QuickEdit on the right.  When clicking OK, being admin allows 
modification of the shortcut and not just the current window.

Learn something new every day.  Thanks.

Terry Jan Reedy





More information about the Python-list mailing list