Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

how to cut and paste in the windows of python(command line)

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


tcfg at sina

Jul 24, 2008, 4:17 AM

Post #1 of 5 (187 views)
Permalink
how to cut and paste in the windows of python(command line)

Dear all:

The mouse cannot be responded in the windows of python(command
line) and cut and paste cannot be done. ctrl c and ctrl v do not work.
But they do work in IDLE.
please teach me about the python(command line).
--
http://mail.python.org/mailman/listinfo/python-list


andre.roberge at gmail

Jul 24, 2008, 4:48 AM

Post #2 of 5 (171 views)
Permalink
Re: how to cut and paste in the windows of python(command line) [In reply to]

On Jul 24, 8:17 am, fang <t...@sina.com> wrote:
> Dear all:
>
>       The mouse cannot be responded in the windows of python(command
> line) and cut and paste cannot be done. ctrl c and ctrl v do not work.
> But they do work in IDLE.
>       please teach me about the python(command line).

What Operating System are you using? If you are using Windows, you
could try cutting and pasting from the menu (I am assuming you are
using a normal terminal windows).

André
--
http://mail.python.org/mailman/listinfo/python-list


fredrik at pythonware

Jul 24, 2008, 4:48 AM

Post #3 of 5 (171 views)
Permalink
Re: how to cut and paste in the windows of python(command line) [In reply to]

fang wrote:
> The mouse cannot be responded in the windows of python(command
> line) and cut and paste cannot be done. ctrl c and ctrl v do not work.
> But they do work in IDLE.

that has absolutely nothing to do with Python, and everything to do with
what console or terminal program you're using.

if you're using windows, you'll find edit commands, including copy and
paste, commands in the window menu (click on the icon in the upper left
corner). Python also supports the standard "doskey" commands (text+F8
to search in history, UP/DOWN to recall commands, ESC to clear, etc).

if you want better console support, consider installing the "ipython"
shell:

http://ipython.scipy.org/moin/

</F>

--
http://mail.python.org/mailman/listinfo/python-list


asmodai at in-nomine

Jul 24, 2008, 4:59 AM

Post #4 of 5 (171 views)
Permalink
Re: how to cut and paste in the windows of python(command line) [In reply to]

-On [20080724 13:50], Fredrik Lundh (fredrik [at] pythonware) wrote:
>if you want better console support, consider installing the "ipython"
>shell:

Unless you work with non-ASCII. Ipython mangles non-ASCII unfortunately.

[Full UTF-8 environment]

In [1]: a = u'æ„›'
In [2]: a
Out[2]: u'\xe6\x84\x9b'

Normal python shell:

>>> a = u'æ„›'
>>> a
u'\u611b'

I wonder if it can be easily fixed with a getpreferredencoding() or by using
an .encode(sys.stdout.encoding or getpreferredencoding() or 'ascii',
'replace') triplet.

--
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
One who knows that enough is enough will always have enough...
--
http://mail.python.org/mailman/listinfo/python-list


tcfg at sina

Jul 24, 2008, 5:27 AM

Post #5 of 5 (171 views)
Permalink
Re: how to cut and paste in the windows of python(command line) [In reply to]

Dear:

Thank you very much! I can do it! It's very nice!
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.