[Python-Dev] #!/usr/bin/env python --> python3 where applicable

2009-04-18 Thread Mitchell L Model
Some library files, such as pdb.py, begin with #!/usr/bin/env python In various discussions regarding some issues I submitted I was told that the decision had been made to call Python 3.x release executables python3. (One of the conflicts I ran into when I made 'python' a link to python

[Python-Dev] IDLE maintenance

2009-03-08 Thread Mitchell L Model
. If it needs a new maintainer I hereby volunteer. Discussions about my qualifications should probably be conducted through email to me personally, rather than through this mailing list, using the address I use when submitting issues to the tracker: m...@acm.org. -- Mitchell L Mo

Re: [Python-Dev] draft 3.1 release schedule

2009-03-02 Thread Mitchell L Model
Would whoever is responsible for IDLE please take a look at the patches I submitted for Python 2 & 3 [tracker IDs 5233 and 5234 respectively]. These change the behavior of IDLE so that IDLESTARTUP or PYTHONSTARTUP files are executed with each restart. This allows loading frequently used package

[Python-Dev] .pythonrc.py in man page

2009-02-22 Thread Mitchell L Model
The python man page, dated 2005 even in 3.1, has this curious entry: ~/.pythonrc.py User-specific initialization file loaded by the user module; not used by default or by most applications. 1. I couldn't figure out what the user module is. 2. I couldn't figure

[Python-Dev] lifting of prohibition against readlines inside a "for line in file" in Py3?

2009-02-18 Thread Mitchell L Model
In Digest Vol. 67, Issue 52 (13 Feb 2009) I pointed out that Python 2's prohibition against performing readlines on a file being iterated over appears to have been lifted in Python 3. I asked if this was intentional and whether it should be add to the "What's New" documentation. I also express

[Python-Dev] lifting of prohibition against readlines inside a "for line in file" in Py3?

2009-02-13 Thread Mitchell L Model
I discovered today that Python 2's prohibition against performing readlines on a file being iterated over appears to have been lifted in Python 3. Is this intentional? If it is, should it be added to the What's New in the documentation? I haven't been able to find anything mentioning the change

[Python-Dev] patch to make IDLE load IDLESTARTUP/PYTHONSTARTUP on restart

2009-02-12 Thread Mitchell L Model
I have submitted patches to idlelib/PyShell.py for Python 2.7 (Issue 5233) and 3.1 (5234), made against local repository copies as updated an hour ago. The purpose of the patch is to have IDLE load IDLESTARTUP or PYTHONSTARTUP on restart. Along the way I also made -s the default so IDLESTARTUP

[Python-Dev] .Idle.py init file

2009-02-12 Thread Mitchell L Model
I was trying to disentangle some IDLE behavior today and discovered that If the user has a .Idle.py file IDLE will run it when it starts up. This is independent of running IDLESTARTUP or PYTHONSTARTUP when the -s switch is given. It is run by Tk.readprofile as called from Tk.__init__. The "Idle

[Python-Dev] IDLE reading IDLESTARTUP or PYTHONSTARTUP on restart

2009-02-11 Thread Mitchell L Model
I have a patch for IDLE, but I've never submitted a patch before and not quite sure of the procedure, despite reading the guidelines at http://www.python.org/dev/patches/. But I'll be brave and persevere. The question I have at the moment is should I only submit the patch vs. 3.1 or also for 3.

[Python-Dev] IDLE reading IDLESTARTUP or PYTHONSTARTUP on restart

2009-02-07 Thread Mitchell L Model
I have a small change (shown below) to PyShell.py in idlelib that causes the subprocess interpreter to read IDLESTARTUP or PYTHONSTARTUP each time it restarts. To me this would make IDLE much more useful for myself and students I teach. It isn't quite clear what behavior to install with the en

[Python-Dev] Documentation of Slicings in 3.0

2009-01-06 Thread Mitchell L Model
cannot convince myself that the docmentation ever covers sequence slicing. I'm not sufficiently confident of this to post as a bug, so I decided to post here first. -- --- Mitchell L Model ___ Python-Dev mailing list Python-Dev@python.org ht