Re: Python Shell in Russian exists/possible??

2016-10-11 Thread Андрей Логунов
среда, 12 октября 2016 г., 4:29:02 UTC+10 пользователь Michael Torrie написал: > On 10/11/2016 05:33 AM, Андрей Логунов wrote: > > I need the Python Shell for use in education (turtle graphics, etc.), > > but the UI must be localized in the Russian language. The question is >

Re: Python Shell in Russian exists/possible??

2016-10-11 Thread Michael Torrie
On 10/11/2016 05:33 AM, Андрей Логунов wrote: > I need the Python Shell for use in education (turtle graphics, etc.), > but the UI must be localized in the Russian language. The question is > if it's at all possible to feed the strings in or rebuild it or... For educational purpo

Re: Python Shell in Russian exists/possible??

2016-10-11 Thread Steve D'Aprano
On Tue, 11 Oct 2016 10:33 pm, Андрей Логунов wrote: > I need the Python Shell for use in education (turtle graphics, etc.), but > the UI must be localized in the Russian language. The question is if it's > at all possible to feed the strings in or rebuild it or... Yes it is possi

Python Shell in Russian exists/possible??

2016-10-11 Thread Андрей Логунов
I need the Python Shell for use in education (turtle graphics, etc.), but the UI must be localized in the Russian language. The question is if it's at all possible to feed the strings in or rebuild it or... -- https://mail.python.org/mailman/listinfo/python-list

Re: A simple print cannot run in Python Shell

2015-06-01 Thread Tim Golden
On 01/06/2015 09:30, Steven D'Aprano wrote: > How do you run it in Windows 7? The hashbang line > > #!/usr/bin/python > > is for Linux and Unix, and won't work on Windows. So you must be doing > something to execute the file. What is that? Actually, it will for anywhere with a recent Python

Re: A simple print cannot run in Python Shell

2015-06-01 Thread Steven D'Aprano
errors usually include a line pointing to the location of the error, or just past it: py> print foo File "", line 1 prin foo ^ SyntaxError: invalid syntax Notice the line with the ^ caret? > What is the problem? Why does it behave different at .py file > an

Re: A simple print cannot run in Python Shell

2015-06-01 Thread Jussi Piitulainen
fl writes: > When I run the following command in a Python 2.7.9 Shell on Windows 7, > > print r'C:\\nowhere' > > It has error: > >>>> print r'C:\\nowhere' > SyntaxError: invalid syntax > > What is the problem? Why does it behave diffe

A simple print cannot run in Python Shell

2015-06-01 Thread fl
x27;C:\\nowhere' It has error: >>> print r'C:\\nowhere' SyntaxError: invalid syntax What is the problem? Why does it behave different at .py file and Python Shell? Thanks, -- https://mail.python.org/mailman/listinfo/python-list

Re: Python shell: Arrow keys not working in PuTTY

2015-02-25 Thread Ned Deily
In article <54ec1360$0$12978$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > Ned Deily wrote: > > With no --prefix= on ./configure, the default install location is to > > /usr/local, so "make install" would install a link at > > /usr/local/bin/python (or python3) and it would only o

Re: Python shell: Arrow keys not working in PuTTY

2015-02-24 Thread Laura Creighton
In a message of Tue, 24 Feb 2015 11:18:38 +, David Aldrich writes: >> >> BUT do *not* run `make install` as that will overwrite your system >> >> Python and Bad Things will happen. Instead, run `make altinstall`. > >Thanks for all the warnings. We did use `make altinstall`, so all is ok. > >Rec

RE: Python shell: Arrow keys not working in PuTTY

2015-02-24 Thread David Aldrich
> >> BUT do *not* run `make install` as that will overwrite your system > >> Python and Bad Things will happen. Instead, run `make altinstall`. Thanks for all the warnings. We did use `make altinstall`, so all is ok. Recompiling, with readline installed, fixed the arrow keys. -- https://mail.pyt

Re: Python shell: Arrow keys not working in PuTTY

2015-02-23 Thread Steven D'Aprano
Ned Deily wrote: > In article <54ebdcfa$0$11100$c3e8...@news.astraweb.com>, > Steven D'Aprano wrote: >> Almost right! >> >> You can install Python from source. Unzip the source tar ball, cd into >> the source directory, and run: >> >> ./configure >> make >> >> BUT do *not* run `make install`

Re: Python shell: Arrow keys not working in PuTTY

2015-02-23 Thread Steven D'Aprano
Laura Creighton wrote: > DO NOT REBUILD PYTHON ON CENTOS! > > It can break the whole package management system > which depends on having a particular version of python installed. > > If you are running Centos you need to use virtualenv to be safe. > > Laura Almost right! You can install Pyth

RE: Python shell: Arrow keys not working in PuTTY

2015-02-23 Thread David Aldrich
Thanks for your replies, I will give readline a try. > PS: and you mention being on CentOS but running apt-get. I believe CentOS > and other Red-Hat based distros use "yum" instead of "apt-get" Yes, I think I need to use: yum install readline-devel Best regards David -- https://mail.python.o

Re: Python shell: Arrow keys not working in PuTTY

2015-02-23 Thread Tim Chase
On 2015-02-23 13:44, David Aldrich wrote: > I want to use the Python 3.4 interpreter interactively, via a PuTTY > ssh session. Python is running on Centos 5. > > Currently, the arrow keys do not work: [snip] > sudo apt-get install libreadline-dev > > followed by a rebuild of Python > > or > >

Re: Python shell: Arrow keys not working in PuTTY

2015-02-23 Thread Chris Angelico
On Tue, Feb 24, 2015 at 12:44 AM, David Aldrich wrote: > I want to use the Python 3.4 interpreter interactively, via a PuTTY ssh > session. Python is running on Centos 5. > > This stackoverflow thread: > > http://stackoverflow.com/questions/893053/python-shell-arrow-keys-do-

Python shell: Arrow keys not working in PuTTY

2015-02-23 Thread David Aldrich
;help", "copyright", "credits" or "license" for more information. >>> ^[[A This stackoverflow thread: http://stackoverflow.com/questions/893053/python-shell-arrow-keys-do-not-work-on-remote-machine suggests that the problem can be fixed by installing the re

Re: the python shell window is already executing a command

2014-09-19 Thread Chris Angelico
On Sat, Sep 20, 2014 at 5:43 AM, Terry Reedy wrote: > On 9/18/2014 10:51 PM, Chris Angelico wrote: >> >> On Fri, Sep 19, 2014 at 5:05 AM, Terry Reedy wrote: >>> >>> A couple more questions; after you run the file once, is there a warning >>> above the first >>> prompt? If, after the program stop

Re: the python shell window is already executing a command

2014-09-19 Thread Terry Reedy
On 9/18/2014 10:51 PM, Chris Angelico wrote: On Fri, Sep 19, 2014 at 5:05 AM, Terry Reedy wrote: A couple more questions; after you run the file once, is there a warning above the first >>> prompt? If, after the program stop and you see a second prompt and run import sys; len(sys.modules), 'a

Re: the python shell window is already executing a command

2014-09-18 Thread Chris Angelico
On Fri, Sep 19, 2014 at 5:05 AM, Terry Reedy wrote: > A couple more questions; after you run the file once, is there a warning > above the first >>> prompt? If, after the program stop and you see a second prompt and run import sys; len(sys.modules), 'array' in sys.modules > what is the

Re: the python shell window is already executing a command

2014-09-18 Thread Seymore4Head
On Thu, 18 Sep 2014 15:05:53 -0400, Terry Reedy wrote: >On 9/18/2014 11:24 AM, Seymore4Head wrote: >> On Wed, 17 Sep 2014 23:50:56 -0400, Terry Reedy >> wrote: > >>> My question was "How do you start Idle?" >>> (I can make a difference.) >> >> The way I start IDLE is to go to my programs folder

Re: the python shell window is already executing a command

2014-09-18 Thread Terry Reedy
On 9/18/2014 11:24 AM, Seymore4Head wrote: On Wed, 17 Sep 2014 23:50:56 -0400, Terry Reedy wrote: My question was "How do you start Idle?" (I can make a difference.) The way I start IDLE is to go to my programs folder and right click on file.py in the directory and select "edit with IDLE".

Re: the python shell window is already executing a command

2014-09-18 Thread Seymore4Head
de in idlelib/PyShell.py, about 825. >>> >>> def display_executing_dialog(self): >>> tkMessageBox.showerror( >>> "Already executing", >>> "The Python Shell window is already executing a command; &quo

Re: the python shell window is already executing a command

2014-09-17 Thread Terry Reedy
(self): tkMessageBox.showerror( "Already executing", "The Python Shell window is already executing a command; " "please wait until it is finished.", master=self.tkconsole.text) This function is only called here (about line 735) def ru

Re: the python shell window is already executing a command

2014-09-17 Thread Seymore4Head
thout making any changes I >>>> just hit f5 to rerun the program. >>>> Sometimes I get the error "the python shell window is already >>>> executing a command" and sometimes not. > >You left out an important part of the error message ""please

Re: the python shell window is already executing a command

2014-09-17 Thread Terry Reedy
On 9/17/2014 11:55 AM, Seymore4Head wrote: On Wed, 17 Sep 2014 04:02:16 -0400, Terry Reedy wrote: On 9/16/2014 10:17 PM, Seymore4Head wrote: What I do is click on the IDLE window and without making any changes I just hit f5 to rerun the program. Sometimes I get the error "the python

Re: the python shell window is already executing a command

2014-09-17 Thread Seymore4Head
o is click on the IDLE window and without making any changes I >> just hit f5 to rerun the program. > >Do you mean click on the Idle editor window? > >> Sometimes I get the error "the python shell window is already >> executing a command" and sometimes not.

Re: the python shell window is already executing a command

2014-09-17 Thread Terry Reedy
you mean click on the Idle editor window? Sometimes I get the error "the python shell window is already executing a command" and sometimes not. I am using XP and Python 3.4.1. Is there a way to rerun a program without getting this error? Normally, hitting f5 kills the previous proces

the python shell window is already executing a command

2014-09-16 Thread Seymore4Head
I have googled for a solution to this problem. None I have tried worked. I have a very short program that runs for a count of 20 and ends. What I do is click on the IDLE window and without making any changes I just hit f5 to rerun the program. Sometimes I get the error "the python shell w

Re: Python shell wont open idle or an exisiting py file

2014-02-01 Thread Chris Angelico
On Sat, Feb 1, 2014 at 7:51 PM, Terry Reedy wrote: > I should have added 'to C itself', as the string terminator. Oh, right. Yes, in that sense \0 is special. It's still wrong that an incoming text string gets interpreted as code, but that's probably just a consequence of the jump from Python to

Re: Python shell wont open idle or an exisiting py file

2014-02-01 Thread Terry Reedy
On 2/1/2014 2:26 AM, Chris Angelico wrote: On Sat, Feb 1, 2014 at 4:46 PM, Terry Reedy wrote: On 1/31/2014 10:36 PM, Chris Angelico wrote: On Sat, Feb 1, 2014 at 1:54 PM, MRAB wrote: I think that some years ago I heard about a variation on UTF-8 (Microsoft?) where codepoint U+ is encod

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread Chris Angelico
On Sat, Feb 1, 2014 at 4:46 PM, Terry Reedy wrote: > On 1/31/2014 10:36 PM, Chris Angelico wrote: >> >> On Sat, Feb 1, 2014 at 1:54 PM, MRAB wrote: >>> >>> I think that some years ago I heard about a variation on UTF-8 >>> (Microsoft?) where codepoint U+ is encoded as 0xC0 0x80 so that the >>

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread Terry Reedy
On 1/31/2014 10:36 PM, Chris Angelico wrote: On Sat, Feb 1, 2014 at 1:54 PM, MRAB wrote: I think that some years ago I heard about a variation on UTF-8 (Microsoft?) where codepoint U+ is encoded as 0xC0 0x80 so that the null byte can be used as the string terminator. I had a look on Wikipe

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread Terry Reedy
On 1/31/2014 8:52 PM, Chris Angelico wrote: On Sat, Feb 1, 2014 at 12:45 PM, Terry Reedy wrote: H:\HP_Documents\0PythonWork\AirplaneKinematics\accel2.py caused this message UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 14: invalid start byte So... something's interpreti

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread Chris Angelico
On Sat, Feb 1, 2014 at 1:54 PM, MRAB wrote: > I think that some years ago I heard about a variation on UTF-8 > (Microsoft?) where codepoint U+ is encoded as 0xC0 0x80 so that the > null byte can be used as the string terminator. > > I had a look on Wikipedia found this: > > http://en.wikipedia

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread MRAB
On 2014-02-01 01:52, Chris Angelico wrote: On Sat, Feb 1, 2014 at 12:45 PM, Terry Reedy wrote: H:\HP_Documents\0PythonWork\AirplaneKinematics\accel2.py caused this message UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 14: invalid start byte So... something's interpretin

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread Chris Angelico
On Sat, Feb 1, 2014 at 12:45 PM, Terry Reedy wrote: > H:\HP_Documents\0PythonWork\AirplaneKinematics\accel2.py > caused this message > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 14: > invalid start byte So... something's interpreting \0 as codepoint U+ (which it shou

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread Terry Reedy
On 1/31/2014 2:51 PM, Peter Otten wrote: rpuc...@cox.net wrote: Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. import idlelib.idle Exception in Tkinter callback Traceback (most rec

Re: Python shell wont open idle or an exisiting py file

2014-01-31 Thread Peter Otten
rpuc...@cox.net wrote: > Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 > bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more > information. import idlelib.idle > Exception in Tkinter callback > Traceback (most recent call last): > File "C:\Py

Python shell wont open idle or an exisiting py file

2014-01-31 Thread rpucci2
Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> import idlelib.idle Exception in Tkinter callback Traceback (most recent call last): File "C:\Python33\lib\tkinter\__init__.py", lin

Re: Python shell wont open IDLE or an exisiting .py files

2014-01-30 Thread Terry Reedy
On 1/29/2014 11:16 PM, Ben Finney wrote: Terry Reedy writes: On 1/29/2014 6:26 PM, shangonich...@sbcglobal.net wrote: > If I launch the Python GUI it opens a Python Shell fine. But as > soon as I try to open a file (including a "new" file), it closes > the Shell.

Re: Python shell wont open IDLE or an exisiting .py files

2014-01-29 Thread Ben Finney
Terry Reedy writes: > On 1/29/2014 6:26 PM, shangonich...@sbcglobal.net wrote: > > > If I launch the Python GUI it opens a Python Shell fine. But as > > > soon as I try to open a file (including a "new" file), it closes > > > the Shell. > > This I

Re: Python shell wont open IDLE or an exisiting .py files

2014-01-29 Thread Terry Reedy
both the new window and the existing window > (normally it opens the requested in a new window leaving the existing window > untouched). This much I understood. > If I launch the Python GUI it opens a Python Shell fine. But as soon as I > try to open a file (including a "new

Python shell wont open IDLE or an exisiting .py files

2014-01-29 Thread shangonichols
ny .py file) from an existing instance of IDLE, it briefly flashed up a > new window and then closed both the new window and the existing window > (normally it opens the requested in a new window leaving the existing window > untouched). > > If I launch the Python GUI it opens a Pyth

Re: Restart the interactive python shell like in IDLE

2013-09-30 Thread Ricardo Abreu
On Thursday, June 11, 2009 1:48:42 AM UTC+2, Chris Rebert wrote: > On Wed, Jun 10, 2009 at 12:01 PM, Matt Burson wrote: > > Is there a way to reproduce the behavior of IDLE's restart shell ability by > > using a function? I thought there would be since you can exit python by > > executing the simpl

Re: why the different output in Eclipse and Python Shell?

2012-08-01 Thread Dave Angel
On 08/01/2012 11:26 AM, Prasad, Ramit wrote: >>> my code in Eclipse: >>> >>> dict.fromkeys(['China','America']) >>> print "dict is",dict >>> >>> output: dict is >>> >>> my code in P

RE: why the different output in Eclipse and Python Shell?

2012-08-01 Thread Prasad, Ramit
> > my code in Eclipse: > > > > dict.fromkeys(['China','America']) > > print "dict is",dict > > > > output: dict is > > > > my code in Python Shell: > > > > dict.fromkeys(['China','America&

Re: why the different output in Eclipse and Python Shell?

2012-08-01 Thread Dave Angel
On 08/01/2012 12:45 AM, levi nie wrote: > my code in Eclipse: > > dict.fromkeys(['China','America']) > print "dict is",dict > > output: dict is > > my code in Python Shell: > > dict.fromkeys(['China','America'])

Re: why the different output in Eclipse and Python Shell?

2012-07-31 Thread Terry Reedy
On 8/1/2012 12:45 AM, levi nie wrote: my code in Eclipse: dict.fromkeys(['China','America']) In Eclipse, I presume this prints nothing, as is normal for an editor. print "dict is",dict output: dict is This is red herring. The shell does the same with that line. It is not relevant to you

why the different output in Eclipse and Python Shell?

2012-07-31 Thread levi nie
my code in Eclipse: dict.fromkeys(['China','America']) print "dict is",dict output: dict is my code in Python Shell: dict.fromkeys(['China','America']) output:{'America': None, 'China': None} Output in Python Shell is w

Running embedded python shell on a separate thread

2012-05-10 Thread Roel van de Kraats
For those who are interested, In an application I am working on, an embedded python shell needs to be run on a separate thread, since the main thread is already 'taken' (by Qt). This causes an issue with handling SIGINT (Control-C) when using the readline package; the 'Keyboa

Re: TEST AN EXECUTABLE PYTHON SCRIPT SPEED UNDER A PYTHON SHELL

2012-02-16 Thread gene heskett
On Thursday, February 16, 2012 08:40:04 PM Arnaud Delobelle did opine: > On 16 February 2012 21:10, Prasad, Ramit wrote: > >>> When you reply to a known bot, please include some indication of the > >>> fact, so we know your message can be ignored as well. > >> > >>Sometimes I wonder about 8.

Re: TEST AN EXECUTABLE PYTHON SCRIPT SPEED UNDER A PYTHON SHELL

2012-02-16 Thread Arnaud Delobelle
On 16 February 2012 21:10, Prasad, Ramit wrote: >>> When you reply to a known bot, please include some indication of the >>> fact, so we know your message can be ignored as well. > >>Sometimes I wonder about 8. Is there a real person there, as well as the >>bot? A lot of his/its > posts look

RE: TEST AN EXECUTABLE PYTHON SCRIPT SPEED UNDER A PYTHON SHELL

2012-02-16 Thread Prasad, Ramit
>> When you reply to a known bot, please include some indication of the >> fact, so we know your message can be ignored as well. >Sometimes I wonder about 8. Is there a real person there, as well as the >bot? A lot of his/its posts look too intelligent to be computer-generated - or maybe I'

Re: TEST AN EXECUTABLE PYTHON SCRIPT SPEED UNDER A PYTHON SHELL

2012-02-15 Thread Chris Angelico
On Thu, Feb 16, 2012 at 5:48 AM, Dave Angel wrote: > When you reply to a known bot, please include some indication of the fact, > so we know your message can be ignored as well. Sometimes I wonder about 8. Is there a real person there, as well as the bot? A lot of his/its posts look too intel

Re: TEST AN EXECUTABLE PYTHON SCRIPT SPEED UNDER A PYTHON SHELL

2012-02-15 Thread Dave Angel
On 02/15/2012 01:36 PM, Miki Tebeka wrote: It depends on the overall runtime of the script vs start time of the vm. But yes in most benchmarks the script start time will bias against scripted languages. On a site note: ALL CAPS is considered shouting, please don't use that in news groups. Whe

Re: TEST AN EXECUTABLE PYTHON SCRIPT SPEED UNDER A PYTHON SHELL

2012-02-15 Thread Miki Tebeka
It depends on the overall runtime of the script vs start time of the vm. But yes in most benchmarks the script start time will bias against scripted languages. On a site note: ALL CAPS is considered shouting, please don't use that in news groups. -- http://mail.python.org/mailman/listinfo/pyth

TEST AN EXECUTABLE PYTHON SCRIPT SPEED UNDER A PYTHON SHELL

2012-02-14 Thread 88888 Dihedral
After my testing of JAVA, PYTHON, VB, C-sharp and Erlang like script languages, I noticed that script languages should be timed after the shell interpreter completed loaded. The start up loading time of script interpreters should be excluded in the measure of executing a byte code script. Thi

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-27 Thread DevPlayer
On Nov 15, 10:38 pm, goldtech wrote: > Hi, > > Using Windows. Is there a python shell that has a history of typed in > commands? > > I don't need output of commands just what I typed it. I need it to > save between sessions - something that no shell seems to do. If I &g

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread alex23
On Nov 25, 6:58 pm, Tim Golden wrote: > Do you have the pyreadline module installed? ISTR that that takes > over from the standard cmd processing... I'm pretty sure I do. It's really not an issue, though, as I tend to stick to linux & iPython where possible :) -- http://mail.python.org/mailman

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread 88888 Dihedral
> Except that, intriguingly, I'm also using an ActiveState distro > and it neither adds Ctrl-D nor prevents history. But I'm > fairly sure that pyreadline does both of those things. > > TJG In python I can spawn a process to run python byte code that will produce a file with results. Easy to av

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread Tim Golden
On 25/11/2011 10:37, Ulrich Eckhardt wrote: Am 25.11.2011 04:49, schrieb alex23: On Nov 24, 6:51 pm, Tim Golden wrote: The Ctrl-Z thing is what *exits* the interpreter on Windows (a la Ctrl-D on Linux). With ActivePython, Ctrl-D works as well, which is a godsend as I'm constantly working acro

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread Ulrich Eckhardt
Am 25.11.2011 04:49, schrieb alex23: On Nov 24, 6:51 pm, Tim Golden wrote: The Ctrl-Z thing is what *exits* the interpreter on Windows (a la Ctrl-D on Linux). With ActivePython, Ctrl-D works as well, which is a godsend as I'm constantly working across Windows& linux. In short - on Windows,

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread Tim Golden
On 25/11/2011 03:47, alex23 wrote: Tim Golden wrote: The interpreter inherits the command shell's history function: Open a cmd window and then a Python session. Do some stuff. Ctrl-Z to exit to the surrounding cmd window. Do some random cmd stuff: dir, cd, etc. Start a second Python session.

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread alex23
Tim Golden wrote: > The interpreter inherits the command shell's history function: > Open a cmd window and then a Python session. Do some stuff. > > Ctrl-Z to exit to the surrounding cmd window. > Do some random cmd stuff: dir, cd, etc. > > Start a second Python session. up-arrow etc. will bring b

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread alex23
On Nov 24, 6:51 pm, Tim Golden wrote: > The > Ctrl-Z thing is what *exits* the interpreter on Windows (a la Ctrl-D > on Linux). With ActivePython, Ctrl-D works as well, which is a godsend as I'm constantly working across Windows & linux. > In short - on Windows, within one cmd shell you can open

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread Ulrich Eckhardt
Am 17.11.2011 00:59, schrieb Ben Finney: David Robinow writes: but your code works fine on Windows. Thanks. I'm glad to know that. Perhaps you could investigate why, and suggest an update to the above documentation if it's wrong? The bug tracker at http://bugs.python.org/> would be the appro

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread Tim Golden
On 24/11/2011 06:22, Chris Angelico wrote: On Thu, Nov 24, 2011 at 5:11 PM, Steven D'Aprano wrote: One of us is confused, and I'm pretty sure it's you :) Tim went on to say "Obviously this only applies when an underlying cmd session persists", which I understood as implying that he too is usi

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-23 Thread Chris Angelico
On Thu, Nov 24, 2011 at 5:11 PM, Steven D'Aprano wrote: > One of us is confused, and I'm pretty sure it's you :) > > Tim went on to say "Obviously this only applies when an underlying cmd > session persists", which I understood as implying that he too is using > Linux where Ctrl-Z stops the proces

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-23 Thread Steven D'Aprano
On Thu, 24 Nov 2011 15:30:57 +1100, Chris Angelico wrote: > On Thu, Nov 24, 2011 at 1:16 PM, Steven D'Aprano > wrote: >> On Wed, 23 Nov 2011 10:37:56 +, Tim Golden wrote: >> >>> The interpreter inherits the command shell's history function: Open a >>> cmd window and then a Python session. Do

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-23 Thread Chris Angelico
On Thu, Nov 24, 2011 at 1:16 PM, Steven D'Aprano wrote: > On Wed, 23 Nov 2011 10:37:56 +, Tim Golden wrote: > >> The interpreter inherits the command shell's history function: Open a >> cmd window and then a Python session. Do some stuff. >> >> Ctrl-Z to exit to the surrounding cmd window. Do

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-23 Thread Steven D'Aprano
On Wed, 23 Nov 2011 10:37:56 +, Tim Golden wrote: > The interpreter inherits the command shell's history function: Open a > cmd window and then a Python session. Do some stuff. > > Ctrl-Z to exit to the surrounding cmd window. Do some random cmd stuff: > dir, cd, etc. > > Start a second Pyth

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-23 Thread Tim Golden
On 23/11/2011 10:29, Steven D'Aprano wrote: On Wed, 23 Nov 2011 11:23:19 +0200, Anssi Saari wrote: goldtech writes: Using Windows. Is there a python shell that has a history of typed in commands? Is there a shell that doesn't have history then? At least both the vanilla shel

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-23 Thread Steven D'Aprano
On Wed, 23 Nov 2011 11:23:19 +0200, Anssi Saari wrote: > goldtech writes: > >> Using Windows. Is there a python shell that has a history of typed in >> commands? > > Is there a shell that doesn't have history then? At least both the > vanilla shell and Idle bo

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-23 Thread Anssi Saari
goldtech writes: > Using Windows. Is there a python shell that has a history of typed in > commands? Is there a shell that doesn't have history then? At least both the vanilla shell and Idle both have basic history in Windows. IPython for more fun. -- http://mail.python.org/mailm

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread alex23
On Nov 17, 7:09 am, Ben Finney wrote: > You can then use that functionality in your Python interactive startup > file. Here's mine: Awesome, thank you for this. I use iPython where ever possible but there are times where I just can't avoid the default shell and this will help immensely. Cheers!

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread David Robinow
On Wed, Nov 16, 2011 at 6:59 PM, Ben Finney wrote: > David Robinow writes: > >> On Wed, Nov 16, 2011 at 4:09 PM, Ben Finney >> wrote: >> > I don't know about MS Windows, but the Python interactive shell can be >> > linked with the GNU Readline library for managing its command line >> > http://d

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread Ben Finney
David Robinow writes: > On Wed, Nov 16, 2011 at 4:09 PM, Ben Finney > wrote: > > I don't know about MS Windows, but the Python interactive shell can be > > linked with the GNU Readline library for managing its command line > > http://docs.python.org/library/readline.html> […] > > Reading the d

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread David Robinow
On Wed, Nov 16, 2011 at 4:09 PM, Ben Finney wrote: > goldtech writes: > >> Using Windows. Is there a python shell that has a history of typed in >> commands? > > I don't know about MS Windows, but the Python interactive shell can be > linked with the GNU Readline

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread Ben Finney
goldtech writes: > Using Windows. Is there a python shell that has a history of typed in > commands? I don't know about MS Windows, but the Python interactive shell can be linked with the GNU Readline library for managing its command line http://docs.python.org/library/readline.html

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread Tim Golden
On 16/11/2011 03:38, goldtech wrote: Hi, Using Windows. Is there a python shell that has a history of typed in commands? Have a look at DreamPie: http://dreampie.sourceforge.net/ TJG -- http://mail.python.org/mailman/listinfo/python-list

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-15 Thread sword
Maybe you're looking for ipython? History, tab-complete, sort of things in it. goldtech wrote: > Hi, > > Using Windows. Is there a python shell that has a history of typed in > commands? > > I don't need output of commands just what I typed it. I need it to > sa

python shell that saves history of typed in commands that will persist between reboots

2011-11-15 Thread goldtech
Hi, Using Windows. Is there a python shell that has a history of typed in commands? I don't need output of commands just what I typed it. I need it to save between sessions - something that no shell seems to do. If I reboot there will still be a command history somewhere. Like bash histo

Re: python shell silently ignores termios.tcsetattr()

2010-10-22 Thread Lawrence D'Oliveiro
In message , kj wrote: > What's wrong with it is that what python thinks is a "reasonable > state" is actually wrong in this case (it differs from the default > setting established by the Emacs shell). I personally wouldn’t try to run one program that wants to do its own interactive terminal con

Re: python shell silently ignores termios.tcsetattr()

2010-10-21 Thread Nobody
On Wed, 20 Oct 2010 16:18:57 +, kj wrote: > I tried to fix the problem by applying the equivalent of "stty -echo" > within a python interactive session, but discovered that this setting is > immediately (and silently) overwritten. FWIW, I don't see this behaviour with Python 2.6.5 on Linux. I

Re: python shell silently ignores termios.tcsetattr()

2010-10-21 Thread kj
In Lawrence D'Oliveiro writes: >In message , kj wrote: >> I tried to fix the problem by applying the equivalent of "stty >> -echo" within a python interactive session, but discovered that >> this setting is immediately (and silently) overwritten. >That seems reasonable behaviour; the command

Re: python shell silently ignores termios.tcsetattr()

2010-10-20 Thread Lawrence D'Oliveiro
In message , kj wrote: > I tried to fix the problem by applying the equivalent of "stty > -echo" within a python interactive session, but discovered that > this setting is immediately (and silently) overwritten. That seems reasonable behaviour; the command loop is resetting the terminal to a rea

python shell silently ignores termios.tcsetattr()

2010-10-20 Thread kj
This post is a continuation of an earlier thread called annoying CL echo in interactive python / ipython I found some more clues to the problem, although no solution yet. First, I found a post from 2009.05.09 that describes exactly the same situation I've observed (although it got no responses

Re: Sun Grid Engine / NFS and Python shell execution question

2010-07-22 Thread Neil Hodgson
J.B. Brown: > I believe the source of this problem is that os.popen() or os.system() > calls spawn subshells which then reference my shell resource files > (.zshrc, .cshrc, .bashrc, etc.). > But I don't see an alternative to os.popen{234} or os.system(). > os.exec*() cannot solve my problem, becau

Re: Sun Grid Engine / NFS and Python shell execution question

2010-07-22 Thread MRAB
J.B. Brown wrote: Hello everyone, and thanks for your time to read this. For quite some time, I have had a problem using Python's shell execution facilities in combination with a cluster computer environment (such as Sun Grid Engine (SGE)). In particular, I wish to repeatedly execute a number of

Sun Grid Engine / NFS and Python shell execution question

2010-07-22 Thread J.B. Brown
Hello everyone, and thanks for your time to read this. For quite some time, I have had a problem using Python's shell execution facilities in combination with a cluster computer environment (such as Sun Grid Engine (SGE)). In particular, I wish to repeatedly execute a number of commands in sub-she

Re: Sometimes the python shell cannot recognize the presence of an attribute.

2010-04-12 Thread Simon Brunning
2010/4/12 Ricardo Aráoz : > Because . ... Guido says so: http://www.python.org/dev/peps/pep-0008/ -- Cheers, Simon B. -- http://mail.python.org/mailman/listinfo/python-list

Re: Sometimes the python shell cannot recognize the presence of an attribute.

2010-04-12 Thread Ricardo Aráoz
Aahz wrote: > In article , > Justin Park wrote: > >> The real problem is this. When I started working on the package, >> somehow all of indentations were made by space-bars instead of using >> tabs. But when I am implementing my own on top of it, I still use tabs >> to make indentations. >>

Re: Sometimes the python shell cannot recognize the presence of an attribute.

2010-04-12 Thread Aahz
In article , Justin Park wrote: > >The real problem is this. When I started working on the package, >somehow all of indentations were made by space-bars instead of using >tabs. But when I am implementing my own on top of it, I still use tabs >to make indentations. Stop using TAB. Allowing TAB

Re: Sometimes the python shell cannot recognize the presence of an attribute.

2010-03-30 Thread Steve Holden
Justin Park wrote: > Sorry, my mistake. > > The real problem is this. > When I started working on the package, somehow all of indentations were > made by space-bars instead of using tabs. > But when I am implementing my own on top of it, I still use tabs to make > indentations. > > This is causin

Re: Sometimes the python shell cannot recognize the presence of an attribute.

2010-03-30 Thread Justin Park
order to resolve this issue? Thanks, Justin. Justin Park wrote: > Sometimes when I am working on an already generated package, > the python shell cannot perceive the presence of an attribute that I > implemented on top of what was there. > > Is there a way to have it perceive newly cre

Sometimes the python shell cannot recognize the presence of an attribute.

2010-03-30 Thread Justin Park
Sometimes when I am working on an already generated package, the python shell cannot perceive the presence of an attribute that I implemented on top of what was there. Is there a way to have it perceive newly created attributes? Thanks, Justin. -- http://mail.python.org/mailman/listinfo/python

Re: DreamPie - The Python shell you've always dreamed about!

2010-03-22 Thread Steve Holden
Luis M. González wrote: > On Feb 21, 6:40 pm, Mensanator wrote: >> On Feb 21, 12:14 pm, Paul Boddie wrote: >> >> >> >> >> >>> On 21 Feb, 17:32, Mensanator wrote: On Feb 21, 10:30 am, Mensanator wrote: > What versions of Python does it suuport? What OS are supported? >>> From the W

Re: DreamPie - The Python shell you've always dreamed about!

2010-03-22 Thread Luis M . González
On Feb 21, 6:40 pm, Mensanator wrote: > On Feb 21, 12:14 pm, Paul Boddie wrote: > > > > > > > On 21 Feb, 17:32, Mensanator wrote: > > > > On Feb 21, 10:30 am, Mensanator wrote: > > > > > What versions of Python does it suuport? > > > > What OS are supported? > > > From the Web site referenced i

Re: DreamPie - The Python shell you've always dreamed about!

2010-03-21 Thread kuru
Thanks for the shell. It is nice alternative , however I am not ready to give up Ipython :) If the code ends with a comment line your shell is giving an error. Feature request: It would be nice to have numbered lines in the code section, it makes it hard to find problem line Feature request: Load

  1   2   3   >