Re: Classes and the command line

2014-10-27 Thread Jean-Michel Pichavant
- Original Message - From: Seymore4Head Seymore4Head@Hotmail.invalid To: python-list@python.org Sent: Monday, 27 October, 2014 3:27:18 AM Subject: Classes and the command line I am trying to learn classes. I am currently using Python 2.7 at the command line. If you try to type

Re: Classes and the command line

2014-10-27 Thread alister
On Sun, 26 Oct 2014 23:32:08 -0400, Seymore4Head wrote: On Mon, 27 Oct 2014 14:06:11 +1100, Ben Finney ben+pyt...@benfinney.id.au wrote: Seymore4Head Seymore4Head@Hotmail.invalid writes: I am trying to learn classes. I am currently using Python 2.7 at the command line. (I think you mean

Re: Classes and the command line

2014-10-27 Thread Chris Angelico
On Mon, Oct 27, 2014 at 10:17 PM, alister alister.nospam.w...@ntlworld.com wrote: Notepad+ is also often suggested along with many other programmer editors/ Integrated development environments (IDE). That would be Notepad++, and yes, it's fairly well recommended. It's based on the same edit

Re: Classes and the command line

2014-10-27 Thread Seymore4Head
On Sun, 26 Oct 2014 23:32:08 -0400, Seymore4Head Seymore4Head@Hotmail.invalid wrote: On Mon, 27 Oct 2014 14:06:11 +1100, Ben Finney ben+pyt...@benfinney.id.au wrote: Seymore4Head Seymore4Head@Hotmail.invalid writes: I am trying to learn classes. I am currently using Python 2.7 at the command

Re: Classes and the command line

2014-10-27 Thread Terry Reedy
On 10/26/2014 11:24 PM, Chris Angelico wrote: On Mon, Oct 27, 2014 at 2:18 PM, Rustom Mody rustompm...@gmail.com wrote: On Monday, October 27, 2014 8:40:48 AM UTC+5:30, Chris Angelico wrote: You can get block-by-block history by using Idle. I find that fairly convenient for manipulating

Re: Classes and the command line

2014-10-27 Thread Terry Reedy
On 10/26/2014 11:28 PM, Seymore4Head wrote: I am going to be flexible on IDLE in the near future, but I wanted to try it the old fashion way. I already know using IDLE is better, but I am not sure using IDLE will invoke Python 2 and I am not sure how to change that at the moment. Currently,

Re: Classes and the command line

2014-10-27 Thread Chris Angelico
On Tue, Oct 28, 2014 at 3:08 PM, Terry Reedy tjre...@udel.edu wrote: It's inconsistent only because the default sys.ps2 is those dots, which aren't necessary in Idle. You could make it consistent by simply changing sys.ps2. Nope. User code is executed in the user process. Its only effect

Classes and the command line

2014-10-26 Thread Seymore4Head
I am trying to learn classes. I am currently using Python 2.7 at the command line. If you try to type commands at the command line and make the slightest mistake you have to start over. I was trying to copy and paste these instructions into the command prompt.

Re: Classes and the command line

2014-10-26 Thread Ben Finney
Seymore4Head Seymore4Head@Hotmail.invalid writes: I am trying to learn classes. I am currently using Python 2.7 at the command line. (I think you mean “the interactive Python interpreter”, or just “the Python shell”.) Since you are learning Python, I will strongly recommend you ignore Python

Re: Classes and the command line

2014-10-26 Thread Rustom Mody
On Monday, October 27, 2014 8:00:04 AM UTC+5:30, Seymore4Head wrote: I am trying to learn classes. I am currently using Python 2.7 at the command line. Why not idle? And if in general you are at python 3, why 2.7 here? There are enough factor to learn ( and get confused)! Please dont add new

Re: Classes and the command line

2014-10-26 Thread Chris Angelico
On Mon, Oct 27, 2014 at 2:06 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Right. There is line-by-line history, and editing enabled with the “readline” plug-in. (This is an advantage of using a programmer-friendly operating system, which MS Windows sadly is not.) You can get block-by-block

Re: Classes and the command line

2014-10-26 Thread Rustom Mody
On Monday, October 27, 2014 8:40:48 AM UTC+5:30, Chris Angelico wrote: On Mon, Oct 27, 2014 at 2:06 PM, Ben Finney wrote: Right. There is line-by-line history, and editing enabled with the readline plug-in. (This is an advantage of using a programmer-friendly operating system, which MS

Re: Classes and the command line

2014-10-26 Thread Chris Angelico
On Mon, Oct 27, 2014 at 2:18 PM, Rustom Mody rustompm...@gmail.com wrote: On Monday, October 27, 2014 8:40:48 AM UTC+5:30, Chris Angelico wrote: On Mon, Oct 27, 2014 at 2:06 PM, Ben Finney wrote: Right. There is line-by-line history, and editing enabled with the readline plug-in. (This is

Re: Classes and the command line

2014-10-26 Thread Rustom Mody
On Monday, October 27, 2014 8:48:52 AM UTC+5:30, Rustom Mody wrote: On Monday, October 27, 2014 8:40:48 AM UTC+5:30, Chris Angelico wrote: On Mon, Oct 27, 2014 at 2:06 PM, Ben Finney wrote: Right. There is line-by-line history, and editing enabled with the readline plug-in. (This is an

Re: Classes and the command line

2014-10-26 Thread Seymore4Head
Your message showed up as unavailable on my server I have to cut and paste Google Groups to reply. (I am going to change news servers probably tomorrow to try to fix that) So the quoting is going to be bad. Why not idle? And if in general you are at python 3, why 2.7 here? There are enough

Re: Classes and the command line

2014-10-26 Thread Seymore4Head
On Mon, 27 Oct 2014 14:06:11 +1100, Ben Finney ben+pyt...@benfinney.id.au wrote: Seymore4Head Seymore4Head@Hotmail.invalid writes: I am trying to learn classes. I am currently using Python 2.7 at the command line. (I think you mean “the interactive Python interpreter”, or just “the Python

Re: Classes and the command line

2014-10-26 Thread Seymore4Head
On Mon, 27 Oct 2014 14:10:01 +1100, Chris Angelico ros...@gmail.com wrote: On Mon, Oct 27, 2014 at 2:06 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Right. There is line-by-line history, and editing enabled with the “readline” plug-in. (This is an advantage of using a programmer-friendly