Re: [Python-3000] PEP 3106: Revamping dict.keys(), .values() and .items()

2006-12-22 Thread Guido van Rossum
On 12/19/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I've written a quick version of PEP 3106, which expresses my ideas > about how the dict methods to access keys, values and items should be > redone. Thanks for all the comments. The new version is in svn: http://svn.python.org/view/peps/tr

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] Any platforms we want to drop for Py3K?

2006-12-22 Thread Brett Cannon
On 12/21/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Actually you *should* post this to python-dev. Let's be aggressive. > All of those look like we should've stopped supporting them years > ago... :-) > OK, moved it over along with the two comments that came in on this thread. -Brett > On

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():

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

2006-12-22 Thread Andre Roberge
A few months ago, there was an active discussion on edu-sig regarding the proposed fate of raw_input(). The text below is an attempt at summarizing the discussion in the form of a tentative PEP. It is respectfully submitted for your consideration. If it is to be considered, in some form, as an o

Re: [Python-3000] versionadded/versionchanged in doc

2006-12-22 Thread Fredrik Lundh
Neal Norwitz wrote: > What do we want to do with the current versionadded/versionchanged > markups in the doc for 3k? Should we remove all references to 1.x > changes? all 2.x changes? Keep them? all of them? the right answer is of course to move the documentation over to an environment that