On 7/27/2011 9:46 PM, Dennis Lee Bieber wrote:
On Wed, 27 Jul 2011 17:28:38 -0700, "W. eWatson"
<wolftra...@invalid.com>  declaimed the following in
gmane.comp.python.general:


For junk.py, I tried Open With->Choose default program. I selected
idle.pyw. When I tried the new default for getting to IDLE, it
complained it was not a valid 32-bit app. That's very strange.

        Quite expected... idle.pyw is a Python byte code file... IT needs to
be run using a Python interpreter (pythonw.exe to suppress the shell
window).

        What happens IN the command/shell if you type (replace the<words>
with the correct string on your installation)

<path to python>python -v<path to idle.pyw>idle.pyw

        This is my install:

E:\UserData\Wulfraed\My Documents>e:\Python25\python -v
e:\Python25\Lib\idlelib\idle.pyw

# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# e:\Python25\lib\site.pyc matches e:\Python25\lib\site.py
import site # precompiled from e:\Python25\lib\site.pyc
# e:\Python25\lib\os.pyc matches e:\Python25\lib\os.py
import os # precompiled from e:\Python25\lib\os.pyc
import errno # builtin
import nt # builtin
# e:\Python25\lib\ntpath.pyc matches e:\Python25\lib\ntpath.py
import ntpath # precompiled from e:\Python25\lib\ntpath.pyc
# e:\Python25\lib\stat.pyc matches e:\Python25\lib\stat.py
import stat # precompiled from e:\Python25\lib\stat.pyc
# e:\Python25\lib\UserDict.pyc matches e:\Python25\lib\UserDict.py
import UserDict # precompiled from e:\Python25\lib\UserDict.pyc
# e:\Python25\lib\copy_reg.pyc matches e:\Python25\lib\copy_reg.py
import copy_reg # precompiled from e:\Python25\lib\copy_reg.pyc
# e:\Python25\lib\types.pyc matches e:\Python25\lib\types.py
import types # precompiled from e:\Python25\lib\types.pyc
import _types # builtin
# zipimport: found 45 names in
e:\Python25\lib\site-packages\simplejson-2.0.3-py2.5.egg
# zipimport: found 33 names in
e:\Python25\lib\site-packages\ruledispatch-0.5a1.dev_r2506-py2.5-
win32.egg
# zipimport: found 15 names in
e:\Python25\lib\site-packages\decoratortools-1.7-py2.5.egg
# zipimport: found 9 names in
e:\Python25\lib\site-packages\configobj-4.5.3-py2.5.egg
# zipimport: found 15 names in
e:\Python25\lib\site-packages\extremes-1.1-py2.5.egg
# zipimport: found 43 names in
e:\Python25\lib\site-packages\pyprotocols-1.0a0-py2.5-win32.egg
# e:\Python25\lib\locale.pyc matches e:\Python25\lib\locale.py
import locale # precompiled from e:\Python25\lib\locale.pyc
import encodings # directory e:\Python25\lib\encodings
# e:\Python25\lib\encodings\__init__.pyc matches
e:\Python25\lib\encodings\__init__.py
import encodings # precompiled from
e:\Python25\lib\encodings\__init__.pyc
# e:\Python25\lib\codecs.pyc matches e:\Python25\lib\codecs.py
import codecs # precompiled from e:\Python25\lib\codecs.pyc
import _codecs # builtin
# e:\Python25\lib\encodings\aliases.pyc matches
e:\Python25\lib\encodings\aliases.py
import encodings.aliases # precompiled from
e:\Python25\lib\encodings\aliases.pyc
import _locale # builtin
# e:\Python25\lib\re.pyc matches e:\Python25\lib\re.py
import re # precompiled from e:\Python25\lib\re.pyc
# e:\Python25\lib\sre_compile.pyc matches e:\Python25\lib\sre_compile.py
import sre_compile # precompiled from e:\Python25\lib\sre_compile.pyc
import _sre # builtin
# e:\Python25\lib\sre_constants.pyc matches
e:\Python25\lib\sre_constants.py
import sre_constants # precompiled from
e:\Python25\lib\sre_constants.pyc
# e:\Python25\lib\sre_parse.pyc matches e:\Python25\lib\sre_parse.py
import sre_parse # precompiled from e:\Python25\lib\sre_parse.pyc
import operator # builtin
# e:\Python25\lib\encodings\cp1252.pyc matches
e:\Python25\lib\encodings\cp1252.py
import encodings.cp1252 # precompiled from
e:\Python25\lib\encodings\cp1252.pyc
# e:\Python25\lib\warnings.pyc matches e:\Python25\lib\warnings.py
import warnings # precompiled from e:\Python25\lib\warnings.pyc
# e:\Python25\lib\linecache.pyc matches e:\Python25\lib\linecache.py
import linecache # precompiled from e:\Python25\lib\linecache.pyc
ActivePython 2.5.2.2 (ActiveState Software Inc.) based on
Python 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import idlelib # directory e:\Python25\lib\idlelib
# e:\Python25\lib\idlelib\__init__.pyc matches
e:\Python25\lib\idlelib\__init__.py
import idlelib # precompiled from e:\Python25\lib\idlelib\__init__.pyc
# e:\Python25\lib\idlelib\PyShell.pyc matches
e:\Python25\lib\idlelib\PyShell.py
import idlelib.PyShell # precompiled from
e:\Python25\lib\idlelib\PyShell.pyc
# e:\Python25\lib\string.pyc matches e:\Python25\lib\string.py
import string # precompiled from e:\Python25\lib\string.pyc
import strop # builtin
# e:\Python25\lib\getopt.pyc matches e:\Python25\lib\getopt.py
import getopt # precompiled from e:\Python25\lib\getopt.pyc
# e:\Python25\lib\socket.pyc matches e:\Python25\lib\socket.py
import socket # precompiled from e:\Python25\lib\socket.pyc
import _socket # dynamically loaded from e:\Python25\DLLs\_socket.pyd
import _ssl # dynamically loaded from e:\Python25\DLLs\_ssl.pyd
import time # builtin
# e:\Python25\lib\threading.pyc matches e:\Python25\lib\threading.py
import threading # precompiled from e:\Python25\lib\threading.pyc
import thread # builtin
# e:\Python25\lib\traceback.pyc matches e:\Python25\lib\traceback.py
import traceback # precompiled from e:\Python25\lib\traceback.pyc
import collections # builtin
# e:\Python25\lib\idlelib\macosxSupport.pyc matches
e:\Python25\lib\idlelib\macosxSupport.py
import idlelib.macosxSupport # precompiled from
e:\Python25\lib\idlelib\macosxSupport.pyc
# e:\Python25\lib\lib-tk\Tkinter.pyc matches
e:\Python25\lib\lib-tk\Tkinter.py
import Tkinter # precompiled from e:\Python25\lib\lib-tk\Tkinter.pyc
# e:\Python25\lib\lib-tk\FixTk.pyc matches
e:\Python25\lib\lib-tk\FixTk.py
import FixTk # precompiled from e:\Python25\lib\lib-tk\FixTk.pyc
import _tkinter # dynamically loaded from e:\Python25\DLLs\_tkinter.pyd
# e:\Python25\lib\lib-tk\Tkconstants.pyc matches
e:\Python25\lib\lib-tk\Tkconstants.py
import Tkconstants # precompiled from
e:\Python25\lib\lib-tk\Tkconstants.pyc
# e:\Python25\lib\code.pyc matches e:\Python25\lib\code.py
import code # precompiled from e:\Python25\lib\code.pyc
# e:\Python25\lib\codeop.pyc matches e:\Python25\lib\codeop.py
import codeop # precompiled from e:\Python25\lib\codeop.pyc
# e:\Python25\lib\__future__.pyc matches e:\Python25\lib\__future__.py
import __future__ # precompiled from e:\Python25\lib\__future__.pyc
# e:\Python25\lib\lib-tk\tkMessageBox.pyc matches
e:\Python25\lib\lib-tk\tkMessageBox.py
import tkMessageBox # precompiled from
e:\Python25\lib\lib-tk\tkMessageBox.pyc
# e:\Python25\lib\lib-tk\tkCommonDialog.pyc matches
e:\Python25\lib\lib-tk\tkCommonDialog.py
import tkCommonDialog # precompiled from
e:\Python25\lib\lib-tk\tkCommonDialog.pyc
# e:\Python25\lib\idlelib\EditorWindow.pyc matches
e:\Python25\lib\idlelib\EditorWindow.py
import idlelib.EditorWindow # precompiled from
e:\Python25\lib\idlelib\EditorWindow.pyc
import imp # builtin
import itertools # builtin
# e:\Python25\lib\lib-tk\tkSimpleDialog.pyc matches
e:\Python25\lib\lib-tk\tkSimpleDialog.py
import tkSimpleDialog # precompiled from
e:\Python25\lib\lib-tk\tkSimpleDialog.pyc
# e:\Python25\lib\idlelib\MultiCall.pyc matches
e:\Python25\lib\idlelib\MultiCall.py
import idlelib.MultiCall # precompiled from
e:\Python25\lib\idlelib\MultiCall.pyc
# e:\Python25\lib\webbrowser.pyc matches e:\Python25\lib\webbrowser.py
import webbrowser # precompiled from e:\Python25\lib\webbrowser.pyc
# e:\Python25\lib\shlex.pyc matches e:\Python25\lib\shlex.py
import shlex # precompiled from e:\Python25\lib\shlex.pyc
import cStringIO # builtin
# e:\Python25\lib\subprocess.pyc matches e:\Python25\lib\subprocess.py
import subprocess # precompiled from e:\Python25\lib\subprocess.pyc
import gc # builtin
import msvcrt # builtin
import _subprocess # builtin
# e:\Python25\lib\idlelib\idlever.pyc matches
e:\Python25\lib\idlelib\idlever.py
import idlelib.idlever # precompiled from
e:\Python25\lib\idlelib\idlever.pyc
# e:\Python25\lib\idlelib\WindowList.pyc matches
e:\Python25\lib\idlelib\WindowList.py
import idlelib.WindowList # precompiled from
e:\Python25\lib\idlelib\WindowList.pyc
# e:\Python25\lib\idlelib\SearchDialog.pyc matches
e:\Python25\lib\idlelib\SearchDialog.py
import idlelib.SearchDialog # precompiled from
e:\Python25\lib\idlelib\SearchDialog.pyc
# e:\Python25\lib\idlelib\SearchEngine.pyc matches
e:\Python25\lib\idlelib\SearchEngine.py
import idlelib.SearchEngine # precompiled from
e:\Python25\lib\idlelib\SearchEngine.pyc
# e:\Python25\lib\idlelib\SearchDialogBase.pyc matches
e:\Python25\lib\idlelib\SearchDialogBase.
py
import idlelib.SearchDialogBase # precompiled from
e:\Python25\lib\idlelib\SearchDialogBase.pyc
# e:\Python25\lib\idlelib\GrepDialog.pyc matches
e:\Python25\lib\idlelib\GrepDialog.py
import idlelib.GrepDialog # precompiled from
e:\Python25\lib\idlelib\GrepDialog.pyc
# e:\Python25\lib\fnmatch.pyc matches e:\Python25\lib\fnmatch.py
import fnmatch # precompiled from e:\Python25\lib\fnmatch.pyc
# e:\Python25\lib\idlelib\ReplaceDialog.pyc matches
e:\Python25\lib\idlelib\ReplaceDialog.py
import idlelib.ReplaceDialog # precompiled from
e:\Python25\lib\idlelib\ReplaceDialog.pyc
# e:\Python25\lib\idlelib\PyParse.pyc matches
e:\Python25\lib\idlelib\PyParse.py
import idlelib.PyParse # precompiled from
e:\Python25\lib\idlelib\PyParse.pyc
# e:\Python25\lib\idlelib\configHandler.pyc matches
e:\Python25\lib\idlelib\configHandler.py
import idlelib.configHandler # precompiled from
e:\Python25\lib\idlelib\configHandler.pyc
# e:\Python25\lib\ConfigParser.pyc matches
e:\Python25\lib\ConfigParser.py
import ConfigParser # precompiled from e:\Python25\lib\ConfigParser.pyc
# e:\Python25\lib\idlelib\aboutDialog.pyc matches
e:\Python25\lib\idlelib\aboutDialog.py
import idlelib.aboutDialog # precompiled from
e:\Python25\lib\idlelib\aboutDialog.pyc
# e:\Python25\lib\idlelib\textView.pyc matches
e:\Python25\lib\idlelib\textView.py
import idlelib.textView # precompiled from
e:\Python25\lib\idlelib\textView.pyc
# e:\Python25\lib\idlelib\configDialog.pyc matches
e:\Python25\lib\idlelib\configDialog.py
import idlelib.configDialog # precompiled from
e:\Python25\lib\idlelib\configDialog.pyc
# e:\Python25\lib\lib-tk\tkColorChooser.pyc matches
e:\Python25\lib\lib-tk\tkColorChooser.py
import tkColorChooser # precompiled from
e:\Python25\lib\lib-tk\tkColorChooser.pyc
# e:\Python25\lib\lib-tk\tkFont.pyc matches
e:\Python25\lib\lib-tk\tkFont.py
import tkFont # precompiled from e:\Python25\lib\lib-tk\tkFont.pyc
# e:\Python25\lib\copy.pyc matches e:\Python25\lib\copy.py
import copy # precompiled from e:\Python25\lib\copy.pyc
# e:\Python25\lib\idlelib\dynOptionMenuWidget.pyc matches
e:\Python25\lib\idlelib\dynOptionMenuW
idget.py
import idlelib.dynOptionMenuWidget # precompiled from
e:\Python25\lib\idlelib\dynOptionMenuWidge
t.pyc
# e:\Python25\lib\idlelib\tabpage.pyc matches
e:\Python25\lib\idlelib\tabpage.py
import idlelib.tabpage # precompiled from
e:\Python25\lib\idlelib\tabpage.pyc
# e:\Python25\lib\idlelib\keybindingDialog.pyc matches
e:\Python25\lib\idlelib\keybindingDialog.
py
import idlelib.keybindingDialog # precompiled from
e:\Python25\lib\idlelib\keybindingDialog.pyc
# e:\Python25\lib\idlelib\configSectionNameDialog.pyc matches
e:\Python25\lib\idlelib\configSect
ionNameDialog.py
import idlelib.configSectionNameDialog # precompiled from
e:\Python25\lib\idlelib\configSectionN
ameDialog.pyc
# e:\Python25\lib\idlelib\configHelpSourceEdit.pyc matches
e:\Python25\lib\idlelib\configHelpSou
rceEdit.py
import idlelib.configHelpSourceEdit # precompiled from
e:\Python25\lib\idlelib\configHelpSourceE
dit.pyc
# e:\Python25\lib\lib-tk\tkFileDialog.pyc matches
e:\Python25\lib\lib-tk\tkFileDialog.py
import tkFileDialog # precompiled from
e:\Python25\lib\lib-tk\tkFileDialog.pyc
# e:\Python25\lib\idlelib\Percolator.pyc matches
e:\Python25\lib\idlelib\Percolator.py
import idlelib.Percolator # precompiled from
e:\Python25\lib\idlelib\Percolator.pyc
# e:\Python25\lib\idlelib\WidgetRedirector.pyc matches
e:\Python25\lib\idlelib\WidgetRedirector.
py
import idlelib.WidgetRedirector # precompiled from
e:\Python25\lib\idlelib\WidgetRedirector.pyc
# e:\Python25\lib\idlelib\Delegator.pyc matches
e:\Python25\lib\idlelib\Delegator.py
import idlelib.Delegator # precompiled from
e:\Python25\lib\idlelib\Delegator.pyc
# e:\Python25\lib\idlelib\ColorDelegator.pyc matches
e:\Python25\lib\idlelib\ColorDelegator.py
import idlelib.ColorDelegator # precompiled from
e:\Python25\lib\idlelib\ColorDelegator.pyc
# e:\Python25\lib\keyword.pyc matches e:\Python25\lib\keyword.py
import keyword # precompiled from e:\Python25\lib\keyword.pyc
# e:\Python25\lib\idlelib\UndoDelegator.pyc matches
e:\Python25\lib\idlelib\UndoDelegator.py
import idlelib.UndoDelegator # precompiled from
e:\Python25\lib\idlelib\UndoDelegator.pyc
# e:\Python25\lib\idlelib\IOBinding.pyc matches
e:\Python25\lib\idlelib\IOBinding.py
import idlelib.IOBinding # precompiled from
e:\Python25\lib\idlelib\IOBinding.pyc
# e:\Python25\lib\tempfile.pyc matches e:\Python25\lib\tempfile.py
import tempfile # precompiled from e:\Python25\lib\tempfile.pyc
# e:\Python25\lib\random.pyc matches e:\Python25\lib\random.py
import random # precompiled from e:\Python25\lib\random.pyc
import math # builtin
import binascii # builtin
import _random # builtin
# e:\Python25\lib\lib-tk\SimpleDialog.pyc matches
e:\Python25\lib\lib-tk\SimpleDialog.py
import SimpleDialog # precompiled from
e:\Python25\lib\lib-tk\SimpleDialog.pyc
# e:\Python25\lib\idlelib\Bindings.pyc matches
e:\Python25\lib\idlelib\Bindings.py
import idlelib.Bindings # precompiled from
e:\Python25\lib\idlelib\Bindings.pyc
# e:\Python25\lib\idlelib\MultiStatusBar.pyc matches
e:\Python25\lib\idlelib\MultiStatusBar.py
import idlelib.MultiStatusBar # precompiled from
e:\Python25\lib\idlelib\MultiStatusBar.pyc
# e:\Python25\lib\tokenize.pyc matches e:\Python25\lib\tokenize.py
import tokenize # precompiled from e:\Python25\lib\tokenize.pyc
# e:\Python25\lib\token.pyc matches e:\Python25\lib\token.py
import token # precompiled from e:\Python25\lib\token.pyc
# e:\Python25\lib\idlelib\FileList.pyc matches
e:\Python25\lib\idlelib\FileList.py
import idlelib.FileList # precompiled from
e:\Python25\lib\idlelib\FileList.pyc
# e:\Python25\lib\idlelib\OutputWindow.pyc matches
e:\Python25\lib\idlelib\OutputWindow.py
import idlelib.OutputWindow # precompiled from
e:\Python25\lib\idlelib\OutputWindow.pyc
# e:\Python25\lib\idlelib\rpc.pyc matches e:\Python25\lib\idlelib\rpc.py
import idlelib.rpc # precompiled from e:\Python25\lib\idlelib\rpc.pyc
import select # dynamically loaded from e:\Python25\DLLs\select.pyd
# e:\Python25\lib\SocketServer.pyc matches
e:\Python25\lib\SocketServer.py
import SocketServer # precompiled from e:\Python25\lib\SocketServer.pyc
# e:\Python25\lib\struct.pyc matches e:\Python25\lib\struct.py
import struct # precompiled from e:\Python25\lib\struct.pyc
import _struct # builtin
import cPickle # builtin
# e:\Python25\lib\Queue.pyc matches e:\Python25\lib\Queue.py
import Queue # precompiled from e:\Python25\lib\Queue.pyc
import marshal # builtin
# e:\Python25\lib\idlelib\Debugger.pyc matches
e:\Python25\lib\idlelib\Debugger.py
import idlelib.Debugger # precompiled from
e:\Python25\lib\idlelib\Debugger.pyc
# e:\Python25\lib\bdb.pyc matches e:\Python25\lib\bdb.py
import bdb # precompiled from e:\Python25\lib\bdb.pyc
# e:\Python25\lib\idlelib\ScrolledList.pyc matches
e:\Python25\lib\idlelib\ScrolledList.py
import idlelib.ScrolledList # precompiled from
e:\Python25\lib\idlelib\ScrolledList.pyc
# e:\Python25\lib\idlelib\RemoteDebugger.pyc matches
e:\Python25\lib\idlelib\RemoteDebugger.py
import idlelib.RemoteDebugger # precompiled from
e:\Python25\lib\idlelib\RemoteDebugger.pyc
# e:\Python25\lib\idlelib\IdleHistory.pyc matches
e:\Python25\lib\idlelib\IdleHistory.py
import idlelib.IdleHistory # precompiled from
e:\Python25\lib\idlelib\IdleHistory.pyc
# e:\Python25\lib\idlelib\CallTips.pyc matches
e:\Python25\lib\idlelib\CallTips.py
import idlelib.CallTips # precompiled from
e:\Python25\lib\idlelib\CallTips.pyc
# e:\Python25\lib\idlelib\CallTipWindow.pyc matches
e:\Python25\lib\idlelib\CallTipWindow.py
import idlelib.CallTipWindow # precompiled from
e:\Python25\lib\idlelib\CallTipWindow.pyc
# e:\Python25\lib\idlelib\HyperParser.pyc matches
e:\Python25\lib\idlelib\HyperParser.py
import idlelib.HyperParser # precompiled from
e:\Python25\lib\idlelib\HyperParser.pyc
# e:\Python25\lib\idlelib\AutoComplete.pyc matches
e:\Python25\lib\idlelib\AutoComplete.py
import idlelib.AutoComplete # precompiled from
e:\Python25\lib\idlelib\AutoComplete.pyc
# e:\Python25\lib\idlelib\AutoCompleteWindow.pyc matches
e:\Python25\lib\idlelib\AutoCompleteWin
dow.py
import idlelib.AutoCompleteWindow # precompiled from
e:\Python25\lib\idlelib\AutoCompleteWindow.
pyc
# e:\Python25\lib\idlelib\ParenMatch.pyc matches
e:\Python25\lib\idlelib\ParenMatch.py
import idlelib.ParenMatch # precompiled from
e:\Python25\lib\idlelib\ParenMatch.pyc
# e:\Python25\lib\idlelib\ZoomHeight.pyc matches
e:\Python25\lib\idlelib\ZoomHeight.py
import idlelib.ZoomHeight # precompiled from
e:\Python25\lib\idlelib\ZoomHeight.pyc
# e:\Python25\lib\idlelib\AutoExpand.pyc matches
e:\Python25\lib\idlelib\AutoExpand.py
import idlelib.AutoExpand # precompiled from
e:\Python25\lib\idlelib\AutoExpand.pyc
# e:\Python25\lib\idlelib\ScriptBinding.pyc matches
e:\Python25\lib\idlelib\ScriptBinding.py
import idlelib.ScriptBinding # precompiled from
e:\Python25\lib\idlelib\ScriptBinding.pyc
# e:\Python25\lib\tabnanny.pyc matches e:\Python25\lib\tabnanny.py
import tabnanny # precompiled from e:\Python25\lib\tabnanny.pyc
# e:\Python25\lib\idlelib\FormatParagraph.pyc matches
e:\Python25\lib\idlelib\FormatParagraph.py

import idlelib.FormatParagraph # precompiled from
e:\Python25\lib\idlelib\FormatParagraph.pyc


{and that was captured by a<right-click>  in the command window, "select
all", another<right-click>  to capture, then move to the newreader and
<ctrl-v>  to paste}
I'm quite willing to do this in the command window, but I know of no way to copy it.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to