Windows Interpreter

Victor Subervi victorsubervi at gmail.com
Tue Jul 29 09:26:34 EDT 2008


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.
TIA,
Victor

On 7/29/08, Tim Golden <mail at timgolden.me.uk> wrote:
>
> Victor Subervi wrote:
>
>> Hi:
>> I would like to make my windows python interpreter work like my linux one.
>> I want to be able to cut and paste multiple lines of code.
>>
>
> You can already do this: what are you trying which isn't working?
>
> Now I can only paste one line at a time. I do not want it to indent
>> automatically. How can I change this?
>>
>
> I realise this is a difficult thing to describe in words,
> but I regularly cut and paste multiple lines of code
> into my Python interpreter and it doesn't indent automatically. Can you
> give some specific examples of what you do and what does or doesn't work?
>
> TJG
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080729/49c6ede4/attachment-0001.html>


More information about the Python-list mailing list