Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2007-02-26 Thread Guido van Rossum
We implemented this at today's sprint. Andre wrote the transformations for the 2to3 tools, I copied the raw_input() implementation from the trunk back into the p3yk branch. Thanks Andre for your efforts in writing the PEP, pushing for its implementation, and writing the transformations! --Guido O

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2007-02-20 Thread Andre Roberge
On 2/20/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Why do you want this *before* PyCon? It would be much easier to do > this as part of the Py3k sprint. > My main interest was to have, prior to Pycon, the PEP recorded as such; it had been close to 2 months since the last post on this issue

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2007-02-20 Thread Andre Roberge
On 2/20/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Why do you want this *before* PyCon? It would be much easier to do > this as part of the Py3k sprint. > My main interest was to have, prior to Pycon, the PEP recorded as such; it had been close to 2 months since the last post on this issue

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2007-02-20 Thread Guido van Rossum
Consider the PEP accepted. Regarding the conversion, please do use the sandbox/2to3 framework. Write me if you have trouble understanding the many examples already in fixes/. On 2/20/07, Andre Roberge <[EMAIL PROTECTED]> wrote: > On 2/20/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Why do

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2007-02-20 Thread Guido van Rossum
Why do you want this *before* PyCon? It would be much easier to do this as part of the Py3k sprint. On 2/20/07, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Andre Roberge wrote: > > Any possibility that (some of) the following can be done before Pycon? > > Respectfully yours, > > André Roberge > > I'

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2007-02-20 Thread Nick Coghlan
Andre Roberge wrote: > Any possibility that (some of) the following can be done before Pycon? > Respectfully yours, > André Roberge I've added the PEP as 3111. I made a few small modifications (and committed it directly as Accepted) based on Guido's comments in this thread. The actual change sti

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2007-02-20 Thread Andre Roberge
Any possibility that (some of) the following can be done before Pycon? Respectfully yours, André Roberge On 12/23/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: [http://mail.python.org/pipermail/python-3000/2006-December/005257.html] > BTW, can someone clean up and check in the proto-PEP and star

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-23 Thread Calvin Spealman
On 12/23/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 12/23/06, Calvin Spealman <[EMAIL PROTECTED]> wrote: > > On 12/23/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > On 12/23/06, Calvin Spealman <[EMAIL PROTECTED]> wrote: > > > > I was reading the thread and wanted to make a comment

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-23 Thread Guido van Rossum
On 12/23/06, Calvin Spealman <[EMAIL PROTECTED]> wrote: > On 12/23/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > On 12/23/06, Calvin Spealman <[EMAIL PROTECTED]> wrote: > > > I was reading the thread and wanted to make a comment about the "input > > > from a GUI". It should be noted that what

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-23 Thread Calvin Spealman
On 12/23/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 12/23/06, Calvin Spealman <[EMAIL PROTECTED]> wrote: > > I was reading the thread and wanted to make a comment about the "input > > from a GUI". It should be noted that whatever the names of these > > functions, or their allowed paramete

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-23 Thread Guido van Rossum
On 12/23/06, Calvin Spealman <[EMAIL PROTECTED]> wrote: > I was reading the thread and wanted to make a comment about the "input > from a GUI". It should be noted that whatever the names of these > functions, or their allowed parameters, etc., the idea of them being > more than console IO should be

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-23 Thread Calvin Spealman
On 12/23/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 12/23/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > Guido van Rossum wrote: > > > > > But they typically aren't used to entering EOF either; EOF is not > > > exactly a typical input in an interactive program, and having to enter > > >

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-23 Thread Guido van Rossum
BTW, can someone clean up and check in the proto-PEP and start working on an implementation or patch? Should be really simple. I'd like to see a patch for the refactoring tool (sandbox/2to3) as well. --Guido -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-23 Thread Guido van Rossum
On 12/23/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > > But they typically aren't used to entering EOF either; EOF is not > > exactly a typical input in an interactive program, and having to enter > > it typically means you're talking to a Unix utility that's not reall

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-23 Thread Fredrik Lundh
Guido van Rossum wrote: > But they typically aren't used to entering EOF either; EOF is not > exactly a typical input in an interactive program, and having to enter > it typically means you're talking to a Unix utility that's not really > designed for interactive use. the progression I had in min

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-22 Thread Guido van Rossum
On 12/22/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > > I like the exact proposal made here better than any of the > > alternatives mentioned so far. > > > > - Against naming it readline(): the "real" readline doesn't strip the > > \n and returns an empty string for EO

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-22 Thread Fredrik Lundh
Guido van Rossum wrote: > I like the exact proposal made here better than any of the > alternatives mentioned so far. > > - Against naming it readline(): the "real" readline doesn't strip the > \n and returns an empty string for EOF instead of raising EOFError; I > believe the latter is more help

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-22 Thread Guido van Rossum
I like the exact proposal made here better than any of the alternatives mentioned so far. - Against naming it readline(): the "real" readline doesn't strip the \n and returns an empty string for EOF instead of raising EOFError; I believe the latter is more helpful for true beginners' code. - Agai

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-22 Thread Phillip J. Eby
At 12:20 PM 12/22/2006 -0800, Brett Cannon wrote: >+1 from me as well, although as Ron suggested, you probably want to >strip off the newline if we are targetting this to new programmers. In which case, why not go all the way and use say() and ask()? E.g.: say('Hello,', ask("What's your nam

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-22 Thread Brett Cannon
On 12/22/06, Steven Bethard <[EMAIL PROTECTED]> wrote: > On 12/22/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > Andre Roberge wrote: > > > > > The various possibilities mentioned in various forums include: > > > > > > ask() > > > ask_user() > > > get_string() > > > input() # rejected by BDFL >

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-22 Thread Tony Lownds
On Dec 22, 2006, at 5:45 AM, Andre Roberge wrote: > raw_input() provides a simple mean to ask a question and obtain a > response > from a user. The proposed plans for Python 3.0 would require the > replacement > of the single statement > > name = raw_input("What is your name?") > > by the mor

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-22 Thread Steven Bethard
On 12/22/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Andre Roberge wrote: > > > The various possibilities mentioned in various forums include: > > > > ask() > > ask_user() > > get_string() > > input() # rejected by BDFL > > prompt() > > read() > > user_input() > > get_response() > > why not ca

Re: [Python-3000] Pre-PEP: Simple input built-in in Python 3000

2006-12-22 Thread Fredrik Lundh
Andre Roberge wrote: > The various possibilities mentioned in various forums include: > > ask() > ask_user() > get_string() > input() # rejected by BDFL > prompt() > read() > user_input() > get_response() why not call it "readline", and define it as import sys def readline():